Domain
domain
Geographic domains and regional cubes of gridded fields.
Cube
dataclass
One hour of gridded fields on a regional grid, levels top to bottom.
Source code in packages/barograph-met/src/baro/met/domain.py
nbytes
property
Memory held by the fields and surface pressure.
Domain
dataclass
Latitude/longitude box; longitudes may be expressed beyond 180 (no wrap inside).
Source code in packages/barograph-met/src/baro/met/domain.py
from_points(lat, lon, margin=0.5)
classmethod
Smallest box around the points (shortest longitude arc), plus margin degrees.
Source code in packages/barograph-met/src/baro/met/domain.py
to_json()
GridIndex
dataclass
Where a domain sits in a regular grid (latitude descending, longitude ascending).
A grid spanning 360 degrees of longitude is periodic (columns wrap around);
a regional grid is clipped: the part of the domain outside it is dropped and
points there are later flagged OUTSIDE_DOMAIN.
Source code in packages/barograph-met/src/baro/met/domain.py
locate(domain, grid_lat, grid_lon)
classmethod
Rows, columns and coordinates of domain in a regular grid.