NOAA-ORR-ERD / gridded

A single API for accessing / working with gridded model results on multiple grid types
https://noaa-orr-erd.github.io/gridded/index.html
The Unlicense
64 stars 14 forks source link

Time dimension autodetection not aggressive enough? #27

Open jay-hennen opened 6 years ago

jay-hennen commented 6 years ago

When doing a Variable.from_netCDF, if the variable it finds does not have 'time' in the name it fails to find it and falls back to a constant time.

It should at least look up the dimension directly in the Dataset and try to see if it has a long name that contains 'time' before falling back to a default

ChrisBarker-NOAA commented 6 years ago

Indeed, something like this would be good. Do you have an example file that should work that doesn't currently?

AmyMacFadyen commented 6 years ago

The HYCOM model output does not load the time correctly.

    double MT(MT) ;
            MT:long_name = "time" ;
            MT:units = "days since 1900-12-31 00:00:00" ;
            MT:calendar = "standard" ;
            MT:axis = "T" ;
            MT:_CoordinateAxisType = "Time" ;