Changeset 6958
- Timestamp:
- Apr 21, 2006, 5:35:08 PM (20 years ago)
- Location:
- trunk/psastro/src
- Files:
-
- 2 edited
-
psastroConvert.c (modified) (1 diff)
-
psastroDataLoop.c (modified) (2 diffs)
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 } -
trunk/psastro/src/psastroDataLoop.c
r6911 r6958 1 1 # include "psastro.h" 2 2 3 // this loop just loads the data from the input files. 3 // this loop loads the data from the input files and selects the 4 // brighter stars for astrometry 4 5 // at the end of this function, the complete stellar data is loaded 5 6 // into the correct fpa structure locations (readout.analysis:PSPHOT.SOURCES) 7 // 6 8 // all of the different astrometry analysis modes use the same data load loop 7 9 bool psastroDataLoop (pmConfig *config) { … … 46 48 } 47 49 48 // we need to suppress other IO files. we need a function with toggles the mode/state of the49 // pmFPAfiles so the ones of interest are active.
Note:
See TracChangeset
for help on using the changeset viewer.
