[SAC-HELP] A question regarding sac ERROR 907 ...

Brian Savage savage at uri.edu
Fri Oct 29 07:37:05 PDT 2010


To follow up:

The values from kztime should be:
0 <= hour <= 24
0 <= min <= 59
0 <= sec <= 59
0 <= msec <= 999

>  ERROR  907: Bad time field entry detected: 22 8 26 1432

 From your output the hour = 22, min = 8, sec = 26 and the msec = 1432
millisecond (1432) is outside of the allowed range, so the 907 Error  
is occurring.
The output for the error message *should*, and will be better in the  
future.
I believe your seconds should be at 27 and msec should be 432.

You might also encounter this error when reading a SEGY file with a  
illegal time value.

Brian Savage
savage at uri.edu

On Oct 29, 2010, at 9:41 AM, Januka Attanayake wrote:

> Here's how I would do it with saclst in bash.
>
> kztime=`saclst kztime f sacfile_name | gawk '{print $2}'`
>
> Januka.
>
> Serenity isn't freedom from the storm, but peace within the storm
> Januka Attanayake
> Global Seismology & Economics
> The University of Connecticut
> Beach Hall - U2045
> 354, Mansfield Rd;
> Storrs, CT 06269
> Tel :  860 486 0475 (Office)
>           860 486 3914 (Lab - P405)
> URL: http://sites.google.com/site/janukaattanayake/
>
>
>
>
>
>
>
> --- On Fri, 10/29/10, Tuna Eken <ekent at gfz-potsdam.de> wrote:
>
> From: Tuna Eken <ekent at gfz-potsdam.de>
> Subject: [SAC-HELP] A question regarding sac ERROR 907 ...
> To: sac-help at iris.washington.edu
> Cc: ekent at gfz-potsdam.de
> Date: Friday, October 29, 2010, 4:59 AM
>
> Dear SAC Users,
>
> I have recently faced with a problem when processing on the data  
> header of one binary sac data file.
> To sum it up, when I read and want to list header info, I have got  
> the following type of error and
> the rest :
>
>  ERROR  907: Bad time field entry detected: 22 8 26 1432
>        NPTS = 360000
>           B = 0.000000e+00
>           E = 3.599990e+03
>      IFTYPE = TIME SERIES FILE
>  ERROR    0:      LEVEN = TRUE
>       DELTA = 1.000000e-02
>        IDEP = VELOCITY (NM/SEC)
>      DEPMIN = 5.701760e+05
>      DEPMAX = 5.752970e+05
>  ERROR    0:     DEPMEN = 5.730679e+05
>      KZDATE = MAR 30 (089), 2007
>      IZTYPE = BEGIN TIME
>       KSTNM = IPA2
>       CMPAZ = 9.000000e+01
>  ERROR    0:     CMPINC = 9.000000e+01
>
> ............................................................
> .......
>
> Here at that point KZTIME information is important for my processing  
> and most probably due
> to that sort of error I can't see and grep it later on. Is there  
> anyone who has idea how to get
> the data header fixed or any trick on how to get KZTIME information  
> despite this error?
>
> I appreciate any suggestion on this matter ...
>
>
>
> best regards
>
> tuna
>
> -- 
> #    #    #    #    #    #    #
> Tuna Eken
>
> Helmholtz-Zentrum Potsdam
> Deutsches GeoForschungsZentrum GFZ
>
> Telegrafenberg, D 409
> D-14473 Potsdam/Germany
> Tel.: +49 331 288-1322
> Fax: +49 331 288-1328
> E-Mail: ekent at gfz-potsdam.de
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> sac-help mailing list
> sac-help at iris.washington.edu
> http://www.iris.washington.edu/mailman/listinfo/sac-help
>
> _______________________________________________
> sac-help mailing list
> sac-help at iris.washington.edu
> http://www.iris.washington.edu/mailman/listinfo/sac-help




More information about the sac-help mailing list