[ncl-talk] NCL Error
Mary Haley
haley at ucar.edu
Thu Apr 14 12:49:54 MDT 2016
These two functions were added in NCL V6.2.0. If you are running an older
version of NCL, then you need to upgrade.
http://www.ncl.ucar.edu/Document/Functions/Built-in/wrf_omega.shtml
http://www.ncl.ucar.edu/Document/Functions/Contributed/omega_to_w.shtml
You can verify your NCL version with:
ncl -V
--Mary
On Wed, Apr 13, 2016 at 12:03 PM, JP Kalb <jpkalb1990 at yahoo.com> wrote:
> The error I am getting for the wrf_omega and w_to_omega is that both are
> undefined. Also, when I try to multiply my w by rho. I am getting an error
> saying "Fatal: mul: Dimension size, for dimension number 0, of operands
> does not match"
>
> JP Kalb
>
>
> On Wednesday, April 13, 2016 6:24 AM, Alan Brammer <abrammer at albany.edu>
> wrote:
>
>
> 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> 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> 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
> > List instructions, subscriber options, unsubscribe:
> > 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
> > 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
> > List instructions, subscriber options, unsubscribe:
> > 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
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> 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/20160414/4b64dc40/attachment.html
More information about the ncl-talk
mailing list