[ncl-talk] About pack plot resources in scripts

Guido Cioni guidocioni at gmail.com
Thu Nov 10 06:55:39 MST 2016


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 <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 <mailto:mail%3Amet.yamos at gmail.com>
> Email2: lutao at civil.chuo-u.ac.jp <mailto: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

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


More information about the ncl-talk mailing list