I successfully installed the new ncl_6.0.0_beta in 64 bit Linux machines. I
noted an error when we write the variable whose size is greater than 2GB
into a netcdf. The error is as follows.
ncendef: ncid 131072: NetCDF: One or more variable sizes violate format
constraints
ncvarput: ncid 131072: NetCDF: Operation not allowed in define mode
fatal:NetCdf: An error occurred while attempting to write variable (time) to
file (./dly.rfa.rmv3har.1978.08.nc)
warning:FileWriteVarVar: Could not write coordinate variable (time) to file
(dly.rfa.rmv3har.1978.08), continuing anyway
ncredef: ncid 131072: NetCDF: Operation not allowed in define mode
ncendef: ncid 131072: NetCDF: One or more variable sizes violate format
constraints
ncvarput: ncid 131072: NetCDF: Operation not allowed in define mode
fatal:NetCdf: An error occurred while attempting to write variable (lat) to
file (./dly.rfa.rmv3har.1978.08.nc)
warning:FileWriteVarVar: Could not write coordinate variable (lat) to file
(dly.rfa.rmv3har.1978.08), continuing anyway
ncredef: ncid 131072: NetCDF: Operation not allowed in define mode
ncendef: ncid 131072: NetCDF: One or more variable sizes violate format
constraints
ncvarput: ncid 131072: NetCDF: Operation not allowed in define mode
fatal:NetCdf: An error occurred while attempting to write variable (lon) to
file (./dly.rfa.rmv3har.1978.08.nc)
warning:FileWriteVarVar: Could not write coordinate variable (lon) to file
(dly.rfa.rmv3har.1978.08), continuing anyway
warning:Execute: Error occurred at or near line 41 in file rfa.filt.ncl
The script is given below.
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/diagnostics_cam.ncl"
begin
in2=addfile("cntrl_precip_1978_2008.nc","r")
rf=in2->RF
rf!0="time"
rf!1="lat"
rf!2="lon"
time=in2->TIME1
TIME = ut_calendar(time, 0)
year = floattointeger( TIME(:,0) )
month = floattointeger( TIME(:,1) )
day = floattointeger( TIME(:,2) )
ddd = day_of_year(year, month, day)
yyyyddd = year*1000 + ddd
rf_clim=clmDayTLL(rf,yyyyddd)
smth_rf_clim=smthClmDayTLL(rf_clim,3)
rf_anom=calcDayAnomTLL(rf,yyyyddd,smth_rf_clim)
diro ="./"
filo = "dly.rfa.rmv3har.1978.08.nc"
system("/bin/rm -f "+diro+filo) ; rm any pre-existing file
f = addfile(diro+filo, "c")
f->rfa_rmv3h =rf_anom
end
The printVarSummary(rf_anom) gives the following.
Variable: rf_anom
Type: float
Total Size: 2318745600 bytes
579686400 values
Number of Dimensions: 3
Dimensions and sizes: [time | 11322] x [lat | 160] x [lon | 320]
Coordinates:
time: [ 0..11322]
lat: [-89.14151942646112..89.14151942646112]
lon: [ 0..358.875]
Number Of Attributes: 2
_FillValue : -1e+34
long_name : Anomalies: PRECIP*86400
Note:There is no error we save the variable whose size less than 2GB.
-- ********************************** Sabeerali C T Senior Research Fellow Climate and Global Modeling Division Indian Institute of Tropical Meteorology Pashan, Pune, 411 008 Phone (Office): 02025904306 ****************************************
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Mar 3 07:17:34 2011
This archive was generated by hypermail 2.1.8 : Thu Mar 03 2011 - 10:00:25 MST