Hello,
Are there anyone like to provide an example of how to manipulate/save nc file using nctoolbox?
I like to manipulate make "wetd" half (i.e., multiply 0.5) for all longitude and latitude, and then save as a new file called
wetd_new.mon.nc.
Here is my file look like:
chang@mac1 : ~/Documents
$ ncdump -h
wetd.mon.nc
netcdf wetd.mon {
dimensions:
longitude = 570 ;
latitude = 480 ;
level = 1 ;
lengthd = 10 ;
time = UNLIMITED ; // (12 currently)
variables:
short longitude(longitude) ;
longitude:units = "degrees_east" ;
short latitude(latitude) ;
latitude:units = "degrees_north" ;
short level(level) ;
level:units = "level" ;
int time(time) ;
time:units = "days since 1960-12-31" ;
short time_weights(time) ;
time_weights:units = "days" ;
char date(time, lengthd) ;
float wetd(time, level, latitude, longitude) ;
wetd:units = "days" ;
wetd:add_offset = 0. ;
wetd:scale_factor = 1. ;
wetd:valid_min = 0.f ;
wetd:valid_max = 26.483f ;
wetd:missing_value = -9999.f ;
// global attributes:
:title = "Wet Days (10 km resolution Lambert Conformal projection)." ;
:history = "Days > 0.1mm rain, per month.\n",
"This file created Fri Dec 22 15:12:03 2006" ;
}
chang@mac1 : ~/Documents
Thanks for your help.
Michael