Changeset 19049
- Timestamp:
- Aug 12, 2008, 6:07:11 PM (18 years ago)
- Location:
- trunk/psastro/src
- Files:
-
- 4 edited
-
Makefile.am (modified) (1 diff)
-
psastro.h (modified) (1 diff)
-
psastroAnalysis.c (modified) (1 diff)
-
psastroZeroPoint.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/Makefile.am
r18007 r19049 67 67 psastroMosaicSetAstrom.c \ 68 68 psastroMosaicSetMatch.c \ 69 psastroZeroPoint.c \ 69 70 psastroDemoDump.c \ 70 71 psastroDemoPlot.c -
trunk/psastro/src/psastro.h
r18007 r19049 97 97 bool psastroMetadataStats (pmConfig *config); 98 98 99 bool psastroZeroPointReadout(psArray *rawstars, psArray *refstars, psArray *matches); 100 bool psastroZeroPoint (pmConfig *config); 101 99 102 # endif /* PSASTRO_H */ -
trunk/psastro/src/psastroAnalysis.c
r19048 r19049 79 79 } 80 80 81 // psastroZeroPoint ( rawstars, refstars, matches);81 // psastroZeroPoint (config); 82 82 83 83 // XXX how do we specify stack astrometry? -
trunk/psastro/src/psastroZeroPoint.c
r19048 r19049 1 1 # include "psastroInternal.h" 2 2 3 bool GetZeroPoint(psArray *rawstars, psArray *refstars, psArray *matches);3 bool psastroZeroPointReadout(psArray *rawstars, psArray *refstars, psArray *matches); 4 4 5 5 bool psastroZeroPoint (pmConfig *config) { 6 6 7 bool status;8 7 pmChip *chip = NULL; 9 8 pmCell *cell = NULL; 10 9 pmReadout *readout = NULL; 11 psArray *gradients = NULL;12 10 13 11 // select the current recipe … … 27 25 28 26 pmFPAview *view = pmFPAviewAlloc (0); 27 28 // given the existing per-chip astrometry, determine matches between raw and ref stars 29 // is this needed? yes, if we didn't do SingleChip astrometry first 30 if (!psastroMosaicSetMatch (fpa, recipe, 0)) { 31 psError(PSASTRO_ERR_UNKNOWN, false, "failed to match raw and ref stars for mosaic"); 32 return false; 33 } 29 34 30 35 // this loop selects the matched stars for all chips … … 51 56 if (refstars == NULL) { continue; } 52 57 53 psArray *match = psMetadataLookupPtr (NULL, readout->analysis, "PSASTRO.MATCH");54 if (match == NULL) { continue; }58 psArray *matches = psMetadataLookupPtr (NULL, readout->analysis, "PSASTRO.MATCH"); 59 if (matches == NULL) { continue; } 55 60 56 61 // calculate dMag for the matched stars 57 GetZeroPoint (rawstars, refstars, matches);62 psastroZeroPointReadout (rawstars, refstars, matches); 58 63 } 59 64 } … … 65 70 66 71 // XXX for now, let's just measure <dMag> and sigma_dMag 67 bool GetZeroPoint(psArray *rawstars, psArray *refstars, psArray *matches) {72 bool psastroZeroPointReadout(psArray *rawstars, psArray *refstars, psArray *matches) { 68 73 69 74 psVector *dMag = psVectorAllocEmpty (100, PS_TYPE_F32);
Note:
See TracChangeset
for help on using the changeset viewer.
