;docformat='rst' ;+ ; Get the next to the last time in GPS microseconds from the TLE table ; ; :Author: ; Chris Jeppesen, Bill Barrett ; ; :Keywords: ; verbose : in, optional, type=boolean ; Generate a substantial amount of log information. ; ; :Returns: ; The next to the last time in GPS microseconds from the TLE table ; ; :Examples: ; get_tle_end() ;- function get_tle_end, verbose=verbose ; Get the contents of the tle file result = load_tle() ; Find the next to the last element (the results are ; always sorted by time) tle_end = result[n_elements(result) - 2] ; Convert the Julian date of the next to the last element ; to GPS microseconds t_stop_tle=jd2usec(tle_end.jdepoch) if keyword_set(verbose) then print, $ get_routine_name() + " End of the TLEs is at "+ usec2vms(t_stop_tle) return,t_stop_tle end