From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- sys/etc/gmtcnv.x | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 sys/etc/gmtcnv.x (limited to 'sys/etc/gmtcnv.x') diff --git a/sys/etc/gmtcnv.x b/sys/etc/gmtcnv.x new file mode 100644 index 00000000..7713c9c0 --- /dev/null +++ b/sys/etc/gmtcnv.x @@ -0,0 +1,35 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +# GMTCNV.X -- GMT (Greenwich mean time) to LST (local standard time, or clock +# time) conversions. +# +# gmt = lsttogmt (lst) # lst/gmt are in seconds +# lst = gmttolst (gmt) # lst/gmt are in seconds + + + +# GMTTOLST -- Convert a long integer value in GMT seconds to LST seconds. + +long procedure gmttolst (gmt) + +long gmt # GMT in seconds +int gmtco + +begin + call zgmtco (gmtco) + return (gmt - gmtco) +end + + + +# LSTTOGMT -- Convert a long integer value in LST seconds to GMT seconds. + +long procedure lsttogmt (lst) + +long lst # LST in seconds +int gmtco + +begin + call zgmtco (gmtco) + return (lst + gmtco) +end -- cgit