Changeset 11142
- Timestamp:
- Jan 18, 2007, 2:34:52 PM (19 years ago)
- Location:
- trunk/ippTools
- Files:
-
- 4 edited
-
configure.ac (modified) (1 diff)
-
scripts/regtest.sh (modified) (3 diffs)
-
src/pxinject.c (modified) (3 diffs)
-
src/pxinjectConfig.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/configure.ac
r11138 r11142 16 16 PKG_CHECK_MODULES([PSLIB], [pslib >= 0.12.99]) 17 17 PKG_CHECK_MODULES([PSMODULES], [psmodules >= 0.12.0]) 18 PKG_CHECK_MODULES([IPPDB], [ippdb >= 0.0.7 6])18 PKG_CHECK_MODULES([IPPDB], [ippdb >= 0.0.77]) 19 19 20 20 dnl check for PSDB support -
trunk/ippTools/scripts/regtest.sh
r11138 r11142 8 8 echo -e "YES\nipp\n\n" | pxadmin -recreate || exit 1 9 9 10 exp_tag1=`$inject -newExp -exp_id t10 -inst gpc -telescope ps1 - exp_type object -imfiles 4 -workdir file::///some/path -simple` || exit 110 exp_tag1=`$inject -newExp -exp_id t10 -inst gpc -telescope ps1 -imfiles 4 -workdir file::///some/path -simple` || exit 1 11 11 12 12 for ID in `seq 0 3`; do … … 14 14 done; 15 15 16 exp_tag2=`$inject -newExp -exp_id t11 -inst gpc -telescope ps1 - exp_type object -imfiles 4 -workdir file::///some/path -simple` || exit 116 exp_tag2=`$inject -newExp -exp_id t11 -inst gpc -telescope ps1 -imfiles 4 -workdir file::///some/path -simple` || exit 1 17 17 18 18 for ID in `seq 0 3`; do … … 23 23 24 24 for ID in `seq 0 3`; do 25 $p0tool -addprocessedimfile -exp_tag $exp_tag1 - exp_type object -class OTA -class_id $ID -filter r -airmass 10 -ra 1 -decl 2 -exp_time 0 -bg 1 -bg_stdev 1 -bg_mean_stdev 10 -alt 10 -az 10 -ccd_temp 10 -posang 10 -object dog -dateobs 2006-10-20T10:10:10Z || exit 125 $p0tool -addprocessedimfile -exp_tag $exp_tag1 -class OTA -class_id $ID -filter r -airmass 10 -ra 1 -decl 2 -exp_time 0 -bg 1 -bg_stdev 1 -bg_mean_stdev 10 -alt 10 -az 10 -ccd_temp 10 -posang 10 -object dog -dateobs 2006-10-20T10:10:10Z || exit 1 26 26 done; 27 27 -
trunk/ippTools/src/pxinject.c
r11138 r11142 100 100 return false; 101 101 } 102 psString exp_type = psMetadataLookupStr(&status, config->args, "-exp_type");103 if (!status) {104 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -exp_type");105 return false;106 }107 if (!exp_type) {108 psError(PS_ERR_UNKNOWN, true, "-exp_type is required");109 return false;110 }111 102 psS32 imfiles = psMetadataLookupS32(&status, config->args, "-imfiles"); 112 103 if (!status) { … … 127 118 psError(PS_ERR_UNKNOWN, true, "-workdir is required"); 128 119 return false; 129 }130 131 psTime *dateobs = NULL;132 {133 psString dateobsStr = psMetadataLookupStr(&status, config->args, "-dateobs");134 if (!status) {135 psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -dateobs");136 return false;137 }138 // pass through NULL as this is an optional field139 if (dateobsStr) {140 dateobs = psTimeFromISO(dateobsStr, PS_TIME_UTC);141 } else {142 dateobs = NULL;143 }144 145 120 } 146 121 … … 156 131 camera, 157 132 telescope, 158 dateobs,159 exp_type,160 133 imfiles, 161 134 workdir -
trunk/ippTools/src/pxinjectConfig.c
r11138 r11142 50 50 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-telescope", 0, 51 51 "define the telescope name (required)", NULL); 52 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-dateobs", 0,53 "define observation time", NULL);54 psMetadataAddStr(newExpArgs, PS_LIST_TAIL, "-exp_type", 0,55 "define the type of exposure (required)", NULL);56 52 psMetadataAddS32(newExpArgs, PS_LIST_TAIL, "-imfiles", 0, 57 53 "define the number of imfiles in this exp (required)", 0); … … 157 153 } 158 154 addWhereStr(telescope); 159 addWhereStr(exp_type);160 155 { 161 156 int n = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
