<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi David,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks for providing a script and data file.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The problem is that we have an internal function called "add_map_tickmarks" and this one is conflicting with that one.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I suggest renaming the one in the tst1.ncl script to something else, like "add_map_tickmarks2". I have updated the mptick_9.ncl example to have a different name for this function.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">However, since you are dealing with a simple lat/lon projection, you don't need your own copy of this routine. You should simply be able to set tmXBValues/Labels and tmYLValues/Labels to the desired values.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">See the attached modified script. I was unable to run the original script because of some coding errors, so I had to fix these. For example, it had the contour level spacing set to 0.0, which is invalid.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I didn't attempt to convert the degrees to minutes, so I just left them as fractional values on the X and Y axis.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 18, 2016 at 2:51 PM, Vollaro, David <span dir="ltr"><<a href="mailto:dvollaro@albany.edu" target="_blank">dvollaro@albany.edu</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">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p><span></span></p>
<div>
<p>Hi,</p>
<p><br>
</p>
<p>I am trying to plot a contour map for a small area and am trying to get the Longitude labels to plot every tenth deg. Setting
<span>res@gsnMajorLonSpacing <1 results in an error. Looking into the talk archives, I noticed a workaround using
<span>add_map_tickmarks. This seems to work for the test version when I change the map area and lon labels to what I want. However, when I try to incorperate it into a program that uses contour mapping(ie
<span> gsn_csm_contour_map) I get the following errors, before it even reaches the add_map_tickmarks function:</span></span></span></p>
<p><span><span><span><br>
</span></span></span></p>
<p><span><span><span></span></span></span><br>
</p>
<div>fatal:["Execute.c":8575]:Execute: Error occurred at or near line 5930 in file /man2/ncl63/lib/ncarg/nclscripts/csm/gsn_csm.ncl<br>
<br>
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 7107 in file /man2/ncl63/lib/ncarg/nclscripts/csm/gsn_csm.ncl<br>
<br>
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 10599 in file /man2/ncl63/lib/ncarg/nclscripts/csm/gsn_csm.ncl<br>
<br>
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 343 in file tst1.ncl<br>
<br>
I am running ncl6.3.0 and am attaching the script. Thanks for your help.<br>
<br>
Dave Vollaro<br>
</div>
</div>
<span></span><br>
<p></p>
</div>
</div>
<br>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>