IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7216


Ignore:
Timestamp:
May 25, 2006, 12:20:53 PM (20 years ago)
Author:
Paul Price
Message:

Various changes made in the course of testing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppTest.c

    r6897 r7216  
    9898
    9999    // Read the FPA
     100#if 1
     101    pmFPARead(fpa, inFile, NULL);
     102#else
    100103    psArray *chips = fpa->chips;
    101     pmFPAWrite(fpa, outFile, NULL, false);
     104    //pmFPAWrite(fpa, outFile, NULL, false);
    102105    for (int i = 0; i < chips->n; i++) {
    103106        pmChip *chip = chips->data[i];
    104         pmChipWrite(chip, outFile, NULL, false);
     107        //pmChipWrite(chip, outFile, NULL, false);
    105108        psArray *cells = chip->cells;
    106109        for (int j = 0; j < cells->n; j++) {
    107110            pmCell *cell = cells->data[j];
    108             pmCellWrite(cell, outFile, NULL, false);
    109 #if 1
     111            //pmCellWrite(cell, outFile, NULL, false);
     112#if 0
    110113            pmReadout *readout = pmReadoutAlloc(cell);
    111             for (int z = 0; pmReadoutReadNext(readout, inFile, z, 100); z++) {
     114            for (int z = 0; pmReadoutReadNext(readout, inFile, z, 512); z++) {
    112115                do {
    113116                    printf("Chip %d, Cell %d, Plane %d, row0 = %d\n", i, j, z, readout->row0);
    114117                    pmReadoutWriteNext(readout, outFile, z);
    115118                    //pmFPAPrint(fpa, false, true);
    116                 } while (pmReadoutReadNext(readout, inFile, z, 2048));
     119                } while (pmReadoutReadNext(readout, inFile, z, 512));
    117120            }
    118121            psFree(readout);
    119122#else
    120123            pmCellRead(cell, inFile, NULL);
     124            printf("Read chip %d, cell %d\n", i, j);
    121125#endif
    122             psFree(cell);
    123126        }
    124         psFree(chip);
     127        //pmChipMosaic(chip);
     128        //psFree(chip);
    125129    }
     130#endif
    126131
    127 #if 0
    128     pmFPARead(fpa, inFile, NULL);
     132
     133#if 1
    129134    // Copy to new camera format
    130135    pmFPA *newFPA = pmFPAConstruct(config->camera);
    131     psMetadata *newFormat = psMetadataConfigParse(NULL, NULL, "mcshort_splice.config", true);
    132     pmConfigConformHeader(phu, newFormat);
     136    psMetadata *newFormat = psMetadataConfigParse(NULL, NULL, "/home/mithrandir/price/ipp/config/mcshort/format_spliced.config", true);
    133137    pmFPAAddSourceFromView(newFPA, view, newFormat);
    134     pmFPAPrint(newFPA, true, true);
    135     pmFPACopyStructure(newFPA, fpa, 5, 5);
    136     pmFPAWrite(newFPA, outFile, NULL);
    137     exit(EXIT_SUCCESS);
    138 
    139     pmFPAPrint(newFPA, true, true);
     138    //pmFPACopyStructure(newFPA, fpa, 5, 5);
     139    pmFPACopy(newFPA, fpa);
     140    //pmConfigConformHeader(phu, newFormat);
     141    //pmHDUGenerateForFPA(newFPA);
     142    //pmFPAPrint(newFPA, true, true);
     143    pmFPAWrite(newFPA, outFile, NULL, true);
    140144    psFree(newFormat);
    141145    psFree(newFPA);
     
    152156    psTimerStop();
    153157    psTraceReset();
     158    psErrorClear();
    154159    pmConceptsDone();
    155160    pmConfigDone();
Note: See TracChangeset for help on using the changeset viewer.