credit.ocean.samudra_constants#

Attributes#

Classes#

Functions#

construct_metadata(→ Dict[str, Dict[str, str]])

Module Contents#

credit.ocean.samudra_constants.DEPTH_LEVELS = [2.5, 10.0, 22.5, 40.0, 65.0, 105.0, 165.0, 250.0, 375.0, 550.0, 775.0, 1050.0, 1400.0, 1850.0,...#
credit.ocean.samudra_constants.DEPTH_I_LEVELS = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18']#
credit.ocean.samudra_constants.MASK_VARS = ['mask_0', 'mask_1', 'mask_2', 'mask_3', 'mask_4', 'mask_5', 'mask_6', 'mask_7', 'mask_8',...#
credit.ocean.samudra_constants.PROG_VARS_MAP#
credit.ocean.samudra_constants.BOUND_VARS_MAP#
credit.ocean.samudra_constants.default_metadata#
credit.ocean.samudra_constants.construct_metadata(data: xarray.Dataset) Dict[str, Dict[str, str]]#
class credit.ocean.samudra_constants.TensorMap#
_instance: TensorMap | None = None#
classmethod get_instance() TensorMap#
classmethod init_instance(prognostic_vars_key: str, boundary_vars_key: str) TensorMap#
_initialize(prognostic_vars_key: str, boundary_vars_key: str)#

Maps input variables / depth levels to their indices in the input tensor.

VAR_3D_IDX maps the input variables to their indices in the input tensor DP_3D_IDX maps the depth levels to their indices in the input tensor

_populate_var_3d_idx()#
_populate_dp_3d_idx()#