Project

General

Profile

Merging daily data into yearly files: problem with time axis?

Added by Sandro Calmanti about 11 years ago

I'm trying to merge QUIKSCAT daily data into yearly archives to then process with CDO.

I couldn't do the processing directly on the source daily files (see attached exemple 200101010000-200101020000.nc)
These files have no time axis and with CDO I always get missing data everywhere.

With ncks I've managed to add a time dimension and a time axis. I've created the attached tmpwss_all.nc which looks fine with ncview.

Afterwards, no matter what I try to do with CDO, I always get missing data. For example

For example:
prompt> cdo setyear,2001 tmpwss_all.nc tmpwss_all_2001.nc
cdo setyear (Warning): Time bounds unsupported by this operator, removed!
cdo setyear: Processed 6912000 values from 1 variable over 30 timesteps ( 0.46s )

Produces the attached tmpwss_all_2001.nc

I'm using CDO version 1.6.0rc1

Any workaround to this?

S.

200101010000-200101020000.nc (6.82 MB) 200101010000-200101020000.nc source QUIKSCAT dat
tmpwss_all.nc (13.2 MB) tmpwss_all.nc QUIKSCAT data merged using ncks
tmpwss_all_2001.nc (13.2 MB) tmpwss_all_2001.nc Result of "cdo setyear,2001"

Replies (3)

RE: Merging daily data into yearly files: problem with time axis? - Added by Uwe Schulzweida about 11 years ago

Hi Sandro,

Thanks for this report!
The valid_min/valid_max attribute in these files are the reason for this problem. CDO will ignore these attributes in the next release, because the data type of these attributes are inconsistent with those of the variables.
As a workround you can remove these attribute with the NCO operator ncatted:

ncatted -a valid_min,,d,c,"" -a valid_max,,d,c,"" file.nc

Cheers,
Uwe

RE: Merging daily data into yearly files: problem with time axis? - Added by Sandro Calmanti about 11 years ago

Many thanks Uwe, it works nicely now!

Cheers

Sandro

RE: Merging daily data into yearly files: problem with time axis? - Added by Theodoros Gkousarov almost 10 years ago

Ok found this post which will help me.

I have similar data but different variable, your files look exactly as my so I also want to add the time variable, something mentioned about ncks... what is that and how it works? cheers

    (1-3/3)