esm-tools / pymorize

A Python based Tool to CMORize NetCDF Data
https://pymorize.readthedocs.io
MIT License
2 stars 1 forks source link

convert fesom1 data from non-levelwise to levelwise #76

Open chrisdane opened 2 days ago

chrisdane commented 2 days ago

Hi

For some fesom1(+recom) 3D data it is necessary to convert data from being non-levelwise to levelwise, i.e. from

dimensions:
        time = ...
        nodes_3d = 3668773 ;

to

dimensions:
        time = ...
        ncells = 126859 ;
        vertices = 18 ;
        depth = 46 ;

This can be achieved with the function sl.grid.FESOM3Ddata1Dto2D from https://github.com/FESOM/spheRlab.git or with the function f2l from https://github.com/FESOM/pyfesom.git.

Thanks!

pgierz commented 2 days ago

See implementation in #77