meteostat.Point

On this page

A class representing a geographical point with latitude, longitude, and optional elevation.

  • Type: Class
  • Source Code: GitHub

Parameters#

Parameter Description Data Type Default Value
latitude The latitude of the geographical point in decimal degrees float Required
longitude The longitude of the geographical point in decimal degrees float Required
elevation The elevation of the geographical point in meters above sea level int or None None

Properties#

All parameters are available as properties of the Point class.

Example#

Python
import meteostat as ms

# Define a geographical point (latitude, longitude, elevation)
point = ms.Point(50.1155, 8.6842, 113)  # Frankfurt, Germany

print(f"Latitude: {point.latitude}")
print(f"Longitude: {point.longitude}")
print(f"Elevation: {point.elevation}")