Climatologies#
seagrid.climatology.build() turns any source into a monthly
climatology on any grid. Every time step in the range is opened and binned
onto the grid, and the binned fields of each calendar month are reduced
across the years. Every data source offers the same:
from seagrid import grids, modis, ostia
chl = modis.climatology("chlor_a", start="2003-01-01", end="2020-12-31")
sst = ostia.climatology(grid=grids.regular_latlon(1.0), stat="mean")
The result has dimensions (month, lat, lon) and an n_steps coordinate
holding the number of time steps that went into each month.
Keyword |
Default |
|
|---|---|---|
|
CBIOMES 0.5° |
Target grid. |
|
the source’s time range |
Range of time steps. |
|
|
Time steps to use. |
|
|
|
|
|
What to do with a time step that cannot be opened. |
|
|
Read or rebuild the cached file. |
The result is cached in <datadir>/climatology/ under a name holding the
source, variable, grid, time type, statistic and range, so asking again is
instant. This replaces the 2.x cbiomes() functions of the GHRSST, AVHRR
and OC-CCI modules.
Static fields#
seagrid.geospatial works on any grid:
from seagrid import gebco, geospatial, grids
grid = grids.cbiomes_halfdeg()
geospatial.cell_area(grid, units="km2")
geospatial.area_weighted_mask(grid) # area-proportional random mask
land = geospatial.landmask(gebco.cbiomes()[0])
geospatial.distance_from_land(land) # great-circle distance, km