[SAC-HELP] GETFHV Read Error

Andrew Schaeffer aj.schaeffer at gmail.com
Thu Mar 18 02:08:19 PDT 2010


Hi,

I am using the LIBSAC libraries to read header values into a fortran code. I
am having trouble reading in the 'dist' header field.

The rsac call in the fortran code does not return an error, as other header
values can be read. The call to get the 'dist' header value is:
call getfhv('dist',dist,nerr)

But when running on a sac file, I get an error saying that the field is
undefined...
ERROR 1336: Undefined header field value. dist

However, when I use sac and open this same file and list the header values,
there is a defined value present for this header.
$ sac << EOF
> r compR.lhn
> lh dist delta
> q
> EOF
 SEISMIC ANALYSIS CODE [08/24/2009 (Version 101.3b)]
 Copyright 1995 Regents of the University of California



  FILE: compR.lhn - 1
 ---------------------------

      dist = 8.346584e+03
     delta = 1.000000e+00
$

This error only seems to happen for the 'dist' field. Unless of course the
value is truly undefined and also does not appear in a sac 'lh' command.

Any insight would be much appreciated.

cheers,
Andrew Schaeffer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.iris.washington.edu/pipermail/sac-help/attachments/20100318/47301f02/attachment.html>


More information about the sac-help mailing list