IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 11, 2005, 9:54:59 AM (21 years ago)
Author:
eugene
Message:

adding WCS interpretation code

File:
1 edited

Legend:

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

    r5360 r5506  
    33# include <unistd.h>   // for unlink
    44# include <pslib.h>
    5 # include "psLibUtils.h"
    6 # include "pmObjects_EAM.h"
    7 # include "psModulesUtils.h"
    8 # include "pmPSF.h"
    9 # include "pmPSFtry.h"
    10 # include "pmModelGroup.h"
    115
    12 typedef struct {
    13     psImage *image;
    14     psImage *mask;
    15     psImage *weight;
    16     psMetadata *header;
    17 } eamReadout;
     6typedef struct
     7{
     8    psProjection *toSky;                ///< Projection from tangent plane to sky
     9    psPlaneDistort *toTPA;              ///< Transformation from focal plane to tangent plane
     10    psPlaneDistort *fromTPA;            ///< Transformation from focal plane to tangent plane
     11    psArray *chips;                     ///< The chips
     12}
     13pmFPA;
    1814
    19 // top-level psphot functions
    20 psMetadata  *psphotArguments (int *argc, char **argv);
    21 eamReadout  *psphotSetup (psMetadata *config);
    22 psStats     *psphotImageStats (eamReadout *imdata, psMetadata *config);
    23 psArray     *psphotSourceStats (eamReadout *imdata, psMetadata *config, psArray *allpeaks);
    24 pmPSF       *psphotChoosePSF (psMetadata *config, psArray *sources, psStats *sky);
    25 bool         psphotApplyPSF (eamReadout *imdata, psMetadata *config, psArray *sources, pmPSF *psf, psStats *sky);
    26 bool         psphotFitGalaxies (eamReadout *imdata, psMetadata *config, psArray *sources, psStats *skyStats);
    27 void         psphotOutput (eamReadout *imdata, psMetadata *config, psArray *sources, pmPSF *psf, psStats *sky);
     15typedef struct
     16{
     17    // Astrometric transformations
     18    psPlaneTransform *toFPA;            ///< Transformation from chip to FPA coordinates
     19    psPlaneTransform *fromFPA;          ///< Transformation from FPA to chip coordinates
     20    psArray *cells;                     ///< The cells
     21}
     22pmChip;
    2823
    29 bool         psphotMarkPSF (pmSource *source, float shapeNsigma, float minSN, float maxChi, float SATURATE);
    30 bool         psphotSubtractPSF (pmSource *source);
    31 int          psphotSortBySN (const void **a, const void **b);
    32 int          psphotSaveImage (psMetadata *header, psImage *image, char *filename);
    33 bool         psphotDefinePixels (pmSource *mySource, const eamReadout *imdata, psF32 x, psF32 y, psF32 Radius);
     24typedef struct
     25{
     26    // Astrometric transformations
     27    psPlaneTransform *toChip;           ///< Transformations from cell to chip coordinates
     28    psArray *readouts;                  ///< The readouts (referred to by number)
     29    psMetadata *header;                 ///< header always corresponds to a cell
     30}
     31pmCell;
    3432
    35 psArray     *pmPeaksSigmaLimit (eamReadout *imdata, psMetadata *config, psStats *sky);
    36 pmModel     *pmSourceMagnitudes (pmSource *source, pmPSF *psf, float apRadius);
    37 pmModel     *pmSourceSelectModel (pmSource *source);
     33typedef struct
     34{
     35    // Position on the cell
     36    int col0;                           ///< Offset from the left of chip.
     37    int row0;                           ///< Offset from the bottom of chip.
     38    int colBins;                        ///< Amount of binning in x-dimension
     39    int rowBins;                        ///< Amount of binning in y-dimension
     40    psArray *objects;                   ///< sources detected / measured on readout
     41}
     42pmReadout;
    3843
    39 // eamReadout functions
    40 eamReadout *eamReadoutAlloc (psImage *image, psImage *noise, psImage *mask, psMetadata *header);
    41 
    42 // output functions
    43 bool         pmSourcesWriteText (eamReadout *imdata, psMetadata *config, char *filename, psArray *sources, pmPSF *psf, psStats *sky);
    44 bool         pmSourcesWriteOBJ  (eamReadout *imdata, psMetadata *config, char *filename, psArray *sources, pmPSF *psf, psStats *sky);
    45 bool         pmSourcesWriteCMP  (eamReadout *imdata, psMetadata *config, char *filename, psArray *sources, pmPSF *psf, psStats *sky);
    46 bool         pmSourcesWriteCMF  (eamReadout *imdata, psMetadata *config, char *filename, psArray *sources, pmPSF *psf, psStats *sky);
    47 bool         pmSourcesWriteSX   (eamReadout *imdata, psMetadata *config, char *filename, psArray *sources, pmPSF *psf, psStats *sky);
    48 
    49 bool         pmPeaksWriteText (psArray *sources, char *filename);
    50 bool         pmMomentsWriteText (psArray *sources, char *filename);
    51 bool         pmModelWritePSFs (psArray *sources, psMetadata *config, char *filename, pmPSF *psf);
    52 bool         pmModelWriteFLTs (psArray *sources, char *filename);
    53 bool         pmModelWriteNULLs (psArray *sources, char *filename);
    54 
    55 int          pmSourcesDophotType (pmSource *source);
     44// dummy structure for template code (psFooAlloc, etc)
     45typedef struct
     46{
     47    int i;
     48}
     49psFoo;
Note: See TracChangeset for help on using the changeset viewer.