[SAC-HELP] get header data

Frederik Tilmann tilmann at esc.cam.ac.uk
Tue Oct 10 01:29:53 PDT 2006


these values all need to be calculated by sac so when the sac file is 
generated externally, e.g. by rdseed they are generally left undefined.

Try reading into sac and writing again, i.e.

r file
w over

Of course, for dist evla,evlo,stla,stlo all need to be set and lcalda 
must be true.


Heloise.Cadet at ujf-grenoble.fr wrote:
> Good morning,
> I'd like to get some information in the header but the subroutines getfhv
> doesn't seem to work for depmin, depmax and dist
> in a fortran code:
> call GETFHV ('DEPMIN', depmin, nerr)
> I got this error message:
> ERROR: Undefined header field value. DEPMIN
> but it works for:
> call GETNHV ('NZYEAR', nyear, nerr)
> is there a bug? or an other way to extract data from the header?
> Best regards
> H?lo?se
> CETE Nice, LGIT Grenoble
> _______________________________________________
> sac-help mailing list
> sac-help at iris.washington.edu
> http://www.iris.washington.edu/mailman/listinfo/sac-help

Frederik Tilmann		
Bullard Laboratories           Tel. +44 1223 765545
Department of Earth Sciences   Fax. +44 1223 360779
University of Cambridge        email: tilmann at esc.cam.ac.uk
Madingley Road
Cambridge CB3 0EZ

More information about the sac-help mailing list