Changeset 13606
- Timestamp:
- Jun 3, 2007, 4:27:35 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
dbconfig/tasks.md (modified) (3 diffs)
-
ippScripts/scripts/register_exp.pl (modified) (2 diffs)
-
ippScripts/scripts/register_imfile.pl (modified) (2 diffs)
-
ippTools/src/regtool.c (modified) (4 diffs)
-
ippTools/src/regtoolConfig.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dbconfig/tasks.md
r12531 r13606 1 # $Id: tasks.md,v 1.13 2 2007-03-22 01:10:12 jhoblittExp $1 # $Id: tasks.md,v 1.133 2007-06-04 02:26:09 eugene Exp $ 2 2 3 3 # this table records all exposure ID ever seen from the summit … … 116 116 decl F64 0.0 117 117 exp_time F32 0.0 118 sat_pixel_frac F32 0.0 118 119 bg F64 0.0 119 120 bg_stdev F64 0.0 … … 142 143 decl F64 0.0 143 144 exp_time F32 0.0 145 sat_pixel_frac F32 0.0 144 146 bg F64 0.0 145 147 bg_stdev F64 0.0 -
trunk/ippScripts/scripts/register_exp.pl
r13019 r13606 72 72 "ccd_temp", # CCD temperature 73 73 "exp_time", # Exposure time 74 "sat_pixel_frac", # Fraction of saturated pixels 74 75 "airmass", # Airmass 75 76 "ra", # Right ascension … … 160 161 if (0) { 161 162 # XXX for a test, randomly declare a failure and return to pantasks 162 my $rnd = rand(1);163 if ($rnd > 0.5) {164 warn ("random failure");165 &my_die ($exp_tag, $PS_EXIT_DATA_ERROR);166 }163 my $rnd = rand(1); 164 if ($rnd > 0.5) { 165 warn ("random failure"); 166 &my_die ($exp_tag, $PS_EXIT_DATA_ERROR); 167 } 167 168 } 168 169 -
trunk/ippScripts/scripts/register_imfile.pl
r13275 r13606 58 58 and defined $uri; 59 59 60 my $RECIPE = "PPSTATS_ PHASE0"; # Recipe to use for ppStats60 my $RECIPE = "PPSTATS_REGISTER"; # Recipe to use for ppStats 61 61 62 62 # These values should be constant for all components … … 79 79 # The key is the name in the ppStats output; the value is the switch for "phase0 -updateexp" 80 80 use constant VARIABLES => { 81 "CHIP.TEMP" => "-ccd_temp", # CCD temperature 82 "CELL.EXPOSURE" => "-exp_time" # Exposure time 81 "CHIP.TEMP" => "-ccd_temp", # CCD temperature 82 "CELL.EXPOSURE" => "-exp_time", # Exposure time 83 "SAT_PIXEL_FRAC" => "-sat_pixel_frac" # fraction of saturated pixels 83 84 }; 84 85 -
trunk/ippTools/src/regtool.c
r13580 r13606 892 892 } 893 893 894 psF32 sat_pixel_frac = psMetadataLookupF32(&status, config->args, "-sat_pixel_frac"); 895 if (!status) { 896 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -sat_pixel_frac"); 897 return false; 898 } 899 894 900 psF64 bg = psMetadataLookupF64(&status, config->args, "-bg"); 895 901 if (!status) { … … 977 983 decl, 978 984 exp_time, 985 sat_pixel_frac, 979 986 bg, 980 987 bg_stdev, … … 1046 1053 } 1047 1054 1055 psF32 sat_pixel_frac = psMetadataLookupF32(&status, config->args, "-sat_pixel_frac"); 1056 if (!status) { 1057 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -sat_pixel_frac"); 1058 return false; 1059 } 1060 1048 1061 psF64 bg = psMetadataLookupF64(&status, config->args, "-bg"); 1049 1062 if (!status) { … … 1126 1139 decl, 1127 1140 exp_time, 1141 sat_pixel_frac, 1128 1142 bg, 1129 1143 bg_stdev, -
trunk/ippTools/src/regtoolConfig.c
r13580 r13606 79 79 psMetadataAddF32(addprocessedimfileArgs, PS_LIST_TAIL, "-exp_time", 0, 80 80 "define exposure time", NAN); 81 psMetadataAddF32(addprocessedimfileArgs, PS_LIST_TAIL, "-sat_pixel_frac", 0, 82 "define fraction of saturated pixels", NAN); 81 83 psMetadataAddF64(addprocessedimfileArgs, PS_LIST_TAIL, "-bg", 0, 82 84 "define exposue background", NAN); … … 160 162 psMetadataAddF32(addprocessedexpArgs, PS_LIST_TAIL, "-exp_time", 0, 161 163 "define exposure time", NAN); 164 psMetadataAddF32(addprocessedexpArgs, PS_LIST_TAIL, "-sat_pixel_frac", 0, 165 "define fraction of saturated pixels", NAN); 162 166 psMetadataAddF64(addprocessedexpArgs, PS_LIST_TAIL, "-bg", 0, 163 167 "define exposue background", NAN);
Note:
See TracChangeset
for help on using the changeset viewer.
