IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 21, 2005, 5:33:37 PM (21 years ago)
Author:
eugene
Message:

reorg

File:
1 edited

Legend:

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

    r5560 r5565  
    1111# define toSky projection
    1212
    13 # if (0)
    14 typedef struct
    15 {
    16     psProjection *toSky;                ///< Projection from tangent plane to sky
    17     psPlaneDistort *toTPA;              ///< Transformation from focal plane to tangent plane
    18     psPlaneDistort *fromTPA;            ///< Transformation from focal plane to tangent plane
    19     psArray *chips;                     ///< The chips
    20 }
    21 pmFPA;
    22 
    23 typedef struct
    24 {
    25     // Astrometric transformations
    26     psPlaneTransform *toFPA;            ///< Transformation from chip to FPA coordinates
    27     psPlaneTransform *fromFPA;          ///< Transformation from FPA to chip coordinates
    28     psArray *cells;                     ///< The cells
    29     pmFPA *fpa;
    30 }
    31 pmChip;
    32 
    33 typedef struct
    34 {
    35     // Astrometric transformations
    36     psPlaneTransform *toChip;           ///< Transformations from cell to chip coordinates
    37     psArray *readouts;                  ///< The readouts (referred to by number)
    38     psMetadata *header;                 ///< header always corresponds to a cell
    39     pmChip *chip;
    40 }
    41 pmCell;
    42 
    43 typedef struct
    44 {
    45     // Position on the cell
    46     int col0;                           ///< Offset from the left of chip.
    47     int row0;                           ///< Offset from the bottom of chip.
    48     int colBins;                        ///< Amount of binning in x-dimension
    49     int rowBins;                        ///< Amount of binning in y-dimension
    50     psArray *stars;                     ///< sources detected / measured on readout
    51     pmCell *cell;
    52 }
    53 pmReadout;
    54 # endif
    55 
    56 pmAstromStats     pmAstromGridAngle (psArray *st1, psArray *st2, psMetadata *config);
    57 psPlaneTransform *pmAstromGridApply (psPlaneTransform *map, pmAstromStats stat);
    58 pmAstromStats     pmAstromGridMatch (psArray *st1, psArray *st2, psMetadata *config);
    59 int               pmAstromObjSortByMag (const void **a, const void **b);
    6013bool              pmCellInterpretWCS (pmCell *cell, psMetadata *header) ;
    6114pmFPA            *pmFPACopyAstrom (pmFPA *inFPA);
     
    7023psMetadata *testArguments (int *argc, char **argv);
    7124
    72 # if (0)
    73 pmFPA            *pmFPAAlloc (void);
    74 pmChip           *pmChipAlloc (void);
    75 pmCell           *pmCellAlloc (void);
    76 pmReadout        *pmReadoutAlloc (void);
    77 # endif
    78 
    79 # define SIGN(X)  (((X) == 0) ? 0 : ((fabs((double)(X))) / (X)))
    80 
    81 psPolynomial2D *psPolynomial2DCopy (psPolynomial2D *input);
    82 psPolynomial4D *psPolynomial4DCopy (psPolynomial4D *input);
    83 psPlaneDistort *psPlaneDistortCopy (psPlaneDistort *input);
    84 psPlaneTransform *psPlaneTransformCopy (psPlaneTransform *input);
    85 psProjection *psProjectionCopy (psProjection *input);
    8625psPlane *psCoordReadoutToCell (psPlane *cellpix, psPlane *readpix, pmReadout *readout);
    8726psPlane *psCoordCellToReadout (psPlane *readpix, psPlane *cellpix, pmReadout *readout);
    88 double psPlaneTransformGetRotation (psPlaneTransform *map);
     27psPlane* psCoordChipToCell_EAM(psPlane* cellCoord, const psPlane* chipCoord, const pmCell* cell);
    8928
    90 psPlaneDistort *psPlaneDistortInvert(psPlaneDistort *distort);
    91 psPlaneTransform *psPlaneTransformLinearInvert(psPlaneTransform *transform);
     29bool testWriteCMP (psMetadata *header, char *filename, psArray *sources);
     30bool testWriteRef (char *filename, psArray *sources);
     31bool testWriteRaw (char *filename, psArray *sources);
     32
     33bool              psastroProjectFPA (pmFPA *fpa, char *starlist, bool toSky);
     34bool              psastroProjectRawstars (psArray *stars, pmReadout *readout);
     35bool              psastroProjectRefstars (psArray *stars, pmReadout *readout);
     36
     37psPlane* psCoordChipToCell_EAM(
     38    psPlane* out,                      ///< a plane struct to recycle. If NULL, a new struct is created
     39    const psPlane* in,                 ///< the Chip coordinate
     40    const pmCell* cell                 ///< the cell of interest
     41);
     42
     43psPlaneTransform *p_psPlaneTransformLinearInvert_EAM(psPlaneTransform *transform);
     44pmFPA *pmFPACopyAstrom (pmFPA *inFPA);
Note: See TracChangeset for help on using the changeset viewer.