[ncl-talk] About pack plot resources in scripts

Tao Lu hakufu.asano at gmail.com
Thu Nov 10 17:20:43 MST 2016


Hey

Thank you for helping.

On Fri, Nov 11, 2016 at 12:24 AM, Dennis Shea <shea at ucar.edu> wrote:

>   .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
>>
>>
>


-- 
******************************************************
盧 涛 (ル タオ) 修士課程2年

〒112-8551 東京都文京区春日1-13-27

中央大学理工学研究科都市環境学専攻

河川・水文研究室(山田正教授)


TEL: 03-3817-3406;   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>
*******************************************************
******************************************************
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>
*****************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161111/b0c38258/attachment.html 


More information about the ncl-talk mailing list