Project

General

Profile

cdo sub (Abort): Fields have different gridsize (farsub) error

Added by Katherine Pingree-Shippee about 8 years ago

Hi,

I am working with sub-daily (6-hrly) MSLP data from ERA-Interim. I’ve calculated the mean MSLP for each year using ‘yearmean’ - e.g., cdo yearmean subdaily_MSLP_1979.nc mean_MSLP_1979.nc - and I am now trying to subtract the mean from the individual time steps. I’ve trying using ‘sub’ - e.g., cdo sub subdaily_MSLP_1979.nc mean_MSLP_1979.nc removed_mean_1979.nc - and am getting the following error:

cdo sub: Filling up stream2 >mean_MSLP_1979.nc< by copying the first timestep.

cdo sub (Abort): Fields have different gridsize (farsub)

I can’t figure out why the error is arising as both files (subdaily_MSLP_1979.nc and mean_MSLP_1979.nc) have the same lat, long, and gridsize. The only difference between the files (with the exception of the actual MSLP data values) should be the number of timesteps. The subdaily_MSLP_1979.nc file has a start data time stamp of 1979-01-01 00:00:00 while mean_MSLP_1979.nc has a start date time stamp of 1979-07-02 09:00:00. I’ve tried setting the data and time (using ‘setdate’ and ‘settime’, respectively) to 1979-01-01 00:00:00 for the mean_MSLP_1979.nc data but am still getting the different gridsize error. Help addressing this issue would be much appreciated!

Thanks!


Replies (5)

RE: cdo sub (Abort): Fields have different gridsize (farsub) error - Added by yudha djamil about 7 years ago

Hi,

I have similar problem with sst_HadOIBl_bc_1.9x2.5_1850_2012_c130411.nc mean_sst.nc.

I just simply try to calculate the anomaly of above file by using :
cdo sub infile1 -timmean infile1 anom_file
Which giving similar error as mentioned above.

I found that the ordering of the variables are changing after executing 'timmean'.

Wondering if anyone can explain this issue ? Thanks in advance.

RE: cdo sub (Abort): Fields have different gridsize (farsub) error - Added by Ralf Mueller about 7 years ago

hi!

  1. Please upload the input file if possible
  2. IMO you should never rely on the internal ordering of variables. The only identifier of a variable is its name.

cheers
ralf

RE: cdo sub (Abort): Fields have different gridsize (farsub) error - Added by yudha djamil about 7 years ago

Hi,

Thanks for the respond. Here is the input file :

https://www.dropbox.com/s/gguejw3rt7iamzg/sst_HadOIBl_bc_1.9x2.5_1850_2012_c130411.nc?dl=0

About the internal ordering, I also thought so, but so far that's the only different between the two files I can recognized.

I've also tried it with sst_HadOIBl_bc_1x1_1850_2012_c130411.nc which has higher resolution and it had similar problem.

Regards,
Yudha

RE: cdo sub (Abort): Fields have different gridsize (farsub) error - Added by Uwe Schulzweida about 7 years ago

Hi Yudha,

Thanks for the data file. This bug will be fixed in the next CDO release!

Cheers,
Uwe

RE: cdo sub (Abort): Fields have different gridsize (farsub) error - Added by yudha djamil about 7 years ago

Hi,

Thank you for the respond. I'm using cdo ver 1.7.0.
Perhaps I need the latest version.

Cheers,
Yudha

    (1-5/5)