fews_py_wrapper.utils#
Functions
|
Format a datetime object to a string suitable for FEWS web services. |
Convert the timeseries response content to a pandas DataFrame. |
|
|
Format a list of datetime arguments to strings suitable for web services. |
|
Get the argument names of a function. |
|
Replace dots in attribute keys with underscores. |
- fews_py_wrapper.utils.format_datetime(dt, time_format='%Y-%m-%dT%H:%M:%SZ')[source]#
Format a datetime object to a string suitable for FEWS web services.
- Parameters:
dt (datetime)
time_format (str)
- Return type:
str
- fews_py_wrapper.utils.convert_timeseries_response_to_xarray(response_content)[source]#
Convert the timeseries response content to a pandas DataFrame.
- Parameters:
response_content (dict[str, Any])
- Return type:
Dataset
- fews_py_wrapper.utils.format_time_args(*args)[source]#
Format a list of datetime arguments to strings suitable for web services.
- Parameters:
args (None | datetime)
- Return type:
list[None | str]