smoke_dust.core.regrid package
Submodules
smoke_dust.core.regrid.common module
Common regridding functionality used by the regrid processor.
- class AbstractWrapper(*args: Any, **kwargs: Any)
Bases:
ABC,BaseModelSuperclass for all wrapper objects. Wrapper objects map metadata to an associated
esmpyobject.- dims: DimensionCollection
- class Dimension(*args: Any, **kwargs: Any)
Bases:
BaseModelA dimension object containing metadata and rank bounds information.
- class DimensionCollection(*args: Any, **kwargs: Any)
Bases:
BaseModelA collection of dimension objects.
- class FieldWrapper(*args: Any, **kwargs: Any)
Bases:
AbstractWrapperWraps an
esmpyfield with dimension metadata.- gwrap: GridWrapper
- value: esmpy.Field
- class GridSpec(*args: Any, **kwargs: Any)
Bases:
BaseModelDefines a grid specification that can be read from a netCDF file.
- create_grid_dims(nc_ds: netCDF4.Dataset, grid: esmpy.Grid, staggerloc: esmpy.StaggerLoc) DimensionCollection
Create a dimension collection from a netCDF dataset and
esmpygrid.
- get_x_data(grid: esmpy.Grid, staggerloc: esmpy.StaggerLoc) numpy.ndarray
Get x-coordinate data from a grid.
- get_y_data(grid: esmpy.Grid, staggerloc: esmpy.StaggerLoc) numpy.ndarray
Get y-coordinate data from a grid.
- class GridWrapper(*args: Any, **kwargs: Any)
Bases:
AbstractWrapperWraps an
esmpygrid with dimension metadata.- corner_dims: DimensionCollection | None = None
- value: esmpy.Grid
- class NcToField(*args: Any, **kwargs: Any)
Bases:
BaseModelConverts a netCDF file to an
esmpyfield.- create_field_wrapper() FieldWrapper
Create a field wrapper.
- gwrap: GridWrapper
- class NcToGrid(*args: Any, **kwargs: Any)
Bases:
BaseModelConverts a netCDF file to an
esmpygrid.- create_grid_wrapper() GridWrapper
Create a grid wrapper.
- load_variable_data(var: netCDF4.Variable, target_dims: DimensionCollection) numpy.ndarray
Load variable data using bounds defined in the dimension collection.
- Parameters:
var – netCDF variable to load data from.
target_dims – Dimensions for the variable containing
esmpybounds.
- Returns:
The loaded data array.
smoke_dust.core.regrid.processor module
Implements the smoke/dust regrid processor.