IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 19, 2006, 4:16:26 PM (21 years ago)
Author:
jhoblitt
Message:

compilation fixes
switch to using the metadatadb API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/p2rawToPending.c

    r5881 r6060  
    22
    33// select pending frames (exposure+images) which are done/not done
    4 psArray *p2rawToPending (p2SearchConfig *config, psArray *rawFrames) {
     4psArray *p2rawToPending (p2Config *config, psArray *rawFrames) {
    55
    6     psArray *pendingFrames = psArrayAlloc (frames->n);
     6    psArray *pendingFrames = psArrayAlloc (rawFrames->n);
    77    pendingFrames->n = 0;
    88
     
    1010        ppRawFrame *rawFrame = rawFrames->data[i];
    1111
    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    );
    2019
    2120        psArray *pendingImages = psArrayAlloc (rawFrame->images->n);
    2221        pendingImages->n = 0;
    2322        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        );
    3834
    3935            psArrayAdd (pendingImages, 100, pendingImage);
Note: See TracChangeset for help on using the changeset viewer.