IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2990


Ignore:
Timestamp:
Jan 13, 2005, 3:13:15 PM (22 years ago)
Author:
desonia
Message:

modification concerning requirement that 'n' in psArray of psFPA/psChip/psCell
shall be 0 at allocation time.

Location:
trunk/psLib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astronomy/psAstrometry.c

    r2983 r2990  
    88 *  @author GLG, MHPCC
    99 *
    10  *  @version $Revision: 1.55 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2005-01-13 22:45:28 $
     10 *  @version $Revision: 1.56 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2005-01-14 01:13:15 $
    1212 *
    1313 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    362362        chips[i] = NULL;
    363363    }
     364    newFPA->chips->n = 0; // per requirement
    364365
    365366    newFPA->metadata = NULL;
     
    467468    psReadout* readout = psAlloc(sizeof(psReadout));
    468469
    469     *(psU32*)&readout->colBins = 0;
    470     *(psU32*)&readout->rowBins = 0;
     470    *(psU32*)&readout->colBins = 1;
     471    *(psU32*)&readout->rowBins = 1;
    471472    *(psU32*)&readout->rowParity = 0;
    472473    *(psU32*)&readout->colParity = 0;
  • trunk/psLib/test/astronomy/tst_psAstrometry01.c

    r2983 r2990  
    55*  @author GLG, MHPCC
    66*
    7 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    8 *  @date $Date: 2005-01-13 22:45:40 $
     7*  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     8*  @date $Date: 2005-01-14 01:13:15 $
    99*
    1010*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    1919
    2020testDescription tests[] = {
    21                               {test1, 0000, "Tests psFixedPatternAlloc()", 0, false},
    22                               {test2, 0000, "Tests psGrommitAlloc()", 0, false},
    23                               {test3, 0000, "MISC", 0, false},
     21                              {test1, -1, "Tests psFixedPatternAlloc()", 0, false},
     22                              {test2, -2, "Tests psGrommitAlloc()", 0, false},
     23                              {test3, -3, "MISC", 0, false},
    2424                              {NULL}
    2525                          };
     
    136136
    137137    chips = (psChip **) myFPA->chips->data;
     138    myFPA->chips->n = NUM_CHIPS;
     139
    138140    for (i=0;i<NUM_CHIPS;i++) {
    139141        chips[i] = psChipAlloc(NUM_CELLS, myFPA);
     
    148150
    149151        cells = (psCell **) chips[i]->cells->data;
     152        chips[i]->cells->n = NUM_CELLS;
    150153
    151154        for (j=0;j<NUM_CELLS;j++) {
     
    168171
    169172            readouts = (psReadout **) cells[j]->readouts->data;
     173            cells[j]->readouts->n = NUM_READOUTS;
     174
    170175            for (k=0;k<NUM_READOUTS;k++) {
    171176                tmpImage = psImageAlloc(READOUT_NUM_COLS, READOUT_NUM_ROWS, PS_TYPE_F32);
     
    176181                    }
    177182                }
    178                 readouts[k] = psReadoutAlloc((j * (CELL_WIDTH + CELL_GAP)), 0, tmpImage);
     183                readouts[k] = psReadoutAlloc();
     184                readouts[k]->image = tmpImage;
     185                *(psS32*)&readouts[k]->col0 = (j * (CELL_WIDTH + CELL_GAP));
     186                *(psS32*)&readouts[k]->row0 = 0;
     187
    179188
    180189            }
     
    341350        XXX: Don't know how to verify: latitude, sinLat, cosLat, abberationMag,
    342351             refractA, refractB, longitudeOffset, siderealTime
    343      
     352
    344353       if (grom-> != ) {
    345354            printf("ERROR: grom-> is %f, should be %f\n", grom->, );
     
    405414coords returned above.
    406415 
    407 Then, it calls 
     416Then, it calls
    408417    psCellInChip()
    409418and flags an ERROR if the cell it returns is different from that of
Note: See TracChangeset for help on using the changeset viewer.