Project

General

Profile

cdo remapbil (Abort): Unsupported projection coordinates (Variable: precip)!

Added by Tanmoyee Bhattacharya over 5 years ago

I have a netcdf file out.nc
netcdf CDR_India_2019-01-15113832pm_1983 {
dimensions:
lon = 119 ;
lat = 173 ;
datetime = UNLIMITED ; // (365 currently)
variables:
float lon(lon) ;
float lat(lat) ;
float datetime(datetime) ;
datetime:units = "days since 1983-01-01" ;
datetime:calendar = "gregorian" ;
int crs ;
crs:long_name = "Lon/Lat Coords in WGS84" ;
crs:grid_mapping_name = "latitude_longitude" ;
crs:longitude_of_prime_meridian = 0. ;
crs:semi_major_axis = 6378137. ;
crs:inverse_flattening = 298.257223563 ;
float precip(datetime, lat, lon) ;
precip:grid_mapping = "crs" ;
precip:coordinates = "lon lat" ;

// global attributes:
:Conventions = "CF-1.6" ;
:history = "Sat Jun 1 05:58:06 2019: ncatted -a coordinates,precip,c,c,lon lat CDR_India_2019-01-15113832pm_1983.nc\nSat Jun 1 05:57:09 2019: ncatted -a coordinates,precip,c,c,lon lat CDR_India_2019-01-15113832pm_1983.nc" ;

I want to remap this netcdf file to 0.01 degree.My grid Defination file is

gridtype = lonlat
gridsize = 31626
xsize = 251
ysize = 126
yfirst = 31.375
yinc = 0.01
xfirst = 75.625
xinc = 0.01

But when I am using the command cdo remapbil,myGridDef out.nc out2.nc
The error coming cdo remapbil (Abort): Unsupported projection coordinates (Variable: precip)!
What problem happens in this file nhot getting.Can anyone help me?


Replies (4)

RE: cdo remapbil (Abort): Unsupported projection coordinates (Variable: precip)! - Added by Karin Meier-Fleischer over 5 years ago

Hi Tanmoyee,

without the data file I can only guess that the lon and lat units attribute have to be set to "degrees_east" respectively "degrees_north".

-Karin

RE: cdo remapbil (Abort): Unsupported projection coordinates (Variable: precip)! - Added by jyoti lodha about 5 years ago

Hi
I also got the same error:
cdo remapbil,remap.txt PERSIANN_2019-11-18044335am_2006.nc tt1.nc

cdo remapbil (Abort): Unsupported projection coordinates (Variable: precip)!

What is the issue?
I have attached the sample file of the data.

Wait for the reply.

RE: cdo remapbil (Abort): Unsupported projection coordinates (Variable: precip)! - Added by Karin Meier-Fleischer about 5 years ago

Hi Jyoti,

if you take a look at PERSIANN_2019-11-18044335am_2006.nc you can see that the coordinate variables lat and lon don't have the units attribute.

You can set it with NCO's ncatted:

ncatted -O -a units,lon,c,c,"degrees_east" -a units,lat,c,c,"degrees_north" PERSIANN_2019-11-18044335am_2006.nc

Then you can remap the file:

cdo remapbil,remap.txt PERSIANN_2019-11-18044335am_2006.nc tt1.nc

-Karin

    (1-4/4)