Hi,<div><br></div><div>I am using the LIBSAC libraries to read header values into a fortran code. I am having trouble reading in the &#39;dist&#39; header field.</div><div><br></div><div>The rsac call in the fortran code does not return an error, as other header values can be read. The call to get the &#39;dist&#39; header value is:</div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">call getfhv(&#39;dist&#39;,dist,nerr)</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div>

<font class="Apple-style-span" face="arial, helvetica, sans-serif">But when running on a sac file, I get an error saying that the field is undefined...</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">ERROR 1336: Undefined header field value. dist</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">However, when I use sac and open this same file and list the header values, there is a defined value present for this header.</font></div>

<div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">$ sac &lt;&lt; EOF </font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">&gt; r compR.lhn</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">&gt; lh dist delta</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">&gt; q</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">&gt; EOF</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"> SEISMIC ANALYSIS CODE [08/24/2009 (Version 101.3b)]</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"> Copyright 1995 Regents of the University of California</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">  </font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">  </font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">  FILE: compR.lhn - 1</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"> ---------------------------</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">      dist = 8.346584e+03</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">     delta = 1.000000e+00</font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">$</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div>This error only seems to happen for the &#39;dist&#39; field. Unless of course the value is truly undefined and also does not appear in a sac &#39;lh&#39; command.</div>

<div><br></div><div>Any insight would be much appreciated.</div><div><br></div><div>cheers,</div><div>Andrew Schaeffer</div></font></div>