IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.