[ncl-talk] how to plot a reference arrow legend (such as 4m/s) by using wmvect and wmvlbl function?
Adam Phillips
asphilli at ucar.edu
Tue Dec 10 14:39:27 MST 2019
Hi Bingxue,
Without seeing the entire plotting section of your script it is hard to
decipher what is happening. Can you please send that along to ncl-talk?
With regards to searching the ncl-talk archives: The archives (and the
website) get searched by using the search window in the upper right corner
of (most) NCL website pages. See the red circle in the attached screenshot.
Adam
On Tue, Dec 10, 2019 at 2:26 AM 吴冰雪 <bxuewu at 163.com> wrote:
> Dear Adam and All,
> Thanks for Adam's reply,you're so sweet.I have thought about the three
> sugesstions from you,but I still have questions.
> Firstly,my code is loop drawing,so use other software is
> inappropriate.Then I spend few time to try to use gsn_csm_vector,but I
> still can't figure it out by my ability.And then,I thought Use
> gsn_polyline_ndc may be the good idea,but I just wonder how to plot arrow
> though using gsn_polyline_ndc?At last,I found a new way(as following
> code)to draw the legend,but still have a little wrong,the little wrong is
> that while I use the "do i=1,n-1",only the first pictute legend is ok,and
> the second pictute legend,the third pictute legend,etc the legend exists
> at a new offset.(as the following picture shown)
> do i=1,n-1
> len=ceil(avg(HKWIND(1,:)+QSWIND(i,:,1)))
> txx=0.9
> txy=0.91
> txres=True
> txres at txFontHeightF =0.015
> gsn_text_ndc(wks,len+"m/s",0.91,0.93,txres)
> wmsetp("vcw",3.0)
> wmsetp("vch",0.012)
> wmsetp("vrs",len)
> wmsetp("vrn",0.03)
> wmvect(wks,txx,txy,len,0) ;;;;;;;This is the new way;;;;;;;;;;;;
> xy_plot=gsn_csm_xy(wks,ispan(2,25,1),TT,xyres)
> wmvect(wks,x,TT(1,:),HKu,HKv)
> xy2_plot=gsn_csm_xy(wks,ispan(2,25,1),QSTT_HKTT,xy2res)
> end do
>
> Last but no least,whether
> http://www.ncl.ucar.edu/Support/posting_guidelines.shtml is where the
> search bar in?I did as the following picture but the answer is that The
> requested page could not be found.
>
> Thank you in advance!
> At 2019-12-05 08:04:21, "Adam Phillips" <asphilli at ucar.edu> wrote:
>
> Hi Bingxue,
> To search the ncl-talk archives you can simply enter your search term in
> the search bar on the NCL website.
>
> There is no way to create a reference vector similar to that created using
> the gsn*vector plotting routines when you are using the wmvect procedures.
> If you want the reference vector to look like it does for the gsn*vector
> routines, I believe you have three choices:
> 1 - Use gsn_polyline_ndc/gsn_text_ndc to draw the vector/label yourself.
> 2 - Use Illustrator or similar software to add the vector/label outside of
> NCL.
> 3 - Call gsn_csm_vector to draw a blank vector field and blank plot by
> setting the vector color to the background (white), turn off all the
> borders of the plot (tmXBBorderOn = False for example), turn off the
> tickmarks (tmXBOn = False), and draw the plot with the customized reference
> vector set using the resources you cited. This is the most tedious option,
> but it is possible.
>
> Hopefully that at least gets you going in the right direction. If you have
> any further questions please respond to ncl-talk.
> Adam
>
> On Wed, Nov 27, 2019 at 2:54 AM 吴冰雪 via ncl-talk <ncl-talk at ucar.edu>
> wrote:
>
>> Dear All,
>>
>> The example I have found in the NCL website(as following shown) by
>> using the wmvect and wmvlbl function,the reference arrow legend is
>> special(like 0.35E+2and the length of the reference arrow is constant by
>> using wmvlbl function ),which isn’t what I want,.
>> I just wonder if any way the reference arrow legend it could be the
>> same look like use res at vcRefMagnitudeF and res at vcRefLengthF.
>> (this is not what I want)(this is what I want)
>> NCL website : http://www.ncl.ucar.edu/Applications/weather_sym.shtml
>> weather_sym_8.ncl
>> <http://www.ncl.ucar.edu/Applications/Scripts/weather_sym_8.ncl>
>> weather_sym_9.ncl
>> <http://www.ncl.ucar.edu/Applications/Scripts/weather_sym_8.ncl>
>>
>>
>> Thank you !
>>
>> At last, if anybody can tell me how to search the mail list before.
>> Because before I ask this question ,I'd like to research the previous email
>> to check if anyone had meet the question and solve,but I failed, I don't
>> how to make a quick reaserch through all the previous emails.
>>
>> Bingxue Wu
>>
>> Graduate student
>>
>> Major in meteorology
>>
>> Nanjing University of Information, Science&Technology
>>
>> China -210044
>>
>>
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>
> --
> Adam Phillips
> Associate Scientist, Climate and Global Dynamics Laboratory, NCAR
> www.cgd.ucar.edu/staff/asphilli/ 303-497-1726
>
> <http://www.cgd.ucar.edu/staff/asphilli>
>
>
>
>
>
--
Adam Phillips
Associate Scientist, Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/ 303-497-1726
<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20191210/cf6784a7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 91711 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20191210/cf6784a7/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 12558 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20191210/cf6784a7/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 3227 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20191210/cf6784a7/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 1439 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20191210/cf6784a7/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: screenshot2.png
Type: image/png
Size: 141948 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20191210/cf6784a7/attachment-0004.png>
More information about the ncl-talk
mailing list