Project

General

Profile

Issue with assigning coordinates for remapping

Added by Laura Sánchez Guarnizo almost 3 years ago

Hi,

I'm trying to remap a ncdf using the cdo -remapycon command but the next message error appears:

cdo remapcon (Abort): Unsupported target grid type (generic)!

After that I checked and someone else had a similar problem to mine and the solution was to allocate the coordinates (https://code.mpimet.mpg.de/boards/1/topics/55) but when I try to do the same using the NCO command the next message appears:

Warning (cdfInqContents): Coordinates variable lon can't be assigned!

And I can't do the remapping.

This is the information of my data:

File format : NetCDF4
-1 : Institut Source T Steptype Levels Num Points Num Dtype : Parameter name
1 : unknown unknown v instant 1 1 874 1 F32 : t2max
Grid coordinates :
1 : generic : points=874 (38x23)
lon : -9.375 to 60 by 1.875
lat : 75.54106 to 34.50724 by -1.865174
Vertical coordinates :
1 : surface : levels=1
Time coordinate : 6262 steps
RefTime = 0001-01-01 00:00:00 Units = hours Calendar = gregorian
YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss
1908-07-01 09:00:00 1908-07-02 09:00:00 1908-07-03 09:00:00 1908-07-04 09:00:00
1908-07-05 09:00:00 1908-07-06 09:00:00 1908-07-07 09:00:00 1908-07-08 09:00:00
1908-07-09 09:00:00 1908-07-10 09:00:00 1908-07-11 09:00:00 1908-07-12 09:00:00
1908-07-13 09:00:00 1908-07-14 09:00:00 1908-07-15 09:00:00 1908-07-16 09:00:00
1908-07-17 09:00:00 1908-07-18 09:00:00 1908-07-19 09:00:00 1908-07-20 09:00:00
1908-07-21 09:00:00 1908-07-22 09:00:00 1908-07-23 09:00:00 1908-07-24 09:00:00
1908-07-25 09:00:00 1908-07-26 09:00:00 1908-07-27 09:00:00 1908-07-28 09:00:00
1908-07-29 09:00:00 1908-07-30 09:00:00 1908-07-31 09:00:00 1908-08-01 09:00:00
1908-08-02 09:00:00 1908-08-03 09:00:00 1908-08-04 09:00:00 1908-08-05 09:00:00
1908-08-06 09:00:00 1908-08-07 09:00:00 1908-08-08 09:00:00 1908-08-09 09:00:00
1908-08-10 09:00:00 1908-08-11 09:00:00 1908-08-12 09:00:00 1908-08-13 09:00:00
1908-08-14 09:00:00 1908-08-15 09:00:00 1908-08-16 09:00:00 1908-08-17 09:00:00
1908-08-18 09:00:00 1908-08-19 09:00:00 1908-08-20 09:00:00 1908-08-21 09:00:00
1908-08-22 09:00:00 1908-08-23 09:00:00 1908-08-24 09:00:00 1908-08-25 09:00:00
1908-08-26 09:00:00 1908-08-27 09:00:00 1908-08-28 09:00:00 1908-08-29 09:00:00
................................................................................
................................................................................
.....................................................
2008-07-05 09:00:00 2008-07-06 09:00:00 2008-07-07 09:00:00 2008-07-08 09:00:00
2008-07-09 09:00:00 2008-07-10 09:00:00 2008-07-11 09:00:00 2008-07-12 09:00:00
2008-07-13 09:00:00 2008-07-14 09:00:00 2008-07-15 09:00:00 2008-07-16 09:00:00
2008-07-17 09:00:00 2008-07-18 09:00:00 2008-07-19 09:00:00 2008-07-20 09:00:00
2008-07-21 09:00:00 2008-07-22 09:00:00 2008-07-23 09:00:00 2008-07-24 09:00:00
2008-07-25 09:00:00 2008-07-26 09:00:00 2008-07-27 09:00:00 2008-07-28 09:00:00
2008-07-29 09:00:00 2008-07-30 09:00:00 2008-07-31 09:00:00 2008-08-01 09:00:00
2008-08-02 09:00:00 2008-08-03 09:00:00 2008-08-04 09:00:00 2008-08-05 09:00:00
2008-08-06 09:00:00 2008-08-07 09:00:00 2008-08-08 09:00:00 2008-08-09 09:00:00
2008-08-10 09:00:00 2008-08-11 09:00:00 2008-08-12 09:00:00 2008-08-13 09:00:00
2008-08-14 09:00:00 2008-08-15 09:00:00 2008-08-16 09:00:00 2008-08-17 09:00:00
2008-08-18 09:00:00 2008-08-19 09:00:00 2008-08-20 09:00:00 2008-08-21 09:00:00
2008-08-22 09:00:00 2008-08-23 09:00:00 2008-08-24 09:00:00 2008-08-25 09:00:00
2008-08-26 09:00:00 2008-08-27 09:00:00 2008-08-28 09:00:00 2008-08-29 09:00:00
2008-08-30 09:00:00 2008-08-31 09:00:00
cdo sinfon: Processed 1 variable over 6262 timesteps [0.08s 30MB].

And the command I'm using to allocate the coordinates is the next:

ncatted -a coordinates,t2max,c,c,"lon lat" hc_t2max_daily_Eurasia_M130_JA-Copy1.nc

I hope someone can help me :).

Thanks!


Replies (1)

RE: Issue with assigning coordinates for remapping - Added by Karin Meier-Fleischer almost 3 years ago

Hi Laura,

can you upload your data file (only one time step), and the cdo command you used?

-Karin

    (1-1/1)