<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Beata,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">This script was written for a larger lat/lon area.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you simply change these two lines:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">
<p class="gmail-p1">lat_values = ispan(toint(minlat),toint(maxlat),10) * 1.<br>lon_values = ispan(toint(minlon+10),toint(maxlon-10),10) * 1.</p><p class="gmail-p1">to:</p><p class="gmail-p1">lat_values = ispan(toint(minlat),toint(maxlat),1) * 1.<br></p>lon_values = ispan(toint(minlon+10),toint(maxlon-10),1) * 1.<p class="gmail-p1">it should work.</p><p class="gmail-p1">--Mary</p><p class="gmail-p1"><br></p><p class="gmail-p1"><br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 22, 2016 at 5:57 AM, Beata Szabo <span dir="ltr"><<a href="mailto:szabo.b@czechglobe.cz" target="_blank">szabo.b@czechglobe.cz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear All, I applied lcmask_4.ncl script from<br>
<a href="https://www.ncl.ucar.edu/Applications/Scripts/lcmask_4.ncl" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/<wbr>Applications/Scripts/lcmask_4.<wbr>ncl</a>. It is able to<br>
create lambert conic projected map if I use large European area<br>
geographical values :<br>
minlat = 30<br>
maxlat = 75<br>
minlon = -20<br>
maxlon = 40<br>
<br>
I tried to run this script to create lambert projected map about Iberian<br>
Peninsula with:<br>
minlat = 36<br>
maxla = 44<br>
minlon = -10<br>
maxlon = 3<br>
<br>
but I got error messages<br>
fatal:divide: Division by 0, Can't continue<br>
fatal:Div: operator failed, can't continue<br>
fatal:["Execute.c":8128]:<wbr>Execute: Error occurred at or near line 43 in<br>
file lambert_IP.ncl<br>
<br>
fatal:["Execute.c":8128]:<wbr>Execute: Error occurred at or near line 198 in<br>
file lambert_IP.ncl<br>
<br>
where line 43 is:<br>
slope_lft = (lat2_ndc-lat1_ndc)/(lon2_ndc-<wbr>lon1_ndc)<br>
and line 198 is:<br>
add_lc_labels(wks,plot(0),<wbr>minlat,maxlat,minlon,maxlon)<br>
<br>
I attached the script. Can someone suggest me how I can fix this error?<br>
Thank you for your help in advance!<br>
Beata<br>
<br>
<br>
Dr. Beata Szabo-Takacs<br>
Global Change Research Institute CAS<br>
Bělidla 986/4a<br>
60300 Brno<br>
Czech Republic<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></blockquote></div><br></div>