Stand With Ukraine

Thursday, August 15, 2013

Correcting netcdf file data and metadata using NCO

Sometimes we get data in netcdf files that do not really conform to the standards used by different tools that were developed for calculating standard properties of the data. Here an example is shown how the files of this type can be easily corrected using NCO and shell:



After having run the script the command `cdo infov fname` should give correct dates, minimum and maximum values (which previously was not the case): Here for comparison I've put the result of the same command on the initial version of the file: