IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 9, 2013, 4:53:45 PM (13 years ago)
Author:
heather
Message:

added feature of time range for P2/ST - doesnt work for ST yet, queue those seperately

File:
1 edited

Legend:

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

    r36190 r36201  
    630630        maxDEC = boxDim['maxDEC'] + dD_border
    631631
     632        #find out if we use a time_range or not
     633        valid_trange_start = 0
     634        valid_trange_end = 0
     635        use_trange = 0
     636        if (self.skychunk.trange_start != '0000-00-00 00:00:00'):
     637            valid_trange_start = 1
     638        if (self.skychunk.trange_end != '0000-00-00 00:00:00'):
     639            valid_trange_end = 1             
     640
     641        if (valid_trange_start and valid_trange_end):
     642            use_trange = 1
     643
     644
    632645        # TODO path to DVO prog hardcoded temporarily
    633646        cmd = "dvopsps detections"
     
    646659            cmd += " -parallel"
    647660
     661        if use_trange:
     662            # make tranges valid for dvopsps
     663            time_start1 = self.skychunk.trange_start
     664            time_end1 = self.skychunk.trange_end
     665            time_start=re.sub('\s+',',',time_start1)
     666            time_end=re.sub('\s+',',',time_end1)
     667           
     668            # make command
     669            cmd += " -time-start " + time_start
     670            cmd += " -time-end " + time_end
     671   
    648672        self.logger.infoPair("Running dvopsps", cmd)
    649673        p = Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE)
Note: See TracChangeset for help on using the changeset viewer.