IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 19, 2007, 11:37:58 AM (19 years ago)
Author:
Paul Price
Message:

Had trouble with defining files for psphot from pswarp --- didn't know what format to use, and so ended up using the default one, which was wrong (because wanted to run psphot on the warped image, not the input image). So added format and format name to the pmFPAfile, and new functions to define a file from one already existing, using its camera and format.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfile.c

    r14647 r14889  
    2727    psTrace ("pmFPAfileFree", 5, "freeing %s\n", file->name);
    2828    psFree (file->fpa);
     29    psFree (file->src);
    2930    psFree (file->readout);
    3031    psFree (file->names);
    3132
    3233    psFree (file->camera);
     34    psFree (file->cameraName);
    3335    psFree (file->format);
    3436    psFree (file->formatName);
     
    7375
    7476    file->camera = NULL;
     77    file->cameraName = NULL;
    7578    file->format = NULL;
    7679    file->formatName = NULL;
     
    175178
    176179    if (strstr (newName, "{FPA.NAME}") != NULL) {
    177         char *name = psMetadataLookupStr (NULL, fpa->concepts, "FPA.NAME");
    178         if (name != NULL) {
    179             psStringSubstitute(&newName, "fpa", "{FPA.NAME}");
    180         }
     180        char *name = psMetadataLookupStr (NULL, fpa->concepts, "FPA.NAME");
     181        if (name != NULL) {
     182            psStringSubstitute(&newName, "fpa", "{FPA.NAME}");
     183        }
    181184    }
    182185    if (strstr (newName, "{CHIP.NAME}") != NULL) {
Note: See TracChangeset for help on using the changeset viewer.