IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 1, 2007, 11:03:03 AM (19 years ago)
Author:
eugene
Message:

added various plots, more work on the mosaic astrometry

File:
1 edited

Legend:

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

    r10855 r10864  
    9090    }
    9191   
    92     // toTPA converts from FPA units (microns) to TPA units (linear degrees)
    93     float plateScale1 = hypot (fpa->toTPA->x->coeff[1][0], fpa->toTPA->x->coeff[0][1]);
    94     float plateScale2 = hypot (fpa->toTPA->y->coeff[1][0], fpa->toTPA->y->coeff[0][1]);
    95     float plateScale = 0.5*(plateScale1 + plateScale2)*3600.0;
     92    // toSky converts from FPA & TPA units (microns) to sky units (radians)
     93    float plateScale = 0.5*(fpa->toSky->Xs + fpa->toSky->Ys)*3600.0*PM_DEG_RAD;
    9694
    9795    // pixError is the average 1D scatter in pixels ('results' are in FPA units = microns)
     
    105103
    106104    // XXX should these result in errors or be handled another way?
    107     psLogMsg ("psastro", PS_LOG_INFO, "astrometry solution: error: %f, Nstars: %d", astError, astNstar);
     105    psLogMsg ("psastro", PS_LOG_INFO, "astrometry solution: error: %f arcsec, Nstars: %d", astError, astNstar);
    108106    if (astError > maxError) {
    109107        psLogMsg("psastro", PS_LOG_INFO, "residual error is too large, failed to find a solution: %f > %f", astError, maxError);
     
    127125    psMetadataAddF32 (updates, PS_LIST_TAIL, "EQUINOX",  PS_META_REPLACE, "equinox of ref catalog", 2000.0); // XXX this is bogus: should be defined based on equinox of refstars
    128126
    129 // write results
     127    // write results
    130128    psastroUpdateChipToFPA (fpa, chip, rawstars, refstars);
     129   
     130    if (psTraceGetLevel("psastro.plot") > 0) {
     131        psastroPlotOneChipFit (rawstars, refstars, match, results);
     132    }
    131133
    132134    psFree (match);
Note: See TracChangeset for help on using the changeset viewer.