BinSpec#
- class rojak.atmosphere.feature_composite.BinSpec(*, max_km_extent, spacing_km)[source]#
The bins that pairs are counted on, in the km frame of their centre.
Create it with a named constructor,
grid().- max_km_extent#
Distance in km from the centre to the outermost bin centres along each axis.
- Type:
- Raises:
ValueError – If
max_km_extentorspacing_kmis not positive and finite, ormax_km_extentis not a whole multiple ofspacing_km.- Parameters:
Methods
__init__(*, max_km_extent, spacing_km)grid(max_km_extent, spacing_km)A 2D
(y_km, x_km)grid of square bins centred on the centre, as the gridded composites use.Attributes
coordsBin centres in km, by dimension.
dimsNames of the binned dimensions, which are also the pair-table columns that are binned;
y_kmfirst.edgesmidpoints between the bin centres, extended by half a spacing at each end.
shapeNumber of bins along each dimension, in the order of
dims.