eoio.readers.flex.subset module#
eoio.readers.flex.subset#
Subset resolution for FLEX products.
Classes#
|
Resolved subsetting information for a FLEX read. |
Functions#
|
Resolve a user subset request against the product grid and wavelength coordinates. |
- class eoio.readers.flex.subset.FLEXSubset(x_indices: ndarray | None = None, y_indices: ndarray | None = None, wavelength_indices: Dict[str, ~numpy.ndarray]=<factory>, roi: ResolvedROISubset | None = None)[source]#
Bases:
objectResolved subsetting information for a FLEX read.
- Parameters:
x_indices – column indices to keep, or
Nonefor all.y_indices – row indices to keep, or
Nonefor all.wavelength_indices – indices to keep for each wavelength dimension, e.g.
{"wavelength_olci": array([...])}. The same wavelength criteria are applied to every spectral grid in the product, each on its own wavelengths.roi – resolved ROI (in the product CRS), or
None.
- roi: ResolvedROISubset | None = None#
- wavelength_indices: Dict[str, ndarray]#
- x_indices: ndarray | None = None#
- y_indices: ndarray | None = None#
- eoio.readers.flex.subset.build_subset(grid: FlexGrid, wavelengths: Mapping[str, DataArray], subset: Mapping) FLEXSubset[source]#
Resolve a user subset request against the product grid and wavelength coordinates.
- Parameters:
grid – product grid.
wavelengths – wavelength coordinate (1-D array-like with
.size) for each wavelength dimension.subset – subset request with optional
roi,roi_crsandwavelengthkeys.
- Returns:
resolved subset.