IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 11, 2007, 1:59:28 PM (19 years ago)
Author:
eugene
Message:

moved analysis steps into psastroAnalysis.c
moved file definitions into psastroDefineFiles.c
created psastroInternal.h, and psastroStandAlone.h
moved library prototypes only in psastro.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroLoadRefstars.c

    r12794 r12806  
    1 # include "psastro.h"
     1# include "psastroInternal.h"
    22# define ELIXIR_MODE 1
    33
     
    2222    PS_ASSERT (CATDIR, NULL);
    2323
    24     char *getstarCommand = psMetadataLookupStr(NULL, recipe, "DVO.GETSTAR");
     24    char *getstarCommand = psMemIncrRefCounter(psMetadataLookupStr(NULL, recipe, "DVO.GETSTAR"));
    2525    PS_ASSERT (getstarCommand, NULL);
    2626
     
    4444    }
    4545
    46     // XXX check for a default name (use .ptolemyrc)?
    47     if (CATDIR) {
     46    // check for default name (use .ptolemyrc), or use specified CATDIR
     47    if (strcasecmp(CATDIR, "NONE")) {
    4848        psStringAppend (&getstarCommand, " -D CATDIR %s", CATDIR);
    49     }
     49    } 
    5050
    5151    // psStringAppend (&getstarCommand, " -D CATMODE mef -maglim %f -region %f %f %f %f -o %s", MAGmax, RAmin, DECmin, RAmax, DECmax, tempFile);
     
    8989    // convert the Average table to the pmAstromObj entries
    9090    psTimerStart ("psastro");
     91
    9192    psArray *refstars = psArrayAllocEmpty (table->n);
    9293    for (int i = 0; i < table->n; i++) {
Note: See TracChangeset for help on using the changeset viewer.