IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 15, 2011, 4:54:57 PM (15 years ago)
Author:
rhenders
Message:

changes to the way survey IDs and dvo databases are handled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/batch.py

    r31299 r31305  
    7373   
    7474            # get dvo info from config
    75             dvoName = doc.find(survey+"dvo/name").text
    76             self.dvoLocation = doc.find(survey+"dvo/location").text
     75            dvoName = doc.find("dvo_"+survey+"/name").text
     76            self.dvoLocation = doc.find("dvo_"+survey+"/location").text
    7777        else:
    7878            dvoName = ""
     
    105105            file = open(self.inputFitsPath)
    106106            self.header = self.parseFitsHeader(file)
     107            self.logger.info("Read primary and found " + str(len(self.header)) + " header cards")
    107108            # TODO close file?
    108109
    109110        # create DVO table
    110111        self.createDvoTable()
    111         header = self.findAndReadFITSHeader("XY86.hdr")
    112112
    113113    '''
     
    251251            return "NA"
    252252
    253         if self.survey == "ThreePi": return "3PI"
     253        if self.survey == "3PI": return "3PI"
    254254        elif self.survey == "MD04": return "MD4"
    255255        else:
Note: See TracChangeset for help on using the changeset viewer.