Can't use mergetime because the grid size of the parameters do not match
Added by Antonio Schiappa Pietra over 5 years ago
Hi!
Just started using CDO a day ago and I am trying to merge some files. These files are from a moored buoy so I do not have latitude nor longitude grids. However, it seems that the time variable is also a grid variable? At least it doesn't come up when I use "sinfon". Despite this, using a software like HDFView I can easily see that there is a TIME variable (see image attached).
Conclusion: When using mergetime, since every month doesn't always have the same number of timesteps, I get the "cdo mergetime (Abort): Grid size of the input parameters do not match!".
What can I do to get past this?
2011_02.nc (19.8 KB) 2011_02.nc | |||
2011_01.nc (72.8 KB) 2011_01.nc | |||
variables.PNG (12.3 KB) variables.PNG |
Replies (2)
RE: Can't use mergetime because the grid size of the parameters do not match - Added by Uwe Schulzweida over 5 years ago
The array POSITION_QC have a different size in both files. To merge files with mergetime all arrays need to have the same gridsize. A workaround is to remove the array POSITION_QC:
cdo mergetime -delname,POSITION_QC 2011_01.nc -delname,POSITION_QC 2011_02.nc result
RE: Can't use mergetime because the grid size of the parameters do not match - Added by Antonio Schiappa Pietra over 5 years ago
Thank you so much for your help!