IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 16, 2007, 4:00:33 PM (19 years ago)
Author:
bills
Message:

Solved problem with chip and cell boundary calculations by using different
functions than pmChipPixels and pmCellExtents. They don't do their calculations
in image coordinates.

Implemented specifying width/height of the ROI in celestial coordinates.
Removed unneeded WCS calculation methods. (The bug I was chasing was actually
not in ppstamp. It was a bug in ds9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppstamp/src/ppstamp.h

    r15280 r15323  
    1616#include "ppStats.h"
    1717
    18 #define RECIPE_NAME "PPSTAMP"           // Name of the recipe to use
    1918#define TIMERNAME "ppstamp"             // Name of timer
    2019
     
    2928typedef struct {
    3029    // input arguments
    31     double centerX;
    32     double centerY;
    33     double dX;
    34     double dY;
     30    int    centerX;
     31    int    centerY;
     32    int    dX;
     33    int    dY;
    3534    double centerRA;
    3635    double centerDEC;
    3736    double dRA;
    3837    double dDEC;
    39     bool celestialCenter;       // true if center is in RA/dec
    40     bool celestialRange;        // true if range is in RA/dec
     38    bool   celestialCenter;       // true if center is in RA/dec
     39    bool   celestialRange;        // true if range is in RA/dec
    4140    psString    chipName;
    4241    //
    43     // Calculated Parameters
     42    // Calculated Values
    4443    //
    45     int         chip;
    46     int         cell;
    4744    psRegion    roi;            // roi in chip coordinates
    48     // psPlane     fpaCenter;      // center of ROI in FPA coordinates
    49     // ppstampROI  fpaROI;         // region of interest in FPA coordinates
     45
    5046} ppstampOptions;
    5147
     
    6460bool ppstampMakeStamp(pmConfig *config, ppstampOptions *);
    6561
    66 // Loop over the input
    67 bool ppstampLoop(pmConfig *config, ppstampOptions *options);
    68 
    69 bool ppstampReadout(pmConfig *config, pmFPAview *view);
    70 
    7162// free memory, check for leaks
    7263void ppstampCleanup (pmConfig *config, ppstampOptions *options);
    73 
    74 #ifdef notyet
    75 // calculate stats, including MD5
    76 bool ppstampStats (pmConfig *config, pmChip *chip, const pmFPAview *inputView);
    77 
    78 // write stats to output file
    79 bool ppstampStatsOutput (pmConfig *config);
    80 #endif
    8164
    8265/// Return short version information
     
    9073    );
    9174
    92 
    93 // calculate stats, including MD5
    94 bool ppstampPixelStats (pmConfig *config, const pmFPAview *inputView);
    95 
    96 // calculate stats from headers and concepts
    97 bool ppstampMetadataStats (pmConfig *config);
    98 
    99 void ppstampFileCheck (pmConfig *config);
     75psRegion *ppstampCellRegion(const pmCell *cell);
     76psRegion *ppstampChipRegion(const pmChip *chip);
    10077
    10178#endif
Note: See TracChangeset for help on using the changeset viewer.