Skip to main content

meteostat.TimeSeries.validate

Check if the time series passes all quality checks. Values which fail any of the checks can be set to NaN when fetching data (using the clean parameter).

Parameters

This method does not accept any parameters.

Returns

bool

Example

from datetime import date
import meteostat as ms

# Specify time range
START = date(2018, 1, 1)
END = date(2018, 12, 31)

# Get daily data
ts = ms.daily('10637', START, END)

# Validate the time series
is_valid = ts.validate()

print(f'Time series valid: {is_valid}')