IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 8, 2009, 8:30:42 AM (17 years ago)
Author:
Paul Price
Message:

Add ability to generate a single PSF as a small postage stamp.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppViz/src/ppVizPSF/ppVizPSFCamera.c

    r26364 r26367  
    3939    }
    4040
    41     fileArguments("SOURCES", data->sourcesName, "Input sources", data->config);
    42     pmFPAfile *srcs = pmFPAfileBindFromArgs(&status, psf, data->config,
    43                                             "PSPHOT.INPUT.CMF", "SOURCES"); // File
    44     if (!status || !srcs) {
    45         psError(PS_ERR_IO, false, "Failed to build file from PSPHOT.INPUT.CMF");
    46         return false;
     41    if (data->sourcesName) {
     42        fileArguments("SOURCES", data->sourcesName, "Input sources", data->config);
     43        pmFPAfile *srcs = pmFPAfileBindFromArgs(&status, psf, data->config,
     44                                                "PSPHOT.INPUT.CMF", "SOURCES"); // File
     45        if (!status || !srcs) {
     46            psError(PS_ERR_IO, false, "Failed to build file from PSPHOT.INPUT.CMF");
     47            return false;
     48        }
    4749    }
    4850
     
    6769    }
    6870
     71    if (!data->sourcesName) {
     72        data->size = psMetadataLookupS32(NULL, recipe, "SIZE"); // Size of PSF
     73        if (data->size <= 0) {
     74            psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Unable to find legitimate value for SIZE");
     75            return false;
     76        }
     77    }
     78
    6979    return true;
    7080}
Note: See TracChangeset for help on using the changeset viewer.