aodn / compliance-checker

Python tool to check your datasets vs compliance standards. Forked to include AODN specific modifications.
Apache License 2.0
1 stars 0 forks source link

IMOS - check_dimension #105

Closed ggalibert closed 8 years ago

ggalibert commented 8 years ago

I am getting this result:

var                                    :3:   161/162 :  
    data_variable                      :3:    14/15 :  
        GDOP                           :3:     1/ 2 :  
            check_dimension            :3:     0/ 1 : data variable should have
                                                      at least one of the
                                                      dimensions TIME, LATITUDE,
                                                      LONGITUDE, DEPTH

for this kind of file (CODAR ACORN radar):

dimensions:
        TIME = UNLIMITED ; // (1 currently)
        I = 60 ;
        J = 59 ;
...
        double LATITUDE(I, J) ;
                LATITUDE:standard_name = "latitude" ;
                LATITUDE:long_name = "latitude" ;
                LATITUDE:units = "degrees_north" ;
                LATITUDE:axis = "Y" ;
                LATITUDE:valid_min = -90. ;
                LATITUDE:valid_max = 90. ;
                LATITUDE:reference_datum = "geographical coordinates, WGS84 datum" ;
        double LONGITUDE(I, J) ;
                LONGITUDE:standard_name = "longitude" ;
                LONGITUDE:long_name = "longitude" ;
                LONGITUDE:units = "degrees_east" ;
                LONGITUDE:axis = "X" ;
                LONGITUDE:valid_min = -180. ;
                LONGITUDE:valid_max = 180. ;
                LONGITUDE:reference_datum = "geographical coordinates, WGS84 datum" ;
        float GDOP(I, J) ;
                GDOP:_FillValue = 999999.f ;
                GDOP:long_name = "radar beam intersection angle" ;
                GDOP:units = "Degrees" ;
                GDOP:valid_min = 0.f ;
                GDOP:valid_max = 180.f ;
                GDOP:coordinates = "LATITUDE LONGITUDE" ;
                GDOP:comment = "This angle is used to assess the impact of Geometric Dilution of Precision. If angle >= 150 or <= 30, then QC flag will not be lower than 4 (see abstract)." ;
...

I'm wondering about the legitimacy of such a test.

mhidas commented 8 years ago

@ggalibert You're right, in that case it doesn't make sense. This is not actually from the IMOS conventions doc. I thought it was a reasonable check that can later be replaced by more featureType-specific dimension checks. Obviously I hadn't considered all sampling geometries. Probably easiest to just remove this check.

mhidas commented 8 years ago

The above linked file is irrelevent. Here is one that shows this issue.

mhidas commented 8 years ago

@ggalibert See #106

mhidas commented 8 years ago

Closed via #106