----- Forwarded message from Benjamin Lamptey <lamptey@rumen.essc.psu.edu> -----
Date: Thu, 10 Mar 2005 18:42:06 -0500
From: Benjamin Lamptey <lamptey@rumen.essc.psu.edu>
To: Matt Stumbaugh <Matt.Stumbaugh@noaa.gov>
Cc: Benjamin Lamptey <lamptey@essc.psu.edu>
Subject: Re: wind vector
In-Reply-To: <4230CB00.5030304@noaa.gov>
User-Agent: Mutt/1.4.2.1i
On Thu, Mar 10, 2005 at 02:32:32PM -0800, Matt Stumbaugh wrote:
> Benjamin,
>
> What kind of wind vector do you want to plot? Overlaid on a map, in a
> time series, or something else? I have some code that could help with
> the time series plot. Regardless, I think it would help others help you
> if you include your code and elaborate on the type of plot you want.
>
> Matt
> Matt,
For now, I want to plot seasonal winds (DJF and JJA). Later on I shall overlay them
on maps.
code snippet
;
;
mres@pmTickMarkDisplayMode = "Always"
mres@tfDoNDCOverlay = True
mres@gsnAddCyclic = False ; regional data
mres@gsnFrame = False ; don't advance frame yet
mres@gsnDraw = False ; don't draw yet
mres@lbLabelBarOn = False ; no individual label bar
mres@vcRefAnnoOrthogonalPosF = -1.0
mres@vcRefMagnitudeF = 10.0
mres@vcRefLengthF = 0.045
mres@vcGlyphStyle = "CurlyVector"
mres@vcMinDistanceF = 0.017
plot = new(4,graphic) ; create a plot array
mres@gsnLeftString = "DJF 1000mb U wind"
plot(0) = gsn_csm_vector_map_ce(wks,ua1_noag_DJF,va1_noag_DJF,mres)
mres@gsnLeftString = "JJA 1000mb U wind"
plot(1) = gsn_csm_vector_map_ce(wks,ua1_noag_JJA,va1_noag_JJA,mres)
:
:
:
Thanks
Ben
> Benjamin Lamptey wrote:
>
> >Hello,
> >I wish to plot the wind vector. My data is from a binary file. I wish to
> >make a panel plot.
> >
> >I am following the example at
> >"http://www.cgd.ucar.edu/csm/support/CSM_Graphics/Scripts/vector_3.ncl".
> >
> >I keep getting the following error
> >-----------
> >warning:gsnTickMarksOn is not a valid resource in map at this time
> >warning:Attempt to reference attribute (tickmarks) which is undefined
> >fatal:Execute: Error occurred at or near line 5350 in file
> >/opt/local/ncarg_4.3.0/lib/ncarg/nclscripts/csm/gsn_csm.ncl
> >
> >fatal:Execute: Error occurred at or near line 291
> >---------------
> >
> >The only resource I have in my script that has to do with tickmarks is
> >
> >mres@pmTickMarkDisplayMode = "Always" (I think)
> >
> >I should be grateful if someone could point out what I might be doing
> >wrong. That is, which resource is generating the erro message.
> >
> >Thanks
> >
> >
> >
> >
> >Benjamin L. Lamptey Phone: (814) 865-9911 (office)
> >Pennstate (EMS Environment Institute) (814) 237-8193 (home)
> >2217 Earth-Engineering Sciences Bldg Fax : (814) 865-3191
> >University Park, PA 16802 WWW:http://www.essc.psu.edu/~lamptey
> >
> >
> >
> >_______________________________________________
> >ncl-talk mailing list
> >ncl-talk@ucar.edu
> >http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> >
> >
>
--Benjamin L. Lamptey Phone: (814) 865-9911 (office) Pennstate (EMS Environment Institute) (814) 237-8193 (home) 2217 Earth-Engineering Sciences Bldg Fax : (814) 865-3191 University Park, PA 16802 WWW:http://www.essc.psu.edu/~lamptey
----- End forwarded message -----
--
Benjamin L. Lamptey Phone: (814) 865-9911 (office) Pennstate (EMS Environment Institute) (814) 237-8193 (home) 2217 Earth-Engineering Sciences Bldg Fax : (814) 865-3191 University Park, PA 16802 WWW:http://www.essc.psu.edu/~lamptey
_______________________________________________ ncl-talk mailing list ncl-talk@ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2b29 : Fri Mar 11 2005 - 08:46:32 MST