IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28205 for trunk/ippToPsps/src


Ignore:
Timestamp:
Jun 3, 2010, 3:33:37 PM (16 years ago)
Author:
rhenders
Message:

Now pulling exposure name from the Db and passing it to ippToPsps to include in FITS files

Location:
trunk/ippToPsps/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/src/ippToPsps.c

    r27871 r28205  
    144144    psMetadata *arguments = psMetadataAlloc();
    145145    psMetadataAddStr(arguments, PS_LIST_TAIL, "-expid", 0, "Exposure ID", NULL);
     146    psMetadataAddStr(arguments, PS_LIST_TAIL, "-expname", 0, "Exposure name", NULL);
    146147    psMetadataAddStr(arguments, PS_LIST_TAIL, "-input", 0, "Path to FITS inout", NULL);
    147148    psMetadataAddStr(arguments, PS_LIST_TAIL, "-output", 0, "Path to FITS output", NULL);
     
    161162        if (tmp) this->expId = atoi(tmp);
    162163        //free(tmp); tmp = NULL;
     164        this->expName = psMemIncrRefCounter(psMetadataLookupStr(NULL, arguments, "-expname"));
    163165        this->fitsInPath = psMemIncrRefCounter(psMetadataLookupStr(NULL, arguments, "-input"));
    164166        this->resultsPath = psMemIncrRefCounter(psMetadataLookupStr(NULL, arguments, "-results"));
     
    176178
    177179        if (
     180                (this->batchType != BATCH_INIT && !this->expName) ||
    178181                (this->batchType != BATCH_INIT && !this->fitsInPath) ||
    179182                (this->batchType != BATCH_INIT && !this->resultsPath) ||
     
    237240
    238241    this->expId = -1;
     242    this->expName = NULL;
    239243    this->fitsInPath = NULL;
    240244    this->resultsPath = NULL;
  • trunk/ippToPsps/src/ippToPsps.h

    r27871 r28205  
    2121
    2222    uint32_t expId;            // the exposure ID to be used
     23    psString expName;          // the exposure name
    2324    uint8_t batchType;         // PSPS batch type
    2425    psString fitsInPath;       // path to FITS input
  • trunk/ippToPsps/src/ippToPspsBatchDetection.c

    r28105 r28205  
    6363    // FrameMeta values
    6464    fits_write_col(this->fitsOut, TLONG, FRAMEMETA_FRAMEID, 1, 1, 1, &this->expId, &status);
     65    fits_write_col(this->fitsOut, TSTRING, FRAMEMETA_FRAMENAME, 1, 1, 1, &this->expName, &status);
    6566
    6667    int8_t surveyID = 0; // TODO
     
    199200            skylist = dvoSkyListByExternID(this->dvoConfig, sourceId, imageId, &pImage);
    200201            if (skylist == NULL) {
    201                 psError(PS_ERR_IO, false, "DVO: can't find SkyList for sourceId='%d' imageId='%d' (CCD = XY%s): skipping\n", sourceId, imageId, ccdNumber);
     202                psError(PS_ERR_IO, false,
     203                        "DVO: can't find SkyList for sourceId='%d' imageId='%d' (CCD = XY%s): skipping\n",
     204                        sourceId, imageId, ccdNumber);
    202205                continue;
    203206            }
Note: See TracChangeset for help on using the changeset viewer.