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

Files with pressure coordinate (no depth) fail IMOS checker #652

Open
mhidas opened this issue Feb 14, 2017 · 1 comment
Open

Files with pressure coordinate (no depth) fail IMOS checker #652

mhidas opened this issue Feb 14, 2017 · 1 comment
Assignees

Comments

@mhidas
Copy link
Contributor

mhidas commented Feb 14, 2017

Originally reported by @lbesnard as aodn/compliance-checker#102

Not having a DEPTH dimension, and using a PRES one instead triggers a series of issues with the IMOS checker, while the file is CF compliant.

globalattr                             :3:    57/59 :  
    geospatial_vertical_max            :3:     0/ 1 :  
        type                           :3:     0/ 1 : Attribute
                                                      geospatial_vertical_max
                                                      should have numeric type
    geospatial_vertical_min            :3:     0/ 1 :  
        type                           :3:     0/ 1 : Attribute
                                                      geospatial_vertical_min
                                                      should have numeric type
var                                    :3:    88/96 :  
    PRES                               :3:    13/17 :  
        positive                       :3:     0/ 1 :  
            vertical                   :3:     0/ 1 : Vertical coordinate
                                                      variable (axis='Z') should
                                                      have attribute positive =
                                                      'up' or 'down'
        reference_datum                :3:     0/ 1 :  
            type                       :3:     0/ 1 : Variable attribute
                                                      PRES:reference_datum not
                                                      present
        standard_name                  :3:     1/ 2 :  
            vertical                   :3:     0/ 1 : Vertical coordinate
                                                      variable (axis='Z') should
                                                      have attribute
                                                      standard_name = 'depth' or
                                                      'height'
        units                          :3:     1/ 2 :  
            vertical                   :3:     0/ 1 : Variable PRES appears to
                                                      be a vertical coordinate,
                                                      should have units of
                                                      distance
    coordinate_variable                :3:     1/ 2 :  
        space_time_coordinate_present  :3:     0/ 1 : No space-time coordinate
                                                      variable found
    data_variable                      :3:     3/ 5 :  
        PSAL                           :3:     1/ 2 :  
            check_dimension            :3:     0/ 1 : data variable should have
                                                      at least one of the
                                                      dimensions TIME, LATITUDE,
                                                      LONGITUDE, DEPTH
        TEMP                           :3:     1/ 2 :  
            check_dimension            :3:     0/ 1 : data variable should have
                                                      at least one of the
                                                      dimensions TIME, LATITUDE,
                                                      LONGITUDE, DEPTH
    geospatial_vertical_units          :3:     0/ 1 :  
        check_attributes               :3:     0/ 1 : units is not a valid CF
                                                      depth unit

Example file :
IMOS_AATAMS-SATTAG_TSP_20130302T012000Z_Q9900562_FV00.nc.zip

@mhidas
Copy link
Contributor Author

mhidas commented Feb 14, 2017

mhidas commented on 31 Mar 2016

According to v1.3 of the IMOS conventions, pressure is supposed to be converted into depth in metres to provide a vertical coordinate, but this is not stated in the new version (1.4). However both versions do say you can't label a pressure as "depth" or "height". Either way this needs some work.

mhidas commented on 27 Jun 2016

@lbesnard Have you made any changes to this kind of file? There may be a few things we can improve in the checker, but I think the file is technically not IMOS-1.3 compliant. We may need to have a chat with @ggalibert and @smancini to decide what we want to insist on.

lbesnard commented on 27 Jun 2016

No I haven't. happy to have a chat

mhidas commented on 3 Aug 2016

Just a note, the message about geospatial_vertical_min/max being numeric type is a separate issue. (The offending file has these attributes as integers, and the checker is currently expecting a float.)

mhidas commented on 4 Aug 2016

After further discussions we've decided to leave these checks unchanged in the checker, and instead look into the possibility of adding a DEPTH variable to these files.

mhidas added a commit to aodn/data-services that referenced this issue on 4 Aug 2016

WIP: add unittest for pressure vertical coordinate (4607558)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants