Skip to main content

meteostat.TimeSeries

A class representing a time series of meteorological data.

  • Type: Class
  • Source Code: GitHub

The TimeSeries class provides access to weather or climate data for one or multiple weather stations. Time series objects are created through one of the granularity-specific interfaces:

Properties

PropertyDescriptionType
granularityThe time series's granularity.Granularity
stationsIncluded weather stations.DataFrame
startStart date of the requested period.datetime or None
endEnd date of the requested period.datetime or None
timezoneTime zone of the period and records (only hourly granularity).str or None
parametersIncluded meteorological parameters.List[Parameter]
freqThe time series's frequency (e.g. 1h in case of hourly granularity).str
emptyIs the time series empty?bool
providersIncluded data providers.List[Provider]
licensesApplicable licenses.List[License]
attributionThe attribution/copyright string.str
commercialCan data be used for commercial purposes?bool

Methods

  • fetch - Fetch the actual weather/climate data
  • count - Get the number of rows in the time series or by parameter
  • completeness - Get the share of non-NaN values in the time series
  • validate - Check if the time series passes all quality checks