Skip to content

QC/CTD check conflictΒ #60

@jcermauwedu

Description

@jcermauwedu

Related to #58. We need to check datasets that have not had any QC checks (QARTOD) flags, but we still want the checker to check for anything else in the specs. However, if you disable the qc checks, the CTD checks still flag QC type attributes.

Example:

$ compliance-checker -t gliderdac:3.0 -s check_qc_variables /home/portal/glider/process/unit_507/20240512/gutils/rt/netcdf/unit_507_1715633718_20240513T205518Z_rt.nc
Running Compliance Checker on the datasets from: ['/home/portal/glider/process/unit_507/20240512/gutils/rt/netcdf/unit_507_1715633718_20240513T205518Z_rt.nc']


--------------------------------------------------------------------------------
                         IOOS Compliance Checker Report                         
                          Version 5.1.2.dev30+gf543e4f                          
                     Report generated 2024-05-23T11:29:23Z                      
                                 gliderdac:3.0                                  
   https://ioos.github.io/glider-dac/ngdac-netcdf-file-format-version-2.html    
--------------------------------------------------------------------------------
                               Corrective Actions                               
unit_507_1715633718_20240513T205518Z_rt.nc has 3 potential issues


                                    Required                                    
--------------------------------------------------------------------------------
CTD Variables
* Variable temperature must contain attribute: ancillary_variables
* Variable conductivity must contain attribute: ancillary_variables
* Variable salinity must contain attribute: ancillary_variables
* Variable density must contain attribute: ancillary_variables

Depth/Pressure variable attributes
* Variable pressure must contain attribute: ancillary_variables
* Variable depth must contain attribute: ancillary_variables

Lat and Lon attributes
* Variable lat must contain attribute: ancillary_variables
* Variable lon must contain attribute: ancillary_variables

That is why I introduced the -O gliderdac:no_ancillary_variables to the gliderdac plugin to skip checks for the ancillary_variables attribute.

When the QC check is disabled, the ctd_variables check pulls that attribute back in via hardcoded definitions (cc_plugin_glider/required_var_attrs.py).

    "lat": {
        "standard_name": "latitude",
        "units": "degrees_north",
        "_FillValue": None,
        "ancillary_variables": None,
        "comment": None,
        "coordinate_reference_frame": None,
        "long_name": None,
        "observation_type": None,
        "platform": None,
        "reference": None,
        "valid_max": None,
        "valid_min": None,
    },

So, we want the CTD check to continue, but not with the QC parts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions