mesmer.io.load_cmipng.extract_time_lon_lat_wgt3d

mesmer.io.load_cmipng.extract_time_lon_lat_wgt3d(data)

Extract time, longitude, latitude, and 3d weights from file from ETHZ cmip-ng archive.

Parameters

data (xr.core.dataset.Dataset) – dataset to extract time, lon, lat, and wgt3d from

Returns

  • time (np.ndarray) – 1d array of years

  • lon (dict) – longitude dictionary with key - [“c”] (1d array with longitudes at center of grid cell)

  • lat (dict) – latitude dictionary with key

    • [“c”] (1d array with latitudes at center of grid cell)

  • wgt3d (np.ndarray) – 3d array (time, lat, lon) of area weight of each grid point