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/psastroChooseRefstars.c

    r10830 r10855  
    5656                psArray *refstars = psArrayAllocEmpty (100);
    5757
     58                FILE *f = fopen ("refstars.dat", "w");
     59
    5860                // select the reference objects within range of this readout
    5961                // project the reference objects to this chip
     
    6466                    psPlaneTransformApply (ref->FP, fpa->fromTPA, ref->TP);
    6567                    psPlaneTransformApply (ref->chip, chip->fromFPA, ref->FP);
     68
     69                    fprintf (f, "%d  %f %f  %f %f  %f %f  %f %f\n", i,
     70                             ref->sky->r, ref->sky->d,
     71                             ref->TP->x, ref->TP->y,
     72                             ref->FP->x, ref->FP->y,
     73                             ref->chip->x, ref->chip->y);
    6674
    6775                    // limit the X,Y range of the refs to the selected chip
     
    7583                    psFree (ref);
    7684                }
     85                fclose (f);
    7786                psTrace ("psastro", 4, "Added %ld refstars\n", refstars->n);
    7887
Note: See TracChangeset for help on using the changeset viewer.