Skip to content

Inputs

stormlore.types

The inputs the SDK accepts: places, bounding boxes, waypoints and times.

  • A place is (lat, lon), a :class:LatLon, or a 5-digit US ZIP code string (looked up once per client; needs the read:observations scope).
  • A time is a timezone-aware datetime (converted to UTC), a naive datetime (taken as UTC), a numpy.datetime64 or pandas.Timestamp, or an ISO 8601 string.
  • A month is "YYYY-MM", or a date/time of any accepted kind (its UTC calendar month).

LatLon

Bases: BaseModel

A point: latitude and longitude in degrees.

Bounds

Bases: BaseModel

A bounding box in degrees. east < west crosses the antimeridian.

Waypoint

Bases: BaseModel

A place on a route, and when to be there (None: the forecast nearest to now).