Changeset 6060 for trunk/ippTools/src/p2rawToPending.c
- Timestamp:
- Jan 19, 2006, 4:16:26 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/p2rawToPending.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/p2rawToPending.c
r5881 r6060 2 2 3 3 // select pending frames (exposure+images) which are done/not done 4 psArray *p2rawToPending (p2 SearchConfig *config, psArray *rawFrames) {4 psArray *p2rawToPending (p2Config *config, psArray *rawFrames) { 5 5 6 psArray *pendingFrames = psArrayAlloc ( frames->n);6 psArray *pendingFrames = psArrayAlloc (rawFrames->n); 7 7 pendingFrames->n = 0; 8 8 … … 10 10 ppRawFrame *rawFrame = rawFrames->data[i]; 11 11 12 p2PendingExposure *pendingExposure = p2PendingExposureAlloc (); 13 strcpy (pendingExposure->expID, rawFrame->exposure->expID); 14 pendingExposure->class = rawFrame->exposure->class; 15 pendingExposure->Nclass = rawFrame->exposure->Nclass; 16 pendingExposure->Ndone = 0; 17 pendingExposure->P1version = 0xff; 18 pendingExposure->P2version = 0xff; 19 pendingExposure->state = P2_STATE_PENDING; 12 p2PendingExpRow *pendingExposure = p2PendingExpRowAlloc( 13 rawFrame->exposure->exp_id, 14 rawFrame->exposure->class, 15 rawFrame->exposure->nclass, 16 0xff, // p1 17 0xff // p2 18 ); 20 19 21 20 psArray *pendingImages = psArrayAlloc (rawFrame->images->n); 22 21 pendingImages->n = 0; 23 22 for (int j = 0; j < rawFrame->images->n; j++) { 24 ppRawImage *rawImage = rawFrame->images->data[j]; 25 p2PendingImage *pendingImage = p2PendingImageAlloc (); 26 27 strcpy (pendingImage->expID, rawImage->expID); 28 pendingImage->P2version = 0xff; 29 pendingImage->class = rawImage->; 30 strcpy (pendingImage->classID, rawImage->classID); 31 32 pendingImage->urlroot = rawImage->; 33 strcpy (pendingImage->input, "raw.fits"); 34 strcpy (pendingImage->output, "flt.fits"); 35 strcpy (pendingImage->log, "log"); 36 strcpy (pendingImage->smf, "smf"); 37 pendingImage->state = P2_STATE_PENDING; 23 rawImfileRow *rawImage = rawFrame->images->data[j]; 24 p2PendingImfileRow *pendingImage = p2PendingImfileRowAlloc( 25 rawImage->exp_id, 26 rawImage->class, 27 rawImage->class_id, 28 0xff, // p1 29 0xff, // p2 30 "", // recipe 31 "", // stats 32 rawImage->url 33 ); 38 34 39 35 psArrayAdd (pendingImages, 100, pendingImage);
Note:
See TracChangeset
for help on using the changeset viewer.
