[ncl-talk] NCL Error

Alan Brammer abrammer at albany.edu
Wed Apr 13 07:24:32 MDT 2016


Including more of the script will/would help.  

Sounds like bprime is an array, but there was no way for anyone to know that from your initial post. 

Therefore where <https://www.ncl.ucar.edu/Document/Functions/Built-in/where.shtml> is probably what you actually want.  
e.g.

bprime = where( bprime .lt. 0, 0, bprime)   ; see documentation for whats going on here. 



> Also, for some reason wrf_omega does not want to work.
No one can do anything with this statement.  Include an error message, an example of why it’s not working, some sample data. 




Alan





> On 12 Apr 2016, at 18:30, JP Kalb <jpkalb1990 at yahoo.com> wrote:
> 
> Also, for some reason wrf_omega does not want to work.
>  
> JP Kalb
> 
> 
> On Tuesday, April 12, 2016 3:21 PM, JP Kalb <jpkalb1990 at yahoo.com> wrote:
> 
> 
> I tried that change but I am getting a scalar issue since I want to look at vertical motion at different levels.
>  
> JP Kalb
> 
> 
> On Tuesday, April 12, 2016 11:23 AM, David Brown <dbrown at ucar.edu> wrote:
> 
> 
> A small correction to Karin's answer: there is a extra ending
> parenthesis. It should be
> 
> if (bprime .lt. 0) then
>   bprime = 0
> end if
> 
> -dave
> 
> 
> On Tue, Apr 12, 2016 at 2:11 AM, Karin Meier-Fleischer
> <meier-fleischer at dkrz.de <mailto:meier-fleischer at dkrz.de>> wrote:
> > Hi JP,
> >
> > the if-statement is wrong, use:
> >
> > if(bprime .lt. 0)) then
> >  bprime = 0
> > end if
> >
> > Bye,
> > Karin
> >
> > Am 12.04.16 um 06:40 schrieb JP Kalb:
> >
> > Today at 9:36 PM
> > Hi there,
> > I am new to NCL. I am getting a fatal error message in my code for the line
> > that goes.
> > If((bprime < 0))
> > bprime=0
> > endif
> > The error is in the first line but I cannot figure out how to solve it.
> > Also, I am having trouble with my code as I am using a NAM model nc but I
> > cannot find the actual temperature and humidity for individual pressure
> > levels.
> > Thanks,
> >
> >
> > JP Kalb
> >
> >
> > On Monday, April 11, 2016 9:36 PM, JP Kalb <jpkalb1990 at yahoo.com <mailto:jpkalb1990 at yahoo.com>> wrote:
> >
> >
> > Hi there,
> > I am new to NCL. I am getting a fatal error message in my code for the line
> > that goes.
> > If((bprime < 0))
> > bprime=0
> > endif
> > The error is in the first line but I cannot figure out how to solve it.
> > Thanks,
> >
> > JP Kalb
> >
> >
> >
> >
> > _______________________________________________
> > ncl-talk mailing list
> > ncl-talk at ucar.edu <mailto:ncl-talk at ucar.edu>
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>
> >
> >
> > --
> > Dipl. Geophys. Karin Meier-Fleischer
> > Visualization, NCL
> > Application Support
> >
> > Deutsches Klimarechenzentrum GmbH (DKRZ)
> > Bundesstrasse 45a - D20146 Hamburg - Germany
> >
> > Phone:    +49 (0)40 460094 126
> > Fax:      +49 (0)40 460094 270
> > E-Mail:  meier-fleischer at dkrz.de <mailto:meier-fleischer at dkrz.de>
> > URL:      www.dkrz.de
> >
> > Geschäftsführer: Prof. Dr. Thomas Ludwig
> > Sitz der Gesellschaft: Hamburg
> > Amtsgericht Hamburg HRB 39784
> 
> >
> >
> > _______________________________________________
> > ncl-talk mailing list
> > ncl-talk at ucar.edu <mailto:ncl-talk at ucar.edu>
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>
> >
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu <mailto:ncl-talk at ucar.edu>
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>
> 
> 
> 
> 
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160413/845782c6/attachment.html 


More information about the ncl-talk mailing list