IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8246


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

normalize psTrace() facility names

Location:
trunk/psModules/src
Files:
30 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
  • trunk/psModules/src/concepts/pmConcepts.c

    r7752 r8246  
    8989    psMetadataItem *specItem = NULL;    // Item from the specs metadata
    9090    while ((specItem = psMetadataGetAndIncrement(specsIter))) {
    91         psTrace(__func__, 9, "Blanking %s...\n", specItem->name);
     91        psTrace("psModules.concepts", 9, "Blanking %s...\n", specItem->name);
    9292        pmConceptSpec *spec = specItem->data.V; // The specification
    9393        psMetadataItem *blank = spec->blank; // The concept
     
    189189    }
    190190
    191     psTrace(__func__, 3, "Writing concepts (%x %x %x): %x\n", fpa, chip, cell, source);
     191    psTrace("psModules.concepts", 3, "Writing concepts (%x %x %x): %x\n", fpa, chip, cell, source);
    192192
    193193    if (source & PM_CONCEPT_SOURCE_CAMERA) {
     
    212212{
    213213    PS_ASSERT_PTR_NON_NULL(fpa, false);
    214     psTrace("psModule.concepts", 5, "Blanking FPA concepts: %x %x\n", conceptsFPA, fpa->concepts);
     214    psTrace("psModules.concepts", 5, "Blanking FPA concepts: %x %x\n", conceptsFPA, fpa->concepts);
    215215    return conceptsBlank(&conceptsFPA, fpa->concepts);
    216216}
     
    225225{
    226226    PS_ASSERT_PTR_NON_NULL(fpa, false);
    227     psTrace("psModule.concepts", 5, "Reading FPA concepts: %x %x\n", conceptsFPA, fpa->concepts);
     227    psTrace("psModules.concepts", 5, "Reading FPA concepts: %x %x\n", conceptsFPA, fpa->concepts);
    228228    bool success = conceptsRead(&conceptsFPA, fpa, NULL, NULL, &fpa->conceptsRead, source, db, fpa->concepts);
    229229    if (propagateDown) {
     
    248248{
    249249    PS_ASSERT_PTR_NON_NULL(fpa, false);
    250     psTrace("psModule.concepts", 5, "Writing FPA concepts: %x %x\n", conceptsFPA, fpa->concepts);
     250    psTrace("psModules.concepts", 5, "Writing FPA concepts: %x %x\n", conceptsFPA, fpa->concepts);
    251251    bool success = conceptsWrite(&conceptsFPA, fpa, NULL, NULL, source, db, fpa->concepts);
    252252    if (propagateDown) {
     
    267267{
    268268    PS_ASSERT_PTR_NON_NULL(chip, false);
    269     psTrace("psModule.concepts", 5, "Blanking chip concepts: %x %x\n", conceptsChip, chip->concepts);
     269    psTrace("psModules.concepts", 5, "Blanking chip concepts: %x %x\n", conceptsChip, chip->concepts);
    270270    return conceptsBlank(&conceptsChip, chip->concepts);
    271271}
     
    280280{
    281281    PS_ASSERT_PTR_NON_NULL(chip, false);
    282     psTrace("psModule.concepts", 5, "Reading chip concepts: %x %x\n", conceptsChip, chip->concepts);
     282    psTrace("psModules.concepts", 5, "Reading chip concepts: %x %x\n", conceptsChip, chip->concepts);
    283283    pmFPA *fpa = chip->parent;          // FPA to which the chip belongs
    284284    bool success = conceptsRead(&conceptsChip, fpa, chip, NULL, &chip->conceptsRead, source, db,
     
    308308{
    309309    PS_ASSERT_PTR_NON_NULL(chip, false);
    310     psTrace("psModule.concepts", 5, "Writing chip concepts: %x %x\n", conceptsChip, chip->concepts);
     310    psTrace("psModules.concepts", 5, "Writing chip concepts: %x %x\n", conceptsChip, chip->concepts);
    311311    pmFPA *fpa = chip->parent;          // FPA to which the chip belongs
    312312    bool success = conceptsWrite(&conceptsChip, fpa, chip, NULL, source, db, chip->concepts);
     
    331331{
    332332    PS_ASSERT_PTR_NON_NULL(cell, false);
    333     psTrace("psModule.concepts", 5, "Blanking cell concepts: %x %x\n", conceptsCell, cell->concepts);
     333    psTrace("psModules.concepts", 5, "Blanking cell concepts: %x %x\n", conceptsCell, cell->concepts);
    334334    return conceptsBlank(&conceptsCell, cell->concepts);
    335335}
     
    343343{
    344344    PS_ASSERT_PTR_NON_NULL(cell, false);
    345     psTrace("psModule.concepts", 5, "Reading cell concepts: %x %x\n", conceptsCell, cell->concepts);
     345    psTrace("psModules.concepts", 5, "Reading cell concepts: %x %x\n", conceptsCell, cell->concepts);
    346346    pmChip *chip = cell->parent;        // Chip to which the cell belongs
    347347    pmFPA *fpa = chip->parent;          // FPA to which the chip belongs
     
    371371{
    372372    PS_ASSERT_PTR_NON_NULL(cell, false);
    373     psTrace("psModule.concepts", 5, "Writing cell concepts: %x %x\n", conceptsCell, cell->concepts);
     373    psTrace("psModules.concepts", 5, "Writing cell concepts: %x %x\n", conceptsCell, cell->concepts);
    374374    pmChip *chip = cell->parent;        // Chip to which the cell belongs
    375375    pmFPA *fpa = chip->parent;          // FPA to which the chip belongs
  • trunk/psModules/src/concepts/pmConceptsRead.c

    r7923 r8246  
    177177    PS_ASSERT_PTR_NON_NULL(target, false);
    178178
    179     psTrace(__func__, 3, "Reading concepts from defaults...\n");
     179    psTrace("psModules.concepts", 3, "Reading concepts from defaults...\n");
    180180
    181181    pmHDU *hdu = pmHDUGetLowest(fpa, chip, cell); // The HDU at the lowest level
     
    199199        psString name = specItem->name; // The concept name
    200200        psMetadataItem *conceptItem = psMetadataLookup(defaults, name); // The concept, or NULL
    201         psTrace(__func__, 10, "%s: %x\n", name, conceptItem);
     201        psTrace("psModules.concepts", 10, "%s: %x\n", name, conceptItem);
    202202        if (conceptItem && conceptItem->type == PS_DATA_METADATA) {
    203             psTrace(__func__, 5, "%s is of type METADATA.\n", name);
     203            psTrace("psModules.concepts", 5, "%s is of type METADATA.\n", name);
    204204            // Check for DEPEND
    205205            psMetadata *dependMenu = conceptItem->data.V; // The DEPEND menu
     
    236236            }
    237237            const char *dependKey = dependValue->data.V; // The key to the DEPEND menu
    238             psTrace(__func__, 7, "%s.DEPEND resolves to %s....\n", name, dependKey);
     238            psTrace("psModules.concepts", 7, "%s.DEPEND resolves to %s....\n", name, dependKey);
    239239
    240240            conceptItem = psMetadataLookup(dependMenu, dependKey);
  • trunk/psModules/src/concepts/pmConceptsWrite.c

    r7835 r8246  
    140140    switch (item->type) {
    141141    case PS_DATA_STRING:
    142         psTrace(__func__, 9, "Writing header %s: %s\n", keyword, item->data.V);
     142        psTrace("psModules.concepts", 9, "Writing header %s: %s\n", keyword, item->data.V);
    143143        return psMetadataAddStr(hdu->header, PS_LIST_TAIL, keyword, PS_META_REPLACE, item->comment,
    144144                                item->data.V);
    145145    case PS_DATA_S32:
    146         psTrace(__func__, 9, "Writing header %s: %d\n", keyword, item->data.S32);
     146        psTrace("psModules.concepts", 9, "Writing header %s: %d\n", keyword, item->data.S32);
    147147        return psMetadataAddS32(hdu->header, PS_LIST_TAIL, keyword, PS_META_REPLACE, item->comment,
    148148                                item->data.S32);
    149149    case PS_DATA_F32:
    150         psTrace(__func__, 9, "Writing header %s: %f\n", keyword, item->data.F32);
     150        psTrace("psModules.concepts", 9, "Writing header %s: %f\n", keyword, item->data.F32);
    151151        return psMetadataAddF32(hdu->header, PS_LIST_TAIL, keyword, PS_META_REPLACE, item->comment,
    152152                                item->data.F32);
    153153    case PS_DATA_F64:
    154         psTrace(__func__, 9, "Writing header %s: %f\n", keyword, item->data.F64);
     154        psTrace("psModules.concepts", 9, "Writing header %s: %f\n", keyword, item->data.F64);
    155155        return psMetadataAddF64(hdu->header, PS_LIST_TAIL, keyword, PS_META_REPLACE, item->comment,
    156156                                item->data.F64);
    157157    case PS_DATA_REGION: {
    158158            psString region = psRegionToString(*(psRegion*)item->data.V);
    159             psTrace(__func__, 9, "Writing header %s: %s\n", keyword, region);
     159            psTrace("psModules.concepts", 9, "Writing header %s: %s\n", keyword, region);
    160160            bool result = psMetadataAddStr(hdu->header, PS_LIST_TAIL, keyword, PS_META_REPLACE, item->comment,
    161161                                           region);
     
    252252            psString source = psMetadataLookupStr(&mdok, cell->config, nameSource); // The source
    253253            if (mdok && strlen(source) > 0) {
    254                 psTrace(__func__, 8, "%s is %s\n", nameSource, source);
     254                psTrace("psModules.concepts", 8, "%s is %s\n", nameSource, source);
    255255                if (strcasecmp(source, "HEADER") == 0) {
    256256                    if (cameraItem->type != PS_DATA_STRING) {
     
    259259                        continue;
    260260                    }
    261                     psTrace(__func__, 8, "Writing %s to header %s\n", name, cameraItem->data.V);
     261                    psTrace("psModules.concepts", 8, "Writing %s to header %s\n", name, cameraItem->data.V);
    262262                    writeHeader(hdu, cameraItem->data.V, formatted);
    263263                } else if (strcasecmp(source, "VALUE") == 0) {
    264                     psTrace(__func__, 8, "Checking %s against camera format.\n", name);
     264                    psTrace("psModules.concepts", 8, "Checking %s against camera format.\n", name);
    265265                    if (! compareConcepts(formatted, cameraItem)) {
    266266                        psLogMsg(__func__, PS_LOG_WARN, "Concept %s is specified by value in the camera "
     
    384384                continue;
    385385            }
    386             psTrace(__func__, 3, "Writing %s to header %s\n", name, headerItem->data.V);
     386            psTrace("psModules.concepts", 3, "Writing %s to header %s\n", name, headerItem->data.V);
    387387            psMetadataItem *conceptItem = psMetadataLookup(concepts, name); // The item from the concepts
    388388            psMetadataItem *formatted = conceptFormat(spec, conceptItem, cameraFormat, fpa, chip, cell);
  • trunk/psModules/src/config/pmConfig.c

    r8065 r8246  
    33 *  @author PAP, IfA
    44 *
    5  *  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-08-02 19:33:29 $
     5 *  @version $Revision: 1.37 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-08-09 02:37:07 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    9292    struct stat filestat;
    9393
    94     psTrace(__func__, 3, "Loading %s configuration from file %s\n",
     94    psTrace("psModules.config", 3, "Loading %s configuration from file %s\n",
    9595            description, name);
    9696
     
    307307    psString timeName = psMetadataLookupStr(&mdok, config->site, "TIME");
    308308    if (mdok && timeName) {
    309         psTrace(__func__, 7, "Initialising psTime with file %s\n", timeName);
     309        psTrace("psModules.config", 7, "Initialising psTime with file %s\n", timeName);
    310310        // XXX: PAP had a call to psLibInit is PRODUCTION not set.  Why?
    311311        psTimeInitialize(timeName);
     
    319319    int logLevel = psMetadataLookupS32(&mdok, config->site, "LOGLEVEL");
    320320    if (mdok && logLevel >= 0) {
    321         psTrace(__func__, 7, "Setting log level to %d\n", logLevel);
     321        psTrace("psModules.config", 7, "Setting log level to %d\n", logLevel);
    322322        psLogSetLevel(logLevel);
    323323    }
     
    330330    psString logFormat = psMetadataLookupStr(&mdok, config->site, "LOGFORMAT");
    331331    if (mdok && logFormat) {
    332         psTrace(__func__, 7, "Setting log format to %s\n", logFormat);
     332        psTrace("psModules.config", 7, "Setting log format to %s\n", logFormat);
    333333        psLogSetFormat(logFormat);
    334334    }
     
    380380                continue;
    381381            }
    382             psTrace(__func__, 7, "Setting trace level for %s to %d\n", traceItem->name, traceItem->data.S32);
     382            psTrace("psModules.config", 7, "Setting trace level for %s to %d\n", traceItem->name, traceItem->data.S32);
    383383            psTraceSetLevel(traceItem->name, traceItem->data.S32);
    384384        }
     
    429429            // It doesn't have a required header keyword, so it's not it
    430430            psFree(ruleIter);
    431             psTrace(__func__, 5, "Can't find %s\n", ruleItem->name);
     431            psTrace("psModules.config", 5, "Can't find %s\n", ruleItem->name);
    432432            return false;
    433433        }
     
    435435        // Check to see if the rule works
    436436        if (! psMetadataItemCompare(headerItem, ruleItem)) {
    437             psTrace(__func__, 5, "%s doesn't match.\n", ruleItem->name);
     437            psTrace("psModules.config", 5, "%s doesn't match.\n", ruleItem->name);
    438438            psFree(ruleIter);
    439439            return false;
     
    476476            continue;
    477477        }
    478         psTrace(__func__, 5, "Reading camera format for %s...\n", formatsItem->name);
     478        psTrace("psModules.config", 5, "Reading camera format for %s...\n", formatsItem->name);
    479479        psMetadata *testFormat = NULL;  // Format to test against what we've got
    480480        if (!readConfig(&testFormat, formatsItem->data.V, formatsItem->name)) {
     
    529529        while ((camerasItem = psMetadataGetAndIncrement(camerasIter))) {
    530530            // Open the camera information
    531             psTrace(__func__, 3, "Inspecting camera %s (%s)\n", camerasItem->name, camerasItem->comment);
     531            psTrace("psModules.config", 3, "Inspecting camera %s (%s)\n", camerasItem->name, camerasItem->comment);
    532532            if (camerasItem->type != PS_DATA_STRING) {
    533533                psLogMsg(__func__, PS_LOG_WARN, "Camera configuration for %s in CAMERAS is not of type STR "
     
    536536            }
    537537
    538             psTrace(__func__, 5, "Reading camera configuration for %s...\n", camerasItem->name);
     538            psTrace("psModules.config", 5, "Reading camera configuration for %s...\n", camerasItem->name);
    539539            psMetadata *testCamera = NULL; // Camera to test against what we've got:
    540540
  • trunk/psModules/src/detrend/pmFlatNormalize.c

    r7860 r8246  
    7171        for (int i = 0; i < numSources; i++) {
    7272            if (sourceMask->data.U8[i]) {
    73                 psTrace(__func__, 7, "Flux for exposure %d is masked.\n", i);
     73                psTrace("psModules.detrend", 7, "Flux for exposure %d is masked.\n", i);
    7474                continue;
    7575            }
     
    8989                sourceFlux->data.F32[i] = NAN;
    9090            }
    91             psTrace(__func__, 7, "Flux for exposure %d is %lf\n", i, exp(sourceFlux->data.F32[i]));
     91            psTrace("psModules.detrend", 7, "Flux for exposure %d is %lf\n", i, exp(sourceFlux->data.F32[i]));
    9292        }
    9393
     
    117117                chipGains->data.F32[i] = NAN;
    118118            }
    119             psTrace(__func__, 7, "Gain for chip %d is %lf\n", i, exp(-chipGains->data.F32[i]));
     119            psTrace("psModules.detrend", 7, "Gain for chip %d is %lf\n", i, exp(-chipGains->data.F32[i]));
    120120        }
    121121
    122         psTrace(__func__, 2, "Iteration %d: difference is %e\n", iter, diff);
     122        psTrace("psModules.detrend", 2, "Iteration %d: difference is %e\n", iter, diff);
    123123
    124124        // Switch the old and new
  • trunk/psModules/src/detrend/pmFringeStats.c

    r7887 r8246  
    33 *  @author Eugene Magnier, IfA
    44 *
    5  *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-07-13 02:21:25 $
     5 *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-08-09 02:37:07 $
    77 *
    88 *  Copyright 2004 IfA
     
    327327        dfPt[i] = 1.0 / medianSd->sampleStdev;
    328328
    329         psTrace(__func__, 7, "[%d:%d,%d:%d]: %f %f\n", (int)region.x0, (int)region.x1,
     329        psTrace("psModules.detrend", 7, "[%d:%d,%d:%d]: %f %f\n", (int)region.x0, (int)region.x1,
    330330                (int)region.y0, (int)region.y1, fPt[i], dfPt[i]);
    331331    }
     
    671671    int numClipped = 0;                 // Number clipped
    672672    for (int i = 0; i < diffs->n; i++) {
    673         psTrace(__func__, 10, "Region %d (%d): %f\n", i, mask->data.U8[i], diffs->data.F32[i]);
     673        psTrace("psModules.detrend", 10, "Region %d (%d): %f\n", i, mask->data.U8[i], diffs->data.F32[i]);
    674674        if (!mask->data.U8[i] && fabs(diffs->data.F32[i]) > middle + thresh) {
    675             psTrace(__func__, 5, "Masking %d: %f\n", i, diffs->data.F32[i]);
     675            psTrace("psModules.detrend", 5, "Masking %d: %f\n", i, diffs->data.F32[i]);
    676676            mask->data.U8[i] = 1;
    677677            numClipped++;
     
    732732            if (!finite(fringe->f->data.F32[j])) {
    733733                mask->data.U8[j] = 1;
    734                 psTrace(__func__, 9, "Masking region %d because not finite in fringe %d.\n", j, i);
     734                psTrace("psModules.detrend", 9, "Masking region %d because not finite in fringe %d.\n", j, i);
    735735            }
    736736        }
     
    749749    fringeScaleDiffs(diff, science, fringes, scale);
    750750    numClipped = clipRegions(diff, mask, 3.0*rej);
    751     psTrace(__func__, 4, "%d regions clipped in initial pass.\n", numClipped);
     751    psTrace("psModules.detrend", 4, "%d regions clipped in initial pass.\n", numClipped);
    752752
    753753    unsigned int iter = 0;              // Iteration number
     
    756756        iter++;
    757757        scaleMeasure(scale, science, fringes); // The scales
    758         psTrace(__func__, 1, "Fringe scales after iteration %d:\n", iter);
    759         psTrace(__func__, 1, "Background: %f %f\n", scale->coeff->data.F32[0], scale->coeffErr->data.F32[0]);
     758        psTrace("psModules.detrend", 1, "Fringe scales after iteration %d:\n", iter);
     759        psTrace("psModules.detrend", 1, "Background: %f %f\n", scale->coeff->data.F32[0], scale->coeffErr->data.F32[0]);
    760760        for (int i = 0; i < scale->nFringeFrames; i++) {
    761             psTrace(__func__, 1, "%d: %f %f\n", i, scale->coeff->data.F32[i + 1],
     761            psTrace("psModules.detrend", 1, "%d: %f %f\n", i, scale->coeff->data.F32[i + 1],
    762762                    scale->coeffErr->data.F32[i + 1]);
    763763        }
     
    766766        iterClip = clipRegions(diff, mask, rej); // Number clipped
    767767        numClipped += iterClip;
    768         psTrace(__func__, 9, "Clipped: %d\tFrac: %f\n", iterClip, (float)numClipped/(float)numRegions);
     768        psTrace("psModules.detrend", 9, "Clipped: %d\tFrac: %f\n", iterClip, (float)numClipped/(float)numRegions);
    769769    } while (iterClip > 0 && iter < nIter && (float)numClipped/(float)numRegions <= 1.0 - keepFrac);
    770770    psFree(diff);
     
    811811    psFree(scienceStats);
    812812
    813     psTrace(__func__, 7, "Fringe solution:\n");
     813    psTrace("psModules.detrend", 7, "Fringe solution:\n");
    814814    for (int i = 0; i < fringeImages->n + 1; i++) {
    815         psTrace(__func__, 7, "%d: %f %f\n", i, scale->coeff->data.F32[i],
     815        psTrace("psModules.detrend", 7, "%d: %f %f\n", i, scale->coeff->data.F32[i],
    816816                scale->coeffErr->data.F32[i]);
    817817    }
  • trunk/psModules/src/detrend/pmSubtractBias.c

    r8108 r8246  
    1111 *  @author GLG, MHPCC
    1212 *
    13  *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2006-08-03 19:37:55 $
     13 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2006-08-09 02:37:07 $
    1515 *
    1616 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    259259                    const pmReadout *bias, const pmReadout *dark)
    260260{
    261     psTrace(".psModule.pmSubtracBias.pmSubtractBias", 4,
     261    psTrace("psModules.detrend", 4,
    262262            "---- pmSubtractBias() begin ----\n");
    263263    PS_ASSERT_PTR_NON_NULL(in, NULL);
  • trunk/psModules/src/detrend/pmSubtractSky.c

    r8004 r8246  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-07-28 03:21:19 $
     8 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-08-09 02:37:07 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3333static psS32 DetermineNumBits(psStatsOptions data)
    3434{
    35     psTrace("SubtractSky.DetermineNumBits", 4, "Calling DetermineNumBits(0x%x)\n", data);
     35    psTrace("psModules.detrend", 4, "Calling DetermineNumBits(0x%x)\n", data);
    3636
    3737    psS32 i;
     
    4646    }
    4747
    48     psTrace("SubtractSky.DetermineNumBits", 4,
     48    psTrace("psModules.detrend", 4,
    4949            "Calling DetermineNumBits(0x%x) -> %d\n", data, numBits);
    5050    return(numBits);
     
    5858static psU64 getHighestPriorityStatOption(psU64 statOptions)
    5959{
    60     psTrace("SubtractSky.getHighestPriorityStatOption", 4,
     60    psTrace("psModules.detrend", 4,
    6161            "Calling getHighestPriorityStatOption(0x%x)\n", statOptions);
    6262
     
    9595                         psStatsOptions statOptions)
    9696{
    97     psTrace("SubtractSky.binImage", 4, "Calling binImage(%d)\n", binFactor);
     97    psTrace("psModules.detrend", 4, "Calling binImage(%d)\n", binFactor);
    9898
    9999    if (binFactor <= 0) {
     
    148148    psFree(myStats);
    149149
    150     psTrace("SubtractSky.binImage", 4, "Exiting binImage(%d)\n", binFactor);
     150    psTrace("psModules.detrend", 4, "Exiting binImage(%d)\n", binFactor);
    151151    return(origImage);
    152152}
     
    163163static psS32 CalculatePolyTerms(psS32 xOrder, psS32 yOrder)
    164164{
    165     psTrace("SubtractSky.CalculatePolyTerms", 4,
     165    psTrace("psModules.detrend", 4,
    166166            "Calling CalculatePolyTerms(%d, %d)\n", xOrder, yOrder);
    167167
     
    178178        }
    179179    }
    180     psTrace("SubtractSky.CalculatePolyTerms", 4,
     180    psTrace("psModules.detrend", 4,
    181181            "Exiting CalculatePolyTerms(%d, %d) -> %d\n", xOrder, yOrder, localPolyTerms);
    182182    return(localPolyTerms);
     
    198198static psS32 **buildPolyTerms(psS32 xOrder, psS32 yOrder)
    199199{
    200     psTrace("SubtractSky.buildPolyTerms", 4,
     200    psTrace("psModules.detrend", 4,
    201201            "Calling buildPolyTerms(%d, %d)\n", xOrder, yOrder);
    202202
     
    233233    }
    234234
    235     psTrace("SubtractSky.buildPolyTerms", 4,
     235    psTrace("psModules.detrend", 4,
    236236            "Exiting buildPolyTerms(%d, %d)\n", xOrder, yOrder);
    237237    return(polyTerms);
     
    258258                      psS32 yOrder)
    259259{
    260     psTrace("SubtractSky.buildPolyTerms", 4,
     260    psTrace("psModules.detrend", 4,
    261261            "Calling buildPolyTerms(%d, %d)\n", xOrder, yOrder);
    262262
     
    276276        xSum*= x;
    277277    }
    278     psTrace("SubtractSky.buildPolyTerms", 4,
     278    psTrace("psModules.detrend", 4,
    279279            "Exiting buildPolyTerms(%d, %d)\n", xOrder, yOrder);
    280280}
     
    297297    psImage *maskImage)
    298298{
    299     psTrace("SubtractSky.ImageFitPolynomial", 4,
     299    psTrace("psModules.detrend", 4,
    300300            "Calling ImageFitPolynomial()\n");
    301301    PS_ASSERT_POLY_NON_NULL(myPoly, NULL);
     
    416416    for (i=0;i<localPolyTerms;i++) {
    417417        myPoly->coeff[ polyTerms[i][0] ][ polyTerms[i][1] ] = C->data.F64[i];
    418         psTrace(".psModule.pmSubtractSky.ImageFitPolynomial", 6,
     418        psTrace("psModules.detrend", 6,
    419419                "myPoly->coeff[%d][%d] is %f\n", polyTerms[i][0], polyTerms[i][1], myPoly->coeff[ polyTerms[i][0] ][ polyTerms[i][1] ]);
    420420    }
     
    456456    }
    457457
    458     psTrace("SubtractSky.ImageFitPolynomial", 4,
     458    psTrace("psModules.detrend", 4,
    459459            "Exiting ImageFitPolynomial()\n");
    460     //    psTrace(".psModule.pmSubtractSky.ImageFitPolynomial", 4,
     460    //    psTrace("psModules.detrend", 4,
    461461    //            "---- ImageFitPolynomial() end successfully ----\n");
    462462    return(myPoly);
     
    487487        PS_WARN_PTR_NON_NULL(in->parent->concepts);
    488488    }
    489     psTrace(".psModule.pmSubtractSky", 4,
     489    psTrace("psModules.detrend", 4,
    490490            "---- pmSubtractSky() begin ----\n");
    491491
     
    590590        psImageInit(binnedMaskImage, 0);
    591591    }
    592     psTrace(".psModule.pmSubtractSky", 4,
     592    psTrace("psModules.detrend", 4,
    593593            "binnedImage size is (%d, %d)\n", binnedImage->numRows, binnedImage->numCols);
    594594
     
    609609        psF64 binnedStdev = myStats->sampleStdev;
    610610        psFree(myStats);
    611         psTrace(".psModule.pmSubtractSky", 6,
     611        psTrace("psModules.detrend", 6,
    612612                "binned StDev is %f\n", binnedStdev);
    613613
    614614        // Clip all pixels which are more than clipSD sigmas from the mean.
    615         psTrace(".psModule.pmSubtractSky", 6,
     615        psTrace("psModules.detrend", 6,
    616616                "clipSD is %f\n", clipSD);
    617617
     
    705705                trimmedImg->data.F32[row][col]-= binPixel;
    706706
    707                 psTrace(".psModule.pmSubtractSky", 8,
     707                psTrace("psModules.detrend", 8,
    708708                        "image[%d][%d] <--> binnedImage[%.2f][%.2f]: %f\n",
    709709                        row, col, binRowF64-0.5, binColF64-0.5, binPixel);
     
    718718    }
    719719
    720     psTrace(".psModule.pmSubtractSky", 4,
     720    psTrace("psModules.detrend", 4,
    721721            "---- pmSubtractSky() exit successfully ----\n");
    722722    return(in);
  • trunk/psModules/src/imcombine/pmImageCombine.c

    r8004 r8246  
    88 *  @author GLG, MHPCC
    99 *
    10  *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2006-07-28 03:21:19 $
     10 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2006-08-09 02:37:07 $
    1212 *
    1313 *  XXX: pmRejectPixels() has a known bug with the pmImageTransform() call.
     
    5050    PS_ASSERT_PTR_NON_NULL(images, combine);
    5151    psU32 numImages = images->n;
    52     psTrace("ImageCombine.pmCombineImages", 3, "Calling pmCombineImages(%d)\n", images->n);
     52    psTrace("psModules.imcombine", 3, "Calling pmCombineImages(%d)\n", images->n);
    5353
    5454    if (errors != NULL) {
     
    297297    psFree(qpPtr);
    298298
    299     psTrace("ImageCombine.pmCombineImages", 3, "Exiting pmCombineImages(%d)\n", images->n);
     299    psTrace("psModules.imcombine", 3, "Exiting pmCombineImages(%d)\n", images->n);
    300300    return(combine);
    301301}
     
    312312)
    313313{
    314     psTrace("ImageCombine.CalcGradient", 4, "Calling CalcGradient(%d, %d)\n", x, y);
     314    psTrace("psModules.imcombine", 4, "Calling CalcGradient(%d, %d)\n", x, y);
    315315    int num = 0;
    316316    psVector *pixels = psVectorAlloc(8, PS_TYPE_F32); // Array of pixels
     
    365365    psFree(mask);
    366366
    367     psTrace("ImageCombine.CalcGradient", 4, "Exiting CalcGradient(%d, %d)\n", x, y);
     367    psTrace("psModules.imcombine", 4, "Exiting CalcGradient(%d, %d)\n", x, y);
    368368    return(median / image->data.F32[y][x]);
    369369}
     
    382382                                psPlaneTransform *myOutToIn)
    383383{
    384     psTrace("ImageCombine.DetermineRegion", 4, "Calling DetermineRegion()\n");
     384    psTrace("psModules.imcombine", 4, "Calling DetermineRegion()\n");
    385385    psRegion myRegion;
    386386    myRegion.x0 = PS_MAX_F32;
     
    457457    }
    458458
    459     psTrace("ImageCombine.DetermineRegion", 4, "Exiting DetermineRegion()\n");
     459    psTrace("psModules.imcombine", 4, "Exiting DetermineRegion()\n");
    460460    return(myRegion);
    461461}
     
    466466static psImage *ImageConvertF32(psImage *image)
    467467{
    468     psTrace("ImageCombine.ImageConvertF32", 4, "Calling ImageConvertF32()\n");
     468    psTrace("psModules.imcombine", 4, "Calling ImageConvertF32()\n");
    469469    psImage *imgF32 = psImageAlloc(image->numCols, image->numRows, PS_TYPE_F32);
    470470
     
    475475    }
    476476
    477     psTrace("ImageCombine.ImageConvertF32", 4, "Exiting ImageConvertF32()\n");
     477    psTrace("psModules.imcombine", 4, "Exiting ImageConvertF32()\n");
    478478    return(imgF32);
    479479}
     
    504504)
    505505{
    506     psTrace("ImageCombine.pmRejectPixels", 3, "Calling pmRejectPixels()\n");
     506    psTrace("psModules.imcombine", 3, "Calling pmRejectPixels()\n");
    507507    PS_ASSERT_PTR_NON_NULL(images, NULL);
    508508    for (psS32 im = 0 ; im < images->n ; im++) {
     
    663663    psFree(inCoords);
    664664    psFree(outCoords);
    665     psTrace("ImageCombine.pmRejectPixels", 3, "Exiting pmRejectPixels()\n");
     665    psTrace("psModules.imcombine", 3, "Exiting pmRejectPixels()\n");
    666666    return(rejects);
    667667}
  • trunk/psModules/src/imcombine/pmImageSubtract.c

    r7769 r8246  
    77 *  @author GLG, MHPCC
    88 *
    9  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2006-06-30 23:59:49 $
     9 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2006-08-09 02:37:07 $
    1111 *
    1212 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    9797        int spatialOrder)
    9898{
    99     psTrace("ImageSubtract.pmSubtractionKernelsAllocPOIS", 3,
     99    psTrace("psModules.imcombine", 3,
    100100            "Calling pmSubtractionKernelsAllocPOIS(%d, %d)\n", size, spatialOrder);
    101101    PS_ASSERT_INT_POSITIVE(size, NULL);
     
    173173    }
    174174
    175     psTrace("ImageSubtract.pmSubtractionKernelsAllocPOIS", 3,
     175    psTrace("psModules.imcombine", 3,
    176176            "Exiting pmSubtractionKernelsAllocPOIS(%d, %d)\n", size, spatialOrder);
    177177    return(tmp);
     
    190190    PS_ASSERT_VECTOR_NON_NULL(sigmas, NULL);
    191191    PS_ASSERT_VECTOR_NON_NULL(orders, NULL);
    192     psTrace("ImageSubtract.pmSubtractionKernelsAllocISIS", 3,
     192    psTrace("psModules.imcombine", 3,
    193193            "Calling pmSubtractionKernelsAllocISIS(%d, %d, %d, %d)\n",
    194194            sigmas->n, orders->n, size, spatialOrder);
     
    306306    }
    307307
    308     psTrace("ImageSubtract.pmSubtractionKernelsAllocISIS", 3,
     308    psTrace("psModules.imcombine", 3,
    309309            "Exiting pmSubtractionKernelsAllocISIS(%d, %d, %d, %d)\n",
    310310            sigmas->n, orders->n, size, spatialOrder);
     
    333333                                )
    334334{
    335     psTrace("ImageSubtract.pmSubtractionFindStamps", 3,
     335    psTrace("psModules.imcombine", 3,
    336336            "Calling pmSubtractionFindStamps(%d, %f, %d, %d, %d)\n",
    337337            maskVal, threshold, xNum, yNum, border);
     
    456456        }
    457457    }
    458     psTrace("ImageSubtract.pmSubtractionFindStamps", 3,
     458    psTrace("psModules.imcombine", 3,
    459459            "Exiting pmSubtractionFindStamps(%d, %f, %d, %d, %d)\n",
    460460            maskVal, threshold, xNum, yNum, border);
     
    474474                                psF32 y)
    475475{
    476     psTrace("ImageSubtract.GenSpatialOrder", 4,
     476    psTrace("psModules.imcombine", 4,
    477477            "Calling GenSpatialOrder(%d, %f, %f)\n", spatialOrder, x, y);
    478478
     
    490490    }
    491491
    492     psTrace("ImageSubtract.GenSpatialOrder", 4,
     492    psTrace("psModules.imcombine", 4,
    493493            "Exiting GenSpatialOrder(%d, %f, %f)\n", spatialOrder, x, y);
    494494
     
    509509
    510510
    511     psTrace("ImageSubtract.IsisKernelConvolve", 4,
     511    psTrace("psModules.imcombine", 4,
    512512            "Calling IsisKernelConvolve(%d, %d, %d)\n", kernelID, col, row);
    513513    psS32 spatialOrder = kernels->spatialOrder;
     
    541541    psFree(polyValues);
    542542
    543     psTrace("ImageSubtract.IsisKernelConvolve", 4,
     543    psTrace("psModules.imcombine", 4,
    544544            "Exiting IsisKernelConvolve(%d, %d, %d)\n", kernelID, col, row);
    545545    return(conv);
     
    563563                               psS32 row)
    564564{
    565     psTrace("ImageSubtract.ConvolvePixelPois", 4,
     565    psTrace("psModules.imcombine", 4,
    566566            "Calling ConvolvePixelPois(%d, %d)\n", col, row);
    567567    psS32 nBF = kernels->u->n;
     
    604604    }
    605605
    606     psTrace("ImageSubtract.ConvolvePixelPois", 4,
     606    psTrace("psModules.imcombine", 4,
    607607            "Exiting ConvolvePixelPois(%d, %d)\n", col, row);
    608608    return(conv);
     
    628628                               psS32 row)
    629629{
    630     psTrace("ImageSubtract.ConvolvePixelIsis", 4,
     630    psTrace("psModules.imcombine", 4,
    631631            "Calling ConvolvePixelIsis(%d, %d)\n", col, row);
    632632    psF32 background = solution->data.F64[solution->n-1];
     
    640640    }
    641641
    642     psTrace("ImageSubtract.ConvolvePixelIsis", 4,
     642    psTrace("psModules.imcombine", 4,
    643643            "Exiting ConvolvePixelIsis(%d, %d)\n", col, row);
    644644    return(conv);
     
    655655                              const psSubtractionKernels *kernels)
    656656{
    657     psTrace("ImageSubtract.ConvolveImage", 4, "Calling ConvolveImage()\n");
     657    psTrace("psModules.imcombine", 4, "Calling ConvolveImage()\n");
    658658    PS_ASSERT_IMAGE_NON_NULL(input, NULL);
    659659    PS_ASSERT_IMAGE_NON_EMPTY(input, NULL);
     
    724724    }
    725725
    726     psTrace("ImageSubtract.ConvolveImage", 4, "Exiting ConvolveImage()\n");
     726    psTrace("psModules.imcombine", 4, "Exiting ConvolveImage()\n");
    727727    return convolved;
    728728}
     
    743743                                   )
    744744{
    745     psTrace("ImageSubtract.pmSubtractionCalculateEquation", 3,
     745    psTrace("psModules.imcombine", 3,
    746746            "Calling pmSubtractionCalculateEquation()\n");
    747747    PS_ASSERT_PTR_NON_NULL(stamps, false);
     
    805805    for (psS32 s = 0; s < stamps->n; s++) {
    806806        pmStamp *stamp = (pmStamp *) stamps->data[s];
    807         psTrace("pmSubtractionCalculateEquation", 6, "subCalcEqn(): stamp %d\n", s);
     807        psTrace("psModules.imcombine", 6, "subCalcEqn(): stamp %d\n", s);
    808808        if (stamp->status == PM_STAMP_RECALC) {
    809             psTrace("pmSubtractionCalculateEquation", 6, "subCalcEqn(): stamp %d: status is PM_STAMP_RECALC.\n", s);
     809            psTrace("psModules.imcombine", 6, "subCalcEqn(): stamp %d: status is PM_STAMP_RECALC.\n", s);
    810810            psImage *stampMatrix = stamp->matrix;
    811811            psVector *stampVector = stamp->vector;
     
    829829            }
    830830            psVectorInit(stampVector, 0.0);
    831             psTrace("pmSubtractionCalculateEquation", 6, "subCalcEqn(): stamp %d: allocate matrix and vector.\n", s);
     831            psTrace("psModules.imcombine", 6, "subCalcEqn(): stamp %d: allocate matrix and vector.\n", s);
    832832
    833833            //
     
    840840                                                  ((psF64) (stamp->y - numHalfRows)) / ((psF64) numHalfRows));
    841841
    842             psTrace("pmSubtractionCalculateEquation", 6, "subCalcEqn(): stamp %d: generated spatial order terms.\n", s);
     842            psTrace("psModules.imcombine", 6, "subCalcEqn(): stamp %d: generated spatial order terms.\n", s);
    843843
    844844            if (kernels->type == PM_SUBTRACTION_KERNEL_POIS) {
     
    848848                for (psS32 y = stamp->y - footprint; y < stamp->y + footprint; y++) {
    849849                    for (psS32 x = stamp->x - footprint; x < stamp->x + footprint; x++) {
    850                         psTrace("pmSubtractionCalculateEquation", 6, "subCalcEqn(): pixel (%d, %d).\n", y, x);
     850                        psTrace("psModules.imcombine", 6, "subCalcEqn(): pixel (%d, %d).\n", y, x);
    851851
    852852                        // The inverse of the noise, squared.
     
    932932                for (psS32 y = stamp->y - footprint; y < stamp->y + footprint; y++) {
    933933                    for (psS32 x = stamp->x - footprint; x < stamp->x + footprint; x++) {
    934                         psTrace("pmSubtractionCalculateEquation", 6, "subCalcEqn(): pixel (%d, %d).\n", y, x);
     934                        psTrace("psModules.imcombine", 6, "subCalcEqn(): pixel (%d, %d).\n", y, x);
    935935                        psF32 invNoise2 = 1.0/reference->data.F32[y][x]; // The inverse of the noise, squared.
    936936
     
    998998        }
    999999    }
    1000     psTrace("ImageSubtract.pmSubtractionCalculateEquation", 3,
     1000    psTrace("psModules.imcombine", 3,
    10011001            "Exiting pmSubtractionCalculateEquation()\n");
    10021002    return(true);
     
    10121012                                    )
    10131013{
    1014     psTrace("ImageSubtract.pmSubtractionSolveEquation", 3,
     1014    psTrace("psModules.imcombine", 3,
    10151015            "Calling pmSubtractionSolveEquation()\n");
    10161016    PS_ASSERT_PTR_NON_NULL(stamps, NULL);
     
    11201120    psFree(permutation);
    11211121
    1122     psTrace("ImageSubtract.pmSubtractionSolveEquation", 3,
     1122    psTrace("psModules.imcombine", 3,
    11231123            "Exiting pmSubtractionSolveEquation()\n");
    11241124    return(solution);
     
    11381138                                     const psVector *solution)
    11391139{
    1140     psTrace("ImageSubtract.CalculateDeviations", 4,
     1140    psTrace("psModules.imcombine", 4,
    11411141            "Calling CalculateDeviations()\n");
    11421142    PS_ASSERT_PTR_NON_NULL(stamps, NULL);
     
    12201220    psFree(subStamp);
    12211221
    1222     psTrace("ImageSubtract.CalculateDeviations", 4,
     1222    psTrace("psModules.imcombine", 4,
    12231223            "Exiting CalculateDeviations()\n");
    12241224    return deviations;
     
    12381238                              )
    12391239{
    1240     psTrace("ImageSubtract.pmSubtractionRejectStamps", 3,
     1240    psTrace("psModules.imcombine", 3,
    12411241            "Calling pmSubtractionRejectStamps()\n");
    12421242    PS_ASSERT_PTR_NON_NULL(stamps, false);
     
    13131313
    13141314    psFree(deviations);
    1315     psTrace("ImageSubtract.pmSubtractionRejectStamps", 3,
     1315    psTrace("psModules.imcombine", 3,
    13161316            "Exiting pmSubtractionRejectStamps()\n");
    13171317    return(true);
     
    13271327                                 )
    13281328{
    1329     psTrace("ImageSubtract.pmSubtractionKernelImage", 3,
     1329    psTrace("psModules.imcombine", 3,
    13301330            "Calling pmSubtractionKernelImage()\n");
    13311331    PS_ASSERT_VECTOR_NON_NULL(solution, NULL);
     
    14011401    psFree(polyValues);
    14021402
    1403     psTrace("ImageSubtract.pmSubtractionKernelImage", 3,
     1403    psTrace("psModules.imcombine", 3,
    14041404            "Exiting pmSubtractionKernelImage()\n");
    14051405    return(out);
  • trunk/psModules/src/imcombine/pmReadoutCombine.c

    r7868 r8246  
    55 *  @author GLG, MHPCC
    66 *
    7  *  @version $Revision: 1.22 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2006-07-12 03:30:53 $
     7 *  @version $Revision: 1.23 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2006-08-09 02:37:07 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    168168        minInputCols = PS_MIN(minInputCols, readout->col0);
    169169        maxInputCols = PS_MAX(maxInputCols, readout->col0 + readout->image->numCols);
    170         psTrace(__func__, 7, "Readout %d: offset %d,%d; size %dx%d\n", i,
     170        psTrace("psModules.imcombine", 7, "Readout %d: offset %d,%d; size %dx%d\n", i,
    171171                readout->col0, readout->row0, readout->image->numCols, readout->image->numRows);
    172172    }
     
    184184        *(psS32 *) &(output->row0) = minInputRows;
    185185    }
    186     psTrace(__func__, 7, "Output minimum: %d,%d\n", output->col0, output->row0);
     186    psTrace("psModules.imcombine", 7, "Output minimum: %d,%d\n", output->col0, output->row0);
    187187
    188188    // Allocate the output products
     
    274274    #ifndef PS_NO_TRACE
    275275
    276     psTrace(__func__, 3, "Iterating output: %d --> %d, %d --> %d\n",
     276    psTrace("psModules.imcombine", 3, "Iterating output: %d --> %d, %d --> %d\n",
    277277            minInputCols - output->col0, maxInputCols - output->col0,
    278278            minInputRows - output->row0, maxInputRows - output->row0);
     
    280280        for (int r = 0; r < inputs->n; r++) {
    281281            pmReadout *readout = inputs->data[r]; // Input readout
    282             psTrace(__func__, 3, "Iterating input %d: %d --> %d, %d --> %d\n", r,
     282            psTrace("psModules.imcombine", 3, "Iterating input %d: %d --> %d, %d --> %d\n", r,
    283283                    minInputCols - readout->col0, maxInputCols - readout->col0,
    284284                    minInputRows - readout->row0, maxInputRows - readout->row0);
  • trunk/psModules/src/objects/pmModel.c

    r7604 r8246  
    66 *  @author EAM, IfA
    77 *
    8  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-06-21 03:21:16 $
     8 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-08-09 02:37:07 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3131static void modelFree(pmModel *tmp)
    3232{
    33     psTrace(__func__, 4, "---- %s() begin ----\n", __func__);
     33    psTrace("psModules.objects", 4, "---- %s() begin ----\n", __func__);
    3434    psFree(tmp->params);
    3535    psFree(tmp->dparams);
    36     psTrace(__func__, 4, "---- %s() end ----\n", __func__);
     36    psTrace("psModules.objects", 4, "---- %s() end ----\n", __func__);
    3737}
    3838
     
    4444pmModel *pmModelAlloc(pmModelType type)
    4545{
    46     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     46    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    4747    pmModel *tmp = (pmModel *) psAlloc(sizeof(pmModel));
    4848
     
    6969
    7070    psMemSetDeallocator(tmp, (psFreeFunc) modelFree);
    71     psTrace(__func__, 3, "---- %s() end ----\n", __func__);
     71    psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    7272    return(tmp);
    7373}
     
    102102psF32 pmModelEval(pmModel *model, psImage *image, psS32 col, psS32 row)
    103103{
    104     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     104    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    105105    PS_ASSERT_PTR_NON_NULL(image, false);
    106106    PS_ASSERT_PTR_NON_NULL(model, false);
     
    119119    tmpF = modelFunc (NULL, model->params, x);
    120120    psFree(x);
    121     psTrace(__func__, 3, "---- %s() end ----\n", __func__);
     121    psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    122122    return(tmpF);
    123123}
     
    131131                      )
    132132{
    133     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     133    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    134134
    135135    PS_ASSERT_PTR_NON_NULL(model, false);
     
    183183    }
    184184    psFree(x);
    185     psTrace(__func__, 3, "---- %s(true) end ----\n", __func__);
     185    psTrace("psModules.objects", 3, "---- %s(true) end ----\n", __func__);
    186186    return(true);
    187187}
     
    195195                bool sky)
    196196{
    197     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     197    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    198198    psBool rc = AddOrSubModel(image, mask, model, center, sky, true);
    199     psTrace(__func__, 3, "---- %s(%d) end ----\n", __func__, rc);
     199    psTrace("psModules.objects", 3, "---- %s(%d) end ----\n", __func__, rc);
    200200    return(rc);
    201201}
     
    209209                bool sky)
    210210{
    211     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     211    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    212212    psBool rc = AddOrSubModel(image, mask, model, center, sky, false);
    213     psTrace(__func__, 3, "---- %s(%d) end ----\n", __func__, rc);
     213    psTrace("psModules.objects", 3, "---- %s(%d) end ----\n", __func__, rc);
    214214    return(rc);
    215215}
  • trunk/psModules/src/objects/pmModelGroup.c

    r7604 r8246  
    66 *  @author EAM, IfA
    77 *
    8  *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-06-21 03:21:16 $
     8 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-08-09 02:37:07 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    203203                            pmModelType modelType)
    204204{
    205     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     205    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    206206    PS_ASSERT_PTR_NON_NULL(source->moments, false);
    207207    PS_ASSERT_PTR_NON_NULL(source->peak, false);
     
    211211    pmModelGuessFunc modelGuessFunc = pmModelGuessFunc_GetFunction(modelType);
    212212    modelGuessFunc(model, source);
    213     psTrace(__func__, 3, "---- %s() end ----\n", __func__);
     213    psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    214214    return(model);
    215215}
  • trunk/psModules/src/objects/pmMoments.c

    r7604 r8246  
    66 *  @author EAM, IfA
    77 *
    8  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-06-21 03:21:16 $
     8 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-08-09 02:37:07 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2323pmMoments *pmMomentsAlloc()
    2424{
    25     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     25    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    2626    pmMoments *tmp = (pmMoments *) psAlloc(sizeof(pmMoments));
    2727    tmp->x = 0.0;
     
    3535    tmp->nPixels = 0;
    3636
    37     psTrace(__func__, 3, "---- %s() end ----\n", __func__);
     37    psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    3838    return(tmp);
    3939}
  • trunk/psModules/src/objects/pmPeaks.c

    r7604 r8246  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-06-21 03:21:16 $
     8 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-08-09 02:37:07 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3232                              pmPeakType type)
    3333{
    34     psTrace(__func__, 4, "---- %s() begin ----\n", __func__);
     34    psTrace("psModules.objects", 4, "---- %s() begin ----\n", __func__);
    3535    pmPeak *tmpPeak = pmPeakAlloc(col, row, counts, type);
    3636
     
    4343    // XXX EAM : is this free appropriate?  (does psArrayAdd increment memory counter?)
    4444
    45     psTrace(__func__, 4, "---- %s() end ----\n", __func__);
     45    psTrace("psModules.objects", 4, "---- %s() end ----\n", __func__);
    4646    return(list);
    4747}
     
    5757                                       psU32 row)
    5858{
    59     psTrace(__func__, 4, "---- %s() begin ----\n", __func__);
     59    psTrace("psModules.objects", 4, "---- %s() begin ----\n", __func__);
    6060    PS_ASSERT_IMAGE_NON_NULL(image, NULL);
    6161    PS_ASSERT_IMAGE_TYPE(image, PS_TYPE_F32, NULL);
     
    6666    }
    6767    tmpVector->n = image->numCols;
    68     psTrace(__func__, 4, "---- %s() end ----\n", __func__);
     68    psTrace("psModules.objects", 4, "---- %s() end ----\n", __func__);
    6969    return(tmpVector);
    7070}
     
    7979                             psS32 y)
    8080{
    81     psTrace(__func__, 4, "---- %s() begin ----\n", __func__);
     81    psTrace("psModules.objects", 4, "---- %s() begin ----\n", __func__);
    8282    if ((x >= valid.x0) &&
    8383            (x <= valid.x1) &&
    8484            (y >= valid.y0) &&
    8585            (y <= valid.y1)) {
    86         psTrace(__func__, 4, "---- %s(true) end ----\n", __func__);
     86        psTrace("psModules.objects", 4, "---- %s(true) end ----\n", __func__);
    8787        return(true);
    8888    }
    89     psTrace(__func__, 4, "---- %s(false) end ----\n", __func__);
     89    psTrace("psModules.objects", 4, "---- %s(false) end ----\n", __func__);
    9090    return(false);
    9191}
     
    102102                    pmPeakType type)
    103103{
    104     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     104    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    105105    static int id = 1;
    106106    pmPeak *tmp = (pmPeak *) psAlloc(sizeof(pmPeak));
     
    113113    psMemSetDeallocator(tmp, (psFreeFunc) peakFree);
    114114
    115     psTrace(__func__, 3, "---- %s() end ----\n", __func__);
     115    psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    116116    return(tmp);
    117117}
     
    125125int pmPeaksCompareAscend (const void **a, const void **b)
    126126{
    127     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     127    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    128128    pmPeak *A = *(pmPeak **)a;
    129129    pmPeak *B = *(pmPeak **)b;
     
    133133    diff = A->counts - B->counts;
    134134    if (diff < FLT_EPSILON) {
    135         psTrace(__func__, 3, "---- %s(-1) end ----\n", __func__);
     135        psTrace("psModules.objects", 3, "---- %s(-1) end ----\n", __func__);
    136136        return (-1);
    137137    } else if (diff > FLT_EPSILON) {
    138         psTrace(__func__, 3, "---- %s(+1) end ----\n", __func__);
     138        psTrace("psModules.objects", 3, "---- %s(+1) end ----\n", __func__);
    139139        return (+1);
    140140    }
    141     psTrace(__func__, 3, "---- %s(0) end ----\n", __func__);
     141    psTrace("psModules.objects", 3, "---- %s(0) end ----\n", __func__);
    142142    return (0);
    143143}
     
    146146int pmPeaksCompareDescend (const void **a, const void **b)
    147147{
    148     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     148    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    149149    pmPeak *A = *(pmPeak **)a;
    150150    pmPeak *B = *(pmPeak **)b;
     
    154154    diff = A->counts - B->counts;
    155155    if (diff < FLT_EPSILON) {
    156         psTrace(__func__, 3, "---- %s(+1) end ----\n", __func__);
     156        psTrace("psModules.objects", 3, "---- %s(+1) end ----\n", __func__);
    157157        return (+1);
    158158    } else if (diff > FLT_EPSILON) {
    159         psTrace(__func__, 3, "---- %s(-1) end ----\n", __func__);
     159        psTrace("psModules.objects", 3, "---- %s(-1) end ----\n", __func__);
    160160        return (-1);
    161161    }
    162     psTrace(__func__, 3, "---- %s(0) end ----\n", __func__);
     162    psTrace("psModules.objects", 3, "---- %s(0) end ----\n", __func__);
    163163    return (0);
    164164}
     
    178178                            psF32 threshold)
    179179{
    180     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     180    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    181181    PS_ASSERT_VECTOR_NON_NULL(vector, NULL);
    182182    PS_ASSERT_VECTOR_NON_EMPTY(vector, NULL);
     
    198198            tmpVector = psVectorAlloc(0, PS_TYPE_U32);
    199199        }
    200         psTrace(__func__, 3, "---- %s() end ----\n", __func__);
     200        psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    201201        return(tmpVector);
    202202    }
     
    264264    }
    265265
    266     psTrace(__func__, 3, "---- %s() end ----\n", __func__);
     266    psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    267267    return(tmpVector);
    268268}
     
    292292                          psF32 threshold)
    293293{
    294     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     294    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    295295    PS_ASSERT_IMAGE_NON_NULL(image, NULL);
    296296    PS_ASSERT_IMAGE_TYPE(image, PS_TYPE_F32, NULL);
    297297    if ((image->numRows == 1) || (image->numCols == 1)) {
    298298        psError(PS_ERR_UNKNOWN, true, "Currently, input image must have at least 2 rows and 2 columns.");
    299         psTrace(__func__, 3, "---- %s(NULL) end ----\n", __func__);
     299        psTrace("psModules.objects", 3, "---- %s(NULL) end ----\n", __func__);
    300300        return(NULL);
    301301    }
     
    361361    //
    362362    if (image->numRows == 1) {
    363         psTrace(__func__, 3, "---- %s() end ----\n", __func__);
     363        psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    364364        return(list);
    365365    }
     
    484484    psFree (tmpRow);
    485485    psFree (row1);
    486     psTrace(__func__, 3, "---- %s() end ----\n", __func__);
     486    psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    487487    return(list);
    488488}
     
    507507                    const psRegion valid)
    508508{
    509     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     509    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    510510    PS_ASSERT_PTR_NON_NULL(peaks, NULL);
    511511
     
    525525    }
    526526
    527     psTrace(__func__, 3, "---- %s() end ----\n", __func__);
     527    psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    528528    return(peaks);
    529529}
     
    537537    const psRegion valid)
    538538{
    539     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     539    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    540540    PS_ASSERT_PTR_NON_NULL(peaks, NULL);
    541541
     
    553553        psArrayAdd (output, 200, tmpPeak);
    554554    }
    555     psTrace(__func__, 3, "---- %s() end ----\n", __func__);
     555    psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    556556    return(output);
    557557}
  • trunk/psModules/src/objects/pmSource.c

    r7631 r8246  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-06-22 20:04:13 $
     8 *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-08-09 02:37:08 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2727static void sourceFree(pmSource *tmp)
    2828{
    29     psTrace(__func__, 4, "---- %s() begin ----\n", __func__);
     29    psTrace("psModules.objects", 4, "---- %s() begin ----\n", __func__);
    3030    psFree(tmp->peak);
    3131    psFree(tmp->pixels);
     
    3636    psFree(tmp->modelEXT);
    3737    psFree(tmp->blends);
    38     psTrace(__func__, 4, "---- %s() end ----\n", __func__);
     38    psTrace("psModules.objects", 4, "---- %s() end ----\n", __func__);
    3939}
    4040
     
    6161pmSource *pmSourceAlloc()
    6262{
    63     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     63    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    6464    static int id = 1;
    6565    pmSource *tmp = (pmSource *) psAlloc(sizeof(pmSource));
     
    8383    tmp->pixWeight = 0.0;
    8484
    85     psTrace(__func__, 3, "---- %s() end ----\n", __func__);
     85    psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    8686    return(tmp);
    8787}
     
    163163pmPSFClump pmSourcePSFClump(psArray *sources, psMetadata *metadata)
    164164{
    165     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     165    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    166166
    167167    # define NPIX 10
     
    328328    }
    329329
    330     psTrace(__func__, 3, "---- %s() end ----\n", __func__);
     330    psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    331331    return (psfClump);
    332332}
     
    345345bool pmSourceRoughClass(psArray *sources, psMetadata *metadata, pmPSFClump clump)
    346346{
    347     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     347    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    348348
    349349    psBool rc = true;
     
    455455    psTrace (".pmObjects.pmSourceRoughClass", 2, "Ncr:      %3d\n", Ncr);
    456456
    457     psTrace(__func__, 3, "---- %s(%d) end ----\n", __func__, rc);
     457    psTrace("psModules.objects", 3, "---- %s(%d) end ----\n", __func__, rc);
    458458    return(rc);
    459459}
     
    481481                     psF32 radius)
    482482{
    483     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     483    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    484484    PS_ASSERT_PTR_NON_NULL(source, false);
    485485    PS_ASSERT_PTR_NON_NULL(source->peak, false);
     
    588588    if ((numPixels < 0.75*R2) || (Sum <= 0)) {
    589589        psTrace (".psModules.pmSourceMoments", 3, "no valid pixels for source\n");
    590         psTrace(__func__, 3, "---- %s(false) end ----\n", __func__);
     590        psTrace("psModules.objects", 3, "---- %s(false) end ----\n", __func__);
    591591        return (false);
    592592    }
     
    607607                 "large centroid swing; invalid peak %d, %d\n",
    608608                 source->peak->x, source->peak->y);
    609         psTrace(__func__, 3, "---- %s(false) end ----\n", __func__);
     609        psTrace("psModules.objects", 3, "---- %s(false) end ----\n", __func__);
    610610        return (false);
    611611    }
     
    630630             source->moments->Sx, source->moments->Sy, source->moments->Sxy);
    631631
    632     psTrace(__func__, 3, "---- %s(true) end ----\n", __func__);
     632    psTrace("psModules.objects", 3, "---- %s(true) end ----\n", __func__);
    633633    return(true);
    634634}
  • trunk/psModules/src/objects/pmSourceContour.c

    r6943 r8246  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-04-21 21:27:04 $
     8 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-08-09 02:37:08 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4949{
    5050
    51     psTrace(__func__, 4, "---- %s() begin ----\n", __func__);
     51    psTrace("psModules.objects", 4, "---- %s() begin ----\n", __func__);
    5252
    5353    // We define variables incr and lastColumn so that we can use the same loop
     
    7070        float value = image->data.F32[y][subCol];
    7171        if (value <= threshold) {
    72             psTrace(__func__, 4, "---- %s() end ----\n", __func__);
     72            psTrace("psModules.objects", 4, "---- %s() end ----\n", __func__);
    7373            return (subCol);
    7474        }
    7575        subCol += incr;
    7676    }
    77     psTrace(__func__, 4, "---- %s() end ----\n", __func__);
     77    psTrace("psModules.objects", 4, "---- %s() end ----\n", __func__);
    7878    return (lastColumn);
    7979}
     
    8989{
    9090
    91     psTrace(__func__, 4, "---- %s() begin ----\n", __func__);
     91    psTrace("psModules.objects", 4, "---- %s() begin ----\n", __func__);
    9292
    9393    // We define variables incr and lastColumn so that we can use the same loop
     
    109109        float value = image->data.F32[y][subCol];
    110110        if (value >= threshold) {
    111             psTrace(__func__, 4, "---- %s() end ----\n", __func__);
     111            psTrace("psModules.objects", 4, "---- %s() end ----\n", __func__);
    112112            if (subCol == x) {
    113113                return (subCol);
     
    117117        subCol += incr;
    118118    }
    119     psTrace(__func__, 4, "---- %s() end ----\n", __func__);
     119    psTrace("psModules.objects", 4, "---- %s() end ----\n", __func__);
    120120    return (lastColumn);
    121121}
     
    139139                       psU32 dir)
    140140{
    141     psTrace(__func__, 4, "---- %s() begin ----\n", __func__);
     141    psTrace("psModules.objects", 4, "---- %s() begin ----\n", __func__);
    142142    //
    143143    // Convert coords to subImage space.
     
    149149    if (!((0 <= subCol) && (subCol < source->pixels->numCols))) {
    150150        psError(PS_ERR_UNKNOWN, true, "Starting column outside subImage range");
    151         psTrace(__func__, 4, "---- %s(NAN) end ----\n", __func__);
     151        psTrace("psModules.objects", 4, "---- %s(NAN) end ----\n", __func__);
    152152        return(NAN);
    153153    }
    154154    if (!((0 <= subRow) && (subRow < source->pixels->numRows))) {
    155         psTrace(__func__, 4, "---- %s(NAN) end ----\n", __func__);
     155        psTrace("psModules.objects", 4, "---- %s(NAN) end ----\n", __func__);
    156156        psError(PS_ERR_UNKNOWN, true, "Starting row outside subImage range");
    157157        return(NAN);
     
    162162    psF32 oldValue = pmModelEval(source->modelEXT, source->pixels, subCol, subRow);
    163163    if (oldValue == level) {
    164         psTrace(__func__, 4, "---- %s() end ----\n", __func__);
     164        psTrace("psModules.objects", 4, "---- %s() end ----\n", __func__);
    165165        return(((psF32) (subCol + source->pixels->col0)));
    166166    }
     
    184184        psF32 newValue = pmModelEval(source->modelEXT, source->pixels, subCol, subRow);
    185185        if (oldValue == level) {
    186             psTrace(__func__, 4, "---- %s() end ----\n", __func__);
     186            psTrace("psModules.objects", 4, "---- %s() end ----\n", __func__);
    187187            return((psF32) (subCol + source->pixels->col0));
    188188        }
     
    190190        if ((newValue <= level) && (level <= oldValue)) {
    191191            // This is simple linear interpolation.
    192             psTrace(__func__, 4, "---- %s() end ----\n", __func__);
     192            psTrace("psModules.objects", 4, "---- %s() end ----\n", __func__);
    193193            return( ((psF32) (subCol + source->pixels->col0)) + ((psF32) incr) * ((level - newValue) / (oldValue - newValue)) );
    194194        }
     
    196196        if ((oldValue <= level) && (level <= newValue)) {
    197197            // This is simple linear interpolation.
    198             psTrace(__func__, 4, "---- %s() end ----\n", __func__);
     198            psTrace("psModules.objects", 4, "---- %s() end ----\n", __func__);
    199199            return( ((psF32) (subCol + source->pixels->col0)) + ((psF32) incr) * ((level - oldValue) / (newValue - oldValue)) );
    200200        }
     
    203203    }
    204204
    205     psTrace(__func__, 4, "---- %s(NAN) end ----\n", __func__);
     205    psTrace("psModules.objects", 4, "---- %s(NAN) end ----\n", __func__);
    206206    return(NAN);
    207207}
     
    215215    int xR, yR, x0, x1, x0s, x1s;
    216216
    217     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     217    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    218218    PS_ASSERT_PTR_NON_NULL(image, false);
    219219
     
    327327    tmpArray->data[0] = (psPtr *) xVec;
    328328    tmpArray->data[1] = (psPtr *) yVec;
    329     psTrace(__func__, 3, "---- %s() end ----\n", __func__);
     329    psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    330330    return(tmpArray);
    331331}
     
    348348                               psF32 level)
    349349{
    350     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     350    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    351351    PS_ASSERT_PTR_NON_NULL(source, false);
    352352    PS_ASSERT_PTR_NON_NULL(image, false);
     
    379379            psFree(xVec);
    380380            psFree(yVec);
    381             psTrace(__func__, 3, "---- %s(NULL) end ----\n", __func__);
     381            psTrace("psModules.objects", 3, "---- %s(NULL) end ----\n", __func__);
    382382            return(NULL);
    383383            //psLogMsg(__func__, PS_LOG_WARN, "WARNING: Could not find contour edge (NAN)\n");
     
    392392            psFree(xVec);
    393393            psFree(yVec);
    394             psTrace(__func__, 3, "---- %s(NULL) end ----\n", __func__);
     394            psTrace("psModules.objects", 3, "---- %s(NULL) end ----\n", __func__);
    395395            return(NULL);
    396396            //psLogMsg(__func__, PS_LOG_WARN, "WARNING: Could not find contour edge (NAN)\n");
    397397        }
    398         psTrace(__func__, 4, "The intercepts are (%.2f, %.2f)\n", leftIntercept, rightIntercept);
     398        psTrace("psModules.objects", 4, "The intercepts are (%.2f, %.2f)\n", leftIntercept, rightIntercept);
    399399        xVec->data.F32[row+xVec->n] = ((psF32) source->pixels->col0) + rightIntercept;
    400400
     
    417417            psFree(xVec);
    418418            psFree(yVec);
    419             psTrace(__func__, 3, "---- %s(NULL) end ----\n", __func__);
     419            psTrace("psModules.objects", 3, "---- %s(NULL) end ----\n", __func__);
    420420            return(NULL);
    421421            //psLogMsg(__func__, PS_LOG_WARN, "WARNING: Could not find contour edge (NAN)\n");
     
    429429            psFree(xVec);
    430430            psFree(yVec);
    431             psTrace(__func__, 3, "---- %s(NULL) end ----\n", __func__);
     431            psTrace("psModules.objects", 3, "---- %s(NULL) end ----\n", __func__);
    432432            return(NULL);
    433433            //psLogMsg(__func__, PS_LOG_WARN, "WARNING: Could not find contour edge (NAN)\n");
     
    447447    tmpArray->data[0] = (psPtr *) yVec;
    448448    tmpArray->data[1] = (psPtr *) xVec;
    449     psTrace(__func__, 3, "---- %s() end ----\n", __func__);
     449    psTrace("psModules.objects", 3, "---- %s() end ----\n", __func__);
    450450    return(tmpArray);
    451451}
  • trunk/psModules/src/objects/pmSourceFitModel.c

    r7604 r8246  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-06-21 03:21:16 $
     8 *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-08-09 02:37:08 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4747                       pmSourceFitMode mode)
    4848{
    49     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     49    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    5050    PS_ASSERT_PTR_NON_NULL(source, false);
    5151    PS_ASSERT_PTR_NON_NULL(source->moments, false);
     
    162162    if (nPix <  nParams + 1) {
    163163        psTrace (".pmObjects.pmSourceFitModel", 4, "insufficient valid pixels\n");
    164         psTrace(__func__, 3, "---- %s(false) end ----\n", __func__);
     164        psTrace("psModules.objects", 3, "---- %s(false) end ----\n", __func__);
    165165        model->status = PM_MODEL_BADARGS;
    166166        psFree (x);
     
    244244
    245245    rc = (onPic && fitStatus);
    246     psTrace(__func__, 3, "---- %s(%d) end ----\n", __func__, rc);
     246    psTrace("psModules.objects", 3, "---- %s(%d) end ----\n", __func__, rc);
    247247    return(rc);
    248248}
     
    329329                     pmSourceFitMode mode)
    330330{
    331     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     331    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    332332    PS_ASSERT_PTR_NON_NULL(source, false);
    333333    PS_ASSERT_PTR_NON_NULL(source->moments, false);
     
    489489    if (nPix <  nParams + 1) {
    490490        psTrace (__func__, 4, "insufficient valid pixels\n");
    491         psTrace(__func__, 3, "---- %s() end : fail pixels ----\n", __func__);
     491        psTrace("psModules.objects", 3, "---- %s() end : fail pixels ----\n", __func__);
    492492        model->status = PM_MODEL_BADARGS;
    493493        psFree (x);
     
    517517    if (!fitStatus) {
    518518        // psError(PS_ERR_UNKNOWN, false, "Failed to fit model (%d)\n", nSrc);
    519         psTrace(__func__, 4, "Failed to fit model (%d)\n", nSrc);
     519        psTrace("psModules.objects", 4, "Failed to fit model (%d)\n", nSrc);
    520520    }
    521521
     
    587587    rc = (onPic && fitStatus);
    588588    psTrace (__func__, 5, "onPic: %d, fitStatus: %d, nIter: %d, chisq: %f, nDof: %d\n", onPic, fitStatus, model->nIter, model->chisq, model->nDOF);
    589     psTrace(__func__, 3, "---- %s end : status %d ----\n", __func__, rc);
     589    psTrace("psModules.objects", 3, "---- %s end : status %d ----\n", __func__, rc);
    590590    return(rc);
    591591}
  • trunk/psModules/src/objects/pmSourceSky.c

    r8004 r8246  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-07-28 03:21:19 $
     8 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-08-09 02:37:08 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4141    psF32 Radius)
    4242{
    43     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     43    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    4444    PS_ASSERT_PTR_NON_NULL(source, false);
    4545    PS_ASSERT_IMAGE_NON_NULL(source->pixels, false);
     
    7171
    7272    if (isnan(value)) {
    73         psTrace(__func__, 3, "---- %s(false) end ----\n", __func__);
     73        psTrace("psModules.objects", 3, "---- %s(false) end ----\n", __func__);
    7474        return(false);
    7575    }
     
    7878    }
    7979    source->moments->Sky = value;
    80     psTrace(__func__, 3, "---- %s(true) end ----\n", __func__);
     80    psTrace("psModules.objects", 3, "---- %s(true) end ----\n", __func__);
    8181    return (true);
    8282}
     
    8888    psF32 Radius)
    8989{
    90     psTrace(__func__, 3, "---- %s() begin ----\n", __func__);
     90    psTrace("psModules.objects", 3, "---- %s() begin ----\n", __func__);
    9191    PS_ASSERT_PTR_NON_NULL(source, false);
    9292    PS_ASSERT_IMAGE_NON_NULL(source->weight, false);
     
    118118
    119119    if (isnan(value)) {
    120         psTrace(__func__, 3, "---- %s(false) end ----\n", __func__);
     120        psTrace("psModules.objects", 3, "---- %s(false) end ----\n", __func__);
    121121        return(false);
    122122    }
     
    125125    }
    126126    source->moments->dSky = value;
    127     psTrace(__func__, 3, "---- %s(true) end ----\n", __func__);
     127    psTrace("psModules.objects", 3, "---- %s(true) end ----\n", __func__);
    128128    return (true);
    129129}
Note: See TracChangeset for help on using the changeset viewer.