synoptic.services.Latency#
- class synoptic.services.Latency(**params)[source]#
Request station latency.
Refer to the official documentation: https://docs.synopticdata.com/services/latency
- Parameters:
start (datetime or str, optional) – The start time of the desired time range as a datetime.datetime or a string in the form
'YYYYMMDDHHMM'or'YYYY-MM-DD HH:MM'. Required ifrecentis not provided.end (datetime or str, optional) – The end time of the desired time range as a datetime.datetime or a string in the form
'YYYYMMDDHHMM'or'YYYY-MM-DD HH:MM'. Required if recent is not provided.**station_selection – Station selection parameters such as
stid,state,county,radius,bbox,vars,varsoperator, etc. Refer to the Synoptic API documentation for details.token (str, optional) – Synoptic API token. Required if the
SYNOPTIC_TOKENenvironment variable and the config file entry are not set.stats ({'min', 'max', 'mean', 'median', 'count', 'stdev', 'all'})
**optional_parameters – units, precip, qc, etc.
Methods