Project

General

Profile

mergetime problem

Added by Christie Vera about 2 years ago

Hi I am new at using cdo and I am trying to merge some wrfout files but I get this warning.

Warning (cdf_set_var): Inconsistent variable definition for lat!
Warning (cdf_set_var): Inconsistent variable definition for lon!
Warning (cdfInqContents): Coordinates variable time can't be assigned!

I used the next code

os.system('cdo mergetime ' + var_name + '_' + str(year) + '*.nc ' + name_file) # merge by time

when I look at the new file the variables does not have the lat lon and time dimesion as a coordinate.

Does anybody had the same problem?, greetings


Replies (2)

RE: mergetime problem - Added by ep gupal about 2 years ago

Could you post the output of ncdump -h filename.nc for few of the files that you are trying to merge?

I think it maybe caused by inconsistent definition of latitude and longitude. For example, one of the file could have the following latitude and longitude definition

float latitude(latitude)
float longitude(longitude)

and the other file could have...

float lat(lat)
float lon(lon)

In order to avoid the error messages you are getting, all the files should have the same definition of latitude and longitude (its even better if their attributes are also identical).

RE: mergetime problem - Added by Karin Meier-Fleischer about 2 years ago

Hi Christie, and Ep,

without the data it is not possible to help. Can you provide the file?

-Karin

    (1-2/2)