API Reference

This section provides a comprehensive overview of the Meteostat Python library's API. Here, you will find detailed documentation on the various modules, classes, and functions available for use in your projects. Whether you're looking to retrieve weather data, perform analyses, or visualize results, the API reference will guide you through the available options and how to implement them effectively.

👀 Learn More#

ms.hourlyGet hourly weather data for a specific station or location.ms.dailyGet daily weather data for a specific station or location.ms.monthlyGet monthly weather data for a specific station or location.ms.normalsGet climate normals data for a specific station or location.ms.TimeSeriesA class representing a time series of meteorological data.ms.TimeSeries.fetchFetch the actual weather/climate data as a Pandas DataFrame.ms.TimeSeries.countGet the number of rows in the whole time series or by parameter. NaN values are excluded.ms.TimeSeries.completenessThe share of non-NaN values of the time series's full length.ms.TimeSeries.validateCheck 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).ms.mergeMerge multiple time series objects into a single object.ms.interpolateEstimate weather data at a specific geographical point based on nearby weather stations.ms.lapse_rateCalculate the lapse rate for temperature parameters based on weather data from multiple stations.ms.stationsAccess to the comprehensive database of weather stations worldwide.ms.stations.metaRetrieve metadata for a specific weather station.ms.stations.nearbyFind weather stations near a geographical point.ms.stations.inventoryCheck data availability for a weather station.ms.InventoryA weather station's data inventory.ms.StationA class representing a weather station with its metadata and geographic location.ms.PointA class representing a geographical point with latitude, longitude, and optional elevation.ms.ParameterEnumeration of meteorological parameters available in Meteostat.ms.ProviderEnumeration of data providers integrated in Meteostat.ms.LicenseA data license specification.ms.GranularityEnumeration of data granularities available in Meteostat.ms.UnitSystemEnumeration of unit systems for meteorological data.ms.configConfigure the behavior of the Meteostat Python library.ms.config.load_envParse environment variables and update the configuration accordingly.ms.config.get_env_nameGet the full name of an environment variable (including prefix) that can be used to set a configuration option.