calc_ol module

Calculates oceanloading displacement.

calc_ol takes a site, a start date, an end date, and a time interval and calculates oceanloading displacements at the site.

Usage:
calc_ol [-h] [-m MODEL] [-f] [-p] [-v] <site> <start_date> <end_date> <interval>
param <site>:name of the station.
param <start_date>:
 start date in ISO format: 2001-01-01T12:00:00
param <end_date>:
 end date in ISO format.
param <interval>:
 interval between points in minutes.
Optional arguments:
-h, --help Shows help message and exit

-m MODEL, –model MODEL Name of the ocean model to use (default: GOT00.2) -f, –file If true then *.txt file with data is created -p, –plot If true then plot is displayed -v, –verbose Increase output verbosity

calc_ol.plot_ol(site: str, date_list: [<class ‘datetime.datetime’>], oldata: [<class ‘float’>], oceanModel: str)[source]

Plots ocean loading displacements

Parameters:
  • site – Name of the station
  • date_list – datetimes for the oceanloading calculations
  • oldata – calculated displacements
  • oceanModel – Name of the ocean model to used
calc_ol.write_ol_to_file(site: str, date_list: typing.List[datetime.datetime], oldata: typing.List[float], oceanModel: str, filename: str)[source]

Saves the ocean loading time series to a file :param site: Name of the station :param date_list: datetimes for the oceanloading calculations :param oldata: calculated displacements :param oceanModel: Name of the ocean model to used :param file: Name of the file to which the time series are saved