[ncl-talk] About pack plot resources in scripts

Dennis Shea shea at ucar.edu
Thu Nov 10 08:24:02 MST 2016


  .TRUE.     ===>  is fortran

plotrange = True              ; False

if plotrange then
      res at mpMinLatF  = 20
      res at mpMaxLatF  = 60
      res at mpMinLonF  = 110
      res at mpMaxLonF  = 160
end if

---
NCL also allows ...


 if plotrange
    ...
 end if

and


 if (plotrange) then
     ...
 end if

On Thu, Nov 10, 2016 at 6:55 AM, Guido Cioni <guidocioni at gmail.com> wrote:

> Hey Tao,
> I don't think there is an explicit way to do that but I usually employ an
> if statement to do something similar.
> Say,
>
> plotrange = .TRUE.
>
> if plotrange then
>       res at mpMinLatF       = 20
>       res at mpMaxLatF       = 60
>       res at mpMinLonF       = 110
>       res at mpMaxLonF       = 160
> end if
>
> Guido Cioni
> http://guidocioni.altervista.org
>
> On 10 Nov 2016, at 09:43, Tao Lu <hakufu.asano at gmail.com> wrote:
>
> Hello ncl-talk
>
> I am wondering if there is a method to pack plot resources during plot.
> For example:
>       res at mpMinLatF                        = 20
>       res at mpMaxLatF                       = 60
>       res at mpMinLonF                       = 110
>       res at mpMaxLonF                      = 160
>
> I have this resources, it is better if I can pack the resources into one
> variable, e.g. plotrange.
> So that I can make plotrange=True or False to trigger this plot resources?
>
> Thank you.
>
> --
>
> ******************************************************
> Tao Lu    (M. Eng)
> Laboratory of River Engineering and Hydrology,
> Dept. of Civil and Environmental Engineering,
> Graduate School of Science and Engineering,
> Chuo University
>
> 1-13-27,Kasuga,Bunkyo-ku,Tokyo
> 112-8551, Japan
> TEL: 03-3817-1805;   Phone: 070-2188-7509
> Email1: hakufu.asano at gmail.com <mail%3Amet.yamos at gmail.com>
> Email2: lutao at civil.chuo-u.ac.jp <mail%3Ayamoto at civil.chuo-u.ac.jp>
> *****************************************************
> _______________________________________________
> 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/20161110/bdaa8fda/attachment.html 


More information about the ncl-talk mailing list