Changeset 31628 for branches/eam_branches/ipp-20110505
- Timestamp:
- Jun 15, 2011, 5:25:23 AM (15 years ago)
- Location:
- branches/eam_branches/ipp-20110505
- Files:
-
- 26 edited
-
. (modified) (1 prop)
-
Ohana (modified) (1 prop)
-
Ohana/src/addstar/src/GetFileMode.c (modified) (1 diff)
-
dbconfig/changes.txt (modified) (1 diff)
-
ippMonitor/raw/site.php.in (modified) (1 diff)
-
ippScripts/scripts/ipp_apply_burntool_single.pl (modified) (1 prop)
-
ippScripts/scripts/register_imfile.pl (modified) (5 diffs)
-
ippTasks/register.pro (modified) (2 diffs)
-
ippTools/share/addtool_find_sky_id.sql (modified) (2 diffs)
-
ippTools/share/addtool_find_sky_id_dvo.sql (modified) (1 diff)
-
ippTools/share/camtool_find_pendingimfile.sql (modified) (1 prop)
-
ippTools/share/laptool_definerun.sql (modified) (1 diff)
-
ippTools/share/pxadmin_create_tables.sql (modified) (1 prop)
-
ippTools/share/regtool_pendingimfile.sql (modified) (1 diff)
-
ippTools/src (modified) (1 prop)
-
ippTools/src/addtool.c (modified) (4 diffs)
-
ippTools/src/addtoolConfig.c (modified) (1 diff)
-
ippTools/src/magictool.c (modified) (2 diffs, 1 prop)
-
ippTools/src/magictoolConfig.c (modified) (1 diff)
-
ippconfig (modified) (1 prop)
-
ippconfig/isp/ppImage.config (modified) (1 diff)
-
ippconfig/isp/psastro.config (modified) (2 diffs)
-
ippconfig/recipes/reductionClasses.mdc (modified) (1 prop)
-
ppImage/src (modified) (1 prop)
-
psModules/src/objects/models/pmModel_PS1_V1.c (modified) (1 diff)
-
psphot (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110505
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20110505/Ohana
- Property svn:mergeinfo deleted
-
branches/eam_branches/ipp-20110505/Ohana/src/addstar/src/GetFileMode.c
r31425 r31628 4 4 int GetFileMode (Header *header) { 5 5 6 char ctype[81], ctmp[80]; 6 char ctype[81], ctmp[81]; 7 7 8 int Naxis; 8 9 int simple, extend, haveNaxis, haveCTYPE; -
branches/eam_branches/ipp-20110505/dbconfig/changes.txt
r31435 r31628 2132 2132 UPDATE dbversion set schema_version = '1.1.70', updated= CURRENT_TIMESTAMP(); 2133 2133 2134 -- heather discovered that we need keys for addRun: 2135 2136 alter table addRun add key(stage), add key (stage_id); -
branches/eam_branches/ipp-20110505/ippMonitor/raw/site.php.in
r31096 r31628 37 37 $REPL_DBNAME_PSTAMP = "ippRequestServer"; 38 38 39 $REPL_HOST_GPC1 = "ipp c02.IfA.Hawaii.Edu";39 $REPL_HOST_GPC1 = "ippdb03.IfA.Hawaii.Edu"; 40 40 $REPL_USER_GPC1 = "ippMonitor"; 41 41 $REPL_PASSWORD_GPC1 = "ippMonitor"; -
branches/eam_branches/ipp-20110505/ippScripts/scripts/ipp_apply_burntool_single.pl
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20110505/ippScripts/scripts/register_imfile.pl
r31060 r31628 40 40 41 41 my ($cache, $exp_id, $tmp_class_id, $tmp_exp_name, $uri, $bytes, $md5sum, $dbname, $verbose, $no_update, $no_op, $logfile); 42 my ($sunrise, $sunset );42 my ($sunrise, $sunset, $summit_dateobs); 43 43 GetOptions( 44 44 'caches' => \$cache, … … 51 51 'sunrise=s' => \$sunrise, 52 52 'sunset=s' => \$sunset, 53 'summit_dateobs=s' => \$summit_dateobs, 53 54 'dbname|d=s' => \$dbname, # Database name 54 55 'verbose' => \$verbose, # Print to stdout … … 181 182 if (uc(&value_for_flag ($cmdflags, "NULL", "-exp_type")) eq "NULL") { &my_die_for_add ("exp_type not found", $exp_id, $tmp_exp_name, $tmp_class_id, $uri, $PS_EXIT_CONFIG_ERROR); } 182 183 my $dateobs = &value_for_flag($cmdflags, 0.0, "-dateobs"); 184 unless($summit_dateobs) { 185 $summit_dateobs = $dateobs; 186 } 187 183 188 my $exp_type = &value_for_flag($cmdflags, "NULL", "-exp_type"); 184 189 … … 196 201 $command .= " -data_state full"; 197 202 } 198 elsif (is_daytime($ dateobs,$sunrise,$sunset)) {203 elsif (is_daytime($summit_dateobs,$sunrise,$sunset)) { 199 204 printf STDERR "This is a daytime exposure.\n"; 200 205 $command .= " -data_state full"; … … 267 272 268 273 if ((abs($burntoolStateCurrent) != $burntoolStateTarget)&& 269 (!is_daytime($ dateobs,$sunrise,$sunset))&&274 (!is_daytime($summit_dateobs,$sunrise,$sunset))&& 270 275 (!is_ccim($tmp_exp_name,$exp_type))) { 271 276 my $mdcParser = PS::IPP::Metadata::Config->new; -
branches/eam_branches/ipp-20110505/ippTasks/register.pro
r30992 r31628 294 294 book getword regPendingImfile $pageName workdir -var WORKDIR_TEMPLATE 295 295 book getword regPendingImfile $pageName dbname -var DBNAME 296 book getword regPendingImfile $pageName summit_dateobs -var SUMMIT_DATEOBS 296 297 297 298 # EXP_TAG is used to generate the unique, but human-readable, filenames … … 320 321 # XXX register_imfile.pl differs from the standard script : it does not have an 'outroot' argument, and it does not take '--redirect' 321 322 $run = register_imfile.pl --exp_id $EXP_ID --tmp_class_id $TMP_CLASS_ID --tmp_exp_name $TMP_EXP_NAME --uri $URI --logfile $logfile --bytes $BYTES --md5sum $MD5SUM 322 $run = $run --sunset $sunset --sunrise $sunrise 323 $run = $run --sunset $sunset --sunrise $sunrise --summit_dateobs $SUMMIT_DATEOBS 323 324 add_standard_args run 324 325 -
branches/eam_branches/ipp-20110505/ippTools/share/addtool_find_sky_id.sql
r31375 r31628 3 3 FROM 4 4 staticskyResult 5 join static SkyRun using (sky_id)6 join static SkyInput using (stack_id)5 join staticskyRun using (sky_id) 6 join staticskyInput using(sky_id) 7 7 JOIN stackRun USING(stack_id) 8 8 … … 13 13 ) as foo 14 14 ON sky_id = added_sky_id 15 AND stage = 's ky'15 AND stage = 'staticsky' 16 16 -- hook for qualifying the join on the previous_dvodb 17 17 AND %s -
branches/eam_branches/ipp-20110505/ippTools/share/addtool_find_sky_id_dvo.sql
r31375 r31628 1 1 SELECT staticskyRun.* FROM staticskyResult 2 2 JOIN staticskyRun USING(sky_id) 3 join staticskyInput using(sky_id) 4 JOIN stackRun USING(stack_id) 5 3 6 WHERE staticskyRun.state = 'full' and staticskyResult.quality = 0 4 7 AND sky_id NOT IN (SELECT sky_id -
branches/eam_branches/ipp-20110505/ippTools/share/camtool_find_pendingimfile.sql
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20110505/ippTools/share/laptool_definerun.sql
r31587 r31628 8 8 ) AS want 9 9 LEFT JOIN 10 (SELECT exp_id,MAX(chip_id) AS chip_id 11 FROM lapExp 10 (SELECT exp_id,MAX(chip_id) AS chip_id, chipRun.state 11 FROM lapExp JOIN chipRun USING(exp_id,chip_id) 12 12 where private IS FALSE 13 13 AND chip_id IS NOT NULL 14 AND active = TRUE ) AS have USING(exp_id) 14 AND 15 ( 16 -- (active = TRUE) OR 17 (chipRun.state = 'full') OR 18 (chipRun.state = 'new') 19 -- when we can do updates, put that here. 20 ) 21 GROUP BY exp_id 22 ) AS have USING(exp_id) 15 23 16 24 -
branches/eam_branches/ipp-20110505/ippTools/share/pxadmin_create_tables.sql
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20110505/ippTools/share/regtool_pendingimfile.sql
r25418 r31628 8 8 newImfile.uri, 9 9 newImfile.bytes, 10 newImfile.md5sum 10 newImfile.md5sum, 11 summitExp.dateobs AS summit_dateobs 11 12 FROM newImfile 12 13 JOIN newExp 13 14 USING(exp_id) 15 JOIN summitExp USING(summit_id) 14 16 LEFT JOIN rawImfile 15 17 ON newExp.exp_id = rawImfile.exp_id -
branches/eam_branches/ipp-20110505/ippTools/src
- Property svn:mergeinfo changed
/trunk/ippTools/src (added) merged: 31477-31478,31482,31497,31517,31528-31529,31564,31596,31605
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20110505/ippTools/src/addtool.c
r31375 r31628 117 117 118 118 psMetadata *where = psMetadataAlloc(); 119 pxcamGetSearchArgs (config, where);119 // pxcamGetSearchArgs (config, where); 120 120 PXOPT_COPY_S64(config->args, where, "-cam_id", "camRun.cam_id", "=="); 121 121 PXOPT_COPY_S64(config->args, where, "-stack_id", "stackRun.stack_id", "=="); … … 123 123 PXOPT_LOOKUP_STR(stage, config->args, "-stage", false, false); 124 124 if (strcmp(stage, "cam")== 0) { 125 125 pxcamGetSearchArgs (config, where); 126 126 pxAddLabelSearchArgs (config, where, "-label", "camRun.label", "=="); // define using camRun label 127 127 pxAddLabelSearchArgs (config, where, "-data_group","camRun.data_group", "=="); // define using camRun label 128 128 129 PXOPT_COPY_STR(config->args, where, "-reduction", "camRun.reduction", "=="); 129 130 } … … 133 134 pxAddLabelSearchArgs (config, where, "-data_group","stackRun.data_group", "=="); // define using camRun label 134 135 PXOPT_COPY_STR(config->args, where, "-reduction", "stackRun.reduction", "=="); 136 pxAddLabelSearchArgs (config, where, "-filter", "stackRun.filter", "=="); // define using camRun label 135 137 } 136 138 if (strcmp(stage, "staticsky")== 0) { … … 139 141 pxAddLabelSearchArgs (config, where, "-data_group","staticskyRun.data_group", "=="); // define using camRun label 140 142 PXOPT_COPY_STR(config->args, where, "-reduction", "staticskyyRun.reduction", "=="); 143 pxAddLabelSearchArgs (config, where, "-filter", "stackRun.filter", "=="); // define using camRun label 141 144 } 142 145 -
branches/eam_branches/ipp-20110505/ippTools/src/addtoolConfig.c
r31375 r31628 56 56 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-label", PS_META_DUPLICATE_OK, "search by camRun label", NULL); 57 57 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-data_group", PS_META_DUPLICATE_OK, "search by camRun data_group", NULL); 58 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-filter", PS_META_DUPLICATE_OK, "search by filter", NULL); 58 59 psMetadataAddStr(definebyqueryArgs, PS_LIST_TAIL, "-reduction", 0, "search by camRun reduction class", NULL); 59 60 psMetadataAddBool(definebyqueryArgs, PS_LIST_TAIL, "-destreaked", 0, "only queue destreaked runs", false); -
branches/eam_branches/ipp-20110505/ippTools/src/magictool.c
- Property svn:mergeinfo changed
/trunk/ippTools/src/magictool.c (added) merged: 31605
r31445 r31628 404 404 PXOPT_LOOKUP_STR(note, config->args, "-set_note", false, false); 405 405 PXOPT_LOOKUP_BOOL(clearfault, config->args, "-clearfault", false); 406 406 PXOPT_LOOKUP_STR(label, config->args, "-set_label", false, false); 407 407 408 psString setString = NULL; 408 409 if (fault || clearfault) { … … 411 412 if (note) { 412 413 psStringAppend(&setString, ", note = '%s'", note); 414 } 415 if (label) { 416 psStringAppend(&setString, ", label = '%s'", label); 413 417 } 414 418 - Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20110505/ippTools/src/magictoolConfig.c
r30497 r31628 81 81 psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-set_state", 0, "set state (required)", NULL); 82 82 psMetadataAddS16(updaterunArgs, PS_LIST_TAIL, "-set_fault", 0, "set fault code", 0); 83 psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-set_label", 0, "define label", 0); 83 84 psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-set_note", 0, "define note", NULL); 84 85 psMetadataAddBool(updaterunArgs, PS_LIST_TAIL, "-clearfault", 0, "set fault to zero", NULL); -
branches/eam_branches/ipp-20110505/ippconfig
- Property svn:mergeinfo changed
/trunk/ippconfig (added) merged: 31489,31532,31540,31555,31557,31620
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20110505/ippconfig/isp/ppImage.config
r27289 r31628 3 3 # Inherit everything from the top-level recipe file, except for what's below. 4 4 5 FRINGE.FILTERS MULTI6 FRINGE.FILTERS STR z7 FRINGE.FILTERS STR y5 #FRINGE.FILTERS MULTI 6 #FRINGE.FILTERS STR z 7 #FRINGE.FILTERS STR y 8 8 9 9 # apply the following constraints when selecting a detrend image -
branches/eam_branches/ipp-20110505/ippconfig/isp/psastro.config
r31624 r31628 52 52 53 53 # match radius in pixels for CHIP astrometry 54 # PSASTRO.MATCH.RADIUS F32 8 54 PSASTRO.MATCH.RADIUS F32 5 55 55 56 56 # single-chip radius match in pixels … … 79 79 PSASTRO.MATCH.LUMFUNC BOOL FALSE 80 80 PSASTRO.IGNORE STR SATURATED, DEFECT, SATSTAR, BLEND,FAIL 81 82 83 84 81 85 82 PHOTCODE.DATA MULTI #these are the zeropoints calculated by hand (10 stars) -
branches/eam_branches/ipp-20110505/ippconfig/recipes/reductionClasses.mdc
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20110505/ppImage/src
- Property svn:mergeinfo changed (with no actual effect on merging)
-
branches/eam_branches/ipp-20110505/psModules/src/objects/models/pmModel_PS1_V1.c
r31545 r31628 301 301 return ( sigma * sqrt (2.0 * z) ); 302 302 } 303 304 303 psF64 limit = flux / PAR[PM_PAR_I0]; 305 304 -
branches/eam_branches/ipp-20110505/psphot
- Property svn:mergeinfo changed (with no actual effect on merging)
Note:
See TracChangeset
for help on using the changeset viewer.
