Project

General

Profile

failed to interpolate between timesteps

Added by Xiangfei LI almost 2 years ago

I'm trying to interpolate between timesteps (1:4:365 -> 1:1:365), but the values at the interpolated timesteps are NaNs. I got a warning message: inconsistent dimention definition for time dimid=0 type=4 newtype=3.


Replies (2)

RE: failed to interpolate between timesteps - Added by Xiangfei LI almost 2 years ago

Variables:
lon
Size: 1440x1
Dimensions: lon
Datatype: double
Attributes:
standard_name = 'longitude'
long_name = 'longitude'
units = 'degrees_east'
axis = 'X'
lat
Size: 720x1
Dimensions: lat
Datatype: double
Attributes:
standard_name = 'latitude'
long_name = 'latitude'
units = 'degrees_north'
axis = 'Y'
time
Size: 92x1
Dimensions: time
Datatype: double
Attributes:
axis = 'Z'
clear_daily_sif
Size: 1440x720x92
Dimensions: lon,lat,time
Datatype: single
Attributes:
_FillValue = -999.9
missing_value = -999.9

RE: failed to interpolate between timesteps - Added by Estanislao Gavilan almost 2 years ago

Hi Xiangfei,

what function are you using to interpolate between timesteps? Also, there are several things that you could look at. I am not sure if this is the problem, but your time attributes seem incomplete. I cannot see any reference to calendar nor units. Also
your variable does not have the coordinate attributes. You need to make sure that the ncfile follows the cf-convention. You can use as reference any output from the cmpi6 models, or look at this website. There are many examples.

Regards,

Estanislao

    (1-2/2)