Skip to content

Commit

Permalink
add reading of LIBMSEED_LEAPSECOND_FILE environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Chad Trabant committed Mar 4, 2015
1 parent 8c44b9d commit be1fec6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
12 changes: 11 additions & 1 deletion doc/msi.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH MSI 1 2009/07/13
.TH MSI 1 2015/03/03
.SH NAME
Mini-SEED Inspector

Expand Down Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions src/msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
* Written by Chad Trabant, IRIS Data Management Center.
*
* modified 2011.332
* modified 2015.062
***************************************************************************/

#include <stdio.h>
Expand All @@ -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;
Expand Down Expand Up @@ -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 )
{
Expand Down

0 comments on commit be1fec6

Please sign in to comment.