-
Notifications
You must be signed in to change notification settings - Fork 206
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
Better way of writing data to disk? #31
Comments
Decision was made: NetCDF first for now. |
There are two packages providing high-level interfaces for reading/writing NetCDF files. I went with NetCDF.jl as it seemed older and more mature maybe, but would be good to keep track of NCDatasets.jl as it seems to use data frames instead of just arrays. |
NetCDF.jl (so does NCDatasets.jl) has some heavy dependencies like Conda, CMake, and HDF5 which must be built. Don't think there's any way around this, NetCDF output is a must. |
NetCDF.jl seems to be missing some features and isn't really being maintained (See JuliaGeo/NetCDF.jl#62 about saving time values and JuliaGeo/NetCDF.jl#39). Maybe it's worth switching to NCDatasets.jl which takes a more data frames approach to NetCDF and is actively maintained and grew out of bugs that weren't being fixed in NetCDF.jl. Unfortunately we're choosing between two relatively young packages. An alternative would be to use the much more mature netcdf4-python but I'd rather not have to use PyCall... |
We may have to contribute to the development of whatever NetCDF package we choose to use. Let’s pick the project we’d most like to contribute to. The developer of NCDatasets is an oceanographer. That’s a plus. |
By “dataframes” approach, do you mean the dictionary-like interface? |
Yeah sorry I thought it used DataFrames.jl or something but yeah it just uses Dicts for the attributes. Might be good to see what CliMA.jl is thinking of using so we don't end up building towards two different solutions. |
Just adding your comment here as I think there are two new questions raised:
|
Closing this as I feel like we resolved it. The original issue was that we were writing binary output and now we're writing NetCDF output. I will open a new issue discussing our needs for better NetCDF output. |
Dry rising thermal bubble verification experiment
Right now
FieldWriter
writesfield.data
usingwrite(filepath, array)
so you lose the size of the array (and the field type) when writing. This is probably inevitable here.A better solution would be to write output as NetCDF.
The text was updated successfully, but these errors were encountered: