IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 8, 2008, 2:44:09 PM (18 years ago)
Author:
eugene
Message:

allow photcode and maglim to be option

File:
1 edited

Legend:

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

    r17676 r17999  
    7272
    7373    // supply the max magnitude, the output format, and the photcode
    74     psStringAppend (&getstarCommand, " -maglim %f -format %s -photcode %s", MAGmax, outformat, photcode);
     74    if (strcasecmp (photcode, "NONE")) {
     75        psStringAppend (&getstarCommand, " -maglim %f", MAGmax);
     76    }
     77    if (strcasecmp (photcode, "NONE")) {
     78        psStringAppend (&getstarCommand, " -photcode %s", photcode);
     79    }
     80    psStringAppend (&getstarCommand, " -format %s", outformat);
    7581
    7682    // add region and output filename
Note: See TracChangeset for help on using the changeset viewer.