-
Notifications
You must be signed in to change notification settings - Fork 1
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
CF Conventions for NetCDF saving, regarding units #5
Comments
Not sure this is really what you are asking but I love using Unitful.jl with every NetCDF file I use so that there is no unit confusion. So each time I deal with a new NetCDF file, I write a little dictionary mapping whatever strings are used in the My points being that (i) there will always be someone creating data with a different unit than you would like, but that's not a problem for Julia users if you make sure you use something like Unitful while reading the data. And (ii) that maybe when we (Julia users) create NetCDF files, we should set the |
Units seem particularly important for coordinate variables (e.g. My assumption would be that most software would be able to do these conversions on the fly when e.g. reading netcdf. Others in the org will have a deeper understanding of this than me though. |
I'd say that you should follow as much as possible the conventions. For precipitation, the convention definition is a Totally agree with @briochemc comment. That's a robust way to go ahead, if you can use Unitful. |
I wanted to add two things.
(I'm just throwing ideas here...) |
I think it's a good idea! |
Hey! Not sure if this was the right place to ask, but I just have a quick question regarding units when saving data for NetCDF.
For things like precipitation, I understand that the default CF convention is in m s-1, but sometimes it would make sense to save in terms of mm s-1 or even mm hr-1. Is it really of utmost necessity to follow the units listed on the CF Standard Names page in http://cfconventions.org/Data/cf-standard-names/70/build/cf-standard-name-table.html or are we allowed some degree of flexibility for units?
The text was updated successfully, but these errors were encountered: