synoptic.services.Latest#

class synoptic.services.Latest(**params)[source]#

Get the most recent data from one or more stations.

Refer to the official documentation: https://docs.synopticdata.com/services/latest

Parameters:
  • **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.

  • within (timedelta, int, optional) – Limit data to within a certain time window.

  • minmax

  • minmaxtype

  • minmaxtimezone

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

__init__(**params)[source]#

Methods

__init__(**params)

df()

Stations latest DataFrame.

df()[source]#

Stations latest DataFrame.

Return type:

DataFrame