Ejemplo n.º 1
0
def parse_taustartts(table):
    """
    Extract image time from CASA table header.

    Arguments:
      - MAIN table of CASA image.

    Returns:
      - Time of image start as a instance of ``datetime.datetime``
    """
    obsdate = table.getkeyword('coords')['obsdate']['m0']['value']
    return mjd2datetime(obsdate)
Ejemplo n.º 2
0
    def parse_taustartts(self):
        """
        Extract integration start-time from CASA table header.

        This applies to some CASA images (typically those created from uvFITS
        files) but not all, and so should be called for each sub-class.

        Arguments:
            table: MAIN table of CASA image.

        Returns:
            Time of image start as a instance of ``datetime.datetime``
        """
        obsdate = self.table.getkeyword('coords')['obsdate']['m0']['value']
        return mjd2datetime(obsdate)
Ejemplo n.º 3
0
    def parse_taustartts(self):
        """
        Extract integration start-time from CASA table header.

        This applies to some CASA images (typically those created from uvFITS
        files) but not all, and so should be called for each sub-class.

        Arguments:
            table: MAIN table of CASA image.

        Returns:
            Time of image start as a instance of ``datetime.datetime``
        """
        obsdate = self.table.getkeyword('coords')['obsdate']['m0']['value']
        return mjd2datetime(obsdate)
Ejemplo n.º 4
0
def parse_taustartts(table):
    """ extract observation time from CASA table header
    """
    obsdate = table.getkeyword('coords')['obsdate']['m0']['value']
    return mjd2datetime(obsdate)