Example #1
0
    def mjd_to_lst(self, mjd):
        """Given an MJD convert it to LST at the observing site.

            Input:
                mjd: The MJD to convert.

            Output:
                lst: The corresponding LST (in hours)
        """
        gst = utils.mjd_to_gst(mjd)
        lst = self.gst_to_lst(gst)
        lst %= 24
        return lst
Example #2
0
    def lstnow(self):
        """Return the site's current LST.

            Inputs:
                None
    
            Output:
                LST: The local sidereal time for the observer (in hours).
        """
        mjd = utils.mjdnow()
        gst = utils.mjd_to_gst(mjd)
        lon_hours = self.lon/15.0
        lst = gst + lon_hours
        lst = lst % 24
        return lst