<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi A.J.,<br>
Try setting:<br>
res@cnConpackParams = (/ "HLX:1, HLY:1" /)<br>
In testing it seems like lower numbers increase the number of
high/low labels.<br>
<br>
As far as cnHighLabelString / cnLowLabelString settings go: The
default (for highs) is "H~B~$ZDV$~E~", thus not setting the resource
is the same as setting it to "H~B~$ZDV$~E~". If you are happy enough
with the format of the high/low labels there's no need to decipher
what that coding means. But if you're interested see here:<br>
<a class="moz-txt-link-freetext" href="http://www.ncl.ucar.edu/Document/Graphics/function_code.shtml">http://www.ncl.ucar.edu/Document/Graphics/function_code.shtml</a><br>
~B~ = subscript, ~E~ = stop the subscripting, and $ZDV$ is equal to
the identified high/low value and that value will be formatted
according to the cnHighLabelFormat resource:<br>
<a class="moz-txt-link-freetext" href="http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnHighLabelFormat">http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnHighLabelFormat</a><br>
Adam<br>
<br>
<div class="moz-cite-prefix">On 09/05/2013 12:08 PM, A.J. Eiserloh
wrote:<br>
</div>
<blockquote
cite="mid:CAGoaJHwHp+_dAWXc7XqfOeR6U70jk_QemTmwC+0qn=_U_cEdFQ@mail.gmail.com"
type="cite">
<div dir="ltr">I forgot to show that part of my code:
<div><br>
</div>
<div>
<div> res@cnLevelSpacingF = 4</div>
<div> res@cnLineLabelFontHeightF = 0.011</div>
<div><br>
</div>
<div> ;set High/Low Labels</div>
<div> res@cnHighLabelsOn = True; label highs</div>
<div> res@cnHighLabelPerimOn = False</div>
<div> res@cnHighLabelFontHeightF = 0.015; larger H labels</div>
<div> res@cnHighLabelBackgroundColor = "Transparent"</div>
<div> res@cnLowLabelsOn = True; label lows</div>
<div> res@cnLowLabelPerimOn = False</div>
<div> res@cnLowLabelFontHeightF = 0.015; larger L labels</div>
<div> res@cnLowLabelBackgroundColor = "Transparent"</div>
<div> res@cnConpackParams = (/ "HLX:4, HLY:4" /)</div>
<div> ; res@cnHighLabelString = "H~B~$ZDV$~E~"</div>
<div> ; res@cnLowLabelString = "L~B~$ZDV$~E~"</div>
<div><br>
</div>
<div> res@cnSmoothingOn = True</div>
<div> res@cnSmoothingTensionF = 1.8</div>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, Sep 5, 2013 at 11:02 AM, A.J.
Eiserloh <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:arthur.eiserloh@gmail.com" target="_blank">arthur.eiserloh@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Adam,
<div><br>
</div>
<div>When I took off the resources <span
style="font-size:13px;font-family:arial,sans-serif">cnHighLabelString/</span><span
style="font-size:13px;font-family:arial,sans-serif">cnLowLabelString,
The lows and highs with the numbers appeared finally.
However, it does not put H/L s for every high and low.
I tried increasing the value for </span><font
face="arial, sans-serif">res@cnConpackParams = (/
"HLX:4, HLY:4" /) to a higher number for HLX and HLY,
however, it did not change anything. So, for certain
times my "low of interest" has an "L" associeated with
it, but then for certain later times there is no L
within the "low" but yet there are definitely contours
around the "low". How can I get it to put a H/L stamp
for every high/low ? </font></div>
<div><font face="arial, sans-serif"><br>
</font></div>
<div><font face="arial, sans-serif">I tried adding the </font><span
style="font-family:arial,sans-serif;font-size:13px">res@cnHighLabelString
= "H~B~$ZDV$~E~"</span><span
style="font-family:arial,sans-serif;font-size:13px">
and </span><span
style="font-family:arial,sans-serif;font-size:13px">res@cnLowLabelString
= "L~B~$ZDV$~E~" resources, but I noticed that it did
not change anything, so I left those out. Also, I am
not very familiar with that syntax. </span></div>
<div><span
style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div>
<div><font face="arial, sans-serif">Thanks,</font></div>
<div><font face="arial, sans-serif"><br>
</font></div>
<div><font face="arial, sans-serif">A.J.</font></div>
</div>
<div class="HOEnZb">
<div class="h5">
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, Sep 5, 2013 at 8:20
AM, Adam Phillips <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Hi A.J.,<br>
You are telling NCL to not label the min/max
values by setting the
cnHighLabelString/cnLowLabelString resources =
"H"/"L".. <br>
<br>
According to the documentation here:<br>
<a moz-do-not-send="true"
href="http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnHighLabelString"
target="_blank">http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnHighLabelString</a><br>
<a moz-do-not-send="true"
href="http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLowLabelString"
target="_blank">http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLowLabelString</a><br>
the defaults are:<br>
res@cnHighLabelString = "H~B~$ZDV$~E~" <br>
res@cnLowLabelString = "L~B~$ZDV$~E~"<br>
(note that I replaced the : with ~ as that is
what most people have their function code set
to..)<br>
<br>
Try setting the resources as I have it above and
see if that works.. If not, please let ncl-talk
know..<br>
Adam
<div>
<div><br>
<br>
<div>On 09/04/2013 06:04 PM, A.J. Eiserloh
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Thanks Adam,
<div><br>
</div>
<div>That worked, however, is there a
way to put the minimum/maximum values
under the L/H symbols? Right now, only
the "L" for low shows up.</div>
<div><br>
</div>
<div>-A.J.</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Wed, Sep 4,
2013 at 12:36 PM, Adam Phillips <span
dir="ltr"><<a
moz-do-not-send="true"
href="mailto:asphilli@ucar.edu"
target="_blank">asphilli@ucar.edu</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div bgcolor="#FFFFFF"
text="#000000">
<div>Hi A.J.,<br>
I don't see anything amiss with
your script. Take a look at this
ncl-talk email from the archive:<br>
<a moz-do-not-send="true"
href="http://www.ncl.ucar.edu/Support/talk_archives/all/0877.html"
target="_blank">http://www.ncl.ucar.edu/Support/talk_archives/all/0877.html</a><br>
Specifically try setting
cnConpackParams, and see if you
can get the labels on there. <br>
If that resource doesn't help
let ncl-talk know.<br>
Adam
<div>
<div><br>
<br>
On 9/4/13 12:27 PM, A.J.
Eiserloh wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div>
<div dir="ltr">Hi,
<div><br>
</div>
<div>I am trying to put
high/low label marks on
my contour map of 500 mb
geopotential height
surface but for some
reason it does not seem
to be working. Here is
my script below:</div>
<div> <br>
</div>
<div>
<div>;<font
color="#0b5394">==============================================================</font></div>
<div><font
color="#0b5394">load
"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"</font></div>
<div><font
color="#0b5394">load
"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"</font></div>
<div><font
color="#0b5394">load
"$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"</font></div>
<div><font
color="#0b5394">load
"$NCARG_ROOT/lib/ncarg/nclscripts/contrib/calendar_decode2.ncl"</font></div>
<div><font
color="#0b5394">;==============================================================</font></div>
<div><font
color="#0b5394"><br>
</font></div>
<div><font
color="#0b5394">begin</font></div>
<div><font
color="#0b5394"><br>
</font></div>
<div><font
color="#0b5394">f =
addfile("./<a
moz-do-not-send="true"
href="http://hgt.2012.nc" target="_blank">hgt.2012.nc</a>","r")</font></div>
<div><font
color="#0b5394"><br>
</font></div>
<div><font
color="#0b5394">;geopotential
height</font></div>
<div><font
color="#0b5394">hgt
=
short2flt(f->hgt)
;
hgt(time,lev,lat,lon)</font></div>
<div><font
color="#0b5394">
; short2flt()
function uses
scale_factor and
add_offset attribute
to convert</font></div>
<div><font
color="#0b5394">hgt
= hgt/(10.0)</font></div>
<div><font
color="#0b5394">hgt@units
= "dam"</font></div>
<div><font
color="#0b5394">hgt@description
= "Geopotential
Height"</font></div>
<div><font
color="#0b5394">time
= f->time</font></div>
<div><font
color="#0b5394">ntimes=dimsizes(time)</font></div>
<div><font
color="#0b5394"><br>
</font></div>
<div><font
color="#0b5394">lat
= f->lat</font></div>
<div><font
color="#0b5394">lon
= f->lon</font></div>
<div> <font
color="#0b5394">lev
= f->level</font></div>
<div><font
color="#0b5394"><br>
</font></div>
<div><font
color="#0b5394">nlat
= dimsizes(lat)</font></div>
<div><font
color="#0b5394">nlon
= dimsizes(lon)</font></div>
<div> <font
color="#0b5394"><br>
</font></div>
<div><font
color="#0b5394">;convert
times to dates</font></div>
<div><font
color="#0b5394">times
=fspan(time@actual_range(0),time@actual_range(1),ntimes)</font></div>
<div><font
color="#0b5394">times@units=
"hours since
1800-1-1 00:00:00"</font></div>
<div><font
color="#0b5394">dates
=
calendar_decode2(times,-3)</font></div>
<div><font
color="#0b5394"><br>
</font></div>
<div><font
color="#0b5394">print(dates)</font></div>
<div><font
color="#0b5394">;create
lat2d and lon2d
arrays</font></div>
<div><font
color="#0b5394">;lat2d
=
conform_dims((/nlat,nlon/),lat,0)</font></div>
<div><font
color="#0b5394">;lon2d
=
conform_dims((/nlat,nlon/),lon,1)</font></div>
<div><font
color="#0b5394"><br>
</font></div>
<div><font
color="#0b5394">;hgt@lat2d
= lat2d</font></div>
<div><font
color="#0b5394">;hgt@lon2d
= lon2d</font></div>
<div><font
color="#0b5394"><br>
</font></div>
<div><font
color="#0b5394"><br>
</font></div>
<div><font
color="#0b5394">;---------------------------------------------------------------</font></div>
<div><font
color="#0b5394">;Plot</font></div>
<div><font
color="#0b5394">;---------------------------------------------------------------</font></div>
<div><font
color="#0b5394"><br>
</font></div>
<div><font
color="#0b5394">;What
level do you want to
plot?</font></div>
<div><font
color="#0b5394">plev
= 500.</font></div>
<div><font
color="#0b5394">dateStart
= ind(dates.eq."<a
moz-do-not-send="true"
href="tel:2012112800" value="+12012112800" target="_blank">2012112800</a>")</font></div>
<div><font
color="#0b5394">dateEnd
= ind(dates.eq."<a
moz-do-not-send="true"
href="tel:2012120318" value="+12012120318" target="_blank">2012120318</a>")</font></div>
<div><font
color="#0b5394"><br>
</font></div>
<div><font
color="#0b5394">;do
i=0,0 ; begin
plotting loop</font></div>
<div><font
color="#0b5394"><br>
</font></div>
<div><font
color="#0b5394"> fname
=
"500mb-"+dates(1335)</font></div>
<div><font
color="#0b5394"> wks
=
gsn_open_wks("png",fname)</font></div>
<div><font
color="#0b5394"><br>
</font></div>
<div><font
color="#0b5394"> ;plot
resources</font></div>
<div><font
color="#0b5394"> res
= True</font></div>
<div><font
color="#0b5394"><br>
</font></div>
<div><font
color="#0b5394"> res@tiMainString
= " NCEP
Reanalysis-2"</font></div>
<div><font
color="#0b5394"> res@tiMainFontAspectF
= 1.4</font></div>
<div><font
color="#0b5394"> res@tiMainFontThicknessF
= 0.80</font></div>
<div><font
color="#0b5394"> res@tiMainFontHeightF
= 0.03</font></div>
<div><font
color="#0b5394"><br>
</font></div>
<div><font
color="#0b5394"> res@gsnAddCyclic
= False
; regional
data</font></div>
<div> <font
color="#0b5394"> res@tfDoNDCOverlay
= False</font></div>
<div><font
color="#0b5394"><br>
</font></div>
<div><font
color="#0b5394">
colr="black"</font></div>
<div><font
color="#0b5394">
res@mpFillOn = False</font></div>
<div><font
color="#0b5394">
res@mpGeophysicalLineColor
= colr
; color of
continental outlines</font></div>
<div><font
color="#0b5394">
res@mpPerimOn
= True
; draw
box around map</font></div>
<div><font
color="#0b5394">
res@mpGridLineDashPattern
= 2
; lat/lon
lines as dashed</font></div>
<div><font
color="#0b5394">
res@mpDataBaseVersion
= "MediumRes"</font></div>
<div><font
color="#0b5394">
res@mpOutlineBoundarySets
=
"GeophysicalAndUSStates"
; add state
boundaries</font></div>
<div><font
color="#0b5394">
res@mpUSStateLineColor
= colr</font></div>
<div><font
color="#0b5394">
res@mpGeophysicalLineColor
= colr</font></div>
<div><font
color="#0b5394">
res@mpNationalLineColor
= colr</font></div>
<div><font
color="#0b5394">
res@mpUSStateLineColor
= colr</font></div>
<div><font
color="#0b5394">
res@mpGridLineColor
= colr</font></div>
<div><font
color="#0b5394">
res@mpLimbLineColor
= colr</font></div>
<div><font
color="#0b5394">
res@mpPerimLineColor
= colr</font></div>
<div><font
color="#0b5394">
res@mpGeophysicalLineThicknessF
= 1.0</font></div>
<div><font
color="#0b5394">
res@mpGridLineThicknessF
= 1.0</font></div>
<div><font
color="#0b5394">
res@mpLimbLineThicknessF
= 1.0</font></div>
<div><font
color="#0b5394">
res@mpNationalLineThicknessF
= 1.0</font></div>
<div><font
color="#0b5394">
res@mpUSStateLineThicknessF
= 1.0</font></div>
<div><font
color="#0b5394"><br>
</font></div>
<div><font
color="#0b5394">
res@cnLevelSpacingF
= 4</font></div>
<div><font
color="#0b5394">
res@cnLineLabelFontHeightF
= 0.011</font></div>
<div><font
color="#0b5394"><br>
</font></div>
<div><font
color="#0b5394">
res@cnHighLabelsOn
= True; label highs</font></div>
<div><font
color="#0b5394">
res@cnHighLabelString
= "H"; highs' label</font></div>
<div><font
color="#0b5394">
res@cnHighLabelFontHeightF
= 0.013; larger H
labels</font></div>
<div><font
color="#0b5394"> ;
res@cnHighLabelBackgroundColor
= "Transparent"; no
box</font></div>
<div><font
color="#0b5394">
res@cnLowLabelsOn =
True; label lows</font></div>
<div><font
color="#0b5394">
res@cnLowLabelString
= "L"; lows' label</font></div>
<div><font
color="#0b5394">
res@cnLowLabelFontHeightF
= 0.013; larger L
labels</font></div>
<div><font
color="#0b5394"> ;
res@cnLowLabelBackgroundColor
= "Transparent"; no
box</font></div>
<div><font
color="#0b5394"><br>
</font></div>
<div><font
color="#0b5394"> res@mpLimitMode="LatLon"</font></div>
<div><font
color="#0b5394"> res@mpMinLatF
= 20</font></div>
<div><font
color="#0b5394"> res@mpMaxLatF
= 60</font></div>
<div><font
color="#0b5394"> res@mpMinLonF
= -170</font></div>
<div><font
color="#0b5394"> res@mpMaxLonF
= -110</font></div>
<div><font
color="#0b5394"><br>
</font></div>
<div><font
color="#0b5394"> <a
moz-do-not-send="true" href="mailto:res@gsnLeftStringFontHeightF=0.015"
target="_blank">res@gsnLeftStringFontHeightF=0.015</a></font></div>
<div><font
color="#0b5394"> <a
moz-do-not-send="true" href="mailto:res@gsnRightStringFontHeightF=0.015"
target="_blank">res@gsnRightStringFontHeightF=0.015</a></font></div>
<div><font
color="#0b5394"> res@gsnLeftString
= hgt@description+"
"+flt2string(plev)+"mb
" + dates(1335)</font></div>
<div><font
color="#0b5394"> res@gsnRightString=
hgt@units</font></div>
<div><font
color="#0b5394"><br>
</font></div>
<div><font
color="#0b5394"> plot
=
gsn_csm_contour_map_ce(wks,hgt(1335,ind(lev.eq.plev),:,:),res)</font></div>
<div><font
color="#0b5394"><br>
</font></div>
<div><font
color="#0b5394">;end
do</font></div>
<div><font
color="#0b5394"><br>
</font></div>
<div><font
color="#0b5394">end</font></div>
<div><br>
</div>
<div>I've attatched an
image to show what it
looks like so far.</div>
<div><br>
</div>
<div>Any help would be
much appreciated.</div>
<div>Thanks,</div>
<div><br>
</div>
-- <br>
<div dir="ltr">Arthur J.
Eiserloh, Jr.
<div>San Jose State
University </div>
<div>Graduate Student</div>
<div>Dept. of
Meteorology and
Climate Science</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
<a moz-do-not-send="true" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>
</pre>
</blockquote>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">Arthur J. Eiserloh, Jr.
<div>San Jose State University </div>
<div>Graduate Student</div>
<div>Dept. of Meteorology and Climate
Science</div>
</div>
</div>
</blockquote>
<br>
</div>
</div>
<span><font color="#888888">
<pre cols="72">--
______________________________________________________________
Adam Phillips <a moz-do-not-send="true" href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>
NCAR/Climate and Global Dynamics Division <a moz-do-not-send="true" href="tel:%28303%29%20497-1726" value="+13034971726" target="_blank">(303) 497-1726</a>
P.O. Box 3000                                
Boulder, CO 80307-3000 <a moz-do-not-send="true" href="http://www.cgd.ucar.edu/cas/asphilli" target="_blank">http://www.cgd.ucar.edu/cas/asphilli</a>
</pre>
</font></span></div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">Arthur J. Eiserloh, Jr.
<div>San Jose State University </div>
<div>Graduate Student</div>
<div>Dept. of Meteorology and Climate Science</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">Arthur J. Eiserloh, Jr.
<div>San Jose State University </div>
<div>Graduate Student</div>
<div>Dept. of Meteorology and Climate Science</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
<a class="moz-txt-link-freetext" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
______________________________________________________________
Adam Phillips <a class="moz-txt-link-abbreviated" href="mailto:asphilli@ucar.edu">asphilli@ucar.edu</a>
NCAR/Climate and Global Dynamics Division (303) 497-1726
P.O. Box 3000                                
Boulder, CO 80307-3000 <a class="moz-txt-link-freetext" href="http://www.cgd.ucar.edu/cas/asphilli">http://www.cgd.ucar.edu/cas/asphilli</a>
</pre>
</body>
</html>