Project

General

Profile

Using CDO to extract values from netcdf

Added by Chandrakant Singh over 5 years ago

Hi there,

I want to use 'cdo' to extract data from a precipitation NetCDF dataset using another NetCDF over South America.
I have tried multiple procedures, but I always get some error (such as grid size not same, Unsupported generic co-ordinates, etc).

I have pasted my datasets below.

Extract feature.nc (55.7 KB) Extract feature.nc Extract the data only for this region
precipitation_2000-2015_annual_SA.nc (2.85 MB) precipitation_2000-2015_annual_SA.nc Precipitation dataset

Replies (1)

RE: Using CDO to extract values from netcdf - Added by Karin Meier-Fleischer over 5 years ago

Hi Chandrakant,

the file precipitation_2000-2015_annual_SA.nc has no lon/lat units and so that cdo handle it as generic grid. You can add the units using

ncatted -O -a units,lon,c,c,"degrees_east" -a units,lat,c,c,"degrees_north" precipitation_2000-2015_annual_SA.nc

Bye
Karin

    (1-1/1)