Project

General

Profile

Remap .nc to a projected grid.

Added by Vinicius Moreira almost 3 years ago

Hi to all.

i'm trying to remap my latlon.nc according to a projected one, but using this:


cdo remapnn,projected.nc latlon.nc projected_outfile.nc

CDO are giving this error:

Warning (cdf_read_mapping_atts): Text attribute crs:grid_mapping_name missing!

cdo    remapnn (Abort): Projection type >Projectio< unsupported!

i think i can do this on R, but the process is too lazy there and i got a big set of data...


Replies (1)

RE: Remap .nc to a projected grid. - Added by Uwe Schulzweida almost 3 years ago

CDO uses the attribute proj_params to identify the proj parameters. The corresponding attribute in your file is proj4. You need to rename this attribute to apply the proj parameters automatically:

ncrename -a crs@proj4,proj_params projected.nc

    (1-1/1)