IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 8, 2006, 4:37:08 PM (20 years ago)
Author:
jhoblitt
Message:

normalize psTrace() facility names

Location:
trunk/psModules/src/camera
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPA.c

    r8047 r8246  
    1212* XXX: Should we implement non-linear cell->chip transforms?
    1313*
    14 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    15 *  @date $Date: 2006-08-02 02:17:11 $
     14*  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     15*  @date $Date: 2006-08-09 02:37:07 $
    1616*
    1717*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    3838    // if this readout has a parent, drop that instance
    3939    if (readout->parent) {
    40         psTrace(__func__, 9, "Removing readout %lx from cell %lx...\n", (size_t)readout, (size_t)readout->parent);
     40        psTrace("psModules.camera", 9, "Removing readout %lx from cell %lx...\n", (size_t)readout, (size_t)readout->parent);
    4141        psArray *readouts = readout->parent->readouts;
    4242        for (int i = 0; i < readouts->n; i++) {
     
    4646        }
    4747    }
    48     psTrace(__func__, 9, "Freeing readout %lx\n", (size_t) readout);
     48    psTrace("psModules.camera", 9, "Freeing readout %lx\n", (size_t) readout);
    4949    psFree(readout->image);
    5050    psFree(readout->mask);
     
    5959    // if this cell has a parent, drop that instance
    6060    if (cell->parent) {
    61         psTrace(__func__, 9, "Removing cell %lx from chip %lx...\n", (size_t)cell, (size_t)cell->parent);
     61        psTrace("psModules.camera", 9, "Removing cell %lx from chip %lx...\n", (size_t)cell, (size_t)cell->parent);
    6262        psArray *cells = cell->parent->cells;
    6363        for (int i = 0; i < cells->n; i++) {
     
    6767        }
    6868    }
    69     psTrace(__func__, 9, "Freeing cell %lx\n", (size_t)cell);
     69    psTrace("psModules.camera", 9, "Freeing cell %lx\n", (size_t)cell);
    7070    pmCellFreeReadouts(cell);
    7171    psFree(cell->readouts);
     
    8181    // if this chip has a parent, drop that instance
    8282    if (chip->parent) {
    83         psTrace(__func__, 9, "Removing chip %lx from fpa %lx...\n", (size_t)chip, (size_t)chip->parent);
     83        psTrace("psModules.camera", 9, "Removing chip %lx from fpa %lx...\n", (size_t)chip, (size_t)chip->parent);
    8484        psArray *chips = chip->parent->chips;
    8585        for (int i = 0; i < chips->n; i++) {
     
    9090    }
    9191
    92     psTrace(__func__, 9, "Freeing chip %lx\n", (size_t)chip);
     92    psTrace("psModules.camera", 9, "Freeing chip %lx\n", (size_t)chip);
    9393    pmChipFreeCells(chip);
    9494    psFree(chip->cells);
     
    109109static void FPAFree(pmFPA *fpa)
    110110{
    111     psTrace(__func__, 9, "Freeing fpa %lx\n", (size_t)fpa);
     111    psTrace("psModules.camera", 9, "Freeing fpa %lx\n", (size_t)fpa);
    112112
    113113    // NULL the parent pointers
     
    149149        }
    150150        tmpReadout->parent = NULL;
    151         psTrace(__func__, 9, "Will now free readout %lx...\n", (size_t)tmpReadout);
     151        psTrace("psModules.camera", 9, "Will now free readout %lx...\n", (size_t)tmpReadout);
    152152    }
    153153    cell->readouts = psArrayRealloc(cell->readouts, 0);
  • trunk/psModules/src/camera/pmFPAConstruct.c

    r7719 r8246  
    244244    }
    245245
    246     psTrace(__func__, 5, "Looking up %s in the CONTENTS.\n", contentKey);
     246    psTrace("psModules.camera", 5, "Looking up %s in the CONTENTS.\n", contentKey);
    247247    const char *content = psMetadataLookupStr(&mdok, contents, contentKey);
    248248    if (!mdok || !content || strlen(content) == 0) {
     
    593593            // Need to look up what chip we have.
    594594            psString chipName = phuNameFromHeader("CHIP.NAME", fileInfo, header);
    595             psTrace(__func__, 5, "This is chip %s\n", chipName);
     595            psTrace("psModules.camera", 5, "This is chip %s\n", chipName);
    596596            int chipNum = pmFPAFindChip(fpa, chipName); // Chip number
    597597            if (chipNum == -1) {
     
    794794    PS_ASSERT_PTR_NON_NULL(fpa,);
    795795
    796     psTrace(__func__, 1, "FPA:\n");
     796    psTrace("psModules.camera", 1, "FPA:\n");
    797797    if (fpa->hdu) {
    798798        pmHDUPrint(fd, fpa->hdu, 2, header);
     
    805805    // Iterate over the FPA
    806806    for (int i = 0; i < chips->n; i++) {
    807         psTrace(__func__, 3, "Chip: %d\n", i);
     807        psTrace("psModules.camera", 3, "Chip: %d\n", i);
    808808        pmChip *chip = chips->data[i]; // The chip
    809809        if (chip->hdu) {
     
    817817        psArray *cells = chip->cells;   // Array of cells
    818818        for (int j = 0; j < cells->n; j++) {
    819             psTrace(__func__, 5, "Cell: %d\n", j);
     819            psTrace("psModules.camera", 5, "Cell: %d\n", j);
    820820            pmCell *cell = cells->data[j]; // The cell
    821821            if (cell->hdu) {
     
    829829            for (int k = 0; k < readouts->n; k++) {
    830830                pmReadout *readout = readouts->data[k]; // The readout
    831                 psTrace(__func__, 6, "Readout %d:\n", k);
    832                 psTrace(__func__, 7, "row0: %d\n", readout->row0);
    833                 psTrace(__func__, 7, "col0: %d\n", readout->col0);
     831                psTrace("psModules.camera", 6, "Readout %d:\n", k);
     832                psTrace("psModules.camera", 7, "row0: %d\n", readout->row0);
     833                psTrace("psModules.camera", 7, "col0: %d\n", readout->col0);
    834834                psImage *image = readout->image; // The image
    835835                psList *bias = readout->bias; // The list of bias images
    836836                if (image) {
    837                     psTrace(__func__, 7, "Image: [%d:%d,%d:%d] (%dx%d)\n", image->col0, image->col0 +
     837                    psTrace("psModules.camera", 7, "Image: [%d:%d,%d:%d] (%dx%d)\n", image->col0, image->col0 +
    838838                            image->numCols, image->row0, image->row0 + image->numRows, image->numCols,
    839839                            image->numRows);
     
    843843                    psImage *biasImage = NULL; // Bias image from iteration
    844844                    while ((biasImage = psListGetAndIncrement(biasIter))) {
    845                         psTrace(__func__, 7, "Bias:  [%d:%d,%d:%d] (%dx%d)\n", biasImage->col0,
     845                        psTrace("psModules.camera", 7, "Bias:  [%d:%d,%d:%d] (%dx%d)\n", biasImage->col0,
    846846                                biasImage->col0 + biasImage->numCols, biasImage->row0,
    847847                                biasImage->row0 + biasImage->numRows, biasImage->numCols, biasImage->numRows);
  • trunk/psModules/src/camera/pmFPACopy.c

    r7834 r8246  
    9292            }
    9393        }
    94         psTrace(__func__, 3, "xFlip: %d; yFlip: %d\n", xFlip, yFlip);
     94        psTrace("psModules.camera", 3, "xFlip: %d; yFlip: %d\n", xFlip, yFlip);
    9595    }
    9696
     
    228228        int xBin = psMetadataLookupS32(NULL, source->concepts, "CELL.XBIN"); // CELL.XBIN from source
    229229        pmReadout *readout = source->readouts->data[0]; // A representative readout
    230         psTrace(__func__, 3, "CELL.X0: Before: %d After: %d\n", xZero,
     230        psTrace("psModules.camera", 3, "CELL.X0: Before: %d After: %d\n", xZero,
    231231                xZero - (readout->image->numCols - 1) * xParity * xBin);
    232         psTrace(__func__, 9, "(xParity: %d xBin: %d numCols: %d)\n", xParity, xBin, readout->image->numCols);
     232        psTrace("psModules.camera", 9, "(xParity: %d xBin: %d numCols: %d)\n", xParity, xBin, readout->image->numCols);
    233233        xZero -= (readout->image->numCols - 1) * xParity * xBin; // Change the parity on the X0 position
    234234        psMetadataItem *newItem = psMetadataLookup(target->concepts, "CELL.X0"); // CELL.X0 from target
     
    240240        int yBin = psMetadataLookupS32(NULL, source->concepts, "CELL.YBIN"); // Parity in y
    241241        pmReadout *readout = source->readouts->data[0]; // A representative readout
    242         psTrace(__func__, 3, "CELL.Y0: Before: %d After: %d\n", yZero,
     242        psTrace("psModules.camera", 3, "CELL.Y0: Before: %d After: %d\n", yZero,
    243243                yZero - (readout->image->numRows - 1) * yParity * yBin);
    244         psTrace(__func__, 9, "(yParity: %d yBin: %d numRows: %d)\n", yParity, yBin, readout->image->numRows);
     244        psTrace("psModules.camera", 9, "(yParity: %d yBin: %d numRows: %d)\n", yParity, yBin, readout->image->numRows);
    245245        yZero -= (readout->image->numRows - 1) * yParity * yBin; // Change the parity on the Y0 position
    246246        psMetadataItem *newItem = psMetadataLookup(target->concepts, "CELL.Y0"); // CELL.Y0 from target
  • trunk/psModules/src/camera/pmFPAEnsemble.c

    r8048 r8246  
    238238        }
    239239
    240         psTrace(__func__, 3, "%s --> FPA: %s, chip: %d, cell: %d\n", filename, fpaName,
     240        psTrace("psModules.camera", 3, "%s --> FPA: %s, chip: %d, cell: %d\n", filename, fpaName,
    241241                view->chip, view->cell);
    242242
     
    245245        if (!check) {
    246246            // Add in the new FPA
    247             psTrace(__func__, 5, "New FPA.\n");
     247            psTrace("psModules.camera", 5, "New FPA.\n");
    248248            component = pmFPAComponentAlloc(fpa, view);
    249249            psMetadataAddPtr(fpas, PS_LIST_TAIL, fpaName, PS_DATA_UNKNOWN, NULL, component->fpa);
    250250        } else {
    251251            // Need to put the appropriate element of the new FPA in the old one.
    252             psTrace(__func__, 5, "Adding to extant FPA.\n");
     252            psTrace("psModules.camera", 5, "Adding to extant FPA.\n");
    253253            pmFPA *oldFPA = check->data.V; // The existing FPA
    254254            component = pmFPAComponentAlloc(oldFPA, view);
  • trunk/psModules/src/camera/pmFPAMaskWeight.c

    r7946 r8246  
    110110        return false;
    111111    }
    112     psTrace(__func__, 5, "Saturation: %f, bad: %f\n", saturation, bad);
     112    psTrace("psModules.camera", 5, "Saturation: %f, bad: %f\n", saturation, bad);
    113113
    114114
  • trunk/psModules/src/camera/pmFPAMosaic.c

    r7851 r8246  
    243243    if (x0 != readout->col0 + readout->image->col0 - (int)imageBounds->x0 ||
    244244            y0 != readout->row0 + readout->image->row0 - (int)imageBounds->y0) {
    245         psTrace(__func__, 5, "CELL.X0,Y0 don't match: %d,%d vs %d,%d\n", x0, y0,
     245        psTrace("psModules.camera", 5, "CELL.X0,Y0 don't match: %d,%d vs %d,%d\n", x0, y0,
    246246                readout->col0 + readout->image->col0 - (int)imageBounds->x0,
    247247                readout->row0 + readout->image->row0 - (int)imageBounds->y0);
     
    280280    psRegion *imageBounds = psRegionAlloc(INFINITY, 0, INFINITY, 0); // Bound of image on HDU
    281281    if (!chipBounds(imageBounds, chip) || !chipContiguousBiassec(imageBounds, chip)) {
    282         psTrace(__func__, 5, "Image isn't contiguous.\n");
     282        psTrace("psModules.camera", 5, "Image isn't contiguous.\n");
    283283        psFree(imageBounds);
    284284        return NULL;
     
    286286
    287287    psString region = psRegionToString(*imageBounds);
    288     psTrace(__func__, 7, "Image bounds: %s\n", region);
     288    psTrace("psModules.camera", 7, "Image bounds: %s\n", region);
    289289    psFree(region);
    290290
     
    309309            if (!chipContiguousTrimsec(imageBounds, testChip) ||
    310310                    !chipContiguousBiassec(imageBounds, testChip)) {
    311                 psTrace(__func__, 5, "Image isn't contiguous.\n");
     311                psTrace("psModules.camera", 5, "Image isn't contiguous.\n");
    312312                psFree(imageBounds);
    313313                return NULL;
     
    349349    psRegion *imageBounds = psRegionAlloc(0, 0, 0, 0); // Bound of image on HDU
    350350    if (!fpaContiguous(imageBounds, fpa)) {
    351         psTrace(__func__, 5, "Image isn't contiguous.\n");
     351        psTrace("psModules.camera", 5, "Image isn't contiguous.\n");
    352352        psFree(imageBounds);
    353353        return NULL;
     
    355355
    356356    psString region = psRegionToString(*imageBounds);
    357     psTrace(__func__, 7, "Image bounds: %s\n", region);
     357    psTrace("psModules.camera", 7, "Image bounds: %s\n", region);
    358358    psFree(region);
    359359
     
    406406    psElemType type = 0;
    407407    int numImages = 0;                  // Number of images
    408     psTrace(__func__, 3, "Mosaicking %ld cells.\n", source->n);
     408    psTrace("psModules.camera", 3, "Mosaicking %ld cells.\n", source->n);
    409409    for (int i = 0; i < source->n; i++) {
    410410        psImage *image = source->data[i]; // The image of interest
     
    425425        int xParity = xFlip->data.U8[i] ? -1 : 1;
    426426        int yParity = yFlip->data.U8[i] ? -1 : 1;
    427         psTrace(__func__, 5, "Extent of cell %d: %d -> %d , %d -> %d\n", i, x0->data.S32[i],
     427        psTrace("psModules.camera", 5, "Extent of cell %d: %d -> %d , %d -> %d\n", i, x0->data.S32[i],
    428428                x0->data.S32[i] + xParity * xBinSource->data.S32[i] * image->numCols, y0->data.S32[i],
    429429                y0->data.S32[i] + yParity * yBinSource->data.S32[i] * image->numRows);
     
    450450    }
    451451
    452     psTrace(__func__, 3, "Spliced image will be %dx%d\n", (int)xSize, (int)ySize);
     452    psTrace("psModules.camera", 3, "Spliced image will be %dx%d\n", (int)xSize, (int)ySize);
    453453    psImage *mosaic = psImageAlloc((int)xSize, (int)ySize, type); // The mosaic image
    454454    psImageInit(mosaic, 0);
     
    586586        good = false;
    587587    }
    588     psTrace(__func__, 5, "Cell %d: x0=%d y0=%d\n", index, x0Cell, y0Cell);
     588    psTrace("psModules.camera", 5, "Cell %d: x0=%d y0=%d\n", index, x0Cell, y0Cell);
    589589
    590590    // Offset of the chip on the FPA
     
    682682    masks->data[index]   = psMemIncrRefCounter(readout->mask);
    683683
    684     psTrace(__func__, 9, "Added cell (%x) %ld: %d,%d; %d,%d, %d,%d.\n", cell, index,
     684    psTrace("psModules.camera", 9, "Added cell (%x) %ld: %d,%d; %d,%d, %d,%d.\n", cell, index,
    685685            x0->data.S32[index], y0->data.S32[index], xBin->data.S32[index], yBin->data.S32[index],
    686686            xFlip->data.U8[index], yFlip->data.U8[index]);
     
    970970    if ((chipRegion = niceChip(&xBin, &yBin, source))) {
    971971        // Case 1 --- we need only cut out the region
    972         psTrace(__func__, 1, "Case 1 mosaicking: simple cut-out.\n");
     972        psTrace("psModules.camera", 1, "Case 1 mosaicking: simple cut-out.\n");
    973973        pmHDU *hdu = source->hdu;       // The HDU that has the pixels
    974974        if (!hdu || !hdu->images) {
     
    984984    } else {
    985985        // Case 2 --- we need to mosaic by cut and paste
    986         psTrace(__func__, 1, "Case 2 mosaicking: cut and paste.\n");
     986        psTrace("psModules.camera", 1, "Case 2 mosaicking: cut and paste.\n");
    987987        if (!chipMosaic(&mosaicImage, &mosaicMask, &mosaicWeights, &xBin, &yBin, source, targetCell)) {
    988988            psError(PS_ERR_UNKNOWN, false, "Unable to mosaic cells.\n");
     
    991991        chipRegion = psRegionAlloc(NAN, NAN, NAN, NAN); // We've cut and paste, so there's no valid trimsec
    992992    }
    993     psTrace(__func__, 1, "xBin,yBin: %d,%d\n", xBin, yBin);
     993    psTrace("psModules.camera", 1, "xBin,yBin: %d,%d\n", xBin, yBin);
    994994
    995995    // Set the concepts for the target cell
     
    10661066    if ((fpaRegion = niceFPA(&xBin, &yBin, source))) {
    10671067        // Case 1 --- we need only cut out the region
    1068         psTrace(__func__, 1, "Case 1 mosaicking: simple cut-out.\n");
     1068        psTrace("psModules.camera", 1, "Case 1 mosaicking: simple cut-out.\n");
    10691069        pmHDU *hdu = source->hdu;         // The HDU that has the pixels
    10701070        mosaicImage = psMemIncrRefCounter(psImageSubset(hdu->images->data[0], *fpaRegion));
     
    10771077    } else {
    10781078        // Case 2 --- we need to mosaic by cut and paste
    1079         psTrace(__func__, 1, "Case 2 mosaicking: cut and paste.\n");
     1079        psTrace("psModules.camera", 1, "Case 2 mosaicking: cut and paste.\n");
    10801080        if (!fpaMosaic(&mosaicImage, &mosaicMask, &mosaicWeights, &xBin, &yBin, source,
    10811081                       targetChip, targetCell)) {
  • trunk/psModules/src/camera/pmFPARead.c

    r7923 r8246  
    126126    }
    127127
    128     psTrace(__func__, 5, "Reading section [%.0f:%.0f,%.0f:%.0f]\n",
     128    psTrace("psModules.camera", 5, "Reading section [%.0f:%.0f,%.0f:%.0f]\n",
    129129            toRead.x0, toRead.x1, toRead.y0, toRead.y1);
    130130    psImage *image = psFitsReadImage(fits, toRead, z); // Desired pixels
    131     psTrace(__func__, 7, "Image is %dx%d\n", image->numCols, image->numRows);
     131    psTrace("psModules.camera", 7, "Image is %dx%d\n", image->numCols, image->numRows);
    132132
    133133    // XXX: We only support F32 for now
     
    140140    if (resize) {
    141141        // For some reason, the region of interest is smaller than the number of pixels we want.
    142         psTrace(__func__, 5, "Resizing image to %.0fx%.0f\n",
     142        psTrace("psModules.camera", 5, "Resizing image to %.0fx%.0f\n",
    143143                fullSize.x1 - fullSize.x0, fullSize.y1 - fullSize.y0);
    144144        psImage *temp = psImageAlloc(fullSize.x1 - fullSize.x0, fullSize.y1 - fullSize.y0, image->type.type);
     
    286286    if (offset >= maxSize) {
    287287        // We've read everything there is
    288         psTrace(__func__, 7, "Read everything.\n");
     288        psTrace("psModules.camera", 7, "Read everything.\n");
    289289        psFree(readout->image);
    290290        return false;
    291291    }
    292292    int upper = PS_MIN(offset + numScans, maxSize); // The upper limit for the pixel read
    293     psTrace(__func__, 7, "offset=%d, upper = %d, image is %dx%d, trimsec [%.0f:%.0f,%.0f:%.0f]\n",
     293    psTrace("psModules.camera", 7, "offset=%d, upper = %d, image is %dx%d, trimsec [%.0f:%.0f,%.0f:%.0f]\n",
    294294            offset, upper, naxis1, naxis2, trimsec->x0, trimsec->x1, trimsec->y0, trimsec->y1);
    295295
  • trunk/psModules/src/camera/pmFPAfileDefine.c

    r7926 r8246  
    301301    psArray *infiles = psMetadataLookupPtr(&status, config->arguments, argname);
    302302    if (!status) {
    303         psTrace("pmFPAfile", 5, "Failed to find %s in argument list", argname);
     303        psTrace("psModules.camera", 5, "Failed to find %s in argument list", argname);
    304304        return NULL;
    305305    }
     
    429429    psArray *infiles = psMetadataLookupPtr(&status, config->arguments, argname);
    430430    if (!status) {
    431         psTrace("pmFPAfile", 5, "Failed to find %s in argument list", argname);
     431        psTrace("psModules.camera", 5, "Failed to find %s in argument list", argname);
    432432        return NULL;
    433433    }
     
    809809    pmFPAfile *file = psMetadataLookupPtr (&status, files, name);
    810810    if (!status) {
    811         psTrace("pmFPAfile", 6, "Internal File %s not in file list", name);
     811        psTrace("psModules.camera", 6, "Internal File %s not in file list", name);
    812812        return true;
    813813    }
     
    817817    }
    818818    if (file->mode != PM_FPA_MODE_INTERNAL) {
    819         psTrace("pmFPAfile", 6, "FPA File %s not Internal, not dropping", name);
     819        psTrace("psModules.camera", 6, "FPA File %s not Internal, not dropping", name);
    820820        return true;
    821821    }
  • trunk/psModules/src/camera/pmFPAfileIO.c

    r7726 r8246  
    3737
    3838    if (file->state & PM_FPA_STATE_INACTIVE) {
    39         psTrace("pmFPAfile", 6, "skip open for %s, files is inactive", file->name);
     39        psTrace("psModules.camera", 6, "skip open for %s, files is inactive", file->name);
    4040        return true;
    4141    }
     
    214214
    215215    if (file->state & PM_FPA_STATE_INACTIVE) {
    216         psTrace("pmFPAfile", 6, "skip read for %s, files is inactive", file->name);
     216        psTrace("psModules.camera", 6, "skip read for %s, files is inactive", file->name);
    217217        return true;
    218218    }
    219219
    220220    if (file->mode != PM_FPA_MODE_READ) {
    221         psTrace("pmFPAfile", 6, "skip read for %s, mode is not READ", file->name);
     221        psTrace("psModules.camera", 6, "skip read for %s, mode is not READ", file->name);
    222222        return true;
    223223    }
     
    236236    // do we need to read this file?
    237237    if (level != file->dataLevel) {
    238         psTrace("pmFPAfile", 6, "skip reading of %s at this level %s: dataLevel is %s",
     238        psTrace("psModules.camera", 6, "skip reading of %s at this level %s: dataLevel is %s",
    239239                file->name, pmFPALevelToName(level), pmFPALevelToName(file->dataLevel));
    240240        return true;
     
    281281
    282282    if (file->state & PM_FPA_STATE_INACTIVE) {
    283         psTrace("pmFPAfile", 6, "skip free for %s, files is inactive", file->name);
     283        psTrace("psModules.camera", 6, "skip free for %s, files is inactive", file->name);
    284284        return true;
    285285    }
     
    290290    // do we need to read this file?
    291291    if (level != file->freeLevel) {
    292         psTrace("pmFPAfile", 6, "skip free of %s at this level %s: freeLevel is %s",
     292        psTrace("psModules.camera", 6, "skip free of %s at this level %s: freeLevel is %s",
    293293                file->name, pmFPALevelToName(level), pmFPALevelToName(file->freeLevel));
    294294        return true;
     
    335335
    336336    if (file->state & PM_FPA_STATE_INACTIVE) {
    337         psTrace("pmFPAfile", 6, "skip write for %s, files is inactive", file->name);
     337        psTrace("psModules.camera", 6, "skip write for %s, files is inactive", file->name);
    338338        return true;
    339339    }
    340340
    341341    if (file->mode != PM_FPA_MODE_WRITE) {
    342         psTrace("pmFPAfile", 6, "skip write for %s, mode is not WRITE", file->name);
     342        psTrace("psModules.camera", 6, "skip write for %s, mode is not WRITE", file->name);
    343343        return true;
    344344    }
    345345
    346346    if (!file->save) {
    347         psTrace("pmFPAfile", 6, "skip write for %s, save is FALSE", file->name);
     347        psTrace("psModules.camera", 6, "skip write for %s, save is FALSE", file->name);
    348348        return true;
    349349    }
     
    354354    // do we need to write this file?
    355355    if (level != file->dataLevel) {
    356         psTrace("pmFPAfile", 6, "skip writing of %s at this level %s: dataLevel is %s",
     356        psTrace("psModules.camera", 6, "skip writing of %s at this level %s: dataLevel is %s",
    357357                file->name, pmFPALevelToName(level), pmFPALevelToName(file->dataLevel));
    358358        return true;
     
    411411    // these are not error conditions; these are state tests
    412412    if (file->state & PM_FPA_STATE_INACTIVE) {
    413         psTrace("pmFPAfile", 6, "skip create for inactive file %s", file->name);
     413        psTrace("psModules.camera", 6, "skip create for inactive file %s", file->name);
    414414        return true;
    415415    }
    416416    if (file->mode != PM_FPA_MODE_WRITE) {
    417         psTrace("pmFPAfile", 6, "skip create for non-write file %s", file->name);
     417        psTrace("psModules.camera", 6, "skip create for non-write file %s", file->name);
    418418        return true;
    419419    }
     
    424424    // don't create the file if the src (FPA) is not defined
    425425    if (file->src == NULL) {
    426         psTrace("pmFPAfile", 6, "skip create for FPA without src FPA for %s", file->name);
     426        psTrace("psModules.camera", 6, "skip create for FPA without src FPA for %s", file->name);
    427427        return true;
    428428    }
     
    430430    // do we need to write this file?
    431431    if (level != file->fileLevel) {
    432         psTrace("pmFPAfile", 6, "skip creation of %s at this level %s: fileLevel is %s",
     432        psTrace("psModules.camera", 6, "skip creation of %s at this level %s: fileLevel is %s",
    433433                file->name, pmFPALevelToName(level), pmFPALevelToName(file->fileLevel));
    434434        return true;
     
    465465
    466466    if (file->state & PM_FPA_STATE_INACTIVE) {
    467         psTrace("pmFPAfile", 6, "skip close for %s, files is inactive", file->name);
     467        psTrace("psModules.camera", 6, "skip close for %s, files is inactive", file->name);
    468468        return true;
    469469    }
     
    475475    pmFPALevel level = pmFPAviewLevel (view);
    476476    if (file->fileLevel != level) {
    477         psTrace("pmFPAfile", 6, "skip closing of %s at this level %s: dataLevel is %s",
     477        psTrace("psModules.camera", 6, "skip closing of %s at this level %s: dataLevel is %s",
    478478                file->name, pmFPALevelToName(level), pmFPALevelToName(file->dataLevel));
    479479        return true;
     
    533533    pmFPAfile *file = psMetadataLookupPtr (&status, files, name);
    534534    if (!status) {
    535         psTrace("pmFPAfile", 6, "%s is not a defined IO file", name);
     535        psTrace("psModules.camera", 6, "%s is not a defined IO file", name);
    536536        return false;
    537537    }
  • trunk/psModules/src/camera/pmHDU.c

    r7720 r8246  
    7878
    7979    // Move to the appropriate extension
    80     psTrace(__func__, 5, "Moving to extension %s...\n", hdu->extname);
     80    psTrace("psModules.camera", 5, "Moving to extension %s...\n", hdu->extname);
    8181    if (!hduMove(hdu, fits)) {
    8282        return false;
     
    8484
    8585    if (!hdu->header) {
    86         psTrace(__func__, 5, "Reading the header...\n");
     86        psTrace("psModules.camera", 5, "Reading the header...\n");
    8787        hdu->header = psFitsReadHeader(NULL, fits);
    8888        if (! hdu->header) {
     
    122122            psFree(hdu->images);        // Blow away anything existing
    123123        }
    124         psTrace(__func__, 5, "Reading the pixels...\n");
     124        psTrace("psModules.camera", 5, "Reading the pixels...\n");
    125125        hdu->images = psFitsReadImageCube(fits, psRegionSet(0,0,0,0));
    126126        if (! hdu->images) {
     
    155155    PS_ASSERT_PTR_NON_NULL(fits, false);
    156156
    157     psTrace(__func__, 7, "Writing HDU %s\n", hdu->extname);
     157    psTrace("psModules.camera", 7, "Writing HDU %s\n", hdu->extname);
    158158
    159159    if (hdu->images && hdu->table && !hdu->header) {
     
    199199
    200200    if (hdu->images) {
    201         psTrace(__func__, 9, "Writing pixels for %s\n", hdu->extname);
     201        psTrace("psModules.camera", 9, "Writing pixels for %s\n", hdu->extname);
    202202        if (!psFitsWriteImageCube(fits, hdu->header, hdu->images, extname)) {
    203203            psError(PS_ERR_IO, false, "Unable to write image to extension %s\n", hdu->extname);
  • trunk/psModules/src/camera/pmHDUUtils.c

    r7867 r8246  
    9797
    9898    if (hdu->blankPHU) {
    99         psTrace(__func__, level, "HDU: (PHU)\n");
     99        psTrace("psModules.camera", level, "HDU: (PHU)\n");
    100100    } else {
    101         psTrace(__func__, level, "HDU: %s\n", hdu->extname);
     101        psTrace("psModules.camera", level, "HDU: %s\n", hdu->extname);
    102102    }
    103103
    104     psTrace(__func__, level + 1, "Format: %x\n", hdu->format);
     104    psTrace("psModules.camera", level + 1, "Format: %x\n", hdu->format);
    105105    if (header) {
    106106        if (hdu->header) {
    107             psTrace(__func__, level + 1, "Header:\n");
     107            psTrace("psModules.camera", level + 1, "Header:\n");
    108108            psMetadataPrint(fd, hdu->header, level + 2);
    109109        } else {
    110             psTrace(__func__, level + 1, "No header.\n");
     110            psTrace("psModules.camera", level + 1, "No header.\n");
    111111        }
    112112    }
    113113
    114114    if (hdu->images) {
    115         psTrace(__func__, level + 1, "Images:\n");
     115        psTrace("psModules.camera", level + 1, "Images:\n");
    116116        for (long i = 0; i < hdu->images->n; i++) {
    117117            psImage *image = hdu->images->data[i]; // Image of interest
    118             psTrace(__func__, level + 2, "%ld: %dx%d\n", i, image->numCols, image->numRows);
     118            psTrace("psModules.camera", level + 2, "%ld: %dx%d\n", i, image->numCols, image->numRows);
    119119        }
    120120    } else {
    121         psTrace(__func__, level + 1, "NO images.\n");
     121        psTrace("psModules.camera", level + 1, "NO images.\n");
    122122    }
    123123
    124124    if (hdu->masks) {
    125         psTrace(__func__, level + 1, "Masks:\n");
     125        psTrace("psModules.camera", level + 1, "Masks:\n");
    126126        for (long i = 0; i < hdu->masks->n; i++) {
    127127            psImage *mask = hdu->masks->data[i]; // Mask of interest
    128             psTrace(__func__, level + 2, "%ld: %dx%d\n", i, mask->numCols, mask->numRows);
     128            psTrace("psModules.camera", level + 2, "%ld: %dx%d\n", i, mask->numCols, mask->numRows);
    129129        }
    130130    } else {
    131         psTrace(__func__, level + 1, "NO masks.\n");
     131        psTrace("psModules.camera", level + 1, "NO masks.\n");
    132132    }
    133133
    134134    if (hdu->weights) {
    135         psTrace(__func__, level + 1, "Weights:\n");
     135        psTrace("psModules.camera", level + 1, "Weights:\n");
    136136        for (long i = 0; i < hdu->masks->n; i++) {
    137137            psImage *weight = hdu->weights->data[i]; // Weight image of interest
    138             psTrace(__func__, level + 2, "%ld: %dx%d\n", i, weight->numCols, weight->numRows);
     138            psTrace("psModules.camera", level + 2, "%ld: %dx%d\n", i, weight->numCols, weight->numRows);
    139139        }
    140140    } else {
    141         psTrace(__func__, level + 1, "NO weights.\n");
     141        psTrace("psModules.camera", level + 1, "NO weights.\n");
    142142    }
    143143    #endif
Note: See TracChangeset for help on using the changeset viewer.