IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 9, 2009, 3:16:06 PM (17 years ago)
Author:
Paul Price
Message:

Get input and reference source lists, and merge them to provide a source list for stamps and PSF.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubArguments.c

    r22735 r23235  
    3030    fprintf(stderr, "\nPan-STARRS PSF-matched image subtraction\n\n");
    3131    fprintf(stderr, "Usage: %s INPUT.fits REFERENCE.fits OUTPUT_ROOT \n"
    32             "\t[-psf REFERENCE.psf.fits] [-sources REFERENCE.cmf]\n\n"
     32            "\t[-psf REFERENCE.psf.fits]\n\n"
    3333            "This subtracts the convolved REFERENCE from the INPUT, by default.\n",
    3434            program);
     
    205205    }
    206206
    207     pmConfigFileSetsMD(config->arguments, &argc, argv, "PPSUB.SOURCES", "-sources", NULL);
    208 
    209207    psMetadata *arguments = config->arguments; // Command-line arguments
    210208    psMetadataAddStr(arguments, PS_LIST_TAIL, "-inmask", 0, "Input mask image", NULL);
    211209    psMetadataAddStr(arguments, PS_LIST_TAIL, "-invariance", 0, "Input variance image", NULL);
     210    psMetadataAddStr(arguments, PS_LIST_TAIL, "-insources", 0, "Input source list", NULL);
    212211    psMetadataAddStr(arguments, PS_LIST_TAIL, "-refmask", 0, "Reference mask image", NULL);
    213212    psMetadataAddStr(arguments, PS_LIST_TAIL, "-refvariance", 0, "Reference variance image", NULL);
     213    psMetadataAddStr(arguments, PS_LIST_TAIL, "-refsources", 0, "Reference source list", NULL);
    214214    psMetadataAddStr(arguments, PS_LIST_TAIL, "-stats", 0, "Statistics file", NULL);
    215215    psMetadataAddF32(arguments, PS_LIST_TAIL, "-region", 0, "Size of iso-kernel region", NAN);
     
    272272        fileList("INPUT.VARIANCE", inVariance, "Name of the input variance image", config);
    273273    }
     274    const char *inSources = psMetadataLookupStr(NULL, arguments, "-insources"); // Name of input source list
     275    if (inSources && strlen(inSources) > 0) {
     276        fileList("INPUT.SOURCES", inSources, "Name of the input source list", config);
     277    }
    274278
    275279    const char *refMask = psMetadataLookupStr(NULL, arguments, "-refmask"); // Name of reference mask
     
    280284    if (refVariance && strlen(refVariance) > 0) {
    281285        fileList("REF.VARIANCE", refVariance, "Name of the reference variance image", config);
     286    }
     287    const char *refSources = psMetadataLookupStr(NULL, arguments, "-refsources"); // Name of ref source list
     288    if (refSources && strlen(refSources) > 0) {
     289        fileList("REF.SOURCES", refSources, "Name of the reference source list", config);
    282290    }
    283291
Note: See TracChangeset for help on using the changeset viewer.