COSIMA / cosima-cookbook

Framework for indexing and querying ocean-sea ice model output.
https://cosima-recipes.readthedocs.io/en/latest/
Apache License 2.0
58 stars 25 forks source link

Querying for variables by frequency does not support no frequency #197

Open aidanheerdegen opened 4 years ago

aidanheerdegen commented 4 years ago

Currently the get_variables API call has an optional frequency argument to disambiguate variables.

It is not possible to filter for frequency==None. If this is specified no filtering is done as this is the default case.

This only affects data which has a time coordinate of non-zero length or a time coordinate without proper time units. A case in point is restart variables, which have a time coordinate defined like so:

    double Time(Time) ;
        Time:long_name = "Time" ;
        Time:units = "time level" ;
        Time:cartesian_axis = "T" ;