seagrid.sources.pp.cafe#

CAFE net primary production (Oregon State University).

Functions

read_hdf4(path)

Read an Ocean Productivity HDF4 file, applying scale, offset and fill.

Classes

CAFE([variant])

CAFE net primary production from MODIS-Aqua R2022, monthly, 1/6°.

class seagrid.sources.pp.cafe.CAFE(variant=None, **overrides)[source]#

Bases: HTTPSource

CAFE net primary production from MODIS-Aqua R2022, monthly, 1/6°.

The server has gzipped HDF4 files named by the year and day of year of the first day of the month; they are converted to netCDF on download (lat ascending, lat/lon from the NASA 18 km grid).

Settings section [cafe]. Silsbe et al. (2016), doi:10.1002/2016GB005521.

Examples

>>> import seagrid
>>> seagrid.get_source("cafe").filename("2020-02-15")
'cafe.2020032.nc'
Parameters:
  • variant (str | None)

  • overrides (Any)

seagrid.sources.pp.cafe.read_hdf4(path)[source]#

Read an Ocean Productivity HDF4 file, applying scale, offset and fill.

Parameters:

path (pathlib.Path)

Returns:

xarray.Dataset – Variables on y/x in file order (north up).

Return type:

Dataset