Changeset 34747
- Timestamp:
- Nov 30, 2012, 9:57:42 AM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120905
- Files:
-
- 40 edited
-
. (modified) (1 prop)
-
Ohana/src/opihi/cmd.astro (modified) (1 prop)
-
dbconfig/changes.txt (modified) (1 diff)
-
dbconfig/stack.md (modified) (1 diff)
-
dbconfig/staticsky.md (modified) (1 diff)
-
dbconfig/warp.md (modified) (1 diff)
-
ippMonitor (modified) (1 prop)
-
ippMonitor/scripts/skycellplot.dvo (modified) (1 diff)
-
ippScripts/scripts/destreak_restore_camera.pl (modified) (1 prop)
-
ippScripts/scripts/ipp_apply_burntool_single.pl (modified) (1 prop)
-
ippScripts/scripts/magic_destreak.pl (modified) (1 prop)
-
ippScripts/scripts/skycalibration.pl (modified) (3 diffs)
-
ippScripts/scripts/staticsky.pl (modified) (2 diffs)
-
ippToPsps (modified) (1 prop)
-
ippTools/share/camtool_find_pendingimfile.sql (modified) (1 prop)
-
ippTools/share/chiptool_setimfiletoupdate.sql (modified) (1 prop)
-
ippTools/share/pxadmin_create_tables.sql (modified) (3 diffs, 1 prop)
-
ippTools/share/staticskytool_pendingskycalrun.sql (modified) (1 diff)
-
ippTools/share/warptool_towarped.sql (modified) (1 prop)
-
ippTools/src (modified) (1 prop)
-
ippTools/src/magictool.c (modified) (1 prop)
-
ippTools/src/stacktool.c (modified) (3 diffs)
-
ippTools/src/stacktoolConfig.c (modified) (2 diffs)
-
ippTools/src/staticskytool.c (modified) (3 diffs)
-
ippTools/src/staticskytoolConfig.c (modified) (2 diffs)
-
ippTools/src/warptool.c (modified) (3 diffs)
-
ippTools/src/warptoolConfig.c (modified) (2 diffs)
-
ippconfig (modified) (1 prop)
-
ippconfig/recipes/reductionClasses.mdc (modified) (1 prop)
-
mops/OrbFit_4 (modified) (1 prop)
-
mops/oorb (modified) (1 prop)
-
mops/trunk (modified) (1 prop)
-
ppImage/src (modified) (1 prop)
-
psModules (modified) (1 prop)
-
psModules/src/objects (modified) (1 prop)
-
psphot (modified) (1 prop)
-
psphot/src (modified) (1 prop)
-
psphot/src/psphotStackImageLoop.c (modified) (1 prop)
-
pstamp/scripts (modified) (1 prop)
-
psvideophot (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120905
- Property svn:mergeinfo changed
/trunk merged: 34731,34733-34734,34737-34738,34741,34743-34744
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20120905/Ohana/src/opihi/cmd.astro
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120905/dbconfig/changes.txt
r33032 r34747 2255 2255 --update addRun set stage_extra1 = -1 where stage = 'cam' <= 483624; 2256 2256 2257 ALTER TABLE warpSkyfile add column background_model SMALLINT after maskfrac_advisory; 2258 ALTER TABLE stackSumSkyfile add column background_model SMALLINT after software_ver; 2259 2260 ALTER TABLE skycalResult ADD column n_detections INT after n_astrom; 2261 ALTER TABLE skycalResult ADD column n_extended INT after n_detections; 2262 2263 UPDATE dbversion set schema_version = '1.1.72', updated= CURRENT_TIMESTAMP(); -
branches/eam_branches/ipp-20120905/dbconfig/stack.md
r30945 r34747 53 53 fault S16 0 # Key 54 54 software_ver STR 16 55 background_model S16 0 55 56 quality S16 0 56 57 END -
branches/eam_branches/ipp-20120905/dbconfig/staticsky.md
r32963 r34747 54 54 sigma_dec F32 0.0 55 55 n_astrom S32 0 56 n_detections S32 0 57 n_extended S32 0 56 58 zpt_obs F32 0.0 57 59 zpt_stdev F32 0.0 -
branches/eam_branches/ipp-20120905/dbconfig/warp.md
r28375 r34747 74 74 maskfrac_magic F32 0.0 75 75 maskfrac_advisory F32 0.0 76 background_model S16 0 76 77 END 77 78 -
branches/eam_branches/ipp-20120905/ippMonitor
- Property svn:mergeinfo changed
/trunk/ippMonitor merged: 34744
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20120905/ippMonitor/scripts/skycellplot.dvo
r34466 r34747 27 27 1.1 28 28 0.3 29 0.3 30 0.3 31 0.3 32 0.3 33 0.3 29 0.3001 30 0.3002 31 0.3003 32 0.3004 33 0.3005 34 34 end 35 35 -
branches/eam_branches/ipp-20120905/ippScripts/scripts/destreak_restore_camera.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120905/ippScripts/scripts/ipp_apply_burntool_single.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120905/ippScripts/scripts/magic_destreak.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120905/ippScripts/scripts/skycalibration.pl
r34151 r34747 33 33 my $psastro = can_run('psastro') or (warn "Can't find psastro" and $missing_tools = 1); 34 34 my $fhead = can_run('fhead') or (warn "Can't find fhead" and $missing_tools = 1); 35 my $fields = can_run('fields') or (warn "Can't find fields" and $missing_tools = 1); 35 36 my $ppStatsFromMetadata = can_run('ppStatsFromMetadata') or (warn "Can't find ppStatsFromMetadata" and $missing_tools = 1); 36 37 my $ppConfigDump = can_run('ppConfigDump') or (warn "Can't find ppConfigDump" and $missing_tools = 1); … … 191 192 } 192 193 194 my $resolved = $ipprc->file_resolve($file); 195 if (!$resolved) { 196 &my_die("Unable to find input file: $file", $skycal_id, $PS_EXIT_SYS_ERROR); 197 } 198 199 # read the input header to find the number of detections and the number of detections 200 # with extended model 201 my $n_detections = 0; 202 my $n_extended = 0; 203 { 204 my $command = "echo $resolved | $fields -n SkyChip.psf NAXIS2"; 205 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 206 run(command => $command, verbose => 0); 207 # fields does not return 0 on success 208 (undef, $n_detections) = split " ", join "", @$stdout_buf; 209 chomp $n_detections; 210 &my_die("Unable to find number of detections from $file: ", $skycal_id, $PS_EXIT_SYS_ERROR) 211 unless defined $n_detections; 212 213 $command = "echo $resolved | $fields -n SkyChip.hdr NDET_EXT"; 214 ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 215 run(command => $command, verbose => 0); 216 (undef, $n_extended) = split " ", join "", @$stdout_buf; 217 chomp $n_extended; 218 &my_die("Unable to find number of extended objects from $file: ", $skycal_id, $PS_EXIT_SYS_ERROR) 219 unless defined $n_extended; 220 } 221 222 193 223 # Perform psastro analysis 194 224 my $output_sources_filerule = 'PSASTRO.OUTPUT.CMF'; … … 246 276 { 247 277 my $command = "$staticskytool -skycal_id $skycal_id"; 278 $command .= " -n_detections $n_detections"; 279 $command .= " -n_extended $n_extended"; 248 280 $command .= " -addskycalresult -path_base $outroot"; 249 281 $command .= " $cmdflags"; -
branches/eam_branches/ipp-20120905/ippScripts/scripts/staticsky.pl
r34566 r34747 124 124 my $nInputs = @$files; 125 125 126 if ( $nInputs >1) {126 if (1) { 127 127 my $recipe_psphot = $ipprc->reduction($reduction, 'STACKPHOT_PSPHOT'); # Recipe to use for psphot 128 128 my $recipe_ppsub = $ipprc->reduction($reduction, 'STACKPHOT_PPSUB'); # Recipe to use for ppsub … … 266 266 } 267 267 } else { 268 # XXX This mode is no longer used. We run psphotStack even if there is only one filter 268 269 # single input. Run psphot 269 270 # find the recipe -
branches/eam_branches/ipp-20120905/ippToPsps
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120905/ippTools/share/camtool_find_pendingimfile.sql
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120905/ippTools/share/chiptool_setimfiletoupdate.sql
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120905/ippTools/share/pxadmin_create_tables.sql
- Property svn:mergeinfo changed
/trunk/ippTools/share/pxadmin_create_tables.sql merged: 34731,34734
r34735 r34747 996 996 maskfrac_magic FLOAT, 997 997 maskfrac_advisory FLOAT, 998 background_model SMALLINT, 998 999 PRIMARY KEY(warp_id, skycell_id, tess_id), 999 1000 KEY(good_frac), … … 1078 1079 good_frac FLOAT, 1079 1080 mjd_obs DOUBLE, 1080 quality SMALLINT NOT NULL DEFAULT 0,1081 1081 fault SMALLINT, 1082 1082 software_ver VARCHAR(16), 1083 background_model SMALLINT, 1084 quality SMALLINT NOT NULL DEFAULT 0, 1083 1085 PRIMARY KEY(stack_id), 1084 1086 KEY(dtime_stack), … … 2115 2117 sigma_dec FLOAT, 2116 2118 n_astrom INT, 2119 n_detections INT, 2120 n_extended INT, 2117 2121 zpt_obs FLOAT, 2118 2122 zpt_stdev FLOAT, - Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20120905/ippTools/share/staticskytool_pendingskycalrun.sql
r34428 r34747 6 6 staticskyResult.path_base, 7 7 rawExp.camera, 8 staticskyResult.num_inputs = 1 ASsinglefilter8 0 AS singlefilter 9 9 FROM skycalRun 10 10 JOIN staticskyRun USING (sky_id) -
branches/eam_branches/ipp-20120905/ippTools/share/warptool_towarped.sql
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120905/ippTools/src
- Property svn:mergeinfo changed
/trunk/ippTools/src merged: 34731,34733
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20120905/ippTools/src/magictool.c
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120905/ippTools/src/stacktool.c
r34735 r34747 1006 1006 PXOPT_LOOKUP_STR(ver_streaks, config->args, "-ver_streaks", false, false); 1007 1007 1008 PXOPT_LOOKUP_S16(background_model, config->args, "-background_model", false, false); 1009 1008 1010 psTrace("czw.test",1,"Received versions: pslib %s psmodules %s psphot %s ppstats %s ppstack %s streaks %s\n", 1009 1011 ver_pslib,ver_psmodules,ver_psphot,ver_ppstats,ver_ppstack,ver_streaks); … … 1067 1069 fault, 1068 1070 software_ver, 1071 background_model, 1069 1072 quality 1070 1073 )) { … … 1121 1124 PXOPT_COPY_F64(config->args, where, "-mjd_obs_begin", "stackSumSkyfile.mjd_obs", ">="); 1122 1125 PXOPT_COPY_F64(config->args, where, "-mjd_obs_end", "stackSumSkyfile.mjd_obs", "<="); 1123 1126 PXOPT_COPY_S16(config->args, where, "-background_model","stackSumSkyfile.background_model", "=="); 1124 1127 1125 1128 // The following three selectors are incompatible with the sql so omit them -
branches/eam_branches/ipp-20120905/ippTools/src/stacktoolConfig.c
r34735 r34747 190 190 psMetadataAddStr(addsumskyfileArgs, PS_LIST_TAIL, "-ver_streaks", 0, "define streaksremove version", NULL); 191 191 192 psMetadataAddS16(addsumskyfileArgs, PS_LIST_TAIL, "-background_model", 0, "define background model version", 0); 193 192 194 // -sumskyfile 193 195 psMetadata *sumskyfileArgs= psMetadataAlloc(); … … 201 203 psMetadataAddStr(sumskyfileArgs, PS_LIST_TAIL, "-exp_name", 0, "search by exposure name", NULL); 202 204 #endif 205 psMetadataAddS16(sumskyfileArgs, PS_LIST_TAIL, "-background_model", 0, "search by background model version", 0); 203 206 psMetadataAddStr(sumskyfileArgs, PS_LIST_TAIL, "-label", PS_META_DUPLICATE_OK, "search by stackRun.label", NULL); 204 207 psMetadataAddStr(sumskyfileArgs, PS_LIST_TAIL, "-data_group", PS_META_DUPLICATE_OK, "search by stackRun.data_group (LIKE comparison)", NULL); -
branches/eam_branches/ipp-20120905/ippTools/src/staticskytool.c
r34286 r34747 132 132 pxAddLabelSearchArgs(config, whereMD, "-select_data_group", "stackRun.data_group", "LIKE"); 133 133 pxAddLabelSearchArgs(config, whereMD, "-select_filter", "stackRun.filter", "LIKE"); 134 #ifdef notdef 134 135 PXOPT_COPY_F32(config->args, whereMD, "-select_glat_min", "skycell.glat", ">="); 135 136 PXOPT_COPY_F32(config->args, whereMD, "-select_glat_max", "skycell.glat", "<="); 137 PXOPT_COPY_F32(config->args, whereMD, "-select_rahours_min", "skycell.radeg/15", ">="); 138 PXOPT_COPY_F32(config->args, whereMD, "-select_rahours_max", "skycell.radeg/15", "<="); 139 PXOPT_COPY_F32(config->args, whereMD, "-select_radeg_min", "skycell.radeg", ">="); 140 PXOPT_COPY_F32(config->args, whereMD, "-select_radeg_max", "skycell.radeg", "<="); 141 PXOPT_COPY_F32(config->args, whereMD, "-select_decdeg_min", "skycell.decdeg", ">="); 142 PXOPT_COPY_F32(config->args, whereMD, "-select_decdeg_max", "skycell.decdeg", "<="); 143 #endif 144 if (!pxskycellAddWhere(config, whereMD)) { 145 psError(PXTOOLS_ERR_CONFIG, false, "failed to add skycell search arguments"); 146 return false; 147 } 136 148 137 149 // find the number of requested filters: … … 1263 1275 1264 1276 PXOPT_LOOKUP_STR(hostname, config->args, "-hostname", false, false); 1265 // PXOPT_LOOKUP_S32(n_stars, config->args, "-n_stars", false, false);1266 1277 PXOPT_LOOKUP_S32(n_astrom, config->args, "-n_astrom", false, false); 1278 PXOPT_LOOKUP_S32(n_detections, config->args, "-n_detections", false, false); 1279 PXOPT_LOOKUP_S32(n_extended, config->args, "-n_extended", false, false); 1267 1280 1268 1281 PXOPT_LOOKUP_STR(path_base, config->args, "-path_base", false, false); … … 1303 1316 sigma_dec, 1304 1317 n_astrom, 1318 n_detections, 1319 n_extended, 1305 1320 zpt_obs, 1306 1321 zpt_stdev, -
branches/eam_branches/ipp-20120905/ippTools/src/staticskytoolConfig.c
r34168 r34747 55 55 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-select_data_group", PS_META_DUPLICATE_OK, "search by stackRun data_group (LIKE comparison, multiple OK)", NULL); 56 56 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-select_filter", PS_META_DUPLICATE_OK, "search by filter (LIKE comparison, multiple OK)", NULL); 57 pxskycellAddArguments(definebyqueryArgs); 58 #ifdef notdef 57 59 psMetadataAddF32(definebyqueryArgs, PS_LIST_TAIL, "-select_glat_min", 0, "define min galactic latitude", NAN); 58 60 psMetadataAddF32(definebyqueryArgs, PS_LIST_TAIL, "-select_glat_max", 0, "define max galactic latitude", NAN); 61 psMetadataAddF32(definebyqueryArgs, PS_LIST_TAIL, "-select_rahours_min", 0, "define min RA in hours", NAN); 62 psMetadataAddF32(definebyqueryArgs, PS_LIST_TAIL, "-select_rahours_max", 0, "define max RA in hours", NAN); 63 psMetadataAddF32(definebyqueryArgs, PS_LIST_TAIL, "-select_radeg_min", 0, "define min RA in degrees", NAN); 64 psMetadataAddF32(definebyqueryArgs, PS_LIST_TAIL, "-select_radeg_max", 0, "define max RA in degrees", NAN); 65 psMetadataAddF32(definebyqueryArgs, PS_LIST_TAIL, "-select_decdeg_min", 0, "define min DEC in degrees", NAN); 66 psMetadataAddF32(definebyqueryArgs, PS_LIST_TAIL, "-select_decdeg_max", 0, "define max DEC in degrees", NAN); 67 #endif 59 68 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-set_workdir", 0, "define workdir (required)", NULL); 60 69 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-set_label", 0, "define label (required)", NULL); … … 204 213 // psMetadataAddS32(addskycalresultArgs, PS_LIST_TAIL, "-n_stars", 0, "define number of stars", 0); 205 214 psMetadataAddS32(addskycalresultArgs, PS_LIST_TAIL, "-n_astrom", 0, "define number of astrometry reference objects", 0); 215 psMetadataAddS32(addskycalresultArgs, PS_LIST_TAIL, "-n_detections", 0, "define number of detections", 0); 216 psMetadataAddS32(addskycalresultArgs, PS_LIST_TAIL, "-n_extended", 0, "define number of extended detections", 0); 206 217 207 218 psMetadataAddStr(addskycalresultArgs, PS_LIST_TAIL, "-path_base", 0, "define base output location", NULL); -
branches/eam_branches/ipp-20120905/ippTools/src/warptool.c
r34081 r34747 1101 1101 PXOPT_LOOKUP_F32(maskfrac_advisory, config->args, "-maskfrac_advisory", false, false); 1102 1102 1103 PXOPT_LOOKUP_S16(background_model, config->args, "-background_model", false, false); 1104 1103 1105 psTrace("czw.test",1,"Received versions: pslib %s psmodules %s psphot %s ppstats %s pswarp %s streaks %s\n", 1104 1106 ver_pslib,ver_psmodules,ver_psphot,ver_ppstats,ver_pswarp,ver_streaks); … … 1159 1161 maskfrac_dynamic, 1160 1162 maskfrac_magic, 1161 maskfrac_advisory 1163 maskfrac_advisory, 1164 background_model 1162 1165 )) { 1163 1166 if (!psDBRollback(config->dbh)) { … … 1392 1395 PXOPT_COPY_STR(config->args, where, "-filter", "rawExp.filter", "LIKE"); 1393 1396 PXOPT_COPY_S64(config->args, where, "-magicked", "warpSkyfile.magicked", "=="); 1397 PXOPT_COPY_S16(config->args, where, "-background_model", "warpSkyfile.background_model", "=="); 1394 1398 pxAddLabelSearchArgs (config, where, "-label", "warpRun.label", "LIKE"); 1395 1399 pxAddLabelSearchArgs (config, where, "-data_group", "warpRun.data_group", "LIKE"); -
branches/eam_branches/ipp-20120905/ippTools/src/warptoolConfig.c
r32469 r34747 237 237 psMetadataAddF32(addwarpedArgs, PS_LIST_TAIL, "-maskfrac_advisory", 0, "define advisory mask fraction", NAN); 238 238 239 psMetadataAddS16(addwarpedArgs, PS_LIST_TAIL, "-background_model", 0, "define background model version", 0); 239 240 240 241 // -warped … … 254 255 psMetadataAddStr(warpedArgs, PS_LIST_TAIL, "-data_group", PS_META_DUPLICATE_OK, "search by warpRun data_group", NULL); 255 256 psMetadataAddStr(warpedArgs, PS_LIST_TAIL, "-dist_group", PS_META_DUPLICATE_OK, "search by warpRun dist_group", NULL); 257 psMetadataAddS16(warpedArgs, PS_LIST_TAIL, "-background_model", 0, "search by background model version", 0); 256 258 // add magic related arguments 257 259 pxmagicAddArguments(warpedArgs); -
branches/eam_branches/ipp-20120905/ippconfig
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120905/ippconfig/recipes/reductionClasses.mdc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120905/mops/OrbFit_4
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120905/mops/oorb
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120905/mops/trunk
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120905/ppImage/src
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120905/psModules
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120905/psModules/src/objects
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20120905/psphot
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120905/psphot/src
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120905/psphot/src/psphotStackImageLoop.c
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120905/pstamp/scripts
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20120905/psvideophot
- Property svn:mergeinfo changed (with no actual effect on merging)
Note:
See TracChangeset
for help on using the changeset viewer.
