IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 15, 2014, 4:38:27 PM (12 years ago)
Author:
heather
Message:

forgot when I put these changes in, but want to check them in now

File:
1 edited

Legend:

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

    r36201 r36447  
    6565        if not self.correctDvo:
    6666            print "*******************************************************************************"
    67             self.logger.warning("switching to a new dvo: " + self.skychunk.dvoLocation)
     67            self.logger.warning("switching to a new dvo: '" + self.skychunk.dvoLocation + "'")
    6868            # response = raw_input("(y/n) ")
    6969            # if response == "y":
     
    669669            cmd += " -time-start " + time_start
    670670            cmd += " -time-end " + time_end
    671    
     671
     672        useP2 = 0   
     673        useST = 0
     674       
     675        for batchType in self.skychunk.batchTypes:
     676            self.logger.infoPair("batchType", batchType)
     677            if batchType == "ST":
     678                useST = 1
     679            if batchType == "P2":
     680                useP2 = 1
     681
     682        if (useP2 ==0 and useST ==1):
     683            #grab only stacks
     684            cmd += " -photcode-start 11000 -photcode-end 11500"
     685
     686        if (useP2 ==1 and useST==0):
     687            #grabd only P2s   
     688            cmd += " -photcode-start 10000 -photcode-end 10577"
     689
     690
    672691        self.logger.infoPair("Running dvopsps", cmd)
    673692        p = Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE)
Note: See TracChangeset for help on using the changeset viewer.