Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Truncating netCDF

I have a netCDF file of monthly surface air temperature from 1850-2005. How can I truncate the file in unix so that the new file has a time dimension from 1855 - 2005? And vice versa, truncating the file so that it is instead for 1850-2000?

like image 658
Ali Avatar asked Dec 14 '22 07:12

Ali


1 Answers

Using NCO

ncks -d time,60, in.nc  1855-2005.nc
ncks -d time,,-60 in.nc 1850-2000.nc

See documentation

like image 98
Charlie Zender Avatar answered Dec 28 '22 08:12

Charlie Zender