Changeset 27840 for branches/simtest_nebulous_branches/psphot/src/psphot.h
- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
psphot (modified) (1 prop)
-
psphot/src (modified) (1 prop)
-
psphot/src/psphot.h (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/psphot
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/psphot merged eligible /branches/eam_branches/stackphot.20100406/psphot 27622-27655 /branches/pap_delete/psphot 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/simtest_nebulous_branches/psphot/src
- Property svn:ignore
-
old new 18 18 psphotVersionDefinitions.h 19 19 psphotMomentsStudy 20 psphotPetrosianStudy 21 psphotForced 22 psphotMakePSF 23 psphotStack
-
- Property svn:ignore
-
branches/simtest_nebulous_branches/psphot/src/psphot.h
r24890 r27840 12 12 13 13 #define PSPHOT_RECIPE_PSF_FAKE_ALLOW "PSF.FAKE.ALLOW" // Name for recipe component permitting fake PSFs 14 15 // pmPCMData : PSF Convolved Model data storage structure 16 typedef struct { 17 psImage *model; 18 psArray *dmodels; 19 psImage *modelConv; 20 psArray *dmodelsConv; 21 } pmPCMData; 14 22 15 23 // top-level psphot functions … … 29 37 bool psphotReadoutMinimal(pmConfig *config, const pmFPAview *view); 30 38 31 bool psphotReadoutCleanup (pmConfig *config, pmReadout *readout, psMetadata *recipe, pmDetections *detections, pmPSF *psf, psArray *sources); 39 bool psphotReadoutCleanup (pmConfig *config, const pmFPAview *view); 40 bool psphotReadoutCleanupReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe); 41 32 42 bool psphotDefineFiles (pmConfig *config, pmFPAfile *input); 33 43 void psphotFilesActivate(pmConfig *config, bool state); … … 38 48 // XXX test functions 39 49 psArray *psphotFakeSources (void); 50 bool psphotMaskCosmicRayFootprintCheck (psArray *sources); 40 51 41 52 // psphotReadout functions 42 bool psphotModelBackground (pmConfig *config, const pmFPAview *view, const char *filename); 43 bool psphotSubtractBackground (pmConfig *config, const pmFPAview *view, const char *filename) ; 44 pmDetections *psphotFindDetections (pmDetections *detections, pmReadout *readout, psMetadata *recipe); 45 46 bool psphotRoughClass (pmReadout *readout, psArray *sources, psMetadata *recipe, const bool findPsfClump); 47 bool psphotBasicDeblend (psArray *sources, psMetadata *recipe); 48 pmPSF *psphotChoosePSF (pmReadout *readout, psArray *sources, psMetadata *recipe); 49 bool psphotPSFstats (pmReadout *readout, psMetadata *recipe, pmPSF *psf); 50 bool psphotMomentsStats (pmReadout *readout, psMetadata *recipe, psArray *sources); 51 bool psphotFitSourcesLinear (pmReadout *readout, psArray *sources, psMetadata *recipe, pmPSF *psf, bool final); 52 bool psphotReplaceUnfitSources (psArray *sources, psImageMaskType maskVal); 53 54 bool psphotReplaceAllSources (psArray *sources, psMetadata *recipe); 55 bool psphotRemoveAllSources (psArray *sources, psMetadata *recipe); 56 57 bool psphotBlendFit (pmConfig *config, pmReadout *readout, psArray *sources, pmPSF *psf); 53 bool psphotAddPhotcode (pmConfig *config, const pmFPAview *view); 54 bool psphotAddPhotcodeReadout (pmConfig *config, const pmFPAview *view, const char *filerule, int index); 55 56 bool psphotSetMaskAndVariance (pmConfig *config, const pmFPAview *view); 57 bool psphotSetMaskAndVarianceReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe); 58 59 bool psphotModelBackground (pmConfig *config, const pmFPAview *view); 60 bool psphotModelBackgroundReadoutFileIndex (pmConfig *config, const pmFPAview *view, const char *filename, int index); 61 62 bool psphotSubtractBackground (pmConfig *config, const pmFPAview *view); 63 bool psphotSubtractBackgroundReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe); 64 65 bool psphotFindDetections (pmConfig *config, const pmFPAview *view, bool firstPass); 66 bool psphotFindDetectionsReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe, bool firstPass); 67 68 bool psphotSourceStats (pmConfig *config, const pmFPAview *view, bool setWindow); 69 bool psphotSourceStatsReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe, bool setWindow); 70 71 bool psphotDeblendSatstars (pmConfig *config, const pmFPAview *view); 72 bool psphotDeblendSatstarsReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index); 73 74 bool psphotBasicDeblend (pmConfig *config, const pmFPAview *view); 75 bool psphotBasicDeblendReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index); 76 77 bool psphotRoughClass (pmConfig *config, const pmFPAview *view); 78 bool psphotRoughClassReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe); 79 bool psphotRoughClassRegion (int nRegion, psRegion *region, psArray *sources, psMetadata *analysis, psMetadata *recipe, const bool havePSF); 80 81 bool psphotImageQuality (pmConfig *config, const pmFPAview *view); 82 bool psphotImageQualityReadout(pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe); 83 84 bool psphotChoosePSF (pmConfig *config, const pmFPAview *view); 85 bool psphotChoosePSFReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe); 86 87 bool psphotGuessModels (pmConfig *config, const pmFPAview *view); 88 bool psphotGuessModelsReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index); 89 90 bool psphotMergeSources (pmConfig *config, const pmFPAview *view); 91 bool psphotMergeSourcesReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index); 92 93 bool psphotFitSourcesLinear (pmConfig *config, const pmFPAview *view, bool final); 94 bool psphotFitSourcesLinearReadout (psMetadata *recipe, pmReadout *readout, psArray *sources, pmPSF *psf, bool final); 95 96 bool psphotSourceSize (pmConfig *config, const pmFPAview *view, bool getPSFsize); 97 bool psphotSourceSizeReadout(pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe, bool getPSFsize); 98 99 bool psphotBlendFit (pmConfig *config, const pmFPAview *view); 100 bool psphotBlendFitReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe); 58 101 bool psphotBlendFit_Threaded (psThreadJob *job); 59 102 60 psArray *psphotSourceStats (pmConfig *config, pmReadout *readout, pmDetections *detections); 61 bool psphotSourceStats_Threaded (psThreadJob *job); 62 63 bool psphotGuessModels (pmConfig *config, pmReadout *readout, psArray *sources, pmPSF *psf); 64 bool psphotGuessModel_Threaded (psThreadJob *job); 65 66 bool psphotMagnitudes (pmConfig *config, pmReadout *readout, const pmFPAview *view, psArray *sources, pmPSF *psf); 103 bool psphotReplaceAllSources (pmConfig *config, const pmFPAview *view); 104 bool psphotReplaceAllSourcesReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe); 105 106 bool psphotAddNoise (pmConfig *config, const pmFPAview *view); 107 bool psphotSubNoise (pmConfig *config, const pmFPAview *view); 108 bool psphotAddOrSubNoise (pmConfig *config, const pmFPAview *view, bool add); 109 bool psphotAddOrSubNoiseReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe, bool add); 110 111 bool psphotExtendedSourceAnalysis (pmConfig *config, const pmFPAview *view); 112 bool psphotExtendedSourceAnalysisReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe); 113 114 bool psphotExtendedSourceFits (pmConfig *config, const pmFPAview *view); 115 bool psphotExtendedSourceFitsReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe); 116 117 bool psphotApResid (pmConfig *config, const pmFPAview *view); 118 bool psphotApResidReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe); 119 120 bool psphotMagnitudes (pmConfig *config, const pmFPAview *view); 121 bool psphotMagnitudesReadout(pmConfig *config, psMetadata *recipe, const pmFPAview *view, pmReadout *readout, psArray *sources, pmPSF *psf); 67 122 bool psphotMagnitudes_Threaded (psThreadJob *job); 123 124 bool psphotEfficiency (pmConfig *config, const pmFPAview *view); 125 bool psphotEfficiencyReadout(pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe); 68 126 69 127 bool psphotPSFWeights(pmConfig *config, pmReadout *readout, const pmFPAview *view, psArray *sources); 70 128 bool psphotPSFWeights_Threaded (psThreadJob *job); 71 129 72 bool psphotApResid (pmConfig *config, pmReadout *readout, psArray *sources, pmPSF *psf);73 bool psphotApResidMags_Threaded (psThreadJob *job);74 75 130 bool psphotSkyReplace (pmConfig *config, const pmFPAview *view); 76 bool psphotExtendedSourceAnalysis (pmReadout *readout, psArray *sources, psMetadata *recipe); 77 bool psphotExtendedSourceFits (pmReadout *readout, psArray *sources, psMetadata *recipe); 131 bool psphotSkyReplaceReadout (pmConfig *config, const pmFPAview *view, const char *filename, int index); 132 133 bool psphotSourceFreePixels (pmConfig *config, const pmFPAview *view); 134 bool psphotSourceFreePixelsReadout(pmConfig *config, const pmFPAview *view, const char *filename, int index); 135 136 // in psphotSourceStats.c: 137 bool psphotSourceStats_Threaded (psThreadJob *job); 138 bool psphotSourceStatsUpdate (psArray *sources, pmConfig *config, pmReadout *readout); 139 bool psphotSetMomentsWindow (psMetadata *recipe, psMetadata *analysis, psArray *sources); 140 141 // in psphotChoosePSF.c: 142 bool psphotPSFstats (pmReadout *readout, pmPSF *psf); 143 bool psphotMomentsStats (pmReadout *readout, psArray *sources); 144 145 // in psphotGuessModel.c 146 bool psphotGuessModel_Threaded (psThreadJob *job); 147 148 // in psphotMergeSources.c: 149 bool psphotLoadExtSources (pmConfig *config, const pmFPAview *view); 150 psArray *psphotLoadPSFSources (pmConfig *config, const pmFPAview *view); 151 bool psphotRepairLoadedSources (pmConfig *config, const pmFPAview *view); 152 bool psphotCheckExtSources (pmConfig *config, const pmFPAview *view); 153 154 // generate the detection structure for the supplied array of sources 155 bool psphotDetectionsFromSources (pmConfig *config, const pmFPAview *view, psArray *sources); 156 157 // generate the detection structure for the supplied array of sources 158 bool psphotSetSourceParams (pmConfig *config, psArray *sources, pmPSF *psf); 159 160 // in psphotModelBackground.c: 161 // Create a background model for a readout, without saving the result as a pmFPAfile on config->files. Otherwise identical to psphotModelBackgroundFileIndex. 162 psImage *psphotModelBackgroundReadoutNoFile(pmReadout *readout, const pmConfig *config); 163 psImageBinning *psphotBackgroundBinning(const psImage *image, const pmConfig *config); 164 165 // in psphotReplaceUnfit.c: 166 bool psphotRemoveAllSources (const psArray *sources, const psMetadata *recipe); 167 bool psphotReplaceUnfitSources (psArray *sources, psImageMaskType maskVal); 78 168 79 169 // thread-related: … … 86 176 psImage *psphotSignificanceImage (pmReadout *readout, psMetadata *recipe, const int pass, psImageMaskType maskVal); 87 177 psArray *psphotFindPeaks (psImage *significance, pmReadout *readout, psMetadata *recipe, const float threshold, const int nMax); 88 bool psphotFindFootprints (pmDetections *detections, psImage *significance, pmReadout *readout, psMetadata *recipe, const int pass, psImageMaskType maskVal); 89 psErrorCode psphotCullPeaks(const psImage *img, const psImage *weight, const psMetadata *recipe, psArray *footprints); 90 91 // generate the detection structure for the supplied array of sources 92 pmDetections *psphotDetectionsFromSources (pmConfig *config, psArray *sources); 93 94 // used by ApResid 95 bool psphotMagErrorScale (float *errorScale, float *errorFloor, psVector *dMag, psVector *dap, psVector *mask, int nGroup); 96 bool psphotApResidTrend (pmReadout *readout, pmPSF *psf, int Npsf, int scale, float *errorScale, float *errorFloor, psVector *mask, psVector *xPos, psVector *yPos, psVector *apResid, psVector *dMag); 178 bool psphotFindFootprints (pmDetections *detections, psImage *significance, pmReadout *readout, psMetadata *recipe, const float threshold, const int pass, psImageMaskType maskVal); 179 psErrorCode psphotCullPeaks(const pmReadout *readout, const psMetadata *recipe, psArray *footprints); 180 181 // in psphotApResid.c: 182 pmTrend2D *psphotApResidTrend (float *apResidSysErr, pmReadout *readout, int Nx, int Ny, psVector *xPos, psVector *yPos, psVector *apResid, psVector *dMag); 183 bool psphotApResidMags_Threaded (psThreadJob *job); 97 184 98 185 // basic support functions 99 186 void psphotModelClassInit (void); 100 187 bool psphotGrowthCurve (pmReadout *readout, pmPSF *psf, bool ignore, psImageMaskType maskVal); 101 bool psphotSetMaskAndVariance (pmConfig *config, pmReadout *readout, psMetadata *recipe);102 void psphotSourceFreePixels (psArray *sources);103 188 104 189 // functions to set the correct source pixels 105 bool psphotInitRadiusPSF (const psMetadata *recipe, const pmModelType type); 190 bool psphotInitRadiusPSF(const psMetadata *recipe, const psMetadata *analysis, const pmModelType type); 191 106 192 bool psphotCheckRadiusPSF (pmReadout *readout, pmSource *source, pmModel *model, psImageMaskType markVal); 107 193 bool psphotCheckRadiusPSFBlend (pmReadout *readout, pmSource *source, pmModel *model, psImageMaskType markVal, float dR); 108 194 bool psphotInitRadiusEXT (psMetadata *recipe, pmModelType type); 109 195 bool psphotCheckRadiusEXT (pmReadout *readout, pmSource *source, pmModel *model, psImageMaskType markVal); 110 111 // output functions 112 bool psphotAddPhotcode (psMetadata *recipe, pmConfig *config, const pmFPAview *view, const char *filerule); 196 float psphotSetRadiusEXT (pmReadout *readout, pmSource *source, psImageMaskType markVal); 197 113 198 bool psphotDumpMoments (psMetadata *recipe, psArray *sources); 114 199 psMetadata *psphotDefineHeader (psMetadata *recipe); … … 141 226 bool psphotFitSummary (void); 142 227 143 bool psphotMergeSources (psArray *oldSources, psArray *newSources); 144 bool psphotLoadExtSources (pmConfig *config, const pmFPAview *view, psArray *sources); 145 psArray *psphotLoadPSFSources (pmConfig *config, const pmFPAview *view); 146 147 pmPSF *psphotLoadPSF (pmConfig *config, const pmFPAview *view, psMetadata *recipe); 228 bool psphotLoadPSF (pmConfig *config, const pmFPAview *view); 229 bool psphotLoadPSFReadout (pmConfig *config, const pmFPAview *view, const char *outFilename, const char *inFilename, int index); 230 148 231 bool psphotSetHeaderNstars (psMetadata *recipe, psArray *sources); 149 bool psphotAddNoise (pmReadout *readout, psArray *sources, psMetadata *recipe);150 bool psphotSubNoise (pmReadout *readout, psArray *sources, psMetadata *recipe);151 bool psphotAddOrSubNoise (pmReadout *readout, psArray *sources, psMetadata *recipe, bool add);152 232 bool psphotRadialPlot (int *kapa, const char *filename, pmSource *source); 153 233 bool psphotSourcePlots (pmReadout *readout, psArray *sources, psMetadata *recipe); 154 234 bool psphotMosaicSubimage (psImage *outImage, pmSource *source, int Xo, int Yo, int DX, int DY, bool normalize); 155 235 156 bool psphotAddWithTest (pmSource *source, bool useState, psImageMaskType maskVal);157 bool psphotSubWithTest (pmSource *source, bool useState, psImageMaskType maskVal);158 bool psphotSetState (pmSource *source, bool curState, psImageMaskType maskVal);159 bool psphotDeblendSatstars (pmReadout *readout, psArray *sources, psMetadata *recipe);160 bool psphotSourceSize (pmConfig *config, pmReadout *readout, psArray *sources, psMetadata *recipe, long first);161 162 236 bool psphotMakeResiduals (psArray *sources, psMetadata *recipe, pmPSF *psf, psImageMaskType maskVal); 163 237 … … 166 240 psKernel *psphotKernelFromPSF (pmSource *source, int nPix); 167 241 168 bool psphotRadialProfile (pmSource *source, psMetadata *recipe, psImageMaskType maskVal); 169 bool psphotPetrosian (pmSource *source, psMetadata *recipe, psImageMaskType maskVal); 170 bool psphotIsophotal (pmSource *source, psMetadata *recipe, psImageMaskType maskVal); 171 bool psphotAnnuli (pmSource *source, psMetadata *recipe, psImageMaskType maskVal); 172 bool psphotKron (pmSource *source, psMetadata *recipe, psImageMaskType maskVal); 242 // functions related to extended source analysis 243 bool psphotRadialProfile (pmSource *source, psMetadata *recipe, float skynoise, psImageMaskType maskVal); 244 bool psphotRadialProfilesByAngles (pmSource *source, int Nsec, float Rmax); 245 float psphotRadiusFromProfile (pmSource *source, psVector *radius, psVector *flux, float fluxMin, float fluxMax); 246 bool psphotRadiiFromProfiles (pmSource *source, float fluxMin, float fluxMax); 247 bool psphotEllipticalProfile (pmSource *source, bool RAW_RADIUS); 248 bool psphotEllipticalContour (pmSource *source); 173 249 174 250 // psphotVisual functions 175 bool psphotVisualShowImage (pmReadout *readout); 176 bool psphotVisualShowBackground (pmConfig *config, const pmFPAview *view, pmReadout *readout); 177 bool psphotVisualShowSignificance (psImage *image); 178 bool psphotVisualShowPeaks (pmDetections *detections); 179 bool psphotVisualShowFootprints (pmDetections *detections); 180 bool psphotVisualShowMoments (psArray *sources); 181 bool psphotVisualPlotMoments (psMetadata *recipe, psArray *sources); 182 bool psphotVisualShowRoughClass (psArray *sources); 183 bool psphotVisualShowPSFStars (psMetadata *recipe, pmPSF *psf, psArray *sources); 184 bool psphotVisualShowSatStars (psMetadata *recipe, pmPSF *psf, psArray *sources); 185 bool psphotVisualShowPSFModel (pmReadout *readout, pmPSF *psf); 186 bool psphotVisualPlotRadialProfile (int myKapa, pmSource *source, psImageMaskType maskVal); 187 bool psphotVisualPlotRadialProfiles (psMetadata *recipe, psArray *sources); 188 bool psphotVisualShowFlags (psArray *sources); 189 bool psphotVisualShowSourceSize (pmReadout *readout, psArray *sources); 190 bool psphotVisualShowResidualImage (pmReadout *readout); 191 bool psphotVisualPlotApResid (psArray *sources); 192 bool psphotVisualPlotSourceSize (psArray *sources); 193 194 bool psphotImageQuality (psMetadata *recipe, psArray *sources); 251 bool psphotVisualShowImage (pmReadout *readout); 252 bool psphotVisualShowBackground (pmConfig *config, const pmFPAview *view, pmReadout *readout); 253 bool psphotVisualShowSignificance (psImage *image, float min, float max); 254 bool psphotVisualShowPeaks (pmDetections *detections); 255 bool psphotVisualShowFootprints (pmDetections *detections); 256 bool psphotVisualShowMoments (psArray *sources); 257 bool psphotVisualPlotMoments (psMetadata *recipe, psMetadata *analysis, psArray *sources); 258 bool psphotVisualShowRoughClass (psArray *sources); 259 bool psphotVisualShowPSFStars (psMetadata *recipe, pmPSF *psf, psArray *sources); 260 bool psphotVisualShowSatStars (psMetadata *recipe, pmPSF *psf, psArray *sources); 261 bool psphotVisualShowPSFModel (pmReadout *readout, pmPSF *psf); 262 bool psphotVisualPlotRadialProfile (int myKapa, pmSource *source, psImageMaskType maskVal); 263 bool psphotVisualPlotRadialProfiles (psMetadata *recipe, psArray *sources); 264 bool psphotVisualShowFlags (psArray *sources); 265 bool psphotVisualShowSourceSize (pmReadout *readout, psArray *sources); 266 bool psphotVisualShowResidualImage (pmReadout *readout); 267 bool psphotVisualPlotApResid (psArray *sources, float mean, float error); 268 bool psphotVisualPlotChisq (psArray *sources); 269 bool psphotVisualPlotSourceSize (psMetadata *recipe, psMetadata *analysis, psArray *sources); 270 bool psphotVisualShowPetrosians (psArray *sources); 271 bool psphotVisualEraseOverlays (int channel, char *overlay); 272 273 bool psphotPetrosian (pmSource *source, psMetadata *recipe, float skynoise, psImageMaskType maskVal); 274 bool psphotPetrosianRadialBins (pmSource *source, float radiusMax, float skynoise); 275 bool psphotPetrosianStats (pmSource *source); 276 277 // currently disabled: 278 // bool psphotIsophotal (pmSource *source, psMetadata *recipe, psImageMaskType maskVal); 279 // bool psphotAnnuli (pmSource *source, psMetadata *recipe, psImageMaskType maskVal); 280 // bool psphotKron (pmSource *source, psMetadata *recipe, psImageMaskType maskVal); 281 282 // XXX visualization functions related to radial profiles (disabled) 283 bool psphotPetrosianVisualProfileByAngle (psVector *radius, psVector *flux); 284 bool psphotPetrosianVisualProfileRadii (psVector *radius, psVector *flux, psVector *radiusBin, psVector *fluxBin, float peakFlux, float RadiusRef); 285 bool psphotPetrosianVisualEllipticalContour (pmSourceRadialFlux *radFlux, pmSourceExtendedPars *extpars); 286 bool psphotPetrosianVisualStats (psVector *radBin, psVector *fluxBin, 287 psVector *refRadius, psVector *meanSB, 288 psVector *petRatio, psVector *petRatioErr, psVector *fluxSum, 289 float petRadius, float ratioForRadius, 290 float petFlux, float radiusForFlux); 291 292 bool psphotRadialBins (psMetadata *recipe, pmSource *source, float radiusMax, float skynoise); 195 293 196 294 // structures & functions to support psf-convolved model fitting 197 198 // pmPCMData : PSF Convolved Model data storage structure199 typedef struct {200 psImage *model;201 psArray *dmodels;202 psImage *modelConv;203 psArray *dmodelsConv;204 } pmPCMData;205 206 295 207 296 // psf-convolved model fitting … … 241 330 bool psphotDumpPSFStars (pmReadout *readout, pmPSFtry *try, float radius, psImageMaskType maskVal, psImageMaskType markVal); 242 331 332 bool psphotLoadSRCTEXT (pmFPA *fpa, pmConfig *config); 333 243 334 bool psphotCheckStarDistribution (psArray *sources, psArray *stars, pmPSFOptions *options); 244 335 int psphotSupplementStars (psArray *stars, psArray *sources, psImageBinning *binning, int ix, int iy); 245 336 246 247 // Create a background model for a readout 248 // Essentially identical to psphotModelBackground, but with a more convenient API for outsiders. 249 psImage *psphotBackgroundModel(pmReadout *ro, // Readout for which to generate background model 250 const pmConfig *config // Configuration 251 ); 252 337 pmConfig *psphotForcedArguments(int argc, char **argv); 338 bool psphotForcedImageLoop (pmConfig *config); 339 bool psphotForcedReadout(pmConfig *config, const pmFPAview *view); 340 341 pmConfig *psphotMakePSFArguments(int argc, char **argv); 342 bool psphotMakePSFImageLoop (pmConfig *config); 343 bool psphotMakePSFReadout(pmConfig *config, const pmFPAview *view); 344 345 /**** psphotStack prototypes ****/ 346 347 pmConfig *psphotStackArguments(int argc, char **argv); 348 bool psphotStackParseCamera (pmConfig *config); 349 bool psphotStackImageLoop (pmConfig *config); 350 bool psphotStackReadout (pmConfig *config, const pmFPAview *view); 351 bool psphotStackChisqImage (pmConfig *config, const pmFPAview *view); 352 bool psphotStackChisqImageAddReadout(const pmConfig *config, // Configuration 353 const pmFPAview *view, 354 pmReadout **chiReadout, 355 char *filename, 356 int index); 357 358 bool psphotStackRemoveChisqFromInputs (pmConfig *config); 359 bool pmFPAfileRemoveSingle(psMetadata *files, const char *name, int num); 360 361 psArray *psphotMatchSources (pmConfig *config, const pmFPAview *view); 362 bool psphotMatchSourcesReadout (psArray *objects, pmConfig *config, const pmFPAview *view, char *filename, int index); 363 bool psphotMatchSourcesToObjects (psArray *objects, psArray *sources, float RADIUS); 364 365 bool psphotFitSourcesLinearStack (pmConfig *config, psArray *objects, bool final); 366 int pmPhotObjSortBySN (const void **a, const void **b); 367 int pmPhotObjSortByX (const void **a, const void **b); 253 368 254 369 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
