synoptic.services.NearestTime#
- class synoptic.services.NearestTime(**params)[source]#
Get data nearest a specified time for one or more stations.
Refer to the official documentation: https://docs.synopticdata.com/services/nearest-time
- Parameters:
attime (datetime, YYYYMMDDHHMM) – If not given, will act like Latest request.
within (timedelta, int, duration string) – Required if atttime is given.
**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.**optional_parameters – units, precip, qc, etc.
Methods