IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16878 for trunk/pstamp/src


Ignore:
Timestamp:
Mar 7, 2008, 3:45:20 PM (18 years ago)
Author:
bills
Message:

adapt to the completed data store interfaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/src/pstampfinish.c

    r16593 r16878  
    238238    psString command = NULL;
    239239
    240     psStringAppend(&command, "dsreg -dsdir %s -add -type PSTAMP %s %s",
    241             options->dsRoot, options->dsProduct, fileset_id);
     240    psStringAppend(&command, "dsreg --add --type PSRESPONSE --product %s --fileset %s",
     241            options->dsProduct, fileset_id);
    242242
    243243    printf("command is: %s\n", command);
     
    245245    // open a pipe to dsreg and set up the output fileset
    246246    // Each line of input describes one of the files
    247     #define DSREG_FORMAT_STRING "%s chip na\n"
     247    #define DSREG_FORMAT_STRING "%s|%s\n"
    248248
    249249    FILE *pipe = popen(command, "w");
     
    255255
    256256    // First the results table that we built above
    257     fprintf(pipe, DSREG_FORMAT_STRING, "results.fits");
     257    fprintf(pipe, DSREG_FORMAT_STRING, "results.fits", "psresults");
    258258
    259259    // Next each of the stamps
    260260    for (int i = 0; i < numStamps; i++) {
    261         fprintf(pipe, DSREG_FORMAT_STRING, (psString) psArrayGet(stamps, i));
     261        fprintf(pipe, DSREG_FORMAT_STRING, (psString) psArrayGet(stamps, i), "pstamp");
    262262    }
    263263
Note: See TracChangeset for help on using the changeset viewer.