Tiling
tiling
Split the points of one time slice along the source's own horizontal tiling.
A source stores its fields in tiles (latitude bands of Blosc blocks for ARCO-ERA5, square tiles for Open-Meteo). The points of one hour, possibly from many flights, occupy some of them. Occupied tiles that touch form one component; each component becomes its own cube, so the empty tiles between two distant groups of flights are never read, and no threshold has to be tuned: the source's tiling decides.
Tiling
dataclass
Regular tiling of a grid: tile (i, j) starts at lat0 + i * lat_step.
lon_step=None means tiles span every longitude (ARCO-ERA5 bands).
merge_adjacent=False groups points by their own tile, keeping long
connected trajectories from requesting large mostly empty rectangles.
Source code in packages/barograph-met/src/baro/met/tiling.py
n_cols
property
Number of tile columns around the globe.
partition(lat, lon, margin, tiling)
Component label (0, 1, ...) of every point, from the tiles within margin of it.
Components are ordered by their first tile (south to north, then west to
east); a point near a tile edge marks both tiles, so the neighbours its
interpolation needs are always in its own component.
With merge_adjacent=False, labels instead identify each point's own
tile. The caller must retain its normal domain margin and grid neighbours
when fetching each group.