IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19049


Ignore:
Timestamp:
Aug 12, 2008, 6:07:11 PM (18 years ago)
Author:
eugene
Message:

adding zero point calculation

Location:
trunk/psastro/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/Makefile.am

    r18007 r19049  
    6767        psastroMosaicSetAstrom.c    \
    6868        psastroMosaicSetMatch.c     \
     69        psastroZeroPoint.c          \
    6970        psastroDemoDump.c           \
    7071        psastroDemoPlot.c
  • trunk/psastro/src/psastro.h

    r18007 r19049  
    9797bool              psastroMetadataStats (pmConfig *config);
    9898
     99bool psastroZeroPointReadout(psArray *rawstars, psArray *refstars, psArray *matches);
     100bool psastroZeroPoint (pmConfig *config);
     101
    99102# endif /* PSASTRO_H */
  • trunk/psastro/src/psastroAnalysis.c

    r19048 r19049  
    7979    }
    8080
    81     // psastroZeroPoint (rawstars, refstars, matches);
     81    // psastroZeroPoint (config);
    8282
    8383    // XXX how do we specify stack astrometry?
  • trunk/psastro/src/psastroZeroPoint.c

    r19048 r19049  
    11# include "psastroInternal.h"
    22
    3 bool GetZeroPoint(psArray *rawstars, psArray *refstars, psArray *matches);
     3bool psastroZeroPointReadout(psArray *rawstars, psArray *refstars, psArray *matches);
    44
    55bool psastroZeroPoint (pmConfig *config) {
    66
    7     bool status;
    87    pmChip *chip = NULL;
    98    pmCell *cell = NULL;
    109    pmReadout *readout = NULL;
    11     psArray *gradients = NULL;
    1210
    1311    // select the current recipe
     
    2725
    2826    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    }
    2934
    3035    // this loop selects the matched stars for all chips
     
    5156                if (refstars == NULL) { continue; }
    5257
    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; }
    5560
    5661                // calculate dMag for the matched stars
    57                 GetZeroPoint (rawstars, refstars, matches);
     62                psastroZeroPointReadout (rawstars, refstars, matches);
    5863            }
    5964        }
     
    6570
    6671// XXX for now, let's just measure <dMag> and sigma_dMag
    67 bool GetZeroPoint(psArray *rawstars, psArray *refstars, psArray *matches) {
     72bool psastroZeroPointReadout(psArray *rawstars, psArray *refstars, psArray *matches) {
    6873
    6974    psVector *dMag  = psVectorAllocEmpty (100, PS_TYPE_F32);
Note: See TracChangeset for help on using the changeset viewer.