macos 10.8 ncl 6.1 malloc failure

From: Barry McInnes (NOAA Affiliate) <barry.j.mcinnes_at_nyahnyahspammersnyahnyah>
Date: Mon Dec 10 2012 - 09:22:27 MST

*mac11* 14:23 cat /Users/slubker/script.ncl
print(systemfunc("uname -n"))
per_day=4

    f=addfile("/Projects/CFSR/.pressure/rhum.198203.nc4","r")
    hourly=f->rhum
    dims=dimsizes(hourly)
    t=dims(0)/per_day
    z=dims(1)
    y=dims(2)
    x=dims(3)
    delete(f)

    f=addfile("/scratch/slubker/CFSR/pressure/rhum.198203.nc","w")
    f->rhum@actual_range=(/min(hourly),max(hourly)/)
    f->rhum@valid_range=f->rhum@actual_range
    f->rhum=(/hourly/)
    f@history="Last modified "+systemfunc("date")+" by NOAA/ESRL/PSD"
    delete(f)

print("rhum 1982 03")

*mac11* 14:23 ncl /Users/slubker/script.ncl
 Copyright (C) 1995-2012 - All Rights Reserved
 University Corporation for Atmospheric Research
 NCAR Command Language Version 6.1.0
 The use of this software is governed by a License Agreement.
 See http://www.ncl.ucar.edu/ for more details.
(0) mac11.psd.esrl.noaa.gov
        file: NclNewFile.c, line: 5619
        exists = 1
        file: NclNewFile.c, line: 5619
        exists = 1
fatal:["NclNewFile.c":4971]:Could not write attribute (history) to
attribute list
fatal:["Execute.c":7743]:Execute: Error occurred at or near line 18 in
file script.ncl

ncl(86386) malloc: *** error for object 0x7fa8248800d0: pointer being
freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Dec 11 02:31:36 2012

This archive was generated by hypermail 2.1.8 : Wed Dec 12 2012 - 19:07:01 MST