Commit 6285580e authored by Zhang Xin's avatar Zhang Xin
Browse files

header value change with ccd json file:PSCAN1,PSCAN2,OSCAN1,OSCAN2

parent 7dadcef4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ class ChipOutput(object):
        self.hdr += additional_column_names

    def create_output_file(self):
        if self.pointing_type == 'WIDE' or self.pointing_type == 'DEEP':
        if self.pointing_type == 'WIDE' or self.pointing_type == 'DEEP' or self.pointing_type == 'CALF' or self.pointing_type == 'CALSP' or self.pointing_type == 'CALSS':
            self.cat = open(os.path.join(self.subdir, self.cat_name), "w")
            self.logger.info("Creating catalog file %s ...\n" %
                             (os.path.join(self.subdir, self.cat_name)))
+4 −0
Original line number Diff line number Diff line
@@ -556,6 +556,10 @@ def generateExtensionHeader(chip, xlen=9216, ylen=9232, ra=60, dec=-40, pa=-23.4
    h_ext['GAIN14'] = chip.gain_channel[13]
    h_ext['GAIN15'] = chip.gain_channel[14]
    h_ext['GAIN16'] = chip.gain_channel[15]
    h_ext['PSCAN1'] = chip.prescan_x
    h_ext['PSCAN2'] = chip.prescan_y
    h_ext['OSCAN1'] = chip.overscan_x
    h_ext['OSCAN2'] = chip.overscan_y
    h_ext['RON01'] = readout
    h_ext['RON02'] = readout
    h_ext['RON03'] = readout