<div dir="ltr">Hi Michael,<div><br></div><div>These files are used by the map plotting routines. Since they are not NCL source code, they cannot be loaded with the &quot;load&quot; command.</div><div>As explained on the web page you pointed to:</div>
<div><br></div><div><span style="color:rgb(0,0,0);font-family:verdana,sans-serif;font-size:13px;line-height:16px">You must download all ten of these files, unzip them, and either put them in the directory &quot;$NCARG_ROOT/lib/ncarg/database/rangs&quot; (which NCL will look in by default), or put them somewhere else and set the environment variable NCARG_RANGS to this directory. The files take up about 140 megabytes, unzipped.</span></div>
<div><font color="#000000" face="verdana, sans-serif"><span style="line-height:16px"><br></span></font></div><div><font color="#000000" face="verdana, sans-serif"><span style="line-height:16px">Assuming you leave them in their current location you simply need to set the environment variable NCARG_RANGS to </span></font></div>
<div><font color="#000000" face="verdana, sans-serif"><span style="line-height:16px">point to the directory:</span></font></div><div><font color="#000000" face="verdana, sans-serif"><span style="line-height:16px"><br></span></font></div>
<div><span style="font-size:13px;font-family:arial,sans-serif">export NCARG_RANGS=</span><span style="font-size:13px;font-family:arial,sans-serif">/Users/notaro/upper_fox_</span><span style="font-size:13px;font-family:arial,sans-serif">river/rangs </span><span style="font-size:13px;font-family:arial,sans-serif">   </span></div>
<div><span style="font-size:13px;font-family:arial,sans-serif">or</span></div><div><span style="font-size:13px;font-family:arial,sans-serif">setenv NCARG_RANGS </span><span style="font-size:13px;font-family:arial,sans-serif">/Users/notaro/upper_fox_</span><span style="font-size:13px;font-family:arial,sans-serif">river/rangs </span></div>
<div><span style="font-size:13px;font-family:arial,sans-serif"><br></span></div><div><span style="font-size:13px;font-family:arial,sans-serif"> -dave</span></div><div><span style="font-size:13px;font-family:arial,sans-serif"><br>
</span></div><div><br></div><div><font color="#000000" face="verdana, sans-serif"><span style="line-height:16px"><br></span></font><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 11, 2014 at 4:21 PM, Michael Notaro <span dir="ltr">&lt;<a href="mailto:mnotaro@wisc.edu" target="_blank">mnotaro@wisc.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am receiving the following error<br>
&quot;Input in flex scanner failed&quot;.<br>
It is resulting from my call to load<br>
&quot;Users/notaro/upper_fox_river/rangs&quot;.<br>
That directory contains the files<br>
needed to use RANGS_GSHHS as<br>
described here:<br>
<br>
<a href="https://www.ncl.ucar.edu/Document/Graphics/rangs.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Graphics/rangs.shtml</a><br>
and found here:<br>
<a href="http://www2008.io-warnemuende.de/homepages/rfeistel/" target="_blank">http://www2008.io-warnemuende.de/homepages/rfeistel/</a><br>
<br>
<br>
Any suggestions? I am using NCL 6.1.2 on the mac.<br>
<br>
<br>
Thanks, Michael<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;<br>
<br>
load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;<br>
<br>
load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl&quot;<br>
<br>
load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl&quot;<br>
<br>
load &quot;/Users/notaro/upper_fox_river/rangs&quot;<br>
<br>
<br>
<br>
<br>
begin<br>
<br>
<br>
<br>
<br>
end<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
[mmia:~/upper_fox_river/rangs] notaro% pwd<br>
<br>
/Users/notaro/upper_fox_river/rangs<br>
<br>
[mmia:~/upper_fox_river/rangs] notaro% ls -l -h<br>
<br>
total 275288<br>
<br>
-rwxr-xr-x@ 1 notaro staff 85M May 13 1997 gshhs(0).rim<br>
<br>
-rwxr-xr-x@ 1 notaro staff 20M May 13 1997 gshhs(1).rim<br>
<br>
-rwxr-xr-x@ 1 notaro staff 4.9M May 13 1997 gshhs(2).rim<br>
<br>
-rwxr-xr-x@ 1 notaro staff 1.1M May 13 1997 gshhs(3).rim<br>
<br>
-rwxr-xr-x@ 1 notaro staff 167K May 13 1997 gshhs(4).rim<br>
<br>
-rwxr-xr-x@ 1 notaro staff 253K May 6 1997 rangs(0).cat<br>
<br>
-rwxr-xr-x@ 1 notaro staff 6.2M Feb 1 1999 rangs(0).cel<br>
<br>
-rwxr-xr-x@ 1 notaro staff 253K May 6 1997 rangs(1).cat<br>
<br>
-rwxr-xr-x@ 1 notaro staff 5.7M Feb 1 1999 rangs(1).cel<br>
<br>
-rwxr-xr-x@ 1 notaro staff 253K May 6 1997 rangs(2).cat<br>
<br>
-rwxr-xr-x@ 1 notaro staff 3.9M Feb 1 1999 rangs(2).cel<br>
<br>
-rwxr-xr-x@ 1 notaro staff 253K May 5 1997 rangs(3).cat<br>
<br>
-rwxr-xr-x@ 1 notaro staff 3.2M Feb 1 1999 rangs(3).cel<br>
<br>
-rwxr-xr-x@ 1 notaro staff 253K May 5 1997 rangs(4).cat<br>
<br>
<br>
<br>
-rwxr-xr-x@ 1 notaro staff 2.9M Jan 29 1999 rangs(4).cel<br>
_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br></div>