Changeset 10855 for trunk/psastro/src/psastroAstromGuess.c
- Timestamp:
- Dec 29, 2006, 8:36:33 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroAstromGuess.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroAstromGuess.c
r10830 r10855 11 11 bool newFPA = true; 12 12 bool status = false; 13 double RAmin = NAN; 14 double RAmax = NAN; 13 double RAmin = FLT_MAX; 14 double RAmax = FLT_MIN; 15 double DECmin = FLT_MAX; 16 double DECmax = FLT_MIN; 17 15 18 double RAminSky = NAN; 16 19 double RAmaxSky = NAN; 17 double DECmin = NAN;18 double DECmax = NAN;19 20 20 21 pmChip *chip = NULL; 21 22 pmCell *cell = NULL; 22 23 pmReadout *readout = NULL; 23 24 DECmin = DECmax = -90;25 RAmin = RAmax = RAminSky = RAmaxSky = 0;26 24 27 25 // select the current recipe … … 63 61 RAminSky = fpa->toSky->R - M_PI; 64 62 RAmaxSky = fpa->toSky->R + M_PI; 65 RAmin = RAmax = fpa->toSky->R;66 DECmin = DECmax = fpa->toSky->D;67 63 } 68 64 … … 79 75 if (rawstars == NULL) { continue; } 80 76 77 FILE *f = fopen ("rawstars.dat", "w"); 81 78 for (int i = 0; i < rawstars->n; i++) { 82 79 pmAstromObj *raw = rawstars->data[i]; … … 85 82 psPlaneTransformApply (raw->TP, fpa->toTPA, raw->FP); 86 83 psDeproject (raw->sky, raw->TP, fpa->toSky); 84 85 fprintf (f, "%d %f %f %f %f %f %f %f %f\n", i, 86 raw->sky->r, raw->sky->d, 87 raw->TP->x, raw->TP->y, 88 raw->FP->x, raw->FP->y, 89 raw->chip->x, raw->chip->y); 87 90 88 91 if (i < 10) { … … 122 125 DECmax = PS_MAX (raw->sky->d, DECmax); 123 126 } 127 fclose (f); 124 128 } 125 129 }
Note:
See TracChangeset
for help on using the changeset viewer.
