[ncl-talk] Plotting nam winds on regional map
Andrew Kren - NOAA Affiliate
andrew.kren at noaa.gov
Mon Dec 21 12:17:45 MST 2015
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/dfe1a306/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nam.t00z_250mb_syn_field_f00.png
Type: image/png
Size: 327830 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151221/dfe1a306/attachment-0001.png
More information about the ncl-talk
mailing list