<div dir="ltr">HI Ivica,<div>Please remember to always respond to the ncl-talk email list on all correspondence; that way others can assist if necessary.</div><div><br></div><div>You asked whether when using the method I outlayed in my original response, if you could alter the location of the grid points used for the individual vectors. The answer is yes. The core issue here is that one cannot just draw an individual vector using a hypothetical function named gsn_add_vector similar to how you can add a polyline using gsn_add_polyline. I wish this capability did exist.</div><div><br></div><div>In my original reply I stated you could draw the original vector field, set the original vectors arrays to missing and then set values for one grid point and then draw the array again. One could follow the same procedure, but instead of setting the original arrays to missing, create an entirely new latitude x longitude array with coordinates set where your observational values should be, and overlay this new array. </div><div><br></div><div>; untested...</div><div><div>res = True</div><div>res@gsnDraw = False</div><div>res@gsnFrame = False</div><div>...</div><div>res@vcRefLengthF = 0.05</div><div>res@vcRefMagnitudeF = 0.5</div><div>plot = gsn_csm_vector_map(wks,u,v,res)</div><div><br></div><div>u_obs = new(2,float)</div><div>u_obs!0 = "lat"</div><div>u_obs&lat = (/-35.,15/)</div><div>u_obs!1 = "lon"</div><div>u_obs&lon = (/15,-110/)</div><div>u_obs&lat@units = "degrees_north"</div><div>u_obs&lon@units = "degrees_east"</div><div>u_obs@units = "m/s"</div><div>v_obs = u_obs </div><div><br></div><div>u_obs({-35},{15}) = 1.5</div><div>v_obs({-35},{15}) = 4.2</div><div>; set other points if necessary</div><div>oplot = gsn_csm_vector(wks,u_obs,v_obs,res)   ; Add single vector</div><div><br></div><div>overlay(plot,oplot)</div><div>draw(plot)</div><div>frame(wks)</div></div><div><br></div><div>Adam</div><div>  </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 4, 2021 at 3:22 PM Adam Phillips <<a href="mailto:asphilli@ucar.edu">asphilli@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Ivica,<div>I am not sure what you have in mind, but if you want to add a single vector and keep all the scaling the same as the original vector field, would it be possible to put your vector(s) in a gridded array?</div><div>If so, I would recommend setting the vcRefLengthF/vcRefMagnitude resources so that the vector sizes are the same, and draw the vector field, and then overlay the single vector.</div><div>For example:</div><div><br></div><div>res = True</div><div>res@gsnDraw = False</div><div>res@gsnFrame = False</div><div>...</div><div>res@vcRefLengthF = 0.05</div><div>res@vcRefMagnitudeF = 0.5</div><div>plot = gsn_csm_vector_map(wks,u,v,res)</div><div><br></div><div>u = u@_FillValue</div><div>v = v@_FillValue</div><div>u({30},{125}) = 0.75</div><div>v({30},{125}) = 0.31</div><div>oplot = gsn_csm_vector(wks,u,v,res)   ; Add single vector</div><div><br></div><div>overlay(plot,oplot)</div><div>draw(plot)</div><div>frame(wks)</div><div><br></div><div>Hope that helps!</div><div>Adam</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 3, 2021 at 8:56 PM Ivica Janeković via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear users of NCL,<br>
<br>
I am plotting ROMS model results using standard<br>
gsn_csm_vector_scalar_map and all that is working perfectly. To<br>
compare model results with the observed currents I would like to<br>
overlay vector(s) on the map. Is there any way to add a vector on the<br>
map (and to be scaled as all other vectors from the map)?<br>
<br>
Thanks in advance,<br>
Ivica<br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist,  </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist,  </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>