IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 21, 2010, 2:38:47 PM (16 years ago)
Author:
rhenders
Message:

Remove dependance on DVO Db

File:
1 edited

Legend:

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

    r29179 r29184  
    250250    psMemSetDeallocator(this, (psFreeFunc)ippToPsps_Destructor);
    251251
     252    // deal with DVO database
     253    bool haveDvo = false;
     254    for (int i=0;i<*argc; i++) {
     255
     256        if (strcmp(argv[i], "CATDIR") == 0) {haveDvo = true; break;}
     257    }
     258    if (haveDvo) this->dvoConfig = dvoConfigRead(argc, argv);
     259    else this->dvoConfig = NULL;
     260
     261    // remaining args
    252262    this->expId = -1;
    253263    this->expName = NULL;
     
    261271    this->fitsOut = NULL;
    262272    this->configsDir = NULL;
    263     this->dvoConfig = NULL;
    264273    this->config = NULL;
    265     this->dvoConfig = dvoConfigRead(argc, argv);
    266274    this->pmconfig = pmConfigRead(argc, argv, NULL);
    267275    this->exitCode = PS_EXIT_SUCCESS;
     
    299307        psStringAppend(&this->configsDir, "/stack");
    300308
    301 
     309    // create filename
    302310    char outputName[100];
    303311    sprintf(outputName, "%08d.FITS", this->expId);
Note: See TracChangeset for help on using the changeset viewer.