- Timestamp:
- Jul 17, 2014, 12:30:45 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-ops-20130712/ippToPsps
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
jython/dvo.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-ops-20130712/ippToPsps
- Property svn:mergeinfo deleted
-
branches/eam_branches/ipp-ops-20130712/ippToPsps/jython/dvo.py
r35780 r37066 65 65 if not self.correctDvo: 66 66 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 + "'") 68 68 # response = raw_input("(y/n) ") 69 69 # if response == "y": … … 518 518 self.logger.debugPair("Reading IPP table", table.name) 519 519 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 521 523 # IPP FITS files are littered with infinity values. Remove them 522 524 self.logger.debugPair("Removing", "infinity values") … … 628 630 maxDEC = boxDim['maxDEC'] + dD_border 629 631 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 630 645 # TODO path to DVO prog hardcoded temporarily 631 646 cmd = "dvopsps detections" … … 644 659 cmd += " -parallel" 645 660 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 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 646 691 self.logger.infoPair("Running dvopsps", cmd) 647 692 p = Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE)
Note:
See TracChangeset
for help on using the changeset viewer.
