Fwd: Re: System Command Not Executing

From: Michael Notaro <mnotaro_at_nyahnyahspammersnyahnyah>
Date: Tue Sep 04 2012 - 08:36:08 MDT

attached mail follows:


Mary,

Yes, that script works fine. Also, the one below in which I comment
out some of the array lines. It is only when I use a lot of memory
that the system lines are ignored.

Sahale is linux.

Kevin, how much memory does it have?

Thanks,
Michael

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/shea_util.ncl"
begin

nyr=20

maxt=new((/365*nyr+5,302,121/),short)
mint=new((/365*nyr+5,302,121/),short)
pcp=new((/365*nyr+5,302,121/),short)

system("date")

snowd=new((/365*nyr+5,302,121/),float) ; cm
;swe=new((/365*nyr+5,302,121/),float) ; mm
;cover=new((/365*nyr+5,302,121/),float) ; fraction
;snowfall=new((/365*nyr+5,302,121/),float) ; mm

system("date")

end

On 09/04/12, Mary Haley wrote:
> Hi Michael,
>
> Out of curiosity, do the date commands show up if you free some of the arrays?
>
> That is, if you add a delete command:
>
> maxt=new((/365*nyr+5,302,121/),float)
> mint=new((/365*nyr+5,302,121/),float)
> pcp=new((/365*nyr+5,302,121/),float)
>
> system("date")
>
> delete(maxt) ; or, if you have V6.0.0, delete([/maxt,mint,pcp/])
> delete(mint)
> delete(pcp)
>
> snowd=new((/365*nyr+5,302,121/),float)
> swe=new((/365*nyr+5,302,121/),float)
>
> system("date")
>
>
> ---
>
> What kind of system is this on and how much memory do you have?
>
> --Mary
>
> On Sep 3, 2012, at 10:56 PM, Michael Notaro wrote:
>
> > Thanks. Likely the results depend on the memory of the computer you are using.
> > On mine, it doesn't work.
> >
> > My script is able to create these large arrays just fine but never executes the system
> > commands.
> >
> >
> >
> >
> > On 09/03/12, donna Cote <d-cote@tamu.edu> wrote:
> >> Michael, I do not see the same results you seems to be getting. Hope you
> >>
> >> [dcote ~]$ ncl michael-test.ncl
> >> Copyright (C) 1995-2011 - All Rights Reserved
> >> University Corporation for Atmospheric Research
> >> NCAR Command Language Version 6.0.0
> >> The use of this software is governed by a License Agreement.
> >> See http://www.ncl.ucar.edu/ for more details.
> >> Mon Sep 3 21:03:46 CDT 2012
> >> Mon Sep 3 21:04:50 CDT 2012
> >> [dcote ~]$
> >>
> >> This is what I see after adding these two lines:
> >> print("showing system date before creating snowd and swe arrays")
> >> and
> >> print("showing system date after creating snowd and swe arrays")
> >>
> >> [dcote ~]$ ncl michael-test.ncl
> >> Copyright (C) 1995-2011 - All Rights Reserved
> >> University Corporation for Atmospheric Research
> >> NCAR Command Language Version 6.0.0
> >> The use of this software is governed by a License Agreement.
> >> See http://www.ncl.ucar.edu/ for more details.
> >> (0) showing system date before creating snowd and swe arrays
> >> Mon Sep 3 21:08:30 CDT 2012
> >> (0) showing system date after creating snowd and swe arrays
> >> Mon Sep 3 21:08:43 CDT 2012
> >> [dcote ~]$
> >>
> >> On 9/3/12 4:20 PM, ncl-talk-request@ucar.edu wrote:
> >> > Date: Mon, 03 Sep 2012 14:27:47 -0500
> >> > From: Michael Notaro<mnotaro@wisc.edu>
> >> > Subject: System Command Not Executing
> >> > To:"ncl-talk@ucar.edu USERS" <ncl-talk@ucar.edu>
> >> > Message-ID:<3795B7DD-89F8-49D1-A935-595C5FABDFA6@wisc.edu>
> >> > Content-Type: text/plain; CHARSET=US-ASCII
> >> >
> >> > When I run the script below, the system command, "date",
> >> > is only executed the first time and not the 2nd time.
> >> >
> >> > It seems when I create large arrays, NCL skips over any
> >> > system commands. Any suggestions how to resolve this issue?
> >> >
> >> > Michael
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > 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/shea_util.ncl"
> >> > begin
> >> >
> >> > nyr=20
> >> >
> >> > maxt=new((/365*nyr+5,302,121/),float)
> >> > mint=new((/365*nyr+5,302,121/),float)
> >> > pcp=new((/365*nyr+5,302,121/),float)
> >> >
> >> > system("date")
> >> >
> >> > snowd=new((/365*nyr+5,302,121/),float)
> >> > swe=new((/365*nyr+5,302,121/),float)
> >> >
> >> > system("date")
> >> >
> >> > end
> >> >
> >> _______________________________________________
> >> ncl-talk mailing list
> >> List instructions, subscriber options, unsubscribe:
> >> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> > _______________________________________________
> > ncl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Sep 4 08:36:27 2012

This archive was generated by hypermail 2.1.8 : Mon Jan 14 2013 - 14:31:38 MST