wavy.insitu_readers

The main task of this module is to read insitu obs for further use.

Attributes

logger

insitu_dict

variable_def

variables_frost

Functions

get_typeid(→ str)

make_frost_reference_time_period(sdate, edate)

call_frost_api(→ requests.models.Response)

make frost api call

call_frost_api_v1(→ requests.models.Response)

frost call, retrieve data from frost v1

find_preferred(idx, sensors, refs, pref)

get_frost_df_v1(→ pandas.core.frame.DataFrame)

create pandas dataframe from frost call for v1

get_frost(**kwargs)

get_nc_thredds(**kwargs)

get_nc_thredds_static_coords(**kwargs)

get_nc_thredds_static_coords_single_file(**kwargs)

get_cmems(**kwargs)

rebuild_split_variable(ds, fixed_dim_str, var)

Gather values of a given variable, for which

build_xr_ds_cmems(dict_var, var_name_ref)

Module Contents

wavy.insitu_readers.logger
wavy.insitu_readers.insitu_dict
wavy.insitu_readers.variable_def
wavy.insitu_readers.variables_frost
wavy.insitu_readers.get_typeid(insitu_dict: dict, s: str) str
wavy.insitu_readers.make_frost_reference_time_period(sdate, edate)
wavy.insitu_readers.call_frost_api(sdate: datetime.datetime, edate: datetime.datetime, nID: str, varstr: str, sensor: str) requests.models.Response

make frost api call

wavy.insitu_readers.call_frost_api_v1(nID: str, varstr: str, frost_reference_time: str, client_id: str, sensor: str) requests.models.Response

frost call, retrieve data from frost v1

wavy.insitu_readers.find_preferred(idx, sensors, refs, pref)
wavy.insitu_readers.get_frost_df_v1(r: requests.models.Response) pandas.core.frame.DataFrame

create pandas dataframe from frost call for v1

wavy.insitu_readers.get_frost(**kwargs)
wavy.insitu_readers.get_nc_thredds(**kwargs)
wavy.insitu_readers.get_nc_thredds_static_coords(**kwargs)
wavy.insitu_readers.get_nc_thredds_static_coords_single_file(**kwargs)
wavy.insitu_readers.get_cmems(**kwargs)
wavy.insitu_readers.rebuild_split_variable(ds, fixed_dim_str, var)

Gather values of a given variable, for which values are split between several levels of a given dimension of a dataset.

Args:

ds (xarray dataset): dataset fixed_dim_str (string): name of the dimension var (string): name of the variable

Returns:

1D numpy array, returns the complete variable serie of values on a single dimension

wavy.insitu_readers.build_xr_ds_cmems(dict_var, var_name_ref)