Changeset 2990
- Timestamp:
- Jan 13, 2005, 3:13:15 PM (22 years ago)
- Location:
- trunk/psLib
- Files:
-
- 2 edited
-
src/astronomy/psAstrometry.c (modified) (3 diffs)
-
test/astronomy/tst_psAstrometry01.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astronomy/psAstrometry.c
r2983 r2990 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1.5 5$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-01-1 3 22:45:28$10 * @version $Revision: 1.56 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-01-14 01:13:15 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 362 362 chips[i] = NULL; 363 363 } 364 newFPA->chips->n = 0; // per requirement 364 365 365 366 newFPA->metadata = NULL; … … 467 468 psReadout* readout = psAlloc(sizeof(psReadout)); 468 469 469 *(psU32*)&readout->colBins = 0;470 *(psU32*)&readout->rowBins = 0;470 *(psU32*)&readout->colBins = 1; 471 *(psU32*)&readout->rowBins = 1; 471 472 *(psU32*)&readout->rowParity = 0; 472 473 *(psU32*)&readout->colParity = 0; -
trunk/psLib/test/astronomy/tst_psAstrometry01.c
r2983 r2990 5 5 * @author GLG, MHPCC 6 6 * 7 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $8 * @date $Date: 2005-01-1 3 22:45:40$7 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2005-01-14 01:13:15 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 19 19 20 20 testDescription 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}, 24 24 {NULL} 25 25 }; … … 136 136 137 137 chips = (psChip **) myFPA->chips->data; 138 myFPA->chips->n = NUM_CHIPS; 139 138 140 for (i=0;i<NUM_CHIPS;i++) { 139 141 chips[i] = psChipAlloc(NUM_CELLS, myFPA); … … 148 150 149 151 cells = (psCell **) chips[i]->cells->data; 152 chips[i]->cells->n = NUM_CELLS; 150 153 151 154 for (j=0;j<NUM_CELLS;j++) { … … 168 171 169 172 readouts = (psReadout **) cells[j]->readouts->data; 173 cells[j]->readouts->n = NUM_READOUTS; 174 170 175 for (k=0;k<NUM_READOUTS;k++) { 171 176 tmpImage = psImageAlloc(READOUT_NUM_COLS, READOUT_NUM_ROWS, PS_TYPE_F32); … … 176 181 } 177 182 } 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 179 188 180 189 } … … 341 350 XXX: Don't know how to verify: latitude, sinLat, cosLat, abberationMag, 342 351 refractA, refractB, longitudeOffset, siderealTime 343 352 344 353 if (grom-> != ) { 345 354 printf("ERROR: grom-> is %f, should be %f\n", grom->, ); … … 405 414 coords returned above. 406 415 407 Then, it calls 416 Then, it calls 408 417 psCellInChip() 409 418 and flags an ERROR if the cell it returns is different from that of
Note:
See TracChangeset
for help on using the changeset viewer.
