IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6336


Ignore:
Timestamp:
Feb 7, 2006, 10:19:58 AM (20 years ago)
Author:
jhoblitt
Message:

remove p0CameraConfig tables
update database table formats

Location:
trunk/ippTools/src
Files:
8 edited

Legend:

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

    r6299 r6336  
    3838            rawFrame->exposure->exp_id,
    3939            rawFrame->exposure->camera,
     40            rawFrame->exposure->telescope,
    4041            rawFrame->exposure->exp_type,
     42            rawFrame->exposure->class,
     43            rawFrame->exposure->imfiles,
    4144            rawFrame->exposure->filter,
    42             rawFrame->exposure->class,
    43             rawFrame->exposure->nclass,
    4445            rawFrame->exposure->stats,
     46            "my recipe",
    4547            0xff,
    4648            0xff
     
    5456            p2PendingImfileRow *pendingImage = p2PendingImfileRowAlloc(
    5557                rawImage->exp_id,
    56                 rawImage->class,
    5758                rawImage->class_id,
     59                rawImage->url,
     60                "my stats",
     61                "my recipe",
    5862                0xff, // p1
    59                 0xff, // p2
    60                 "",
    61                 "",
    62                 // XXX cleanup the url somehow
    63                 rawImage->url
     63                0xff  // p2
    6464            );
    6565
  • trunk/ippTools/src/p2pendingToDone.c

    r6277 r6336  
    1616            pendingFrame->exposure->exp_id,
    1717            pendingFrame->exposure->camera,
     18            pendingFrame->exposure->telescope,
    1819            pendingFrame->exposure->exp_type,
     20            pendingFrame->exposure->class,
     21            pendingFrame->exposure->imfiles,
    1922            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",
    2325            pendingFrame->exposure->p1_version,
    2426            pendingFrame->exposure->p2_version
    25             //doneExposure->state = P2_STATE_DONE;
    2627        );
    2728
     
    3940            p2DoneImfileRow *doneImage = p2DoneImfileRowAlloc(
    4041                pendingImage->exp_id,
    41                 pendingImage->class,
    4242                pendingImage->class_id,
     43                pendingImage->url,
     44                "my stats", // stats
     45                "my recipe", // recipe
    4346                pendingImage->p1_version,
    44                 pendingImage->p2_version,
    45                 "", // recipe
    46                 "", // stats
    47                 pendingImage->url
     47                pendingImage->p2_version
    4848            );
    4949
     
    7373        p2DoneImfileRow *doneImfile = p2DoneImfileRowAlloc(
    7474            pendingImfile->exp_id,
    75             pendingImfile->class,
    7675            pendingImfile->class_id,
     76            pendingImfile->url,
     77            "my recipe", // recipe
     78            "my stats", // stats
    7779            pendingImfile->p1_version,
    78             pendingImfile->p2_version,
    79             "", // recipe
    80             "", // stats
    81             pendingImfile->url
     80            pendingImfile->p2_version
    8281        );
    8382
     
    9594        pendingExp->exp_id,
    9695        pendingExp->camera,
     96        pendingExp->telescope,
    9797        pendingExp->exp_type,
     98        pendingExp->class,
     99        pendingExp->imfiles, // XXX ndone is uneeded?
    98100        pendingExp->filter,
    99         pendingExp->class,
    100         pendingExp->nclass, // XXX ndone is uneeded?
    101         0xFF, // ndone
     101        pendingExp->stats,
     102        "my recipe",
    102103        pendingExp->p1_version,
    103104        pendingExp->p2_version
  • trunk/ippTools/src/p2rawToPending.c

    r6299 r6336  
    1515            rawFrame->exposure->exp_id,
    1616            rawFrame->exposure->camera,
     17            rawFrame->exposure->telescope,
    1718            rawFrame->exposure->exp_type,
     19            rawFrame->exposure->class,
     20            rawFrame->exposure->imfiles,
    1821            rawFrame->exposure->filter,
    19             rawFrame->exposure->class,
    20             rawFrame->exposure->nclass,
    2122            rawFrame->exposure->stats,
     23            "my recipe",
    2224            0xff,   // p1
    2325            0xff    // p2
     
    3032            p2PendingImfileRow *pendingImage = p2PendingImfileRowAlloc(
    3133                rawImage->exp_id,
    32                 rawImage->class,
    3334                rawImage->class_id,
     35                rawImage->url,
     36                "my stats",      // stats
     37                "my recipe",     // recipe
    3438                0xff,   // p1
    35                 0xff,   // p2
    36                 "",     // recipe
    37                 "",     // stats
    38                 rawImage->url
     39                0xff    // p2
    3940            );
    4041
  • trunk/ippTools/src/p2updatePending.c

    r6261 r6336  
    2121        psMetadataAddS32 (where, PS_LIST_TAIL, "P2_VERSION", PS_META_REPLACE, "==", exposure->p2_version);
    2222        psArray *images = p2PendingImfileSelectRowObjects (config->database, where, MAX_ROWS);
    23         if (images->n != exposure->nclass) {
     23        if (images->n != exposure->imfiles) {
    2424            // free things
    2525            continue;
  • trunk/ippTools/src/pxframes.c

    r6285 r6336  
    5353        for (int j = 0; j < frame->images->n; j++) { \
    5454            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); \
    5757            psMetadata *md = imfiletype##MetadataFromObject(image); \
    5858            psMetadataAddMetadata(output, PS_LIST_TAIL, #imfiletype,  PS_META_DUPLICATE_OK, NULL, md); \
     
    120120rawScienceFrame *newToRawScienceFrame(newFrame *newFrame)
    121121{
    122     newExpRow       *newExp = NULL;
    123 
    124122    PS_ASSERT_PTR_NON_NULL(newFrame, NULL);
    125123
    126     newExp = newFrame->exposure;
     124    newExpRow *newExp = newFrame->exposure;
    127125    rawScienceExpRow *rawScienceExp = rawScienceExpRowAlloc(
    128126        newExp->exp_id,
    129127        newExp->camera,
     128        newExp->telescope,
    130129        newExp->exp_type,
    131         newExp->filter,
    132130        newExp->class,
    133         newExp->nclass,
    134         newExp->stats
     131        newExp->imfiles,
     132        "my filter",
     133        "my stats"
    135134    );
    136135
     
    142141        psArrayAdd(rawImages, 0, rawImfileRowAlloc(
    143142                newImfile->exp_id,
    144                 newImfile->class,
    145143                newImfile->class_id,
    146                 newImfile->stats,
    147                 newImfile->url
     144                newImfile->url,
     145                "my stats"
    148146            )
    149147        );
     
    187185        newExp->exp_id,
    188186        newExp->camera,
     187        newExp->telescope,
    189188        newExp->exp_type,
    190         newExp->filter,
    191189        newExp->class,
    192         newExp->nclass,
    193         newExp->stats
     190        newExp->imfiles,
     191        "my filter",
     192        "my stats"
    194193    );
    195194
     
    201200        psArrayAdd(rawImages, 0, rawImfileRowAlloc(
    202201                newImfile->exp_id,
    203                 newImfile->class,
    204202                newImfile->class_id,
    205                 newImfile->stats,
    206                 newImfile->url
     203                newImfile->url,
     204                "my stats"
    207205            )
    208206        );
  • trunk/ippTools/src/pxtables.c

    r6292 r6336  
    2323    }
    2424    if (!rawDetrendExpCreateTable(config->database)) {
    25         psError(PS_ERR_UNKNOWN, false, "database access failed");
    26         status = false;
    27     }
    28     if (!p0CameraConfigCreateTable(config->database)) {
    2925        psError(PS_ERR_UNKNOWN, false, "database access failed");
    3026        status = false;
     
    112108        status = false;
    113109    }
    114     if (!p0CameraConfigDropTable(config->database)) {
    115         psError(PS_ERR_UNKNOWN, false, "database access failed");
    116         status = false;
    117     }
    118110    if (!p1PendingExpDropTable(config->database)) {
    119111        psError(PS_ERR_UNKNOWN, false, "database access failed");
  • trunk/ippTools/src/regtool.c

    r6300 r6336  
    8080            }
    8181           
     82            /*
    8283            // lookup camera name in p0CameraConfig
    8384            psMetadata *where = psMetadataAlloc();
     
    127128
    128129            psFree(configs);
     130            */
    129131        }
    130132        psFree(new);
     
    203205        newExp->exp_id,
    204206        newExp->camera,
     207        newExp->telescope,
    205208        newExp->exp_type,
    206         newExp->filter,
    207209        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
    211215    );
    212216}
     
    217221        newExp->exp_id,
    218222        newExp->camera,
     223        newExp->telescope,
    219224        newExp->exp_type,
    220         newExp->filter,
    221225        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
    226232    );
    227233}
  • trunk/ippTools/src/regtoolConfig.c

    r6261 r6336  
    4646    psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-update",  0, "update pending image table", "");
    4747
     48
     49    // -pending search
     50    psMetadataAddStr(config->arguments, PS_LIST_TAIL, "-exp_id",  0, "define exposure ID", "");
    4851    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", "");
    4958    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", "");
    5462
    5563    if (config->mode == PX_MODE_NONE) {
Note: See TracChangeset for help on using the changeset viewer.