stilt.config.Grid#
- class stilt.config.Grid(*, xmin: float, xmax: float, ymin: float, ymax: float, xres: float, yres: float, projection: str = '+proj=longlat') None[source]#
Footprint grid: longitude/latitude bounds, cell size, and projection.
The bounds are always longitude/latitude. With a projected
projection, the grid covers the bounds’ extent in that projection andxresandyresare in its units.
Parameters#
Parameter |
Description |
Default |
|---|---|---|
|
Western edge, in degrees longitude. |
Required |
|
Eastern edge, in degrees longitude. |
Required |
|
Southern edge, in degrees latitude. |
Required |
|
Northern edge, in degrees latitude. |
Required |
|
Cell width in projection units (degrees for longlat, meters for UTM). |
Required |
|
Cell height in projection units (degrees for longlat, meters for UTM). |
Required |
|
Projection of the footprint grid, as a PROJ string. Particles and bounds are projected to it before gridding. |
|
Methods#
|
Return one grid that resolves several geometries. |
|
Return a grid fine enough to resolve the cells of a geometry. |
Return the grid as a CF-1.8 dataset of cell centers. |