Changeset 27020
- Timestamp:
- Feb 19, 2010, 5:46:13 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
dbconfig/changes.txt (modified) (1 diff)
-
dbconfig/diff.md (modified) (1 diff)
-
ippTasks/diff.pro (modified) (2 diffs)
-
ippTools/share/difftool_todiffskyfile.sql (modified) (1 diff)
-
ippTools/src/difftool.c (modified) (8 diffs)
-
ippTools/src/difftoolConfig.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dbconfig/changes.txt
r26904 r27020 1512 1512 1513 1513 -- Version 1.1.64 1514 1515 ALTER TABLE diffRun ADD COLUMN diff_mode SMALLINT NOT NULL AFTER magicked; 1516 1517 UPDATE dbversion set schema_version = '1.1.64', updated= CURRENT_TIMESTAMP(); 1518 1519 -- Version 1.1.65 1520 -
trunk/dbconfig/diff.md
r25835 r27020 15 15 exposure BOOL f 16 16 magicked S64 0 17 diff_mode S16 0 17 18 note STR 255 18 19 END -
trunk/ippTasks/diff.pro
r27005 r27020 182 182 book getword diffSkyfile $pageName dbname -var DBNAME 183 183 book getword diffSkyfile $pageName reduction -var REDUCTION 184 book getword diffSkyfile $pageName diff_mode -var DIFF_MODE 184 185 185 186 # set the host and workdir based on the skycell hash … … 191 192 # $WORKDIR = $WORKDIR_TEMPLATE 192 193 194 if ($DIFF_MODE == 2) 195 $DIFF_TAG = "WS." 196 else if ($DIFF_MODE == 3) 197 $DIFF_TAG = "SW." 198 else if ($DIFF_MODE == 4) 199 $DIFF_TAG = "SS." 200 else 201 # if (($DIFF_MODE == 1)||("$DIFF_MODE" == "NULL")) 202 $DIFF_TAG = "" 203 end 204 193 205 basename $TESS_DIR -var TESS_ID 194 sprintf outroot "%s/%s/%s/%s.%s. dif.%s" $WORKDIR $TESS_ID $SKYCELL_ID $TESS_ID $SKYCELL_ID$DIFF_ID206 sprintf outroot "%s/%s/%s/%s.%s.%sdif.%s" $WORKDIR $TESS_ID $SKYCELL_ID $TESS_ID $SKYCELL_ID $DIFF_TAG $DIFF_ID 195 207 196 208 stdout $LOGDIR/diff.skycell.log -
trunk/ippTools/share/difftool_todiffskyfile.sql
r26886 r27020 11 11 diffRun.state, 12 12 diffRun.reduction, 13 diffRun.bothways 13 diffRun.bothways, 14 diffRun.diff_mode 14 15 FROM diffRun 15 16 JOIN diffInputSkyfile USING(diff_id) -
trunk/ippTools/src/difftool.c
r27007 r27020 136 136 PXOPT_LOOKUP_STR(data_group, config->args, "-set_data_group", false, false); 137 137 PXOPT_LOOKUP_STR(dist_group, config->args, "-set_dist_group", false, false); 138 PXOPT_LOOKUP_STR(reduction, config->args, "-rset_eduction", false, false); 138 PXOPT_LOOKUP_STR(reduction, config->args, "-set_reduction", false, false); 139 PXOPT_LOOKUP_S16(diff_mode, config->args, "-set_diff_mode", false, false); 139 140 PXOPT_LOOKUP_STR(note, config->args, "-set_note", false, false); 140 141 … … 157 158 exposure, 158 159 false, 160 diff_mode, 159 161 note 160 162 ); … … 990 992 return false; 991 993 } 992 994 psS16 diff_mode = 0; 995 if ((input_warp_id != PS_MAX_S64) && (template_warp_id != PS_MAX_S64)) { 996 diff_mode = 1; 997 } 998 else if ((input_warp_id != PS_MAX_S64) && (template_stack_id != PS_MAX_S64)) { 999 diff_mode = 2; 1000 } 1001 else if ((input_stack_id != PS_MAX_S64) && (template_warp_id != PS_MAX_S64)) { 1002 diff_mode = 3; 1003 } 1004 else if ((input_stack_id != PS_MAX_S64) && (template_stack_id != PS_MAX_S64)) { 1005 diff_mode = 4; 1006 } 1007 1008 993 1009 // default 994 1010 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); … … 1009 1025 false, 1010 1026 0, // magicked 1027 diff_mode, // diff_mode 1011 1028 note 1012 1029 ); … … 1114 1131 1115 1132 psArray *list = psArrayAllocEmpty(16); // List of runs, to print 1116 1133 // Populated Run will generate the diff_mode value 1117 1134 if (!populatedrun(list, workdir, skycell_id, tess_id, label, data_group ? data_group : label, dist_group, reduction, note, 1118 1135 input_warp_id ? input_warp_id : PS_MAX_S64, … … 1419 1436 true, // exposure 1420 1437 0, // magicked 1438 2, // diff_mode for warp-stack difference 1421 1439 note 1422 1440 ); … … 1760 1778 } 1761 1779 1762 diffRunRow *run = diffRunRowAlloc(0, "reg", workdir, label, data_group ? data_group : label, dist_group, reduction, NULL, registered, 1763 tess_id, true, true, false, note); // Run to insert 1780 diffRunRow *run = diffRunRowAlloc(0, 1781 "reg", 1782 workdir, 1783 label, 1784 data_group ? data_group : label, 1785 dist_group, 1786 reduction, 1787 NULL, // dvodb 1788 registered, 1789 tess_id, 1790 true, // bothways 1791 true, // exposure 1792 false, // magicked 1793 1, // diff_mode for warp-warp diff 1794 note); // Run to insert 1764 1795 if (!diffRunInsertObject(config->dbh, run)) { 1765 1796 psError(PS_ERR_UNKNOWN, false, "database error"); … … 2042 2073 false, // exposure 2043 2074 0, // magicked 2075 4, // diff_mode 2044 2076 note 2045 2077 ); -
trunk/ippTools/src/difftoolConfig.c
r26984 r27020 56 56 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-set_data_group", 0, "define data group", NULL); 57 57 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-set_dist_group", 0, "define dist group", NULL); 58 psMetadataAddS16(definerunArgs, PS_LIST_TAIL, "-set_diff_mode", 0, "specify type of difference (WW=1,WS=2,SW=3,SS=4)", 0); 58 59 psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-set_note", 0, "define note", NULL); 59 60 psMetadataAddBool(definerunArgs, PS_LIST_TAIL, "-simple", 0, "use the simple output format", false); … … 68 69 psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-set_data_group", 0, "define new data_group", NULL); 69 70 psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-set_dist_group", 0, "define new dist_group", NULL); 71 psMetadataAddS16(updaterunArgs, PS_LIST_TAIL, "-set_diff_mode", 0, "specify type of difference (WW=1,WS=2,SW=3,SS=4)", 0); 70 72 psMetadataAddStr(updaterunArgs, PS_LIST_TAIL, "-set_note", 0, "define new note", NULL); 71 73
Note:
See TracChangeset
for help on using the changeset viewer.
