Changeset 6958 for trunk/psastro/src/psastroConvert.c
- Timestamp:
- Apr 21, 2006, 5:35:08 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroConvert.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroConvert.c
r6176 r6958 3 3 psArray *pmSourceToAstromObj (psArray *sources) { 4 4 5 psArray *objects = psArrayAlloc (sources->n); 5 6 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; 6 12 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 7 33 }
Note:
See TracChangeset
for help on using the changeset viewer.
