IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 29, 2006, 8:36:33 AM (20 years ago)
Author:
eugene
Message:

extensive work to catch errors and clear leaks; implement mosaics

File:
1 edited

Legend:

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

    r10830 r10855  
    1111    bool newFPA = true;
    1212    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
    1518    double RAminSky = NAN;
    1619    double RAmaxSky = NAN;
    17     double DECmin = NAN;
    18     double DECmax = NAN;
    1920
    2021    pmChip *chip = NULL;
    2122    pmCell *cell = NULL;
    2223    pmReadout *readout = NULL;
    23 
    24     DECmin = DECmax = -90;
    25     RAmin = RAmax = RAminSky = RAmaxSky = 0;
    2624
    2725    // select the current recipe
     
    6361            RAminSky = fpa->toSky->R - M_PI;
    6462            RAmaxSky = fpa->toSky->R + M_PI;
    65             RAmin = RAmax = fpa->toSky->R;
    66             DECmin = DECmax = fpa->toSky->D;
    6763        }
    6864
     
    7975                if (rawstars == NULL) { continue; }
    8076
     77                FILE *f = fopen ("rawstars.dat", "w");
    8178                for (int i = 0; i < rawstars->n; i++) {
    8279                    pmAstromObj *raw = rawstars->data[i];
     
    8582                    psPlaneTransformApply (raw->TP, fpa->toTPA, raw->FP);
    8683                    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);
    8790
    8891                    if (i < 10) {
     
    122125                    DECmax = PS_MAX (raw->sky->d, DECmax);
    123126                }
     127                fclose (f);
    124128            }
    125129        }
Note: See TracChangeset for help on using the changeset viewer.