Changeset 31533
- Timestamp:
- May 11, 2011, 5:50:38 PM (15 years ago)
- Location:
- tags/ipp-20110505
- Files:
-
- 6 edited
-
ippScripts/scripts/camera_exp.pl (modified) (1 diff)
-
ippScripts/scripts/lap_science.pl (modified) (4 diffs)
-
ippTools/src/laptoolConfig.c (modified) (2 diffs)
-
ippTools/src/stacktool.c (modified) (1 diff)
-
ippTools/src/stacktoolConfig.c (modified) (1 diff)
-
ippconfig/gpc1/camera.config (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20110505/ippScripts/scripts/camera_exp.pl
r30071 r31533 153 153 } 154 154 chomp $cmdflags; 155 156 { # Determine if FWHM is too large to bother continuing. 157 my $command = "$ppConfigDump -camera $camera -dump-camera -"; 158 my ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 159 run(command => $command, verbose => $verbose); 160 unless ($success) { 161 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 162 &my_die("Unable to perform ppConfigDump: $error_code", $cam_id, $PS_EXIT_CONFIG_ERROR); 163 } 164 my $cameraConfig = $mdcParser->parse(join "", @$stdout_buf) or 165 &my_die("Unable to parse metadata config doc", $cam_id, $PS_EXIT_CONFIG_ERROR); 166 167 my $maxFWHM = metadataLookupStr($cameraConfig, 'MAX_ALLOWED_FWHM'); 168 if ($maxFWHM) { 169 my $expFWHM; 170 ($expFWHM) = $cmdflags =~ /-fwhm_major (\d+)/; 171 172 if ($expFWHM > $maxFWHM) { 173 print "Setting quality to 4007 due to large FWHM: exposure: $expFWHM maximum: $maxFWHM\n"; 174 $cmdflags .= " -quality 4007 "; # This corresponds to PSASTRO_ERR_DATA 175 $no_op = 1; 176 } 177 } 178 } 155 179 } 156 180 -
tags/ipp-20110505/ippScripts/scripts/lap_science.pl
r31526 r31533 621 621 } 622 622 623 my $warps = ''; 624 foreach $exposure (@$exposures) { 625 if (($exposure->{data_state} != 'drop')&& 626 (S64_IS_NOT_NULL($exposure->{warp_id}))) { 627 $warps .= " -warp_id $exposure->{warp_id} "; 628 } 629 } 630 623 631 my @utctime = gmtime(); 624 632 $utctime[5] += 1900; … … 636 644 $command .= " -set_workdir $workdir -set_dist_group NODIST "; 637 645 $command .= " -min_num 2 -set_reduction QUICKSTACK "; 646 $command .= " $warps "; 638 647 639 648 my ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = … … 689 698 unless (defined($label) && defined($filter) && defined($proj_cell)) { 690 699 &my_die("Unable to perform stacktool. Insufficient information.", $lap_id); 700 } 701 702 my $warps = ''; 703 foreach $exposure (@$exposures) { 704 if (($exposure->{data_state} != 'drop')&& 705 (S64_IS_NOT_NULL($exposure->{magicked}))&& 706 (S64_IS_NOT_NULL($exposure->{warp_id}))) { 707 $warps .= " -warp_id $exposure->{warp_id} "; 708 } 691 709 } 692 710 … … 704 722 $command .= " -definebyquery -select_label $label -select_skycell_id ${proj_cell}.% -select_filter $filter "; 705 723 $command .= " -set_label ${label} -set_workdir $workdir -set_data_group $data_group "; 706 $command .= " -min_num 2 -set_reduction THREEPI_STACK -set_dist_group ${label}"; 724 $command .= " -min_num 2 -set_reduction THREEPI_STACK -set_dist_group ${label} "; 725 $command .= " $warps "; 707 726 708 727 my ($success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = -
tags/ipp-20110505/ippTools/src/laptoolConfig.c
r31483 r31533 75 75 ADD_OPT(Bool,pendingrunArgs, "-simple", "use the simple output format", false); 76 76 77 // -listrun 78 psMetadata *listrunArgs = psMetadataAlloc(); 79 ADD_OPT(S64, listrunArgs, "-seq_id", "search by LAP sequence ID", 0); 80 ADD_OPT(S64, listrunArgs, "-lap_id", "search by LAP run ID", 0); 81 ADD_OPT(Str, listrunArgs, "-projection_cell", "search by projection cell", NULL); 82 ADD_OPT(Str, listrunArgs, "-filter", "search by filter", NULL); 83 // ADD_OPT(Str, listrunArgs, "-label", "search by LAP run label", NULL); 84 psMetadataAddStr(listrunArgs, PS_LIST_TAIL, "-label", PS_META_DUPLICATE_OK, "search by LAP run label", NULL); 85 ADD_OPT(Str, listrunArgs, "-state", "search by LAP run state", NULL); 86 ADD_OPT(Str, listrunArgs, "-fault", "search by LAP run fault", NULL); 87 ADD_OPT(Bool,listrunArgs, "-simple", "use the simple output format", false); 88 77 89 // -updaterun 78 90 psMetadata *updaterunArgs = psMetadataAlloc(); … … 129 141 psMetadata *argSets = psMetadataAlloc(); 130 142 psMetadata *modes = psMetadataAlloc(); 131 143 132 144 PXOPT_ADD_MODE("-definesequence", "", LAPTOOL_MODE_DEFINESEQUENCE, definesequenceArgs); 133 145 PXOPT_ADD_MODE("-listsequence", "", LAPTOOL_MODE_LISTSEQUENCE, listsequenceArgs); 134 146 PXOPT_ADD_MODE("-definerun", "", LAPTOOL_MODE_DEFINERUN, definerunArgs); 135 147 PXOPT_ADD_MODE("-pendingrun", "", LAPTOOL_MODE_PENDINGRUN, pendingrunArgs); 148 PXOPT_ADD_MODE("-listrun", "", LAPTOOL_MODE_PENDINGRUN, listrunArgs); 136 149 PXOPT_ADD_MODE("-updaterun", "", LAPTOOL_MODE_UPDATERUN, updaterunArgs); 137 150 PXOPT_ADD_MODE("-pendingexp", "", LAPTOOL_MODE_PENDINGEXP, pendingexpArgs); -
tags/ipp-20110505/ippTools/src/stacktool.c
r31479 r31533 246 246 PXOPT_COPY_STR(config->args, where, "-select_data_group", "warpRun.data_group", "=="); 247 247 pxAddLabelSearchArgs (config, where, "-select_label", "warpRun.label", "LIKE"); // define using warp label 248 248 pxAddLabelSearchArgs (config, where, "-warp_id", "warpRun.warp_id", "=="); 249 249 250 // these are used to build the HAVING restriction 250 251 PXOPT_COPY_S32(config->args, having, "-min_num", "num_warp", ">="); -
tags/ipp-20110505/ippTools/src/stacktoolConfig.c
r30945 r31533 91 91 psMetadataAddF64(definebyqueryArgs, PS_LIST_TAIL, "-select_zpt_obs_max", 0, "define max zero point", NAN); 92 92 psMetadataAddF64(definebyqueryArgs, PS_LIST_TAIL, "-select_astrom", 0, "define max astrometry rms", NAN); 93 psMetadataAddS64(definebyqueryArgs, PS_LIST_TAIL, "-warp_id", PS_META_DUPLICATE_OK, "include this warp ID (multiple OK)", 0); 93 94 psMetadataAddS32(definebyqueryArgs, PS_LIST_TAIL, "-random", 0, "use this number of random elements", 0); 94 95 psMetadataAddS32(definebyqueryArgs, PS_LIST_TAIL, "-min_num", 0, "minimum number of inputs", 0); -
tags/ipp-20110505/ippconfig/gpc1/camera.config
r31163 r31533 165 165 NPIX_INTERCHIP S32 103794483 166 166 167 # This sets the maximum size for the fwhm_major. This is roughly 3", and 98.67% of all exposures in the database are less than this. 168 MAX_ALLOWED_FWHM F32 12 169 167 170 # The set of maskbits that should not be set to NAN in "released" images 168 171 # This value is equal to CONV.POOR | STARCORE | SPIKE | SUSPECT = 0x5280
Note:
See TracChangeset
for help on using the changeset viewer.
