a problem with gridding and converting MPIOM streamfunction output to netcdf
Added by Christian Stepanek almost 12 years ago
Dear all,
I use the CDOs to grid and convert the file fort.75, which is part of standard MPIOM output - this is the command:
cdo -f nc setgrid,r1x180 -timmean fort.75 fort.75.nc
This always worked well until (including) CDO version 1.4.1. Since then, CDO stops this task with one of the following error messages (depending on the CDO version):
cdo(2) timmean (Abort): Complex fields are not supported by this operator!
Error (cdfDefDatatype) : CDI/netCDF library does not support complex numbers!
So far, I always preserved one binary of an older CDO version to be able to convert MPIOM streamfunction output - yet, this is a little impractical. Therefore, any help with respect to the following questions is greatly appreciated.
1.) Is my above described solution the one that programmers of CDO / MPIOM would suggest, or is there a better way of gridding and converting fort.75?
2.) Is this a bug or a feature?
3.) If it is a bug, will it be solved in one of the next releases?
Thank you very much for your comments,
Christian
Replies (2)
RE: a problem with gridding and converting MPIOM streamfunction output to netcdf - Added by Uwe Schulzweida almost 12 years ago
Dear Christian,
You will find the reason for this problem on:
https://code.zmaw.de/projects/cdo/wiki#EXTRA-formatted-files-with-mixed-precision
Your file fort.75 has a header section with a precision of 4 bytes and a data section with a precision of 8 bytes. This can't be processed with CDO anymore. If you have access to the Fortran program created this file, then you can simple change the definition of the header from INTEGER*4 to INTEGER*8.
Cheers,
Uwe
RE: a problem with gridding and converting MPIOM streamfunction output to netcdf - Added by Christian Stepanek almost 12 years ago
Dear Uwe,
thanks. This information helped a lot.
Christian