<div dir="ltr">Hi:<div><br></div><div>Thank you for the suggestion.</div><div><br></div><div>The first attachment show what the old code produced.</div><div><br></div><div>The second the new with my interpreted changes based on your suggestion. I added those resources to res and zres.</div><div><br></div><div>The result was that now I see "Relative Humidity" on the left and gpm on the right. Before, there was "Relative Humidity" and "Geopotential Height" on the left.</div><div><br></div><div>I really would like to push Relative Humidity down to the label bar, but am also curious what I've done incorrectly in trying to place the labels on the left and right sides.</div><div><br></div><div>Thank you</div><div>P.S. the get_ij,f needs to be "WRAPPED."</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 25, 2016 at 1:41 PM, <span dir="ltr"><<a href="mailto:gtego@physics.auth.gr" target="_blank">gtego@physics.auth.gr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>
<br>
The resources<br>
<br>
gsnLeftStringParallelPosF<br>
gsnLeftStringOrthogonalPosF<br>
<br>
gsnRightStringParallelPosF<br>
gsnRightStringOrthogonalPosF<br>
<br>
set the horizontal and vertical position for the "long_name" and<br>
"unit" respectively.<br>
<br>
Setting them (Parallel~ 0.5 and Orthogonal~ -1.5) before plotting the<br>
Relative Humidity plot does the job.<br>
<br>
<br>
Giannis Tegoulias<br>
<span class=""><br>
<br>
<br>
<br>
Quoting Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com">barry.h.lynn@gmail.com</a>>:<br>
<br>
> Hi:<br>
><br>
> I haven't been able to move the title Relative Humidity to the label bar<br>
> below. Nor, can I move it to the right. Part of the problem is that I<br>
> don't know how to reference them, so setting their position with title<br>
> position information doesn't help.<br>
><br>
> The name Relative Humidity, like the name Geopotential Height, comes from<br>
> the attribute list.<br>
><br>
> Usually, titles (data attributes) are automatically placed correctly on the<br>
> page.<br>
><br>
> I have consulted pages like:<br>
><br>
> <a href="https://www.ncl.ucar.edu/Applications/title.shtml" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/<wbr>Applications/title.shtml</a><br>
><br>
> and I have read about variable attributes,<br>
><br>
> <a href="https://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclVariables.shtml" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/<wbr>Document/Manuals/Ref_Manual/<wbr>NclVariables.shtml</a><br>
><br>
</span>> *Moreover: the page that deals with Overlays shows an example where the<br>
<span class="">> variable names are space correctly, but never referenced (or their<br>
</span>> positions defined).*<br>
<div><div class="h5">><br>
> <a href="http://www.ncl.ucar.edu/Applications/Scripts/overlay_1.ncl" rel="noreferrer" target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/Scripts/overlay_<wbr>1.ncl</a><br>
><br>
> I have made other searches using various key words, but this situation<br>
> seems to be unusual (as resulting from the use of overlay).<br>
><br>
> I realize that this may be a trivial thing, but it is not unimportant.<br>
><br>
> Thank you for solving this problem.<br>
><br>
> Barry Lynn<br>
><br>
> On Thu, Nov 24, 2016 at 3:13 AM, David Brown <<a href="mailto:dbrown@ucar.edu">dbrown@ucar.edu</a>> wrote:<br>
><br>
>> I am attaching a modified script that works on your data (except you need<br>
>> to figure out what you want to do about the titles). Most of your script<br>
>> was okay except for a few crucial points.<br>
>><br>
>> Main points to remember:<br>
>> All the resource warning messages come from setting map resources for a<br>
>> plot that does not include a map -- the warnings are not fatal, these<br>
>> resources will simply be ignored. So don't copy the resources from the<br>
>> contour map to the plain contour. Instead start over with a new resource<br>
>> variable. You had<br>
>> zres = res ; copies all the attributes of "res" to "zres"<br>
>> Instead<br>
>> zres = True<br>
>><br>
>> Since you are doing a native plot (tfDoNDCOverlay = True) you also need to<br>
>> set this for the overlay plot (contour_z):<br>
>><br>
>> zres@tfDoNDCOverlay = True<br>
>><br>
>> Finally whenever you call the "draw" routine, you also need to call<br>
>> "frame", so:<br>
>><br>
>> draw(contour_rh)<br>
>> frame(wks)<br>
>><br>
>> Hope this helps.<br>
>> -dave<br>
>><br>
>><br>
>><br>
>><br>
>> On Wed, Nov 23, 2016 at 12:58 PM, Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com">barry.h.lynn@gmail.com</a>><br>
>> wrote:<br>
>><br>
>>> Dave: Please see below.<br>
>>><br>
>>> But first: Here are the three components needed to test the program.<br>
>>><br>
>>> 1) The file, 2) the ncl program, and 3 the get_ij.f, which has to be<br>
>>> wrapped.<br>
>>><br>
>>> Dave: You wrote: "The problem is that both your individual plots are<br>
>>> drawn using a map projection. You should draw the contour_z field<br>
>>> without the map<br>
>>> projection using "gsn_csm_contour". Then you will be able to do the<br>
>>> overlay without error."<br>
>>><br>
>>> If I remove the "map" from the second gsn_csm_contour command, I just get<br>
>>> those warnings again and no overlay.<br>
>>><br>
>>> Thank you,<br>
</div></div>>>> namanl_218_20130208_1800_000.<wbr>grb<br>
>>> <<a href="https://drive.google.com/file/d/0B3E3GjUeKpBdQWhSVFpISWM2SkE/view?usp=drive_web" rel="noreferrer" target="_blank">https://drive.google.com/<wbr>file/d/<wbr>0B3E3GjUeKpBdQWhSVFpISWM2SkE/<wbr>view?usp=drive_web</a>><br>
<div class="HOEnZb"><div class="h5">>>> <br>
>>><br>
>>> On Wed, Nov 23, 2016 at 9:26 PM, Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com">barry.h.lynn@gmail.com</a>><br>
>>> wrote:<br>
>>><br>
>>>> Hello:<br>
>>>><br>
>>>> I am trying to overlay the height field from the NAM on the relative<br>
>>>> humidity.<br>
>>>><br>
>>>> I succeeded to zoom and project the NAM fields correctly, and I<br>
>>>> succeeded to make two separate plots, both of which were projected<br>
>>>> correctly.<br>
>>>><br>
>>>> I consulted these two pages.<br>
>>>><br>
>>>> <a href="http://www.ncl.ucar.edu/Applications/Scripts/lcnative_2.ncl" rel="noreferrer" target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/Scripts/lcnative_<wbr>2.ncl</a><br>
>>>><br>
>>>> and:<br>
>>>><br>
>>>> <a href="http://www.ncl.ucar.edu/Applications/Scripts/conOncon_2.ncl" rel="noreferrer" target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/Scripts/conOncon_<wbr>2.ncl</a><br>
>>>><br>
>>>> I can create test.00001, and test.00002 using the attached ncl code.<br>
>>>><br>
>>>> However, I cannot create the overlay.<br>
>>>><br>
>>>> I try to do this using the last two lines of the code:<br>
>>>><br>
>>>> overlay(contour_rh,contour_z)<br>
>>>> draw(contour_rh)<br>
>>>><br>
>>>><br>
>>>> But, I get this error.<br>
>>>><br>
>>>> fatal:NhlAddOverlay: plot class mapPlotClass cannot be overlay plot<br>
>>>> member<br>
>>>><br>
>>>> If I try to change gsn_csm_contour_map to gsn_csm_contour to then invoke<br>
>>>> the overlay procedure, I get:<br>
>>>><br>
>>>><br>
>>>><br>
>>>> warning:mpProjection is not a valid resource in test_contour at this time<br>
>>>> warning:mpLimitMode is not a valid resource in test_contour at this time<br>
>>>> warning:mpLeftCornerLonF is not a valid resource in test_contour at this<br>
>>>> time<br>
>>>> warning:mpRightCornerLonF is not a valid resource in test_contour at<br>
>>>> this time<br>
>>>> warning:mpLeftCornerLatF is not a valid resource in test_contour at this<br>
>>>> time<br>
>>>> warning:mpRightCornerLatF is not a valid resource in test_contour at<br>
>>>> this time<br>
>>>> warning:mpLambertMeridianF is not a valid resource in test_contour at<br>
>>>> this time<br>
>>>> warning:mpLambertParallel1F is not a valid resource in test_contour at<br>
>>>> this time<br>
>>>> warning:mpLambertParallel2F is not a valid resource in test_contour at<br>
>>>> this time<br>
>>>> warning:mpOutlineDrawOrder is not a valid resource in test_contour at<br>
>>>> this time<br>
>>>> warning:mpFillOn is not a valid resource in test_contour at this time<br>
>>>> warning:mpOutlineBoundarySets is not a valid resource in test_contour at<br>
>>>> this time<br>
>>>> fatal:NhlAddOverlay: plot class mapPlotClass cannot be overlay plot<br>
>>>> member<br>
>>>><br>
>>>> and the projection is lost.<br>
>>>><br>
>>>> Your suggestions are appreciated.<br>
>>>><br>
>>>> Barry Lynn<br>
>>>><br>
>>>><br>
>>>> --<br>
>>>> Barry H. Lynn, Ph.D<br>
>>>> Senior Lecturer,<br>
>>>> The Institute of the Earth Science,<br>
>>>> The Hebrew University of Jerusalem,<br>
>>>> Givat Ram, Jerusalem 91904, Israel<br>
>>>> Tel: 972 547 231 170<br>
>>>> Fax: (972)-25662581<br>
>>>><br>
>>>> C.E.O, Weather It Is, LTD<br>
>>>> Weather and Climate Focus<br>
>>>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>>>> Jerusalem, Israel<br>
>>>> Local: 02 930 9525<br>
>>>> Cell: 054 7 231 170<br>
>>>> Int-IS: x972 2 930 9525<br>
>>>> US 914 432 3108<br>
>>>><br>
>>><br>
>>><br>
>>><br>
>>> --<br>
>>> Barry H. Lynn, Ph.D<br>
>>> Senior Lecturer,<br>
>>> The Institute of the Earth Science,<br>
>>> The Hebrew University of Jerusalem,<br>
>>> Givat Ram, Jerusalem 91904, Israel<br>
>>> Tel: 972 547 231 170<br>
>>> Fax: (972)-25662581<br>
>>><br>
>>> C.E.O, Weather It Is, LTD<br>
>>> Weather and Climate Focus<br>
>>> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
>>> Jerusalem, Israel<br>
>>> Local: 02 930 9525<br>
>>> Cell: 054 7 231 170<br>
>>> Int-IS: x972 2 930 9525<br>
>>> US 914 432 3108<br>
>>><br>
>>> ______________________________<wbr>_________________<br>
>>> ncl-talk mailing list<br>
>>> <a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
>>> List instructions, subscriber options, unsubscribe:<br>
>>> <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
>>><br>
>>><br>
>><br>
><br>
><br>
> --<br>
> Barry H. Lynn, Ph.D<br>
> Senior Lecturer,<br>
> The Institute of the Earth Science,<br>
> The Hebrew University of Jerusalem,<br>
> Givat Ram, Jerusalem 91904, Israel<br>
> Tel: 972 547 231 170<br>
> Fax: (972)-25662581<br>
><br>
> C.E.O, Weather It Is, LTD<br>
> Weather and Climate Focus<br>
> <a href="http://weather-it-is.com" rel="noreferrer" target="_blank">http://weather-it-is.com</a><br>
> Jerusalem, Israel<br>
> Local: 02 930 9525<br>
> Cell: 054 7 231 170<br>
> Int-IS: x972 2 930 9525<br>
> US 914 432 3108<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br>US 914 432 3108<br></div></div></div>
</div>