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 if recent is 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_TOKEN environment variable and the config file entry are not set.

  • stats ({'min', 'max', 'mean', 'median', 'count', 'stdev', 'all'})

  • **optional_parameters – units, precip, qc, etc.

__init__(**params)[source]#

Methods

__init__(**params)

df()

Stations latency DataFrame.

df()[source]#

Stations latency DataFrame.

Return type:

DataFrame