IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 7, 2010, 2:58:52 PM (16 years ago)
Author:
rhenders
Message:

Now pulling correct survey ID from init data

File:
1 edited

Legend:

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

    r28205 r28249  
    9393    if (this->numOfInputFiles < 1) return false;
    9494
    95 
    9695    this->inputFiles = (char**)calloc(this->numOfInputFiles, sizeof(char*));
    9796    for(uint32_t i=0; i<this->numOfInputFiles; i++)
     
    145144    psMetadataAddStr(arguments, PS_LIST_TAIL, "-expid", 0, "Exposure ID", NULL);
    146145    psMetadataAddStr(arguments, PS_LIST_TAIL, "-expname", 0, "Exposure name", NULL);
     146    psMetadataAddStr(arguments, PS_LIST_TAIL, "-survey", 0, "Survey type", NULL);
    147147    psMetadataAddStr(arguments, PS_LIST_TAIL, "-input", 0, "Path to FITS inout", NULL);
    148148    psMetadataAddStr(arguments, PS_LIST_TAIL, "-output", 0, "Path to FITS output", NULL);
     
    163163        //free(tmp); tmp = NULL;
    164164        this->expName = psMemIncrRefCounter(psMetadataLookupStr(NULL, arguments, "-expname"));
     165        this->surveyType = psMemIncrRefCounter(psMetadataLookupStr(NULL, arguments, "-survey"));
    165166        this->fitsInPath = psMemIncrRefCounter(psMetadataLookupStr(NULL, arguments, "-input"));
    166167        this->resultsPath = psMemIncrRefCounter(psMetadataLookupStr(NULL, arguments, "-results"));
     
    179180        if (
    180181                (this->batchType != BATCH_INIT && !this->expName) ||
     182                (this->batchType != BATCH_INIT && !this->surveyType) ||
    181183                (this->batchType != BATCH_INIT && !this->fitsInPath) ||
    182184                (this->batchType != BATCH_INIT && !this->resultsPath) ||
     
    241243    this->expId = -1;
    242244    this->expName = NULL;
     245    this->surveyType = NULL;
    243246    this->fitsInPath = NULL;
    244247    this->resultsPath = NULL;
Note: See TracChangeset for help on using the changeset viewer.