eoio.processors.populate_grid.processor module#
eoio.processors.populate_grid.processor#
Top-level populate_grid processor.
This processor provides a single, stable user-facing interface (populate_grid).
User config example#
- processors= {
- “populate_grid”: {
“reference_grid”: “path/to/reference_grid.nc”, “fill_value”: None, “tolerance”: 1
},
}
- class eoio.processors.populate_grid.processor.PopulateGrid(params: Dict[str, Any] | None = None, context: Dict[str, Any] | None = None)[source]#
Bases:
BaseProcessorFill dataset with fill value to match shape of a given reference viewing geometry grid.
Processor parameters#
The following parameters can be provided in the
paramsdict:- param reference_grid:
str or xarray.Dataset Reference grid used to determine where values should be filled. This may be a filepath or an explicit Dataset. The data_vars should be the variables to fill along and the coordinates of these variables should match those in the dataset to be processed.
- param dims_to_populate:
str or List of str, optional Variables of reference grid to populate. If None, all variables in reference grid will be used.
- param fill_value:
float, int, or None, optional Value to use for filled locations when interpolation is not requested. If None, the data will be filled with nans.
- param tolerance:
float or None, optional Value to use to search for matching viewing angles. If None, infinite range is used, the same idea as ‘nearest’ interpolation.
Notes
This processor is intended to run after reading.
- name = 'populate_grid'#
- class eoio.processors.populate_grid.processor.PopulateGridConfig(reference_grid: str | Dataset | None, dims_to_populate: str | list[str] | None, fill_value: None | float | int = None, tolerance: float | None = 1)[source]#
Bases:
objectParameters for the populate_grid processor.
- dims_to_populate: str | list[str] | None#
- fill_value: None | float | int = None#
- reference_grid: str | Dataset | None#
- tolerance: float | None = 1#