Project

General

Profile

remap error: Unsupported projection coordinates

Added by Ann Q 12 months ago

Hi,

I am trying to upscaling my ISIMIP daily data from 0.5degree to 5min with cdo command remapbil but I get errors like:

cdo remapbil,targetgrid tas_1990-2020.nc tas_1990-2020_5min.nc
cdo remapbil (Abort): Unsupported projection coordinates (Variable: tas)!

I check the grid information of my data with cdo griddes myfile.nc and it returns: #
  1. gridID 1 #
    gridtype = projection
    gridsize = 1364
    xsize = 22
    ysize = 62
    xname = longitude
    xlongname = "longitude"
    xunits = "degrees_east"
    yname = latitude
    ylongname = "latitude"
    yunits = "degrees_north"
    xfirst = 91.1869216709497
    xinc = 1.42863845234918
    yfirst = 35.8181496982746
    yinc = -0.18476292498772
    scanningMode = 64
    grid_mapping = crs
    proj4 = "+proj=longlat +datum=WGS84 +no_defs"

I also checked other questions facing similar problems but some of them seemed missing units or attributes. I wonder whether it would be any other information that my data missed.
Can you help me solve this problem? I attached my data and targetgrid file for your kind perusal.
Very appreciated for your help!

Best wishes,
Ann


Replies (2)

RE: remap error: Unsupported projection coordinates - Added by Karin Meier-Fleischer 12 months ago

Hi Ann,

the data is already on a lonlat grid and doesn't need grid_mapping and projection settings. You have to delete the grid_mapping attribute of variable tas, therefore you can use NCO's ncatted function:

ncatted -O -a grid_mapping,tas,d,, tas_1990-2020.nc tas_1990-2020_no_grid_mapping.nc

The target grid description in targetgrid file has also to be deleted.

targetgrid:

#
# gridID 1
#
gridtype  = lonlat
gridsize  = 52026
xsize     = 377
ysize     = 138
xname     = longitude
xlongname = "longitude" 
xunits    = "degrees_east" 
yname     = latitude
ylongname = "latitude" 
yunits    = "degrees_north" 
xfirst    = 90.5416666666671
xinc      = 0.0833333333342175
yfirst    = 35.8750000003333
yinc      = -0.0833333333333333

Then you can remap the data as usual:

cdo -remapbil,targetgrid tas_1990-2020_no_grid_mapping.nc tas_1990-2020_remap.nc

RE: remap error: Unsupported projection coordinates - Added by Ann Q 12 months ago

Thank you so much Karin! I managed this time!

    (1-2/2)