Skip to main content

meteostat.Point

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

  • Type: Class
  • Source Code: GitHub

Parameters

ParameterDescriptionData TypeDefault Value
latitudeThe latitude of the geographical point in decimal degreesfloatRequired
longitudeThe longitude of the geographical point in decimal degreesfloatRequired
elevationThe elevation of the geographical point in meters above sea levelint or NoneNone
Validation
  • Latitude must be between -90 and 90 degrees
  • Longitude must be between -180 and 180 degrees

Properties

All parameters are available as properties of the Point class.

Example

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}")