IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9386


Ignore:
Timestamp:
Oct 6, 2006, 5:54:08 PM (20 years ago)
Author:
magnier
Message:

update header

Location:
trunk/psModules/src/astrom
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/astrom/pmAstrometryObjects.c

    r8815 r9386  
    88*  @author EAM, IfA
    99*
    10 *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2006-09-15 09:49:01 $
     10*  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2006-10-07 03:54:08 $
    1212*
    1313*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    202202    psArray *ref,
    203203    psArray *match,
    204     psMetadata *config)
     204    psMetadata *config,
     205    psMetadata *updates)
    205206{
    206207    PS_ASSERT_PTR_NON_NULL(raw, NULL);
     
    265266    psVectorInit (yMask, 0);
    266267
     268    double dX, dY;
     269
    267270    // fit chip-to-FPA transformation
     271    // XXX should force x->n and y->n to be the same
    268272    psVectorClipFitPolynomial2D (map->x, stats, xMask, 0, x, wt, X, Y);
    269273    psLogMsg ("psModules.astrom", 3, "x resid: %f +/- %f (%ld of %ld)\n", stats->clippedMean, stats->clippedStdev, stats->clippedNvalues, x->n);
     274    dX = stats->clippedStdev;
    270275
    271276    psVectorClipFitPolynomial2D (map->y, stats, yMask, 0, y, wt, X, Y);
    272277    psLogMsg ("psModules.astrom", 3, "y resid: %f +/- %f (%ld of %ld)\n", stats->clippedMean, stats->clippedStdev, stats->clippedNvalues, y->n);
     278    dY = stats->clippedStdev;
     279
     280    // XXX this is somewhat ad-hoc: we need to be sure these values are in arcsec
     281    // and we need to set NASTRO = 0 if we have a failure, etc
     282    // XXX this is a somewhat silly place to write these updates...
     283    if (updates) {
     284        psMetadataAddF32 (updates, PS_LIST_TAIL, "NASTRO",   PS_META_REPLACE, "", PS_MIN(x->n, y->n));
     285        psMetadataAddF32 (updates, PS_LIST_TAIL, "CERROR",   PS_META_REPLACE, "", hypot(dX, dY));
     286        psMetadataAddF32 (updates, PS_LIST_TAIL, "CPRECISE", PS_META_REPLACE, "", hypot(dX, dY)/sqrt(PS_MIN(x->n, y->n)));
     287        psMetadataAddF32 (updates, PS_LIST_TAIL, "EQUINOX",  PS_META_REPLACE, "", 2000.0); // XXX this is bogus: must be defined somewhere
     288    }
    273289
    274290    psFree (x);
  • trunk/psModules/src/astrom/pmAstrometryObjects.h

    r7945 r9386  
    88*  @author EAM, IfA
    99*
    10 *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2006-07-20 13:02:36 $
     10*  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2006-10-07 03:54:08 $
    1212*
    1313*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    316316    psArray *st2,
    317317    psArray *match,
    318     psMetadata *config
     318    psMetadata *config,
     319    psMetadata *updates
    319320);
    320321
Note: See TracChangeset for help on using the changeset viewer.