How to make "a", "b", "c" mark in a ncl script? (Yan Bao)

From: Li, Yongzuo <yongzuo.li_at_nyahnyahspammersnyahnyah>
Date: Thu Jan 21 2010 - 14:31:57 MST

Yan Bao,

See

ftp://ftp.caps.ou.edu/users/yli/IKE/Vr-KHGX-number.ncl
ftp://ftp.caps.ou.edu/users/yli/IKE/Vr.KHGX.20080913_0600.number.pdf

Yongzuo

________________________________________
From: ncl-talk-bounces@ucar.edu [ncl-talk-bounces@ucar.edu] on behalf of ncl-talk-request@ucar.edu [ncl-talk-request@ucar.edu]
Sent: Thursday, January 21, 2010 1:53 PM
To: ncl-talk@ucar.edu
Subject: ncl-talk Digest, Vol 74, Issue 58

Send ncl-talk mailing list submissions to
        ncl-talk@ucar.edu

To subscribe or unsubscribe via the World Wide Web, visit
        http://mailman.ucar.edu/mailman/listinfo/ncl-talk
or, via email, send a message with subject or body 'help' to
        ncl-talk-request@ucar.edu

You can reach the person managing the list at
        ncl-talk-owner@ucar.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of ncl-talk digest..."

Today's Topics:

   1. wrong color vectors (Nicole Schiffer)
   2. Re: wrong color vectors (Adam Phillips)
   3. How to make "a","b","c" mark in a ncl script? (Yan Bao)
   4. Re: wrong color vectors (Nicole Schiffer)

----------------------------------------------------------------------

Message: 1
Date: Thu, 21 Jan 2010 13:06:30 -0600 (CST)
From: Nicole Schiffer <nschiff2@atmos.uiuc.edu>
Subject: wrong color vectors
To: ncl-talk <ncl-talk@ucar.edu>
Message-ID:
        <707251796.9446.1264100790406.JavaMail.root@mail.earth.uiuc.edu>
Content-Type: text/plain; charset="utf-8"

I'm attempting to make grey vectors using resbvect@vcLineArrowColor, but they are showing up as light red. I've checked that the resources are correctly matched to the variables in plotting. Any other ideas? The script is attached. Thanks.

Nicole

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Nicole Schiffer
* Graduate Research Assistant
* Department of Atmospheric Sciences
* University of Illinois, Urbana-Champaign
* Email: nschiff2 [at] illinois [dot] edu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20100121/053854c8/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: avganomplot_moistflx.ncl
Type: application/octet-stream
Size: 13639 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20100121/053854c8/attachment.obj

------------------------------

Message: 2
Date: Thu, 21 Jan 2010 12:29:01 -0700
From: Adam Phillips <asphilli@ucar.edu>
Subject: Re: wrong color vectors
To: ncl-talk@ucar.edu
Message-ID: <4B58AAFD.1090400@ucar.edu>
Content-Type: text/plain; charset=UTF-8; format=flowed

Hi Nicole,
You are setting resbvect@vcLineArrowColor = (/0.8,0.8,0.8/), which is
equivalent to the color gray80 (a light gray). Looking at your colormap
setup, gray80 is not present, although gray50 is:

   gsn_define_colormap(wsplot,"BlWhRe") ; sets your colormap to
BlWhRe
   gsn_reverse_colormap(wsplot)
   newc1 = NhlNewColor(wsplot,0.5,0.5,0.5) ; adds gray50 to the
colormap
   newc2 = NhlNewColor(wsplot,0,0,0) ; adds black to colormap
   newc3 = NhlNewColor(wsplot,0.5,0.5,0.5)

The newc2 and newc3 lines aren't necessary, as they add black (already
present in the BlWhRe colormap) and again add gray50.

When you request a color that isn't in your colormap, NCL will try to
choose the color that it thinks is closest to the one you want. In this
case when you requested gray80 it chose a light red.

Try setting this:
newc2 = NhlNewColor(wsplot,.8,.8,.8)

and I bet the vectors will get colored correctly..
Hope that helps..
Adam

On 01/21/2010 12:06 PM, Nicole Schiffer wrote:
> I'm attempting to make grey vectors using resbvect@vcLineArrowColor, but
> they are showing up as light red. I've checked that the resources are
> correctly matched to the variables in plotting. Any other ideas? The
> script is attached. Thanks.
>
> Nicole
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> * Nicole Schiffer
> * Graduate Research Assistant
> * Department of Atmospheric Sciences
> * University of Illinois, Urbana-Champaign
> * Email: nschiff2 [at] illinois [dot] edu
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

