IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 29, 2006, 8:09:31 AM (20 years ago)
Author:
eugene
Message:

added ppFocus code to drop previous camera

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppFocusGetFWHM.c

    r7738 r7749  
    1111    int FWHMnum;
    1212
    13     pmFPAfile *input = psMetadataLookupPtr (&status, config->files, "PPIMAGE.INPUT");
     13    pmFPAfile *input = psMetadataLookupPtr (&status, config->files, "PSPHOT.OUTPUT");
    1414    if (!status) {
    1515        psErrorStackPrint(stderr, "Can't find input data!\n");
     
    4545                // in this example, we use the supplied PSPHOT.HEADER data in which FWHM_X,Y are supplied
    4646                header = psMetadataLookupPtr (&status, readout->analysis, "PSPHOT.HEADER");
    47                 if (header == NULL) continue;
     47                if (header == NULL) {
     48                    psError(PS_ERR_IO, false, "Missing header in ppFocus");
     49                    continue;
     50                }
    4851
    4952                FWHM_X = psMetadataLookupF32 (&status, header, "FWHM_X");
     
    5255                FWHMsum += 0.5*(FWHM_X + FWHM_Y);
    5356                FWHMnum ++;
     57
     58                psLogMsg ("ppFocus", 4, "focus pt: %f,%f, fwhm sum: %f, fwhm num: %d\n", FWHM_X, FWHM_Y, FWHMsum, FWHMnum);
    5459            }
    5560        }
     
    6772    psVectorExtend (focus, 10, 1);
    6873
    69     psMetadataRemoveKey (config->files, "PPIMAGE.INPUT");
     74    psLogMsg ("ppFocus", 4, "focus: %f, fwhm: %f (%d,%d)\n", FOCUS, FWHM, FWHMnum);
     75
    7076    psFree (view);
    7177    return true;
Note: See TracChangeset for help on using the changeset viewer.