Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve CF Conformance: 5.6 Grid Mappings and Projections #950

Open
5 of 10 tasks
jamesdoyle21 opened this issue Oct 3, 2022 · 0 comments
Open
5 of 10 tasks

Improve CF Conformance: 5.6 Grid Mappings and Projections #950

jamesdoyle21 opened this issue Oct 3, 2022 · 0 comments
Assignees

Comments

@jamesdoyle21
Copy link

jamesdoyle21 commented Oct 3, 2022

5.6 Grid Mappings and Projections
Requirements:

  • The type of the grid_mapping attribute is a string whose value is of the following form, in which brackets indicate optional text:

grid_mapping_name[: coord_var [coord_var ...]] [grid_mapping_name: [coord_var ... ]]

  • Note that in its simplest form the attribute comprises just a grid_mapping_name as a single word.

  • Each grid_mapping_name is the name of a variable (known as a grid mapping variable), which must exist in the file.

  • Each coord_var is the name of a coordinate variable or auxiliary coordinate variable, which must exist in the file. If it is an auxiliary coordinate variable, it must be listed in the coordinates attribute.

  • The grid mapping variables must have the grid_mapping_name attribute. The legal values for the grid_mapping_name attribute are contained in Appendix F.

  • The data types of the attributes of the grid mapping variable must be specified in Table 1 of Appendix F.

  • If present, the crs_wkt attribute must be a text string conforming to the CRS WKT specification described in reference [OGC_CTS].

  • reference_ellipsoid_name, prime_meridian_name, horizontal_datum_name and geographic_crs_name must be all defined if any one is defined.

  • If projected_crs_name is defined then geographic_crs_name must be also.

Recommendations:

  • The grid mapping variables should have 0 dimensions.
@leilabbb leilabbb self-assigned this Nov 11, 2022
leilabbb added a commit to leilabbb/compliance-checker that referenced this issue Nov 15, 2022
related to issue#950 [ioos#950]

updated the function get_grid_mapping_variables to parse the attribute variables when it contains more than one string.
leilabbb added a commit to leilabbb/compliance-checker that referenced this issue Nov 15, 2022
related to issue # 950 [ioos#950]

Mocked a new .nc file to test the grid_mapping requirements and recommendations
leilabbb added a commit to leilabbb/compliance-checker that referenced this issue Dec 9, 2022
in cf_1_7.py
- added "geographic_crs_name" to the function def _check_gmattr_existence_condition_ell_pmerid_hdatum(self, var):

- Modified function def check_grid_mapping(self, ds):

in cfutil.py
- modified the function def grid_mapping_variables(ds)

- added the function def get_grid_mapping_variables_coordinates(ds):

in test_cf.py
- modified the function def test_check_grid_mapping(self):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants