[ncl-talk] Plotting nam winds on regional map

Mary Haley haley at ucar.edu
Mon Dec 21 15:33:39 MST 2015


Do they look correct when you plot them on their own without overlaying
them on a map?

In what way do they not look correct?  Did you try plotting straight
vectors instead of wind barbs?

You may need to peruse the vector resource page:

http://www.ncl.ucar.edu/Document/Graphics/Resources/vc.shtml

for other resources.  Also, look at "vcPositionMode":

http://www.ncl.ucar.edu/Document/Graphics/Resources/vc.shtml#vcPositionMode

--Mary



On Mon, Dec 21, 2015 at 12:17 PM, Andrew Kren - NOAA Affiliate <
andrew.kren at noaa.gov> wrote:

> I made the change to my script. I got the winds to plot, but they don't
> look right. See attached plot.
>
> On Mon, Dec 21, 2015 at 12:01 PM, Andrew Kren - NOAA Affiliate <
> andrew.kren at noaa.gov> wrote:
>
>> Thanks Mary! I will try these things you mention. Will let you know if I
>> still encounter problems. And to answer your question, no, I didn't get any
>> errors when the program ran.
>>
>> On Mon, Dec 21, 2015 at 11:56 AM, Mary Haley <haley at ucar.edu> wrote:
>>
>>> Hi Andrew,
>>>
>>> Setting "trGridType" to TriangularMesh will not work for vectors.  This
>>> is currently only available for contours.  We have it on our list to do
>>> this for vectors, but it could be awhile before we get to it. However, you
>>> shouldn't need this in your case. You have 2D lat/lon arrays, which you can
>>> generate vectors from without needing a triangular mesh.
>>>
>>> Are you getting any kind of error message when you execute this NCL
>>> script?
>>>
>>> To debug this, I suggest first removing this line, since it won't work
>>> anyway:
>>>
>>>        vres at trGridType="TriangularMesh"
>>> and then temporarily commenting these two lines so that the vector plot
>>> will actually get drawn when "gsn_csm_vector" is called, and you can make
>>> sure it looks okay:
>>>
>>> ;       vres at vfXArray = lon2d
>>> ;       vres at vfYArray = lat2d
>>>
>>>
>>> If you continue to have problems, then it would help if you could
>>> provide an updated script *and* the data file. You can use our ftp for the
>>> data file:
>>>
>>> http://www.ncl.ucar.edu/report_bug.shtml#HowToFTP
>>>
>>> --Mary
>>>
>>>
>>> On Sat, Dec 19, 2015 at 10:16 AM, Andrew Kren - NOAA Affiliate <
>>> andrew.kren at noaa.gov> wrote:
>>>
>>>> I have a script that I run in real-time to generate NAM forecast output
>>>> at various pressure levels and plot variables. Attached is my script. I
>>>> also attached a plot of the 500 mb heights/vorticity from the program.
>>>>
>>>> For some reason, I cannot get the u and v winds to plot, meaning the
>>>> wind barbs will not show up on the plot. I followed the convention for a 2
>>>> deg lat/lon grid, since NAM is on a lon2d/lat2d grid. I used gsnAddCyclic =
>>>> false, declared my vfXArray and vfYArray, and used TriangularMesh for my
>>>> grid, the same settings I used for plotting the vorticity, which showed up
>>>> fine. I am thus stumped why the winds won't show up. Any advice is most
>>>> appreciated. Sorry for the long ncl code.
>>>>
>>>> Thanks,
>>>>
>>>> --
>>>> Andrew Kren, PhD
>>>> Research Scientist I, Global Observing Systems Analysis (GOSA) Group
>>>> NOAA ESRL Global Systems Division (Rm 3C515)
>>>> 325 Broadway, Boulder, CO 80305
>>>> (303) 497-5418
>>>>
>>>> _______________________________________________
>>>> ncl-talk mailing list
>>>> ncl-talk at ucar.edu
>>>> List instructions, subscriber options, unsubscribe:
>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>>
>>>>
>>>
>>
>>
>> --
>> Andrew Kren, PhD
>> Research Scientist I, Global Observing Systems Analysis (GOSA) Group
>> NOAA ESRL Global Systems Division (Rm 3C515)
>> 325 Broadway, Boulder, CO 80305
>> (303) 497-5418
>>
>
>
>
> --
> Andrew Kren, PhD
> Research Scientist I, Global Observing Systems Analysis (GOSA) Group
> NOAA ESRL Global Systems Division (Rm 3C515)
> 325 Broadway, Boulder, CO 80305
> (303) 497-5418
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151221/de32fab3/attachment.html 


More information about the ncl-talk mailing list