IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14882


Ignore:
Timestamp:
Sep 18, 2007, 8:59:36 AM (19 years ago)
Author:
gusciora
Message:

First version for this file.

Location:
trunk/psModules/test
Files:
17 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/test/camera/tap_pmFPAReadWrite.c

    r14549 r14882  
    1212// XXX: For the genSimpleFPA() code, add IDs to each function so that
    1313// the values set in each chip-?cell-?hdu-?image are unique
    14 // XXX: For the genSimpleFPA() code, write masks and weights as well
    1514
    1615#define CHIP_ALLOC_NAME         "ChipName"
     
    674673        // XXX: chipID should be cellID
    675674        for (int chipID = 0 ; chipID < chip->cells->n ; chipID++) {
    676             if (VERBOSE) printf("Reading cell %d\n", chipID);
     675            if (VERBOSE) diag("Reading cell %d\n", chipID);
    677676            pmCell *cell = (pmCell *) chip->cells->data[chipID];
    678677            for (int k = 0 ; k < cell->hdu->images->n ; k++) {
    679                 if (VERBOSE) printf("Cool: image %d\n", k);
     678                if (VERBOSE) diag("Cool: image %d\n", k);
    680679                psImage *img = cell->hdu->images->data[k];
    681680                for (int i = 0 ; i < img->numRows ; i++) {
     
    794793        // XXX: chipID should be cellID
    795794        for (int chipID = 0 ; chipID < chip->cells->n ; chipID++) {
    796             if (VERBOSE) printf("Reading cell %d\n", chipID);
     795            if (VERBOSE) diag("Reading cell %d\n", chipID);
    797796            pmCell *cell = (pmCell *) chip->cells->data[chipID];
    798797            for (int k = 0 ; k < cell->hdu->weights->n ; k++) {
    799                 if (VERBOSE) printf("Cool: image %d\n", k);
     798                if (VERBOSE) diag("Cool: image %d\n", k);
    800799                psImage *wgt = cell->hdu->weights->data[k];
    801800                for (int i = 0 ; i < wgt->numRows ; i++) {
     
    865864        // XXX: chipID should be cellID
    866865        for (int chipID = 0 ; chipID < chip->cells->n ; chipID++) {
    867             if (VERBOSE) printf("Reading cell %d\n", chipID);
     866            if (VERBOSE) diag("Reading cell %d\n", chipID);
    868867            pmCell *cell = (pmCell *) chip->cells->data[chipID];
    869868            for (int k = 0 ; k < cell->hdu->masks->n ; k++) {
    870                 if (VERBOSE) printf("Cool: image %d\n", k);
     869                if (VERBOSE) diag("Cool: image %d\n", k);
    871870                psImage *msk = cell->hdu->masks->data[k];
    872871                for (int i = 0 ; i < msk->numRows ; i++) {
     
    986985            pmChip *chip = fpa->chips->data[fpaID];
    987986            for (int chipID = 0 ; chipID < chip->cells->n ; chipID++) {
    988                 if (VERBOSE) printf("Reading cell %d\n", chipID);
     987                if (VERBOSE) diag("Reading cell %d\n", chipID);
    989988                pmCell *cell = (pmCell *) chip->cells->data[chipID];
    990989                for (int k = 0 ; k < cell->hdu->images->n ; k++) {
    991                     if (VERBOSE) printf("Cool: image %d\n", k);
     990                    if (VERBOSE) diag("Cool: image %d\n", k);
    992991                    psImage *img = cell->hdu->images->data[k];
    993992                    for (int i = 0 ; i < img->numRows ; i++) {
     
    11081107            pmChip *chip = fpa->chips->data[fpaID];
    11091108            for (int chipID = 0 ; chipID < chip->cells->n ; chipID++) {
    1110                 if (VERBOSE) printf("Reading cell %d\n", chipID);
     1109                if (VERBOSE) diag("Reading cell %d\n", chipID);
    11111110                pmCell *cell = (pmCell *) chip->cells->data[chipID];
    11121111                for (int k = 0 ; k < cell->hdu->weights->n ; k++) {
    1113                     if (VERBOSE) printf("Cool: image %d\n", k);
     1112                    if (VERBOSE) diag("Cool: image %d\n", k);
    11141113                    psImage *wgt = cell->hdu->weights->data[k];
    11151114                    for (int i = 0 ; i < wgt->numRows ; i++) {
     
    12301229            pmChip *chip = fpa->chips->data[fpaID];
    12311230            for (int chipID = 0 ; chipID < chip->cells->n ; chipID++) {
    1232                 if (VERBOSE) printf("Reading cell %d\n", chipID);
     1231                if (VERBOSE) diag("Reading cell %d\n", chipID);
    12331232                pmCell *cell = (pmCell *) chip->cells->data[chipID];
    12341233                for (int k = 0 ; k < cell->hdu->masks->n ; k++) {
    1235                     if (VERBOSE) printf("Cool: image %d\n", k);
     1234                    if (VERBOSE) diag("Cool: image %d\n", k);
    12361235                    psImage *msk = cell->hdu->masks->data[k];
    12371236                    for (int i = 0 ; i < msk->numRows ; i++) {
     
    12561255}
    12571256
    1258 
    1259 //HERE
Note: See TracChangeset for help on using the changeset viewer.