Changeset 6336
- Timestamp:
- Feb 7, 2006, 10:19:58 AM (20 years ago)
- Location:
- trunk/ippTools/src
- Files:
-
- 8 edited
-
p2insertPendingFrames.c (modified) (2 diffs)
-
p2pendingToDone.c (modified) (4 diffs)
-
p2rawToPending.c (modified) (2 diffs)
-
p2updatePending.c (modified) (1 diff)
-
pxframes.c (modified) (5 diffs)
-
pxtables.c (modified) (2 diffs)
-
regtool.c (modified) (4 diffs)
-
regtoolConfig.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/p2insertPendingFrames.c
r6299 r6336 38 38 rawFrame->exposure->exp_id, 39 39 rawFrame->exposure->camera, 40 rawFrame->exposure->telescope, 40 41 rawFrame->exposure->exp_type, 42 rawFrame->exposure->class, 43 rawFrame->exposure->imfiles, 41 44 rawFrame->exposure->filter, 42 rawFrame->exposure->class,43 rawFrame->exposure->nclass,44 45 rawFrame->exposure->stats, 46 "my recipe", 45 47 0xff, 46 48 0xff … … 54 56 p2PendingImfileRow *pendingImage = p2PendingImfileRowAlloc( 55 57 rawImage->exp_id, 56 rawImage->class,57 58 rawImage->class_id, 59 rawImage->url, 60 "my stats", 61 "my recipe", 58 62 0xff, // p1 59 0xff, // p2 60 "", 61 "", 62 // XXX cleanup the url somehow 63 rawImage->url 63 0xff // p2 64 64 ); 65 65 -
trunk/ippTools/src/p2pendingToDone.c
r6277 r6336 16 16 pendingFrame->exposure->exp_id, 17 17 pendingFrame->exposure->camera, 18 pendingFrame->exposure->telescope, 18 19 pendingFrame->exposure->exp_type, 20 pendingFrame->exposure->class, 21 pendingFrame->exposure->imfiles, 19 22 pendingFrame->exposure->filter, 20 pendingFrame->exposure->class, 21 pendingFrame->exposure->nclass, // XXX ndone is uneeded? 22 0xFF, // ndone 23 pendingFrame->exposure->stats, 24 "my recipe", 23 25 pendingFrame->exposure->p1_version, 24 26 pendingFrame->exposure->p2_version 25 //doneExposure->state = P2_STATE_DONE;26 27 ); 27 28 … … 39 40 p2DoneImfileRow *doneImage = p2DoneImfileRowAlloc( 40 41 pendingImage->exp_id, 41 pendingImage->class,42 42 pendingImage->class_id, 43 pendingImage->url, 44 "my stats", // stats 45 "my recipe", // recipe 43 46 pendingImage->p1_version, 44 pendingImage->p2_version, 45 "", // recipe 46 "", // stats 47 pendingImage->url 47 pendingImage->p2_version 48 48 ); 49 49 … … 73 73 p2DoneImfileRow *doneImfile = p2DoneImfileRowAlloc( 74 74 pendingImfile->exp_id, 75 pendingImfile->class,76 75 pendingImfile->class_id, 76 pendingImfile->url, 77 "my recipe", // recipe 78 "my stats", // stats 77 79 pendingImfile->p1_version, 78 pendingImfile->p2_version, 79 "", // recipe 80 "", // stats 81 pendingImfile->url 80 pendingImfile->p2_version 82 81 ); 83 82 … … 95 94 pendingExp->exp_id, 96 95 pendingExp->camera, 96 pendingExp->telescope, 97 97 pendingExp->exp_type, 98 pendingExp->class, 99 pendingExp->imfiles, // XXX ndone is uneeded? 98 100 pendingExp->filter, 99 pendingExp->class, 100 pendingExp->nclass, // XXX ndone is uneeded? 101 0xFF, // ndone 101 pendingExp->stats, 102 "my recipe", 102 103 pendingExp->p1_version, 103 104 pendingExp->p2_version -
trunk/ippTools/src/p2rawToPending.c
r6299 r6336 15 15 rawFrame->exposure->exp_id, 16 16 rawFrame->exposure->camera, 17 rawFrame->exposure->telescope, 17 18 rawFrame->exposure->exp_type, 19 rawFrame->exposure->class, 20 rawFrame->exposure->imfiles, 18 21 rawFrame->exposure->filter, 19 rawFrame->exposure->class,20 rawFrame->exposure->nclass,21 22 rawFrame->exposure->stats, 23 "my recipe", 22 24 0xff, // p1 23 25 0xff // p2 … … 30 32 p2PendingImfileRow *pendingImage = p2PendingImfileRowAlloc( 31 33 rawImage->exp_id, 32 rawImage->class,33 34 rawImage->class_id, 35 rawImage->url, 36 "my stats", // stats 37 "my recipe", // recipe 34 38 0xff, // p1 35 0xff, // p2 36 "", // recipe 37 "", // stats 38 rawImage->url 39 0xff // p2 39 40 ); 40 41 -
trunk/ippTools/src/p2updatePending.c
r6261 r6336 21 21 psMetadataAddS32 (where, PS_LIST_TAIL, "P2_VERSION", PS_META_REPLACE, "==", exposure->p2_version); 22 22 psArray *images = p2PendingImfileSelectRowObjects (config->database, where, MAX_ROWS); 23 if (images->n != exposure-> nclass) {23 if (images->n != exposure->imfiles) { 24 24 // free things 25 25 continue; -
trunk/ippTools/src/pxframes.c
r6285 r6336 53 53 for (int j = 0; j < frame->images->n; j++) { \ 54 54 imfiletype##Row *image = frame->images->data[j]; \ 55 fprintf (stream, "%s %s %s %s\n", \56 image->exp_id, image->class , image->class_id, image->url); \55 fprintf (stream, "%s %s %s\n", \ 56 image->exp_id, image->class_id, image->url); \ 57 57 psMetadata *md = imfiletype##MetadataFromObject(image); \ 58 58 psMetadataAddMetadata(output, PS_LIST_TAIL, #imfiletype, PS_META_DUPLICATE_OK, NULL, md); \ … … 120 120 rawScienceFrame *newToRawScienceFrame(newFrame *newFrame) 121 121 { 122 newExpRow *newExp = NULL;123 124 122 PS_ASSERT_PTR_NON_NULL(newFrame, NULL); 125 123 126 newExp = newFrame->exposure;124 newExpRow *newExp = newFrame->exposure; 127 125 rawScienceExpRow *rawScienceExp = rawScienceExpRowAlloc( 128 126 newExp->exp_id, 129 127 newExp->camera, 128 newExp->telescope, 130 129 newExp->exp_type, 131 newExp->filter,132 130 newExp->class, 133 newExp->nclass, 134 newExp->stats 131 newExp->imfiles, 132 "my filter", 133 "my stats" 135 134 ); 136 135 … … 142 141 psArrayAdd(rawImages, 0, rawImfileRowAlloc( 143 142 newImfile->exp_id, 144 newImfile->class,145 143 newImfile->class_id, 146 newImfile-> stats,147 newImfile->url144 newImfile->url, 145 "my stats" 148 146 ) 149 147 ); … … 187 185 newExp->exp_id, 188 186 newExp->camera, 187 newExp->telescope, 189 188 newExp->exp_type, 190 newExp->filter,191 189 newExp->class, 192 newExp->nclass, 193 newExp->stats 190 newExp->imfiles, 191 "my filter", 192 "my stats" 194 193 ); 195 194 … … 201 200 psArrayAdd(rawImages, 0, rawImfileRowAlloc( 202 201 newImfile->exp_id, 203 newImfile->class,204 202 newImfile->class_id, 205 newImfile-> stats,206 newImfile->url203 newImfile->url, 204 "my stats" 207 205 ) 208 206 ); -
trunk/ippTools/src/pxtables.c
r6292 r6336 23 23 } 24 24 if (!rawDetrendExpCreateTable(config->database)) { 25 psError(PS_ERR_UNKNOWN, false, "database access failed");26 status = false;27 }28 if (!p0CameraConfigCreateTable(config->database)) {29 25 psError(PS_ERR_UNKNOWN, false, "database access failed"); 30 26 status = false; … … 112 108 status = false; 113 109 } 114 if (!p0CameraConfigDropTable(config->database)) {115 psError(PS_ERR_UNKNOWN, false, "database access failed");116 status = false;117 }118 110 if (!p1PendingExpDropTable(config->database)) { 119 111 psError(PS_ERR_UNKNOWN, false, "database access failed"); -
trunk/ippTools/src/regtool.c
r6300 r6336 80 80 } 81 81 82 /* 82 83 // lookup camera name in p0CameraConfig 83 84 psMetadata *where = psMetadataAlloc(); … … 127 128 128 129 psFree(configs); 130 */ 129 131 } 130 132 psFree(new); … … 203 205 newExp->exp_id, 204 206 newExp->camera, 207 newExp->telescope, 205 208 newExp->exp_type, 206 newExp->filter,207 209 newExp->class, 208 newExp->nclass, 209 newExp->stats, 210 0 // XXX calc version number 210 newExp->imfiles, 211 "my filter", 212 "my stats", 213 "my recipe", 214 0xff // XXX calc version number 211 215 ); 212 216 } … … 217 221 newExp->exp_id, 218 222 newExp->camera, 223 newExp->telescope, 219 224 newExp->exp_type, 220 newExp->filter,221 225 newExp->class, 222 newExp->nclass, 223 newExp->stats, 224 0, // XXX calc version number 225 0 // XXX calc version number 226 newExp->imfiles, 227 "my filter", 228 "my stats", 229 "my recipe", 230 0xff, // XXX calc version number 231 0xff // XXX calc version number 226 232 ); 227 233 } -
trunk/ippTools/src/regtoolConfig.c
r6261 r6336 46 46 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-update", 0, "update pending image table", ""); 47 47 48 49 // -pending search 50 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-exp_id", 0, "define exposure ID", ""); 48 51 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-inst", 0, "define camera of interest", ""); 52 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-telescope", 0, "define camera of interest", ""); 53 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-exp_type", 0, "define class", ""); 54 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-class", 0, "define class", ""); 55 56 // -update inputs 57 // psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-exp_id", 0, "define class", ""); 49 58 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-filter", 0, "define filter of interest", ""); 50 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-exp_id", 0, "define exposure ID", ""); 51 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-class", 0, "define class", ""); 52 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-class_id", 0, "define class ID", ""); 53 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-url", 0, "define URL", ""); 59 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-stat", 0, "define URL", ""); 60 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-recipe", 0, "define URL", ""); 61 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-mosiac", 0, "define URL", ""); 54 62 55 63 if (config->mode == PX_MODE_NONE) {
Note:
See TracChangeset
for help on using the changeset viewer.