--
__________________________________________________
Adam Phillips
asphilli@ucar.edu
National Center for Atmospheric Research   tel: (303) 497-1726
Climate and Global Dynamics Division         fax: (303) 497-1333
P.O. Box 3000
Boulder, CO 80307-3000    http://www.cgd.ucar.edu/cas/asphilli
------------------------------
Message: 3
Date: Thu, 21 Jan 2010 11:52:05 -0800
From: Yan Bao <ybao2009@gmail.com>
Subject: How to make "a","b","c" mark in a ncl script?
To: ncl-talk@ucar.edu
Message-ID:
        <5fb716af1001211152j44d45a57sad5945812ac772dc@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi, NCL group,
     Does any one knows  how to make "a","b","c" ... marks on the individual
plot and locate the position automatically in a panel, I'd
better have a little example.
     Thanks,
     Yan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20100121/308f31ea/attachment.html
------------------------------
Message: 4
Date: Thu, 21 Jan 2010 13:53:23 -0600 (CST)
From: Nicole Schiffer <nschiff2@atmos.uiuc.edu>
Subject: Re: wrong color vectors
To: ncl-talk@ucar.edu
Message-ID:
        <1958235029.9535.1264103603552.JavaMail.root@mail.earth.uiuc.edu>
Content-Type: text/plain; charset="utf-8"
That worked :) Thanks, Adam.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Nicole Schiffer
* Graduate Research Assistant
* Department of Atmospheric Sciences
* University of Illinois, Urbana-Champaign
* Email: nschiff2 [at] illinois [dot] edu
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
----- "Adam Phillips" <asphilli@ucar.edu> wrote:
| Hi Nicole,
| You are setting resbvect@vcLineArrowColor = (/0.8,0.8,0.8/), which is
| equivalent to the color gray80 (a light gray). Looking at your colormap
| setup, gray80 is not present, although gray50 is:
|
| gsn_define_colormap(wsplot,"BlWhRe") ; sets your colormap to
| BlWhRe
| gsn_reverse_colormap(wsplot)
| newc1 = NhlNewColor(wsplot,0.5,0.5,0.5) ; adds gray50 to the
| colormap
| newc2 = NhlNewColor(wsplot,0,0,0) ; adds black to colormap
| newc3 = NhlNewColor(wsplot,0.5,0.5,0.5)
|
| The newc2 and newc3 lines aren't necessary, as they add black (already
| present in the BlWhRe colormap) and again add gray50.
|
| When you request a color that isn't in your colormap, NCL will try to
| choose the color that it thinks is closest to the one you want. In this
| case when you requested gray80 it chose a light red.
|
| Try setting this:
| newc2 = NhlNewColor(wsplot,.8,.8,.8)
|
| and I bet the vectors will get colored correctly..
| Hope that helps..
| Adam
|
|
| On 01/21/2010 12:06 PM, Nicole Schiffer wrote:
| > I'm attempting to make grey vectors using resbvect@vcLineArrowColor, but
| > they are showing up as light red. I've checked that the resources are
| > correctly matched to the variables in plotting. Any other ideas? The
| > script is attached. Thanks.
| >
| > Nicole
| >
| > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| > * Nicole Schiffer
| > * Graduate Research Assistant
| > * Department of Atmospheric Sciences
| > * University of Illinois, Urbana-Champaign
| > * Email: nschiff2 [at] illinois [dot] edu
| > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| >
| >
| >
| > _______________________________________________
| > ncl-talk mailing list
| > List instructions, subscriber options, unsubscribe:
| > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
|
| --
| __________________________________________________
| Adam Phillips
| asphilli@ucar.edu
| National Center for Atmospheric Research tel: (303) 497-1726
| Climate and Global Dynamics Division fax: (303) 497-1333
| P.O. Box 3000
| Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli
| _______________________________________________
| ncl-talk mailing list
| 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/20100121/7956024c/attachment.html
------------------------------
_______________________________________________
ncl-talk mailing list
ncl-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
End of ncl-talk Digest, Vol 74, Issue 58
****************************************
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jan 21 14:32:07 2010

This archive was generated by hypermail 2.1.8 : Mon Feb 01 2010 - 08:05:34 MST