CHM icon indicating copy to clipboard operation
CHM copied to clipboard

output netcdf file

Open NicWayand opened this issue 8 years ago • 3 comments

netcdf files will be easier to work with than individual tiffs, especially for multiple year/scenario simulations. Also should be more space efficient.

Should be able to use the same vtu2geo tool, add option to write out to netcdf (using xarray module).

Optional length of time for individual netcdf file: time step (not efficient), 1 day, 1 month, 1 year, etc...

NicWayand avatar Aug 22 '16 14:08 NicWayand

The RAM requirements are too large to hold every timestep in RAM. Can xarray incrementally update a netcdf file?

Chrismarsh avatar Aug 23 '16 17:08 Chrismarsh

Maybe, it has some smart memory functions (dask) that might work.

But I was thinking of making many small netcdf files (1 time step to 1 month depending on RAM). Then its simple to load them all in to python to plot (xr.open_mfdataset(all_filse)).

NicWayand avatar Aug 23 '16 17:08 NicWayand

Writing each timestep to a netcdf is possible -- the whole file does not need to be kept in ram like I originally thought.

This is the unstructured grid specification for netcdf files https://github.com/ugrid-conventions/ugrid-conventions

It's unclear if Paraview can handle loading this file convention though http://adsabs.harvard.edu/abs/2016EGUGA..18.6414B

Chrismarsh avatar Nov 28 '18 00:11 Chrismarsh