<div dir="ltr">Giannis:<div><br></div><div>Thank you!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 26, 2016 at 6:47 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>
Ι don't mind at all, feel free to copy it.<br>
<br>
I should have done it anyway!<br>
<br>
Giannis<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
Quoting Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>>:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Ioannis:<br>
<br>
Thank you.<br>
<br>
Do you mind if we copy NCL-Talk so people note that you kindly answered?<br>
<br>
Barry<br>
<br>
<br>
<br>
<br>
<br>
On Sat, Nov 26, 2016 at 5:41 PM, <<a href="mailto:gtego@physics.auth.gr" target="_blank">gtego@physics.auth.gr</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
this is what I have found trying to answer your questions (which were also<br>
my questions recently :-) )<br>
<br>
a very usefull function to interpret the position of each object is the<br>
following:<br>
<br>
drawNDCGrid(wks)<br>
<br>
(add also load "$NCARG_ROOT/lib/ncarg/nclscri<wbr>pts/csm/shea_util.ncl"<br>
at the beggining of the file)<br>
<br>
It displays the auxiliarly grid of the Normalized Device Coordinates of<br>
the plotting space.<br>
<br>
I placed the function (for testing purposes) just before line<br>
" contour_rh = gsn_csm_contour_map(wks,rh_pla<wbr>ne,res)"<br>
in your script.<br>
<br>
If you do that you will see that the plot has a height of 0.6 units<br>
(normalized....) from 0.2 to 0.8.<br>
You will also see that the text "Relative humidity" is placed at 0.85 in<br>
the vertical grid.<br>
By using gsnLeftStringOrthogonalPosF (needed only in the Relative<br>
Humidity part of the script) you can move the text up of down.<br>
<br>
For example if you want to move the text to the lower part of the plot<br>
(located at 0.2) you have to move it down (thus you will use - minus) by<br>
0.85-0.2 = 0.65units. But those units must be expressed in plot hight<br>
units...<br>
So you will divide 0.65 by 0.60 and you will get 1.0833333333.<br>
<br>
So setting res@gsnLeftStringOrthogonalPos<wbr>F = -1.0833333 will move the<br>
text down to the lower left corner of the plot.<br>
<br>
The same applies to the horizontal position.<br>
<br>
So far all the above had worked for me. I haven't gone deep into the<br>
source code to prove they are true though.<br>
<br>
I found very helpfull the pdf at the link below:<br>
<a href="https://www.dkrz.de/Nutzerportal/doku/vis/vis-sw/de-ncl/de-" rel="noreferrer" target="_blank">https://www.dkrz.de/Nutzerport<wbr>al/doku/vis/vis-sw/de-ncl/de-</a><br>
DKRZ_NCL_Supplements_Doc_layou<wbr>t.pdf<br>
by Karin Meier-Fleischer<br>
<br>
Ioannis Tegoulias<br>
<br>
<br>
<br>
Quoting Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>>:<br>
<br>
Hi:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thank you for the suggestion.<br>
<br>
The first attachment show what the old code produced.<br>
<br>
The second the new with my interpreted changes based on your suggestion. I<br>
added those resources to res and zres.<br>
<br>
The result was that now I see "Relative Humidity" on the left and gpm on<br>
the right. Before, there was "Relative Humidity" and "Geopotential<br>
Height"<br>
on the left.<br>
<br>
I really would like to push Relative Humidity down to the label bar, but<br>
am<br>
also curious what I've done incorrectly in trying to place the labels on<br>
the left and right sides.<br>
<br>
Thank you<br>
P.S. the get_ij,f needs to be "WRAPPED."<br>
<br>
On Fri, Nov 25, 2016 at 1:41 PM, <<a href="mailto:gtego@physics.auth.gr" target="_blank">gtego@physics.auth.gr</a>> wrote:<br>
<br>
Hi!<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<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>
<br>
<br>
<br>
<br>
Quoting Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" target="_blank">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<br>
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<br>
from<br>
> the attribute list.<br>
><br>
> Usually, titles (data attributes) are automatically placed correctly on<br>
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/Appli<wbr>cations/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/NclVari" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Docum<wbr>ent/Manuals/Ref_Manual/NclVari</a><br>
ables.shtml<br>
><br>
> *Moreover: the page that deals with Overlays shows an example where the<br>
> variable names are space correctly, but never referenced (or their<br>
> positions defined).*<br>
><br>
> <a href="http://www.ncl.ucar.edu/Applications/Scripts/overlay_1.ncl" rel="noreferrer" target="_blank">http://www.ncl.ucar.edu/Applic<wbr>ations/Scripts/overlay_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>
</blockquote></blockquote></blockquote></blockquote>
<br>
<br>
<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>