Skip to content

Check_grid_mappping to include ocean model grids #36

@ssirviente

Description

@ssirviente

We are currently validating datasets that include ocean variables produced with the NEMO ocean model using the tripolar ORCA12 grid. While running the quality checker, we noticed that the check_grid_mapping function currently restricts the accepted grid_mapping_name values to:

 # The allowed grid_mapping_name attribute values in CORDEX-CMIP6
    gmallowed = ["lambert_conformal_conic", "rotated_latitude_longitude"]

https://github.com/ESGF/cc-plugin-wcrp/blob/master/checks/attribute_checks/check_attrs_cordex_cmip6.py

From the current implementation, it appears that ocean grids can fail validation because check_grid_mapping only accepts lambert_conformal_conic and rotated_latitude_longitude, and also expects the presence of x/y or rlon/rlat coordinates. This works well for atmospheric regional climate model grids, but it prevents validation of ocean model outputs that use other types of grids (as tripolar), which are common in ocean modeling systems such as NEMO.

In our case:
• Model: NEMO
• Grid configuration: ORCA12
• Grid type: tripolar ocean grid
• Coordinates: curvilinear latitude and longitude (2D lat(y,x) and lon(y,x))

These grids are CF-compliant and widely used in ocean modeling, but they do not correspond to either lambert_conformal_conic or rotated_latitude_longitude.

So, would it be possible to extend the list of accepted grid types to support ocean grids? If so, whichgrid_mapping_nameand associated attributes would be expected for a tripolar grid?
Alternatively, should datasets with curvilinear latitude/longitude coordinates be treated as valid even when no projection-based grid_mapping is defined?
Or could we make the grid description not mandatory for ocean variables at this stage as this is not mandatory for CMIP7?

Thank you very much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions