IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 12, 2005, 9:58:04 AM (21 years ago)
Author:
eugene
Message:

development work

File:
1 edited

Legend:

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

    r5506 r5509  
    11# include "psastro.h"
    22
    3 pmFPA *psastroBuildFPA (psMetadata *header, psMetadata *config) {
     3pmFPA *psastroBuildFPA (psMetadata *header, psArray *stars) {
    44
    55    // this function constructs a basic template pmFPA structure based on the information in the header
     
    3030
    3131            pmCell *cell = pmCellAlloc ();
    32             cell->chip = chip; // assign parent chip (view only; don't free)
    33             cell->header = header;
     32            cell->chip = chip;      // assign parent chip (view only; don't free)
     33            cell->header = header;  // XXX EAM : extend this function to take more than header
    3434
    3535            pmCellInterpretWCS (cell, header);
     
    3939
    4040                pmReadout *readout = pmReadoutAlloc ();
     41                readout->stars  = stars;   // XXX EAM : need more than one stars...
     42
    4143                cells->readouts->data[j] = readout;
    4244            }
     
    143145    // XXX EAM : if fpa->toSky and fpa->toTPA are already defined, then the
    144146    //           toFPA must be modified to match the crval(i), scale(i) and crpix(i)
     147    //           scale = scale(i)/scale(0) (i == chip #)
     148    //           project crval1(0),crval2(0 using projection
    145149
    146150    // XXX EAM : psPlaneTransformAlloc uses nTerm not nOrder (bug 581)
Note: See TracChangeset for help on using the changeset viewer.