# Climatologies {func}`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: ```python 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 | | |---|---|---| | `grid` | CBIOMES 0.5° | Target grid. | | `start`, `end` | the source's time range | Range of time steps. | | `timetype` | `"monthly"` if the source has it | Time steps to use. | | `stat` | `"median"` | `"median"` or `"mean"` across the years, NaN ignored. | | `errors` | `"warn"` | What to do with a time step that cannot be opened. | | `cache`, `force` | `True`, `False` | Read or rebuild the cached file. | The result is cached in `/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: ```python 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 ```