ggslc / bisicles-uob

Other
2 stars 4 forks source link

Standardising BISICLES output to netCDF #5

Open tmitcham opened 12 months ago

tmitcham commented 12 months ago

Projects in which BISICLES is involved need outputs in netCDF files on a user-friendly grid and with comprehensive metadata.

This can be done in a post-processing step, but we need a system or scripts that any user can apply easily to format output as required.

ggslc commented 12 months ago

This is partly implemented in AmrIceIO.cpp

The option amr.plot_style_cf = true (bool AmrIce::m_plot_style) results in a call to AmrIce::flushCFData whenever a plot file is written. An extra file *.CF.2d.hdf5 is created, which includes fields with CF names (e.g lithk for land ice thickness) on a uniform grid (just the coarsest level for now), and(usually) metadata such as the projection. The flatten tool can then turn this into netcdf

We need to:

  1. tidy up the code and make sure it works
  2. create a test / example
  3. document the various options
ggslc commented 12 months ago

Linked to issue #6

ggslc commented 11 months ago

ESMValTool

ggslc commented 11 months ago

https://github.com/ESMValGroup/ESMValTool