stilt.Grid#
- class stilt.Grid(*, xmin: float, xmax: float, ymin: float, ymax: float, xres: float, yres: float, crs: str = '+proj=longlat') None[source]#
Footprint grid: longitude/latitude bounds, cell size, and CRS.
The bounds are always longitude/latitude. With a projected
crs, 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 |
|
Coordinate reference system of the footprint grid, such as a PROJ string or |
|
Attributes#
Cell-center coordinates |
|
Every cell center as flat |
|
The names of a footprint's horizontal dimensions on this grid, |
|
Index of every cell, in the same order as |
|
Whether the grid is in longitude/latitude degrees. |
Methods#
Return the grid as a CF-1.8 dataset of cell centers. |