diff --git a/ChangeLog b/ChangeLog index 03e6ac1..1af1d05 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015.062: 3.6 + - Update libmseed to 2.14. + - Read any leap second list file indicated by the LEAP_SECOND_FILE + environment variable and use it when determining trace listings. + 2013.056: 3.5 - Update libmseed to 2.10. diff --git a/doc/msi.1 b/doc/msi.1 index be577ca..1a1e4fc 100644 --- a/doc/msi.1 +++ b/doc/msi.1 @@ -1,4 +1,4 @@ -.TH MSI 1 2009/07/13 +.TH MSI 1 2015/03/03 .SH NAME Mini-SEED Inspector @@ -221,6 +221,16 @@ IU_ADK_00_BHZ.* II_BFO_00_BHZ_Q .fi +.SH LEAP SECOND LIST FILE +If the environment variable LIBMSEED_LEAPSECOND_FILE is set it is +expected to indicate a file containing a list of leap seconds as +published by NIST and IETF, usually available here: +http://www.ietf.org/timezones/data/leap-seconds.list + +If present, the leap seconds listed in this file will be used to +adjust the time coverage for records that contain a leap second. +Also, leap second indicators in the miniSEED headers will be ignored. + .SH AUTHOR .nf Chad Trabant diff --git a/src/msi.c b/src/msi.c index b27c349..fc58d79 100644 --- a/src/msi.c +++ b/src/msi.c @@ -10,7 +10,7 @@ * * Written by Chad Trabant, IRIS Data Management Center. * - * modified 2011.332 + * modified 2015.062 ***************************************************************************/ #include @@ -31,7 +31,7 @@ static int addfile (char *filename); static int addlistfile (char *filename); static void usage (void); -#define VERSION "3.5" +#define VERSION "3.6" #define PACKAGE "msi" static flag verbose = 0; @@ -100,6 +100,9 @@ main (int argc, char **argv) if ( processparam (argc, argv) < 0 ) return 1; + /* Read leap second list file if env. var. LIBMSEED_LEAPSECOND_FILE is set */ + ms_readleapseconds ("LIBMSEED_LEAPSECOND_FILE"); + /* Setup encoding environment variable if specified, ugly kludge */ if ( encodingstr ) {