IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 22, 2009, 2:57:41 PM (16 years ago)
Author:
eugene
Message:

various fixes to psastro:

1) added bootstrap resampling to zero point error analysis
2) added iterative clump removal from refstars and rawstars
3) added unique reference match option
4) some improved visualizations
5) improved mosaic iterations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroMosaicOneChip.c

    r24037 r26259  
    3131
    3232    // select the raw objects for this readout
    33     psArray *rawstars = psMetadataLookupPtr (NULL, readout->analysis, "PSASTRO.RAWSTARS");
     33    psArray *rawstars = psMetadataLookupPtr (NULL, readout->analysis, "PSASTRO.RAWSTARS.SUBSET");
    3434    if (rawstars == NULL) return false;
    3535
    36     psArray *refstars = psMetadataLookupPtr (NULL, readout->analysis, "PSASTRO.REFSTARS");
     36    psArray *refstars = psMetadataLookupPtr (NULL, readout->analysis, "PSASTRO.REFSTARS.SUBSET");
    3737    if (refstars == NULL) return false;
    3838
     
    124124    float plateScale = 0.5*(fpa->toSky->Xs + fpa->toSky->Ys)*3600.0*PM_DEG_RAD;
    125125
     126    float rawXstdev = psStatsGetValue (results->xStats, psStatsStdevOption(results->xStats->options));
     127    float rawYstdev = psStatsGetValue (results->yStats, psStatsStdevOption(results->yStats->options));
     128
    126129    // pixError is the average 1D scatter in pixels ('results' are in FPA units = microns)
    127     float pixError = 0.5*(results->xStats->clippedStdev + results->yStats->clippedStdev) / pixelScale;
     130    float pixError = 0.5*(rawXstdev + rawYstdev) / pixelScale;
    128131
    129132    // astError is the average 1D scatter in arcsec ('results' are in FPA units = microns)
    130     float astError = 0.5*(results->xStats->clippedStdev + results->yStats->clippedStdev) * plateScale;
     133    float astError = 0.5*(rawXstdev + rawYstdev) * plateScale;
    131134    int astNstar = results->yStats->clippedNvalues;
    132135
     
    161164    psMetadataAddF32 (updates, PS_LIST_TAIL, "EQUINOX",  PS_META_REPLACE, "", 2000.0); // XXX this is bogus: should be defined based on equinox of refstars
    162165
     166    // additional error measurements:
     167    psMetadataAddF32 (updates, PS_LIST_TAIL, "AST_MDX",   PS_META_REPLACE, "mosaic astrometry X stdev (arcsec)", rawXstdev * plateScale);
     168    psMetadataAddF32 (updates, PS_LIST_TAIL, "AST_MSX",   PS_META_REPLACE, "mosaic astrometry X systematic err (arcsec)", results->dXsys * plateScale);
     169    psMetadataAddF32 (updates, PS_LIST_TAIL, "AST_MRX",   PS_META_REPLACE, "mosaic astrometry X 10-90 percentile (arcsec)", results->dXrange * plateScale);
     170
     171    psMetadataAddF32 (updates, PS_LIST_TAIL, "AST_MDY",   PS_META_REPLACE, "mosaic astrometry Y stdev (arcsec)", rawYstdev * plateScale);
     172    psMetadataAddF32 (updates, PS_LIST_TAIL, "AST_MSY",   PS_META_REPLACE, "mosaic astrometry Y systematic err (arcsec)", results->dYsys * plateScale);
     173    psMetadataAddF32 (updates, PS_LIST_TAIL, "AST_MRY",   PS_META_REPLACE, "mosaic astrometry Y 10-90 percentile (arcsec)", results->dYrange * plateScale);
     174
    163175    // determine fromFPA transformation and apply new transformation to raw & ref stars
    164     psastroUpdateChipToFPA (fpa, chip, rawstars, refstars);
     176    psastroUpdateChipToFPA (fpa, chip);
    165177
    166178    //plot results
Note: See TracChangeset for help on using the changeset viewer.