Changeset 36928
- Timestamp:
- Jun 20, 2014, 3:53:40 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140610
- Files:
-
- 29 edited
-
. (modified) (1 prop)
-
Ohana/src/getstar (modified) (1 prop)
-
dbconfig/cam.md (modified) (1 diff)
-
dbconfig/changes.txt (modified) (1 diff)
-
ippScripts/scripts/queuestaticsky.pl (modified) (1 prop)
-
ippScripts/scripts/sc_prepare_stack.pl (modified) (1 diff)
-
ippScripts/scripts/sc_transfer_tool.pl (modified) (3 diffs)
-
ippTasks/pstamp.pro (modified) (4 diffs)
-
ippTools/share/camtool_find_processedexp.sql (modified) (1 diff)
-
ippTools/share/pxadmin_create_tables.sql (modified) (1 diff)
-
ippTools/share/remotetool_definebyquery_warp.sql (modified) (1 diff)
-
ippTools/src/camtool.c (modified) (2 diffs)
-
ippTools/src/camtoolConfig.c (modified) (1 diff)
-
ippTools/src/remotetool.c (modified) (5 diffs)
-
ippconfig (modified) (1 prop)
-
ippconfig/gpc1/psastro.config (modified) (1 diff)
-
ippconfig/recipes/ppStats.config (modified) (1 diff)
-
ippconfig/recipes/ppStatsFromMetadata.config (modified) (1 diff)
-
ippconfig/recipes/ppSub.config (modified) (1 prop)
-
ippconfig/recipes/reductionClasses.mdc (modified) (1 prop)
-
ppStack/src/ppStackReadout.c (modified) (3 diffs)
-
ppStats/src/ppStatsFromMetadataStats.c (modified) (3 diffs)
-
psModules (modified) (1 prop)
-
psastro/src/psastroChipAstrom.c (modified) (1 diff)
-
psastro/src/psastroOneChipFit.c (modified) (1 diff)
-
psphot/test/tap_psphot_galaxies.pro (modified) (1 diff)
-
pstamp/scripts/pstamp_checkdependent.pl (modified) (1 prop)
-
pstamp/scripts/pstamp_finish.pl (modified) (1 prop)
-
pstamp/scripts/pstampparse.pl (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140610
- Property svn:mergeinfo changed
/trunk merged: 36886,36888,36890,36892,36894,36896-36897,36913-36914,36924
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20140610/Ohana/src/getstar
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20140610/dbconfig/cam.md
r36529 r36928 119 119 quality S16 0 120 120 background_model S16 0 121 astrom_chips S64 0 121 122 END 122 123 -
branches/eam_branches/ipp-20140610/dbconfig/changes.txt
r36529 r36928 2521 2521 UPDATE dbversion set schema_version = '1.1.79', updated= CURRENT_TIMESTAMP(); 2522 2522 2523 2523 ALTER TABLE camProcessedExp ADD COLUMN astrom_chips BIGINT; 2524 UPDATE dbversion set schema_version = '1.1.79', updated= CURRENT_TIMESTAMP(); 2525 2526 -
branches/eam_branches/ipp-20140610/ippScripts/scripts/queuestaticsky.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20140610/ippScripts/scripts/sc_prepare_stack.pl
r36884 r36928 182 182 $ppstack_command .= " -R PPSTACK.UNCONV.VARIANCE FITS.TYPE COMP_STACK"; 183 183 $ppstack_command .= " -tracedest ${remote_outroot}.trace -log ${remote_outroot}.log "; 184 $ppstack_command .= " -threads 10";184 $ppstack_command .= " -threads 4 "; 185 185 $ppstack_command .= " -dumpconfig ${remote_outroot}.mdc "; 186 186 $ppstack_command .= " -stack_id $stack_id -skycell_id $skycell_id -tess_id $tess_id "; -
branches/eam_branches/ipp-20140610/ippScripts/scripts/sc_transfer_tool.pl
r36844 r36928 51 51 while(<I>) { 52 52 chomp; 53 $i = int(rand($#filehandles)); 54 53 55 my $fline; 54 56 if ($fetch) { … … 57 59 if (($fetch)&&(!(-e $_))) { # We are fetching, and do not already have this file. 58 60 print { $filehandles[$i] } $fline; 59 $i++;61 # $i++; 60 62 } 61 63 elsif (!($fetch)) { # We are pushing 62 64 # if (-e "${local_tmp}/$_") { 63 65 print { $filehandles[$i] } "${local_tmp}/$_" . "\n"; 64 $i++;66 # $i++; 65 67 # } 66 68 # else { # But somehow couldn't find the file we expected … … 69 71 # } 70 72 } 71 if ($i >= $threads) { $i = 0; }73 # if ($i >= $threads) { $i = 0; } 72 74 } 73 75 close(I); -
branches/eam_branches/ipp-20140610/ippTasks/pstamp.pro
r36647 r36928 175 175 macro pstamp.find.off 176 176 task pstamp.request.find 177 active false 178 end 179 end 180 macro pstamp.parse.on 181 task pstamp.request.load 182 active true 183 end 184 task pstamp.request.run 185 active true 186 end 187 end 188 macro pstamp.parse.off 189 task pstamp.request.load 190 active false 191 end 192 task pstamp.request.run 193 active false 194 end 195 end 196 macro pstamp.job.on 197 task pstamp.job.load 198 active true 199 end 200 task pstamp.job.run 201 active true 202 end 203 end 204 macro pstamp.job.off 205 task pstamp.job.load 206 active false 207 end 208 task pstamp.job.run 209 active false 210 end 211 end 212 macro pstamp.finish.on 213 task pstamp.finish.load 214 active true 215 end 216 task pstamp.finish.run 217 active true 218 end 219 end 220 macro pstamp.finish.off 221 task pstamp.finish.load 222 active false 223 end 224 task pstamp.finish.run 177 225 active false 178 226 end … … 469 517 add_poll_args run 470 518 add_poll_labels run 519 # limit query for finished requests to small number 520 # because we only run 4 at a time. Using the default queue 521 # depth fouls up the priority orer 522 # XXX: use a varaible 523 $run = $run -limit 8 471 524 command $run 472 525 end … … 499 552 periods -timeout 2400 500 553 host anyhost 554 npending 4 501 555 502 556 task.exec … … 951 1005 # overloading nfs 952 1006 953 npending 51007 npending 2 954 1008 955 1009 task.exec -
branches/eam_branches/ipp-20140610/ippTools/share/camtool_find_processedexp.sql
r33000 r36928 1 1 SELECT 2 2 camProcessedExp.*, 3 HEX(IFNULL(camProcessedExp.astrom_chips, 0)) AS good_astrom_chips, 3 4 camRun.workdir, 4 5 camRun.label, -
branches/eam_branches/ipp-20140610/ippTools/share/pxadmin_create_tables.sql
r36529 r36928 523 523 quality SMALLINT NOT NULL DEFAULT 0, 524 524 background_model SMALLINT, 525 astrom_chips BIGINT, 525 526 PRIMARY KEY(cam_id), 526 527 KEY(fault), -
branches/eam_branches/ipp-20140610/ippTools/share/remotetool_definebyquery_warp.sql
r36884 r36928 1 SELECT 2 warp_id AS stage_id 3 FROM warpRun 4 LEFT JOIN remoteComponent ON (remoteComponent.stage_id = warpRun.warp_id) 5 LEFT JOIN remoteRun ON ( 6 remoteComponent.remote_id = remoteRun.remote_id AND 7 remoteRun.label = warpRun.label 8 ) 9 WHERE 10 warpRun.state = 'new' AND 11 (remoteRun.stage = 'warp' OR remoteRun.state IS NULL) AND 12 remoteComponent.remote_id IS NULL 1 SELECT warp_id AS stage_id FROM ( 2 SELECT warp_id, count(warpSkyCellMap.skycell_id) AS N 3 FROM warpRun 4 LEFT JOIN warpSkyCellMap USING(warp_id) 5 LEFT JOIN remoteComponent ON (remoteComponent.stage_id = warpRun.warp_id) 6 LEFT JOIN remoteRun ON (remoteComponent.remote_id = remoteRun.remote_id 7 AND remoteRun.label = warpRun.label ) 8 WHERE warpRun.state = 'new' 9 AND (remoteRun.stage = 'warp' OR remoteRun.state IS NULL) 10 AND remoteComponent.remote_id IS NULL 11 -- where hook %s 12 GROUP BY warp_id 13 ) AS warpTry 14 WHERE N != 0 15 -
branches/eam_branches/ipp-20140610/ippTools/src/camtool.c
r36529 r36928 501 501 PXOPT_LOOKUP_S16(quality, config->args, "-quality", false, false); 502 502 PXOPT_LOOKUP_S16(background_model, config->args, "-background_model", false, false); 503 PXOPT_LOOKUP_S64(astrom_chips, config->args, "-astrom_chips", false, false); 504 503 505 504 506 PXOPT_LOOKUP_STR(ver_pslib, config->args, "-ver_pslib", false, false); … … 692 694 deteff_uq, 693 695 quality, 694 background_model 696 background_model, 697 astrom_chips 695 698 ); 696 699 -
branches/eam_branches/ipp-20140610/ippTools/src/camtoolConfig.c
r36529 r36928 205 205 psMetadataAddF32(addprocessedexpArgs, PS_LIST_TAIL, "-deteff_inst_uq", 0, "define deteff_uq", NAN); 206 206 psMetadataAddS16(addprocessedexpArgs, PS_LIST_TAIL, "-background_model", 0, "set background_model value", 0); 207 psMetadataAddS64(addprocessedexpArgs, PS_LIST_TAIL, "-astrom_chips", 0, "chips with successful astrom", -1); 207 208 208 209 // -processedexp -
branches/eam_branches/ipp-20140610/ippTools/src/remotetool.c
r36623 r36928 95 95 // Get a list of the things we can insert into a new component 96 96 psString query = NULL; 97 psString whereOption = psStringCopy(""); 97 98 if (!strcmp(stage,"chip")) { 98 99 query = pxDataGet("remotetool_definebyquery_chip.sql"); … … 125 126 126 127 if (label) { 127 psStringAppend(&query, " AND (warpRun.label = '%s')", label); 128 // Because warp has to check to see if something other than the state is set correctly, I have to use this wonky way to pass the label in. 129 // psStringAppend(&query, " AND (warpRun.label = '%s')", label); 130 psStringAppend(&whereOption, "\n AND (warpRun.label = '%s')", label); 128 131 } 129 132 } … … 149 152 psFree(limitString); 150 153 } 151 if (!p_psDBRunQuery (config->dbh, query)) {154 if (!p_psDBRunQueryF(config->dbh, query,whereOption)) { 152 155 psError(PS_ERR_UNKNOWN, false, "database error"); 153 156 psFree(query); … … 313 316 { 314 317 PS_ASSERT_PTR_NON_NULL(config, false); 315 // PXOPT_LOOKUP_S64(remote_id, config->args, "-remote_id", true, false); 318 PXOPT_LOOKUP_S64(remote_id, config->args, "-remote_id", true, false); 319 psAssert(remote_id,"This should have failed before this point."); 316 320 317 321 psMetadata *where = psMetadataAlloc(); … … 341 345 { 342 346 PS_ASSERT_PTR_NON_NULL(config, false); 343 // PXOPT_LOOKUP_S64(remote_id, config->args, "-remote_id", true, false); 344 347 PXOPT_LOOKUP_S64(remote_id, config->args, "-remote_id", true, false); 348 psAssert(remote_id,"This should have failed before this point."); 349 345 350 psMetadata *where = psMetadataAlloc(); 346 351 // Wheres -
branches/eam_branches/ipp-20140610/ippconfig
- Property svn:mergeinfo changed
/trunk/ippconfig merged: 36888,36914
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20140610/ippconfig/gpc1/psastro.config
r36884 r36928 493 493 ZERO.POINT.USE.MEAN BOOL TRUE 494 494 PSASTRO.FIELD.PADDING F32 0.01 # skycells are well defined, don't need large padding. 1% of 6400 is 64 pixels 495 PSASTRO.MAX.NRAW S32 1 000 # include more than MAX.NREF to account for extras like false-positives496 PSASTRO.MAX.NREF S32 500 # if edge skycell ~10% then try ~50 to match495 PSASTRO.MAX.NRAW S32 1500 # include more than MAX.NREF to account for extras like false-positives 496 PSASTRO.MAX.NREF S32 1000 # if edge skycell ~10% then try ~50 to match. increase to help odd bulk offsets 497 497 PSASTRO.MIN.INST.MAG.RAW F32 -25.0 # 498 498 PSASTRO.MAX.INST.MAG.RAW F32 -5.0 -
branches/eam_branches/ipp-20140610/ippconfig/recipes/ppStats.config
r35195 r36928 116 116 HEADER STR DT_ASTR # elapsed time in astrometry processing 117 117 HEADER STR NASTRO 118 HEADER STR ASTROM_CHIPS 118 119 119 120 HEADER STR ZPT_OBS -
branches/eam_branches/ipp-20140610/ippconfig/recipes/ppStatsFromMetadata.config
r35269 r36928 274 274 ENTRY VAL DT_ASTR F32 SUM -dtime_astrom 275 275 ENTRY VAL NASTRO S32 SUM -n_astrom 276 ENTRY VAL ASTROM_CHIPS U64 BITWISEOR -astrom_chips 276 277 277 278 ENTRY VAL ZPT_OBS F32 SAMPLE_MEAN -zpt_obs -
branches/eam_branches/ipp-20140610/ippconfig/recipes/ppSub.config
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20140610/ippconfig/recipes/reductionClasses.mdc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20140610/ppStack/src/ppStackReadout.c
r36884 r36928 188 188 psFree(stack); 189 189 190 psLogMsg("ppStack", PS_LOG_INFO, "initial stack image sectionNum %d", sectionNum); 190 //MEH change to trace 191 //psLogMsg("ppStack", PS_LOG_INFO, "initial stack image sectionNum %d", sectionNum); 191 192 192 193 sectionNum++; … … 275 276 //MEH -- apply bscale offset before norm 276 277 if (bscaleApplyOffset) { 277 psLogMsg("ppStack", PS_LOG_INFO, "bscaleApplyOffset: %d %f", i, bscaleApplyOffset->data.F32[i]); 278 //MEH change to trace 279 //psLogMsg("ppStack", PS_LOG_INFO, "bscaleApplyOffset: %d %f", i, bscaleApplyOffset->data.F32[i]); 278 280 psBinaryOp(ro->image, ro->image, "-", psScalarAlloc(bscaleApplyOffset->data.F32[i], PS_TYPE_F32)); 279 281 } … … 307 309 psFree(stack); 308 310 309 psLogMsg("ppStack", PS_LOG_INFO, "final stack image sectionNum %d", sectionNum); 311 //MEH change to trace 312 //psLogMsg("ppStack", PS_LOG_INFO, "final stack image sectionNum %d", sectionNum); 310 313 311 314 sectionNum++; -
branches/eam_branches/ipp-20140610/ppStats/src/ppStatsFromMetadataStats.c
r23989 r36928 1 1 # include "ppStatsInternal.h" 2 3 static void computeBitwiseOr(ppStatsEntry *entry); 2 4 3 5 // calculate the stats for the non-constant entries (already calculated) … … 11 13 // XXX skip or warn on missing stats? 12 14 if (!entry->vector) continue; 15 16 if (!strcasecmp (entry->statistic, "bitwiseor")) { 17 computeBitwiseOr(entry); 18 continue; 19 } 13 20 14 21 psStatsOptions option; … … 68 75 return true; 69 76 } 77 78 static void computeBitwiseOr(ppStatsEntry *entry) 79 { 80 psU64 result = 0; 81 psVector *vector = entry->vector; 82 for (int j = 0; j < vector->n; j++) { 83 // XXX: should we handle other types 84 if (entry->type == PS_DATA_U64) { 85 result |= vector->data.U64[j]; 86 } else if (entry->type == PS_DATA_U32) { 87 result |= vector->data.U32[j]; 88 } else { 89 return; 90 } 91 } 92 93 if (entry->type == PS_DATA_U64) { 94 entry->value = psMetadataItemAllocU64(entry->keyword, entry->statistic, result); 95 } else { 96 entry->value = psMetadataItemAllocU32(entry->keyword, entry->statistic, result); 97 } 98 99 return; 100 } 101 -
branches/eam_branches/ipp-20140610/psModules
- Property svn:mergeinfo deleted
-
branches/eam_branches/ipp-20140610/psastro/src/psastroChipAstrom.c
r35419 r36928 143 143 numGoodRO++; 144 144 145 psU64 astrom_chip_val = 1; 146 astrom_chip_val <<= view->chip; 147 psMetadataAddU64 (updates, PS_LIST_TAIL, "ASTROM_CHIPS", PS_META_REPLACE, 148 "chips that passed astrometry", astrom_chip_val); 149 145 150 // write the elapsed time here; this will be updated in psastroMosaicAstrometry, if called 146 151 psMetadataAddF32 (updates, PS_LIST_TAIL, "DT_ASTR", PS_META_REPLACE, "elapsed psastro time", psTimerMark ("psastroAnalysis")); -
branches/eam_branches/ipp-20140610/psastro/src/psastroOneChipFit.c
r36837 r36928 228 228 psMetadataAddF32 (updates, PS_LIST_TAIL, "CPRECISE", PS_META_REPLACE, "astrometry precision (arcsec)", 0.0); 229 229 psMetadataAddS32 (updates, PS_LIST_TAIL, "NASTRO", PS_META_REPLACE, "number of astrometry stars", 0); 230 psMetadataAddU64 (updates, PS_LIST_TAIL, "ASTROM_CHIPS", PS_META_REPLACE, "chips that passed astrometry", 0); 230 231 return true; 231 232 } -
branches/eam_branches/ipp-20140610/psphot/test/tap_psphot_galaxies.pro
r36884 r36928 194 194 $psphotConfig = $psphotConfig -Di PSPHOT:LMM_FIT_GAIN_FACTOR_MODE 2 195 195 $psphotConfig = $psphotConfig -Db PSPHOT:SAVE.RESID T 196 #$psphotConfig = $psphotConfig -D PSPHOT:PSF_MODEL PS_MODEL_PS1_V1197 $psphotConfig = $psphotConfig -D PSPHOT:PSF_MODEL PS_MODEL_GAUSS196 $psphotConfig = $psphotConfig -D PSPHOT:PSF_MODEL PS_MODEL_PS1_V1 197 # $psphotConfig = $psphotConfig -D PSPHOT:PSF_MODEL PS_MODEL_GAUSS 198 198 $psphotConfig = $psphotConfig -D PSPHOT:EXTENDED_SOURCE_MODELS_SELECTION $fitModel 199 $psphotConfig = $psphotConfig -D PSPHOT:OUTPUT.FORMAT PS1_V5 199 # $psphotConfig = $psphotConfig -D PSPHOT:OUTPUT.FORMAT PS1_V5 200 $psphotConfig = $psphotConfig -D PSPHOT:OUTPUT.FORMAT PS1_SV3 201 $psphotConfig = $psphotConfig -Db PSPHOT:LENSING_PARAMETERS T 200 202 201 203 # ppImage / psphot on the output -
branches/eam_branches/ipp-20140610/pstamp/scripts/pstamp_checkdependent.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20140610/pstamp/scripts/pstamp_finish.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20140610/pstamp/scripts/pstampparse.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
Note:
See TracChangeset
for help on using the changeset viewer.
