# UAH LTG IDL Library

## IDL Routines from Phillip Bitzer and UAH Lightning Group

summary     class     fields     routine details     file attributes

# convert_tai93_to_unix.pro

AUTHOR: Veronica Franklin

NAME: CONVERT_TAI93_TO_UNIX

PURPOSE: The purpose of this procedure is to convert from TAI93_time (International Atomic Time 1993 - elapsed time in seconds since January 1, 1993) to Unix Time (number of seconds elapsed since January 1, 1970). TAI93_time is primarily used in conjuncture with LIS (Lightning Imaging Sensor) data.

DATE: 8/22/2011

CALLING SEQUENCE: RESULT = CONVERT_TAI93_TO_UNIX(TAI93_TIME)

INPUTS: TAI93_TIME - This can be a single value or array of values. Note that the inupt must be a double precision point or long value.

KEYWORDS: NONE

OUTPUTS: UNIX_TIME - An array of corresponding Unix Time values

DEPENDENCIES: NONE

FINAL NOTE: The last accounted for leap second is June 30, 2011. Leap seconds can only be added in on June 30th and December 31st.

FUTURE MODIFICATIONS: This procedure assumes that times in the time array are reasonably close in time. Therefore, it finds the minimum time in the array to use for indexing how many leap seconds to add. This will not work in circumstances where the times may span across a date where a leap second was added. As of now, the program terminates if the number of added leap seconds varies across the array.

MODIFICATION HISTORY: 7/2/2012 - Accounted for June 30, 2012 Leap Second Routine can handle arrays that span a leap second. Also led to a simplification of the code. 20130516 PMB

## top convert_tai93_to_unix

result = convert_tai93_to_unix(tai93_time)

tai93_time

## File attributes

 Modification date: Tue Oct 17 17:31:04 2017 Lines: 12