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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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)) {
Note: See TracChangeset for help on using the changeset viewer.