IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 21, 2006, 5:35:08 PM (20 years ago)
Author:
eugene
Message:

psastro dev work

File:
1 edited

Legend:

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

    r6176 r6958  
    33psArray *pmSourceToAstromObj (psArray *sources) {
    44
     5    psArray *objects = psArrayAlloc (sources->n);
    56   
     7    for (int i = 0; i < sources->n; i++) {
     8        psSource *source = sources->data[i];
     9       
     10        // only accept the PSF sources?
     11        if (source->type != PM_SOURCE_STAR) continue;
    612
     13        pmModel *model = source->modelPSF;
     14        if (model == NULL) continue;
     15
     16        psF32 *PAR = model->params->data.F32;
     17
     18        pmAstromObj *obj = pmAstromObjAlloc ();
     19
     20        // is the source magnitude calibrated in any sense?
     21        obj->pix->x = PAR[2];
     22        obj->pix->y = PAR[3];
     23        obj->Mag = source->psfMag;
     24
     25        // XXX do we have the information giving the readout and cell offset?
     26        // for the moment, assume chip == cell == readout
     27        obj->cell = obj->pix;
     28        obj->chip = obj->cell;
     29       
     30        // can we make an initial guess of the astrometry to set FP, TP, and sky coords?
     31       
     32       
    733}
Note: See TracChangeset for help on using the changeset viewer.