error using cdfmoc - cannot read output file
annapedersen opened this issue · comments
Hello,
I've recently been introduced to cdftools and I'm having some issues working with the cdfmoc function.
Working with raw nemo output data and with the required files available I get the following error:
It creates an output file (moc.nc) but I can't view it with ncview or ncdump as it does not recognise the file format.
The error message is not very helpful. Can anyone help me?
Anna
Hello Anna,
It looks like your file does not have vertical extent (npk=0) but you need some as the velocity must be integrated from bottom to surface.
Can you try again with a 3D gridV file ?
Cheers,
Aurélie
Sorry I cannot see the screenshot, it looks like you answered from the mail, maybe try to put it directly on the github issue ?
Ok your file now have vertical levels but with a strange name that cdftool does not recognize, that is why it still says npk=0. You need to change olevel to depth with ncrename for instance before applying the cdftool
Thank you very much, this was very helpful!
Is there anywhere I can see what dimension names etc cdftool recognises, so I can check for myself that everything looks ok in the future?
Cheers,
Anna
Glad to have helped you !
You can find all the names in the file : https://github.com/meom-group/CDFTOOLS/blob/master/src/modcdfnames.F90
if you compile with the option CMIP6 it will then be https://github.com/meom-group/CDFTOOLS/blob/master/src/modcdfnames_CMIP6.h90