Man page - ms_readleapsecondfile(3)
Packages contas this manual
- ms_gswap2(3)
- ms_selection(3)
- ms_gswap8(3)
- ms_strncpclean(3)
- msr_endtime(3)
- ms_hptime2isotimestr(3)
- ms_addselect_comp(3)
- ms_readtracelist_selection(3)
- ms_hptime2seedtimestr(3)
- ms_strncpopen(3)
- ms_readtracelist(3)
- msr_addblockette(3)
- ms_parse_raw(3)
- ms_gswap4(3)
- ms_matchselect(3)
- ms_btime2isotimestr(3)
- ms_gswap4a(3)
- msr_free(3)
- ms_bigendianhost(3)
- ms_addselect(3)
- mst_writemseedgroup(3)
- ms_freeselections(3)
- ms_seedtimestr2hptime(3)
- ms_loginit_l(3)
- mst_addtracetogroup(3)
- ms_gswap8a(3)
- mst_printgaplist(3)
- ms_blktdesc(3)
- ms_samplesize(3)
- ms_md2doy(3)
- msr_pack_header(3)
- msr_writemseed(3)
- ms_readtraces(3)
- ms_readmsr_r(3)
- ms_readtracelist_timewin(3)
- mst_writemseed(3)
- mstl_printsynclist(3)
- ms_hptime2btime(3)
- mstl_addmsr(3)
- msr_duplicate(3)
- mstl_free(3)
- ms_lookup(3)
- msr_pack(3)
- mst_freegroup(3)
- ms_btime3hptime(3)
- mst_printtracelist(3)
- ms_readleapseconds(3)
- mst_packgroup(3)
- ms_btime2mdtimestr(3)
- ms_encodingstr(3)
- ms_time(3)
- ms_detect(3)
- msr_print(3)
- ms_log(3)
- ms_readtraces_timewin(3)
- ms_readtraces_selection(3)
- msr_init(3)
- mstl_convertsamples(3)
- msr_parse_selection(3)
- msr_starttime(3)
- mst_pack(3)
- ms_readselectionsfile(3)
- ms_timestr2hptime(3)
- ms_blktlen(3)
- ms_hptime2mdtimestr(3)
- mst_initgroup(3)
- ms_intro(3)
- ms_recsrcname(3)
- ms_btime2seedtimestr(3)
- mst_free(3)
- ms_gswap(3)
- mst_addmsr(3)
- msr_starttime_uc(3)
- mst_findmatch(3)
- ms_loginit(3)
- msr_parse(3)
- ms_log_l(3)
- ms_errorstr(3)
- msr_samprate(3)
- mst_addspan(3)
- ms_printselections(3)
- ms_genfactmult(3)
- ms_srcname(3)
- msr_normalize_header(3)
- ms_gswap3(3)
- ms_ratapprox(3)
- ms_writemseed(3)
- msr_unpack(3)
- mst_groupheal(3)
- mstl_init(3)
- mstl_printgaplist(3)
- mst_findadjacent(3)
- mst_groupsort(3)
- ms_readleapsecondfile(3)
- ms_gswap2a(3)
- mst_srcname(3)
- mst_convertsamples(3)
- msr_nomsamprate(3)
- msr_free_blktchain(3)
- mstl_printtracelist(3)
- ms_splitsrcname(3)
- ms_doy2md(3)
- ms_time2hptime(3)
- msr_host_latency(3)
- ms_readmsr(3)
- mst_printsynclist(3)
- mst_init(3)
- msr_srcname(3)
- mst_addmsrtogroup(3)
- ms_find_reclen(3)
apt-get install libmseed-doc
Manual
| MS_READLEAPSECONDS(3) | Library Functions Manual | MS_READLEAPSECONDS(3) |
NAME
ms_readleapseconds - Read a leap second file into a global buffer
SYNOPSIS
#include <libmseed.h> int ms_readleapseconds ( char *envvarname ); int ms_readleapsecondfile ( char *filename );
DESCRIPTION
These functions read a leap seconds file and store a list of leap seconds in an internal, global list. The leap seconds are used to determine the proper end time of a record (and consquently a trace). The use of this facility causes the leap second indication in the fixed section data header to be ignored.
The ms_readleapseconds function takes and environment variable name that is expected to contain the name of a leap seconds file. The ms_readleapsecondfile function takes the name of a leap second file.
LEAP SECOND LIST FILE
The leap second list file is expected to contain a list of leap second times and TAI-UTC difference values. The first column should be time stamps as seconds since the NTP epoch (Jan. 1 1900). The second column should be an integer number of seconds that specify the difference between TAI and UTC.
Usually the most recent version of this file is available here: https://www.ietf.org/timezones/data/leap-seconds.list
RETURN VALUES
ms_readleapseconds returns the number of leap seconds read on success, -1 on file read errors and -2 when the environment variable is not set.
ms_readleapsecondfile returns the number leap seconds read on success and -1 on errors.
AUTHOR
Chad Trabant IRIS Data Management Center
| 2016/10/01 | Libmseed API |