Re: NCEP stageIV grib data plot

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Thu Jan 14 2010 - 11:00:38 MST

You have set

res@tfDoNDCOverlay = True ; no map transformation

Unless you are plotting the whole region,
I suggest not using this resource. See

http://www.cgd.ucar.edu/~shea/NCEP-st4.ncl

You can do a Unix diff to see the suggested changes

%> diff ncep-st4.ncl NCEP-st4.ncl

On 01/14/2010 10:09 AM, Li, Yongzuo wrote:
> Dennis,
>
> I made an almost perfect plot
> ftp://ftp.caps.ou.edu/users/yli/precip-ncep-stageIV.pdf
> using
> ftp://ftp.caps.ou.edu/users/yli/ncep-st4.ncl
> with
> ftp://ftp.caps.ou.edu/users/yli/ST4.2008091307.01h.grib
>
> Questions:
>
> (1) Is my "ZOOM" method good?
>
> (2) The map tilts to right because the center longitude
> is -105
> res@mpProjection = "Stereographic"
> res@mpLimitMode = "Corners"
> res@mpCenterLonF = lat2d@Lov
> res@mpCenterLatF = 90.
>
> (3) What does lat2d@Lov, the reference longitude, come?
>
> Yongzuo
> ________________________________________
> From: Dennis Shea [shea@ucar.edu]
> Sent: Thursday, January 14, 2010 8:54 AM
> To: Li, Yongzuo
> Cc: ncl-talk@ucar.edu
> Subject: Re: NCEP stageIV grib data plot
>
> If you did a
>
> %> ncl_filedump ST4.2008091307.01h.grib
>
> you would see that when NCL reads the grib file it
> adds the long_name anf units attributes.
>
> prc = a->A_PCP_GDS5_SFC_acc1h
>
> delete(prc@long_name)
> delete(prc@units)
>
> Given your plot, maybe
>
> "NCEP stageIV 1-h precip valid 20080913_"+HH
> delete(prc@long_name)
> delete(prc@units)
> res@gsnCenterString = "1-h precip (mm)"
>
> see gsnCenterString resources at:
>
> http://www.ncl.ucar.edu/Document/Graphics/Resources/gsn.shtml
>
> ====
> If you want to add a label to the label bar, see
>
> http://www.ncl.ucar.edu/Applications/labelbar.shtml
> Example 4
>
>
>
> Good Luck
>
> Li, Yongzuo wrote:
> > Hi,
> >
> > I use
> >
> > ftp://ftp.caps.ou.edu/users/yli/ncep-st4.ncl
> >
> > to make
> >
> > ftp://ftp.caps.ou.edu/users/yli/precip-ncep-stageIV.pdf
> >
> > How can I remove "Total precipitation" and add description to color bar?
> >
> > I want to add subtitle.
> >
> > Thanks
> >
> > Yongzuo
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > ncl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
======================================================
Dennis J. Shea                  tel: 303-497-1361    |
P.O. Box 3000                   fax: 303-497-1333    |
Climate Analysis Section                             |
Climate&  Global Dynamics Div.                       |
National Center for Atmospheric Research             |
Boulder, CO  80307                                   |
USA                        email: shea 'at' ucar.edu |
======================================================

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jan 14 11:02:20 2010

This archive was generated by hypermail 2.1.8 : Fri Jan 15 2010 - 13:51:45 MST