wmo-im / pywcmp

pywcmp provides validation and quality assessment capabilities for the WMO WIS Core Metadata Profile (WCMP)

Home Page:https://community.wmo.int/activity-areas/wis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tests for global data exchange

david-i-berry opened this issue · comments

Should test 9_2_1 or 9_3_1 be run if the data are not marked for global exchange?

pywcmp/pywcmp/ats.py

Lines 110 to 115 in 3025959

def run_tests(self):
"""Convenience function to run all tests"""
tests = ['6_1_1', '6_1_2', '6_2_1', '6_3_1', '8_1_1',
'8_2_1', '8_2_2', '8_2_3', '8_2_4', '9_1_1',
'9_2_1', '9_3_1', '9_3_2']

If the data are not marked for global exchange then the rules for the gmd:fileIdentifier are different / more relaxed. Page 50, section 8.1 of the manual on WIS (https://library.wmo.int/doc_num.php?explnum_id=11077), my emphasis.

The WMO Core Metadata Profile recommends the use of a URI structure for gmd:fileIdentifier
attributes. The URI should be structured as follows:
• Fixed string “urn:x-wmo:md:”;
Citation authority based on the Internet domain name of the data-provider organization,
e.g. “int.wmo.wis”, “gov.noaa”, “edu.ucar.ncar”, “cn.gov.cma” or “uk.gov.metoffice”;

• Double separator colons: “::”;
• Unique identifier:
– For metadata records describing GTS products in bulletins or named according to
the WMO file-naming convention P-flag = “T” or P-flag= “A”, the unique identifier is
“«TTAAii»«CCCC»”;
– For metadata records describing products named according to the WMO file-naming
convention P-flag = “W”, the unique identifier should be a truncated version of the
WMO product identifier field of the associated data-files, excluding the date-stamp
and any other varying elements as necessary;

@david-i-berry good point. Would this also be the case for req 9.3.2?

Reading the test it looks that way.