How to fetch the data date wise from netCDF or .grd file in CDO software?

1.2k views Asked by At

I have data files of min/max temperature in .grd or netCDF format. From these files, I want to fetch the data date wise for India lat/long points only using CDO or grADS software. The data format is:

lat lon tmax
8 77 26.43
8 78 26.47

and I want in:

lat lon ind_lat_lon obs_date tmax
8 77 1 02-01-2021 26.43
8 78 1 02-01-2021 26.47

this format using CDO/grADS.

1

There are 1 answers

0
ClimateUnboxed On

I think the slicing functions you need in space is

 cdo sellonlatbox,lon1,lon2,lat1,lat2 in.nc out.nc 

to select a region around india,

and

 cdo seldate,yyyymmdd1,yymmdd2 in.nc out.nc 

to select the date range.