meteostat.TimeSeries
On this page
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#
| Property | Description | Type |
|---|---|---|
granularity |
The time series's granularity. | Granularity |
stations |
Included weather stations. | DataFrame |
start |
Start date of the requested period. | datetime or None |
end |
End date of the requested period. | datetime or None |
timezone |
Time zone of the period and records (only hourly granularity). | str or None |
parameters |
Included meteorological parameters. | List[Parameter] |
freq |
The time series's frequency (e.g. 1h in case of hourly granularity). |
str |
empty |
Is the time series empty? | bool |
providers |
Included data providers. | List[Provider] |
licenses |
Applicable licenses. | List[License] |
attribution |
The attribution/copyright string. | str |
commercial |
Can data be used for commercial purposes? | bool |
Methods#
fetch- Fetch the actual weather/climate datacount- Get the number of rows in the time series or by parametercompleteness- Get the share of non-NaN values in the time seriesvalidate- Check if the time series passes all quality checks