The following block of code is throwing a malloc error:
all_files = systemfunc("ls "+dobs+"/*.nc | grep -v 'aggr_'")
fall = addfiles(all_files,"r")
print("All obs files read")
ListSetType(fall,"cat")
print("Obs files concatenated")
if (typeof(fall[0]->$var$).eq."double") then
all_obs = dble2flt(fall[:]->$var$)
else
all_obs = fall[:]->$var$
end if
printVarSummary(all_obs)
mon_avg_obs = clmMonTLL(all_obs)
print("mon_avg_obs created")
delete(all_obs)
Output:
Copyright (C) 1995-2009 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 5.1.1
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.
(0) All obs files read
(0) Obs files concatenated
Variable: all_obs
Type: float
Total Size: 2094012000 bytes
523503000 values
Number of Dimensions: 3
Dimensions and sizes: [time | 600] x [lat | 621] x [lon | 1405]
Coordinates:
lat: [24.0625..49.9375]
lon: [-125.0208..-66.4792]
Number Of Attributes: 1
_FillValue : 1e+20
ncl(28773) malloc: *** mmap(size=2094014464) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
fatal:NclMalloc Failed:[errno=12]
Any idea why clmMonTLL would cause this kind of error? Shouldn't it be
allocating a smaller array than the one it's reading in? I seem to be coming
up against this type of error a lot lately.
-Bridget
-- Bridget Thrasher, PhD Postdoctoral Researcher Climate Central www.climatecentral.org
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Nov 2 12:47:09 2009
This archive was generated by hypermail 2.1.8 : Fri Nov 06 2009 - 09:15:29 MST