cdo discards source global attribute
Added by Rostislav Kouznetsov about 12 years ago
Ubuntu 12.01, CDO version 1.5.6.1
Here is an example of the problem:
Making two files, one with "source" and another with "sourcce" global attribute set:
$ cdo setgatt,source,test ECMWF_ERA-40_subset-1.nc a.nc
cdo setgatt: Processed 178704 values from 17 variables over 1 timestep ( 0.05s )
$ cdo setgatt,sourcce,test ECMWF_ERA-40_subset-1.nc a1.nc
cdo setgatt: Processed 178704 values from 17 variables over 1 timestep ( 0.00s )
Running selvar on them:
$ cdo selvar,tp a.nc b.nc
cdo selname: Processed 10512 values from 17 variables over 1 timestep ( 0.01s )
$ cdo selvar,tp a1.nc b1.nc
cdo selname: Processed 10512 values from 17 variables over 1 timestep ( 0.00s )
"source" attribute does not exist in b.nc, but "sourcce" exists in b1.nc.
Is it a bug or a feature? How to make nco to keep the "source" attribute?
Thank you!
Best regards,
Rostislav
Replies (1)
RE: cdo discards source global attribute - Added by Uwe Schulzweida about 12 years ago
Hi Rostislav,
Thanks for the information! This bug will be fixed in the next CDO release.
Cheers,
Uwe