Changeset 36622
- Timestamp:
- Mar 31, 2014, 11:50:56 AM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140226
- Files:
-
- 21 edited
- 11 copied
-
. (modified) (1 prop)
-
Ohana/src/libohana/src (modified) (1 prop)
-
ippScripts/scripts/ipp_apply_burntool_single.pl (modified) (1 prop)
-
ippScripts/scripts/publish_file.pl (modified) (1 prop)
-
ippScripts/scripts/sc_prepare_chip.pl (copied) (copied from trunk/ippScripts/scripts/sc_prepare_chip.pl )
-
ippScripts/scripts/sc_remote_exec.pl (copied) (copied from trunk/ippScripts/scripts/sc_remote_exec.pl )
-
ippScripts/scripts/sc_validate_files.pl (copied) (copied from trunk/ippScripts/scripts/sc_validate_files.pl )
-
ippScripts/scripts/sc_validate_processing.pl (copied) (copied from trunk/ippScripts/scripts/sc_validate_processing.pl )
-
ippToPsps/jython/cleanup.py (modified) (2 diffs)
-
ippToPsps/jython/dxlayer.py (modified) (4 diffs)
-
ippToPsps/jython/odm.py (modified) (2 diffs)
-
ippToPsps/perl/deleteFromDXLayer.pl (modified) (1 diff)
-
ippToPsps/perl/deleteFromDXLayer2.pl (modified) (1 diff)
-
ippTools/src/difftool.c (modified) (2 diffs)
-
ippconfig/recipes/filerules-split.mdc (modified) (2 diffs)
-
ippconfig/recipes/ppSub.config (modified) (1 prop)
-
ippconfig/recipes/reductionClasses.mdc (modified) (1 prop)
-
ppBackground/src/Makefile.am (modified) (3 diffs)
-
ppBackground/src/ppBackground.c (modified) (1 diff)
-
ppBackground/src/ppBackgroundStack.c (copied) (copied from trunk/ppBackground/src/ppBackgroundStack.c )
-
ppBackground/src/ppBackgroundStack.h (copied) (copied from trunk/ppBackground/src/ppBackgroundStack.h )
-
ppBackground/src/ppBackgroundStackArguments.c (copied) (copied from trunk/ppBackground/src/ppBackgroundStackArguments.c )
-
ppBackground/src/ppBackgroundStackCamera.c (copied) (copied from trunk/ppBackground/src/ppBackgroundStackCamera.c )
-
ppBackground/src/ppBackgroundStackData.c (copied) (copied from trunk/ppBackground/src/ppBackgroundStackData.c )
-
ppBackground/src/ppBackgroundStackLoop.c (copied) (copied from trunk/ppBackground/src/ppBackgroundStackLoop.c )
-
ppBackground/src/ppBackgroundStackMath.c (copied) (copied from trunk/ppBackground/src/ppBackgroundStackMath.c )
-
ppStack/src/ppStackReadout.c (modified) (2 diffs)
-
ppSub/src/ppSubMatchPSFs.c (modified) (1 diff)
-
psphot/src (modified) (1 prop)
-
psphot/src/psphotStackImageLoop.c (modified) (1 prop)
-
pstamp/scripts/pstamp_insert_request.pl (modified) (3 diffs)
-
pstamp/scripts/pstampparse.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140226
- Property svn:mergeinfo changed
/trunk (added) merged: 36572,36579-36583,36594-36596,36603,36605,36610,36614-36615
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20140226/Ohana/src/libohana/src
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20140226/ippScripts/scripts/ipp_apply_burntool_single.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20140226/ippScripts/scripts/publish_file.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20140226/ippToPsps/jython/cleanup.py
r35311 r36622 87 87 self.logger.infoPair("To delete from DXLayer", "%d" % len(deleteFromDxLayerIDs)) 88 88 self.logger.infoPair("To delete from local disk", "%d" % len(deleteFromLocalIDs)) 89 89 # self.logger.infoPair("Did I get here", "yes?") 90 90 # delete stuff from local disk 91 91 if self.skychunk.deleteLocal: … … 110 110 111 111 self.reportResults("datastore", deleteFromDatastoreIDs, count) 112 112 # self.logger.infoPair("here","here") 113 113 # remove stuff from DXLayer 114 114 if self.skychunk.deleteDxLayer: 115 # self.logger.infoPair ("skip remove from dxlayer", "HAF") 115 116 count = 0 116 117 for id in deleteFromDxLayerIDs: 117 118 self.logger.infoPair("delete from dxlayer", id); 118 119 if self.dxlayer.deleteBatch(id): 120 self.logger.infoPair("delete dxlayer",id); 119 121 self.ippToPspsDb.updateDeletedDxlayer(id, 1) 120 122 count = count + 1 -
branches/eam_branches/ipp-20140226/ippToPsps/jython/dxlayer.py
r36098 r36622 37 37 38 38 if p.returncode != 0: 39 self.logger. debugPair("DXLayer webservice", "failed")39 self.logger.infoPair("DXLayer webservice", "failed") 40 40 return 0 41 41 else: 42 self.logger. debugPair("DXLayer webservice", "successful")42 self.logger.infoPair("DXLayer webservice", "successful") 43 43 44 44 ret = self.decodeDXLayerResponse(tempFile.name) … … 48 48 49 49 if ret: self.logger.infoPair("Deleted batch from DXLayer 1", batch) 50 else: self.logger. errorPair("Unable to delete batch from DXLayer 1" , batch)50 else: self.logger.infoPair("Unable to delete batch from DXLayer 1" , batch) 51 51 52 52 … … 61 61 62 62 if p.returncode != 0: 63 self.logger. debugPair("DXLayer webservice", "failed")63 self.logger.infoPair("DXLayer webservice", "failed") 64 64 return 0 65 65 else: … … 72 72 73 73 if ret: self.logger.infoPair("Deleted batch from DXLayer 2", batch) 74 else: self.logger. errorPair("Unable to delete batch from DXLayer 2" , batch)74 else: self.logger.infoPair("Unable to delete batch from DXLayer 2" , batch) 75 75 76 76 -
branches/eam_branches/ipp-20140226/ippToPsps/jython/odm.py
r35217 r36622 78 78 DETAILS = doc.find("{%s}OdmBatchState/{%s}Details" % (NAMESPACE, NAMESPACE)).text 79 79 results['DETAILS'] = DETAILS 80 elif re.search("processing", STATE): 80 elif re.search("processing", STATE): 81 81 loadedToODM = 1 82 82 if re.search("MergeWorthy", MESSAGE): … … 87 87 mergeWorthy = 1 88 88 merged = 1 89 # if re.search("released", STATE): 90 # loadedToODM = 1 91 # mergeWorthy = 1 92 # merged = 1 93 # if re.search("released", MESSAGE): 94 # loadedToODM = 1 95 # mergeWorthy = 1 96 # merged = 1 89 97 except: 90 98 pass -
branches/eam_branches/ipp-20140226/ippToPsps/perl/deleteFromDXLayer.pl
r36190 r36622 18 18 ); 19 19 20 my $dxWebServiceUrl = "http://lsb01.psps.ifa.hawaii.edu/cgi-bin/dxlayer/dxwebservice.cgi"; 20 #my $dxWebServiceUrl = "http://lsb01.psps.ifa.hawaii.edu/cgi-bin/dxlayer/dxwebservice.cgi"; 21 22 #my $dxWebServiceUrl = "http://web02.psps.ifa.hawaii.edu/lsb01/cgi-bin/dxwebservice.cgi"; 23 my $dxWebServiceUrl = "http://web02.psps.ifa.hawaii.edu/lsb01/cgi-bin/dxlayer/dxwebservice.cgi"; 24 25 21 26 #my $dxWebServiceUrl2 = "http://lsb02.psps.ifa.hawaii.edu/cgi-bin/dxlayer/dxwebservice.cgi"; 22 27 -
branches/eam_branches/ipp-20140226/ippToPsps/perl/deleteFromDXLayer2.pl
r36191 r36622 18 18 ); 19 19 20 my $dxWebServiceUrl = "http://lsb02.psps.ifa.hawaii.edu/cgi-bin/dxlayer/dxwebservice.cgi"; 20 #my $dxWebServiceUrl = "http://lsb02.psps.ifa.hawaii.edu/cgi-bin/dxlayer/dxwebservice.cgi"; 21 22 #my $dxWebServiceUrl = "http://web02.psps.ifa.hawaii.edu/lsb02/cgi-bin/dxwebservice.cgi"; 23 my $dxWebServiceUrl = "http://web02.psps.ifa.hawaii.edu/lsb02/cgi-bin/dxlayer/dxwebservice.cgi"; 21 24 #my $dxWebServiceUrl2 = "http://lsb02.psps.ifa.hawaii.edu/cgi-bin/dxlayer/dxwebservice.cgi"; 22 25 -
branches/eam_branches/ipp-20140226/ippTools/src/difftool.c
r36019 r36622 1349 1349 if (!mdok) { 1350 1350 psError(PXTOOLS_ERR_PROG, false, "exp_id not found"); 1351 if (!psDBRollback(config->dbh)) { 1352 psError(PS_ERR_UNKNOWN, false, "database error"); 1353 } 1354 return false; 1355 } 1356 psString warpDataGroup = psMetadataLookupStr(&mdok, row, "warpDataGroup"); 1357 if (!mdok) { 1358 psError(PXTOOLS_ERR_PROG, false, "warpDataGroup not found"); 1351 1359 if (!psDBRollback(config->dbh)) { 1352 1360 psError(PS_ERR_UNKNOWN, false, "database error"); … … 1391 1399 workdir, 1392 1400 label, 1393 data_group ? data_group : label,1401 data_group ? data_group : warpDataGroup, 1394 1402 dist_group, 1395 1403 reduction, -
branches/eam_branches/ipp-20140226/ippconfig/recipes/filerules-split.mdc
r36441 r36622 303 303 SKYCELL.TEMPLATE OUTPUT {OUTPUT}.skycell SKYCELL NONE FPA TRUE NONE 304 304 305 PPSUB.OUTPUT OUTPUT {OUTPUT}.fits IMAGE COMP_SUBFPA TRUE NONE305 PPSUB.OUTPUT OUTPUT {OUTPUT}.fits IMAGE NONE FPA TRUE NONE 306 306 PPSUB.OUTPUT.MASK OUTPUT {OUTPUT}.mask.fits MASK COMP_MASK FPA TRUE NONE 307 307 PPSUB.OUTPUT.VARIANCE OUTPUT {OUTPUT}.wt.fits VARIANCE COMP_WT FPA TRUE NONE … … 311 311 PPSUB.OUTPUT.JPEG2 OUTPUT {OUTPUT}.b2.jpg JPEG NONE FPA TRUE NONE 312 312 PPSUB.OUTPUT.RESID.JPEG OUTPUT {OUTPUT}.res.jpg JPEG NONE FPA TRUE NONE 313 PPSUB.INVERSE OUTPUT {OUTPUT}.inv.fits IMAGE COMP_SUBFPA TRUE NONE313 PPSUB.INVERSE OUTPUT {OUTPUT}.inv.fits IMAGE NONE FPA TRUE NONE 314 314 PPSUB.INVERSE.MASK OUTPUT {OUTPUT}.inv.mask.fits MASK COMP_MASK FPA TRUE NONE 315 315 PPSUB.INVERSE.VARIANCE OUTPUT {OUTPUT}.inv.wt.fits VARIANCE COMP_WT FPA TRUE NONE -
branches/eam_branches/ipp-20140226/ippconfig/recipes/ppSub.config
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20140226/ippconfig/recipes/reductionClasses.mdc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20140226/ppBackground/src/Makefile.am
r28281 r36622 1 bin_PROGRAMS = ppBackground 1 bin_PROGRAMS = ppBackground ppBackgroundStack 2 2 3 3 if HAVE_SVNVERSION … … 28 28 ppBackground_LDFLAGS = $(PSLIB_LIBS) $(PSMODULE_LIBS) $(PPSTATS_LIBS) $(PSPHOT_LIBS) $(PPBACKGROUND_LIBS) 29 29 30 ppBackgroundStack_CPPFLAGS = $(ppBackground_CPPFLAGS) 31 ppBackgroundStack_LDFLAGS = $(ppBackground_LDFLAGS) 32 30 33 ppBackground_SOURCES = \ 31 34 ppBackground.c \ … … 38 41 ppBackgroundErrorCodes.c \ 39 42 ppBackgroundExit.c 43 44 ppBackgroundStack_SOURCES = \ 45 ppBackgroundStack.c \ 46 ppBackgroundStackArguments.c \ 47 ppBackgroundStackCamera.c \ 48 ppBackgroundStackData.c \ 49 ppBackgroundStackLoop.c \ 50 ppBackgroundStackMath.c \ 51 ppBackgroundVersion.c \ 52 ppBackgroundErrorCodes.c \ 53 ppBackgroundExit.c 54 40 55 41 56 noinst_HEADERS = \ -
branches/eam_branches/ipp-20140226/ppBackground/src/ppBackground.c
r28280 r36622 18 18 ppBackgroundErrorRegister(); 19 19 20 printf("Initializing data\n"); 20 21 ppBackgroundData *data = ppBackgroundDataInit(&argc, argv); 21 22 if (!data) { 22 23 goto DIE; 23 24 } 24 25 printf("Reading Arguments\n"); 25 26 if (!ppBackgroundArguments(data, argc, argv)) { 26 27 goto DIE; 27 28 } 28 29 printf("Setting up Camera\n"); 29 30 if (!ppBackgroundCamera(data)) { 30 31 goto DIE; 31 32 } 32 33 34 printf("Looping over data!\n"); 33 35 if (!ppBackgroundLoop(data)) { 34 36 goto DIE; -
branches/eam_branches/ipp-20140226/ppStack/src/ppStackReadout.c
r34800 r36622 184 184 psFree(stack); 185 185 186 psLogMsg("ppStack", PS_LOG_INFO, "initial stack image sectionNum %d", sectionNum); 187 186 188 sectionNum++; 187 189 … … 293 295 psFree(stack); 294 296 297 psLogMsg("ppStack", PS_LOG_INFO, "final stack image sectionNum %d", sectionNum); 298 295 299 sectionNum++; 296 300 -
branches/eam_branches/ipp-20140226/ppSub/src/ppSubMatchPSFs.c
r36441 r36622 156 156 psLogMsg("ppSub", PS_LOG_INFO, "Input FWHM: %f\nReference FWHM: %f\n", inFWHM, refFWHM); 157 157 if (!isfinite(inFWHM) || !isfinite(refFWHM)) { 158 #ifdef SET_QUALITY_INSTEAD_OF_ERROR 158 159 psErrorStackPrint(stderr, "Cannot determine FHWM for images, giving up."); 159 160 int error = psErrorCodeLast(); // Error code 160 161 ppSubDataQuality(data, error, PPSUB_FILES_ALL); 161 162 return true; 163 #else 164 psError(PPSUB_ERR_DATA, false, "Cannot determine FHWM for images, giving up."); 165 return false; 166 #endif 162 167 } 163 168 -
branches/eam_branches/ipp-20140226/psphot/src
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20140226/psphot/src/psphotStackImageLoop.c
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20140226/pstamp/scripts/pstamp_insert_request.pl
r35487 r36622 45 45 my $pstamptool = can_run('pstamptool') or (warn "Can't find pstamptool" and $missing_tools = 1); 46 46 my $fields = can_run('fields') or (warn "Can't find fields" and $missing_tools = 1); 47 my $fhead = can_run('fhead') or (warn "Can't find fhead" and $missing_tools = 1); 47 48 48 49 if ($missing_tools) { … … 56 57 # Note that if it's a pstamp request then REQ_NAME should be defined. 57 58 # if it's a detectability query it will not have a REQ_NAME but will have a QUERY_ID 58 my $command = "echo $tmp_req_file | $fields -x 0 EXTNAME EXTVER REQ_NAME QUERY_ID"; 59 # my $command = "echo $tmp_req_file | $fields -x 0 EXTNAME EXTVER REQ_NAME QUERY_ID"; 60 my $command = "$fhead -x 0 $tmp_req_file"; 59 61 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 60 62 run(command => $command, verbose => $verbose); 61 if (0) {62 # stoopid fields doesn't set exit status to zero when it works63 63 unless ($success) { 64 64 print STDERR @$stderr_buf; 65 65 exit $error_code >> 8; 66 66 } 67 }68 67 my $output = join "", @$stdout_buf; 69 (undef, $extname, $extver, $req_name) = split " ", $output; 68 69 70 my $makehash = 0; 71 my %hash; 72 foreach my $line (split "\n", $output) { 73 chomp $line; 74 # split lines inte left and right using equals sign. left is the keyword 75 my ($key, $right) = split "=", $line; 76 # skip if there was no '=' 77 next if !$right; 78 79 $key =~ s/ //g; 80 81 # separate value from comment 82 my ($value, $comment) = split "/", $right; 83 # remove ' and space characters from key and value 84 $value =~ s/'//g; 85 $value =~ s/ //g; 86 87 # print "$key $value\n"; 88 89 # extract the values that we are looking for 90 $extname = $value if ($key eq "EXTNAME"); 91 $extver = $value if ($key eq "EXTVER"); 92 $req_name = $value if ($key eq "REQ_NAME"); 93 $req_name = $value if ($key eq "QUERY_ID"); 94 95 # optionally build hash. Duplicate keys get the last value seen 96 if ($makehash) { 97 $hash{$key} = $value; 98 } 99 } 100 101 # (undef, $extname, $extver, $req_name) = split " ", $output; 102 70 103 if (!$extname or ! (($extname eq "PS1_PS_REQUEST") or ($extname eq "MOPS_DETECTABILITY_QUERY"))) { 71 104 print STDERR "invalid request file\n"; 105 print "invalid request file\n"; 72 106 exit $PS_EXIT_DATA_ERROR; 73 107 } 108 74 109 if (!defined $req_name) { 75 110 print STDERR "invalid request file no REQ_NAME or QUERY_ID\n"; 111 print "invalid request file no REQ_NAME or QUERY_ID\n"; 112 exit $PS_EXIT_DATA_ERROR; 113 } 114 if (!defined $extver) { 115 print STDERR "invalid request file no EXTVER found\n"; 116 print "invalid request file no EXTVER found\n"; 76 117 exit $PS_EXIT_DATA_ERROR; 77 118 } … … 119 160 120 161 exit 0; 162 121 163 # Ask the database for the next web request number 122 164 sub get_webreq_num -
branches/eam_branches/ipp-20140226/pstamp/scripts/pstampparse.pl
r36165 r36622 243 243 my $watch_for_big_requests = (!($label =~ /BIG/) and ($label =~ /PSI/ or $label =~ /WEB/)); 244 244 245 my $big_limit = 100; # XXX: this should be in a configuration file somewhere not hard coded 245 # XXX: these should be in a configuration file somewhere not hard coded 246 my $big_limit = 100; 247 my $job_big_limit = 400; 246 248 247 249 if ($watch_for_big_requests and $nRows > $big_limit) { … … 267 269 268 270 # see whether number of jobs limit for high priority request was exceeded 269 if ($watch_for_big_requests and $num_jobs > $ big_limit) {271 if ($watch_for_big_requests and $num_jobs > $job_big_limit) { 270 272 $label = change_to_lower_priority_label($label); 271 273 $watch_for_big_requests = 0; … … 311 313 my $rownum = $row->{ROWNUM}; 312 314 if (!validID($rownum)) { 315 $rownum = 'NULL' if !defined $rownum; 313 316 print STDERR "$rownum is not a valid ROWNUM\n"; 314 317 insertFakeJobForRow($row, 1, $PSTAMP_INVALID_REQUEST); … … 316 319 } 317 320 my $job_type = $row->{JOB_TYPE}; 318 if (($job_type ne "stamp") and ($job_type ne "get_image")) { 321 if (!defined $job_type || (($job_type ne "stamp") and ($job_type ne "get_image"))) { 322 $job_type = 'NULL' if !defined $job_type; 319 323 print STDERR "$job_type is not a valid JOB_TYPE\n"; 320 324 insertFakeJobForRow($row, 1, $PSTAMP_INVALID_REQUEST); … … 325 329 if (($req_type ne "byid") and ($req_type ne "bycoord") and ($req_type ne "byexp") and 326 330 ($req_type ne "byskycell") and ($req_type ne "bydiff")) { 331 $req_type = 'NULL' if !defined $req_type; 327 332 print STDERR "$req_type is not a valid REQ_TYPE\n"; 328 333 insertFakeJobForRow($row, 1, $PSTAMP_INVALID_REQUEST);
Note:
See TracChangeset
for help on using the changeset viewer.
