IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 28, 2013, 4:40:06 PM (13 years ago)
Author:
eugene
Message:

merge changes from trunk (dvopsps photcode & time ranges)

Location:
branches/eam_branches/ipp-20130904/ippToPsps
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130904/ippToPsps

  • branches/eam_branches/ipp-20130904/ippToPsps/jython/dvo.py

    r35780 r36252  
    518518          self.logger.debugPair("Reading IPP table", table.name)
    519519          table = stilts.tpipe(table, cmd='explodeall')
    520      
     520          #adds an index to all the tables
     521       #   table = stilts.tpipe(table, cmd='addcol table_index $0')
     522
    521523          # IPP FITS files are littered with infinity values. Remove them
    522524          self.logger.debugPair("Removing", "infinity values")
     
    628630        maxDEC = boxDim['maxDEC'] + dD_border
    629631
     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
    630645        # TODO path to DVO prog hardcoded temporarily
    631646        cmd = "dvopsps detections"
     
    644659            cmd += " -parallel"
    645660
     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   
    646672        self.logger.infoPair("Running dvopsps", cmd)
    647673        p = Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE)
Note: See TracChangeset for help on using the changeset viewer.