Changeset 8669 for trunk/psModules
- Timestamp:
- Aug 29, 2006, 11:39:44 AM (20 years ago)
- Location:
- trunk/psModules/src
- Files:
-
- 24 edited
-
astrom/pmAstrometryObjects.c (modified) (3 diffs)
-
camera/pmFPA.c (modified) (9 diffs)
-
camera/pmFPACopy.c (modified) (2 diffs)
-
camera/pmFPAMosaic.c (modified) (2 diffs)
-
camera/pmFPAfile.c (modified) (4 diffs)
-
camera/pmFPAfileDefine.c (modified) (7 diffs)
-
camera/pmFPAfileFitsIO.c (modified) (6 diffs)
-
camera/pmHDUGenerate.c (modified) (2 diffs)
-
camera/pmHDUUtils.c (modified) (1 diff)
-
concepts/pmConcepts.c (modified) (12 diffs)
-
concepts/pmConceptsRead.c (modified) (2 diffs)
-
concepts/pmConceptsStandard.c (modified) (1 diff)
-
concepts/pmConceptsWrite.c (modified) (4 diffs)
-
config/pmConfig.c (modified) (2 diffs)
-
detrend/pmFlatNormalize.c (modified) (2 diffs)
-
detrend/pmFringeStats.c (modified) (4 diffs)
-
detrend/pmNonLinear.c (modified) (2 diffs)
-
detrend/pmSubtractBias.c (modified) (2 diffs)
-
imcombine/pmImageCombine.c (modified) (4 diffs)
-
imcombine/pmImageSubtract.c (modified) (9 diffs)
-
imcombine/pmReadoutCombine.c (modified) (5 diffs)
-
objects/pmPSFtry.c (modified) (3 diffs)
-
objects/pmPeaks.c (modified) (2 diffs)
-
objects/pmSourceIO.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/astrom/pmAstrometryObjects.c
r7953 r8669 8 8 * @author EAM, IfA 9 9 * 10 * @version $Revision: 1.1 2$ $Name: not supported by cvs2svn $11 * @date $Date: 2006-0 7-24 23:56:26$10 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2006-08-29 21:39:44 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 177 177 psFree(y2); \ 178 178 \ 179 psLogMsg (__func__, 3, "radius match: % d pairs (radius: %f)\n", matches->n, RADIUS); \179 psLogMsg (__func__, 3, "radius match: %ld pairs (radius: %f)\n", matches->n, RADIUS); \ 180 180 return (matches); \ 181 181 } … … 263 263 // fit chip-to-FPA transformation 264 264 psVectorClipFitPolynomial2D (map->x, stats, xMask, 0, x, wt, X, Y); 265 psLogMsg ("psModules.astrom", 3, "x resid: %f +/- %f (% d of %d)\n", stats->clippedMean, stats->clippedStdev, stats->clippedNvalues, x->n);265 psLogMsg ("psModules.astrom", 3, "x resid: %f +/- %f (%ld of %ld)\n", stats->clippedMean, stats->clippedStdev, stats->clippedNvalues, x->n); 266 266 267 267 psVectorClipFitPolynomial2D (map->y, stats, yMask, 0, y, wt, X, Y); 268 psLogMsg ("psModules.astrom", 3, "y resid: %f +/- %f (% d of %d)\n", stats->clippedMean, stats->clippedStdev, stats->clippedNvalues, y->n);268 psLogMsg ("psModules.astrom", 3, "y resid: %f +/- %f (%ld of %ld)\n", stats->clippedMean, stats->clippedStdev, stats->clippedNvalues, y->n); 269 269 270 270 psFree (x); -
trunk/psModules/src/camera/pmFPA.c
r8246 r8669 12 12 * XXX: Should we implement non-linear cell->chip transforms? 13 13 * 14 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $15 * @date $Date: 2006-08- 09 02:37:07$14 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2006-08-29 21:39:44 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 38 38 // if this readout has a parent, drop that instance 39 39 if (readout->parent) { 40 psTrace("psModules.camera", 9, "Removing readout % lx from cell %lx...\n", (size_t)readout, (size_t)readout->parent);40 psTrace("psModules.camera", 9, "Removing readout %zd from cell %zd...\n", (size_t)readout, (size_t)readout->parent); 41 41 psArray *readouts = readout->parent->readouts; 42 42 for (int i = 0; i < readouts->n; i++) { … … 46 46 } 47 47 } 48 psTrace("psModules.camera", 9, "Freeing readout % lx\n", (size_t) readout);48 psTrace("psModules.camera", 9, "Freeing readout %zd\n", (size_t) readout); 49 49 psFree(readout->image); 50 50 psFree(readout->mask); … … 59 59 // if this cell has a parent, drop that instance 60 60 if (cell->parent) { 61 psTrace("psModules.camera", 9, "Removing cell % lx from chip %lx...\n", (size_t)cell, (size_t)cell->parent);61 psTrace("psModules.camera", 9, "Removing cell %zd from chip %zd...\n", (size_t)cell, (size_t)cell->parent); 62 62 psArray *cells = cell->parent->cells; 63 63 for (int i = 0; i < cells->n; i++) { … … 67 67 } 68 68 } 69 psTrace("psModules.camera", 9, "Freeing cell % lx\n", (size_t)cell);69 psTrace("psModules.camera", 9, "Freeing cell %zd\n", (size_t)cell); 70 70 pmCellFreeReadouts(cell); 71 71 psFree(cell->readouts); … … 81 81 // if this chip has a parent, drop that instance 82 82 if (chip->parent) { 83 psTrace("psModules.camera", 9, "Removing chip % lx from fpa %lx...\n", (size_t)chip, (size_t)chip->parent);83 psTrace("psModules.camera", 9, "Removing chip %zd from fpa %zd...\n", (size_t)chip, (size_t)chip->parent); 84 84 psArray *chips = chip->parent->chips; 85 85 for (int i = 0; i < chips->n; i++) { … … 90 90 } 91 91 92 psTrace("psModules.camera", 9, "Freeing chip % lx\n", (size_t)chip);92 psTrace("psModules.camera", 9, "Freeing chip %zd\n", (size_t)chip); 93 93 pmChipFreeCells(chip); 94 94 psFree(chip->cells); … … 109 109 static void FPAFree(pmFPA *fpa) 110 110 { 111 psTrace("psModules.camera", 9, "Freeing fpa % lx\n", (size_t)fpa);111 psTrace("psModules.camera", 9, "Freeing fpa %zd\n", (size_t)fpa); 112 112 113 113 // NULL the parent pointers … … 149 149 } 150 150 tmpReadout->parent = NULL; 151 psTrace("psModules.camera", 9, "Will now free readout % lx...\n", (size_t)tmpReadout);151 psTrace("psModules.camera", 9, "Will now free readout %zd...\n", (size_t)tmpReadout); 152 152 } 153 153 cell->readouts = psArrayRealloc(cell->readouts, 0); -
trunk/psModules/src/camera/pmFPACopy.c
r8246 r8669 289 289 psArray *sourceCells = source->cells; // The source cells 290 290 if (targetCells->n != sourceCells->n) { 291 psError(PS_ERR_IO, true, "Number of source cells (% d) differs from the number of target cells (%d)\n",291 psError(PS_ERR_IO, true, "Number of source cells (%ld) differs from the number of target cells (%ld)\n", 292 292 sourceCells->n, targetCells->n); 293 293 return false; … … 326 326 psArray *sourceChips = source->chips; // The source chips 327 327 if (targetChips->n != sourceChips->n) { 328 psError(PS_ERR_IO, true, "Number of source chips (% d) differs from the number of target chips (%d)\n",328 psError(PS_ERR_IO, true, "Number of source chips (%ld) differs from the number of target chips (%ld)\n", 329 329 sourceChips->n, targetChips->n); 330 330 return false; -
trunk/psModules/src/camera/pmFPAMosaic.c
r8246 r8669 586 586 good = false; 587 587 } 588 psTrace("psModules.camera", 5, "Cell % d: x0=%d y0=%d\n", index, x0Cell, y0Cell);588 psTrace("psModules.camera", 5, "Cell %ld: x0=%d y0=%d\n", index, x0Cell, y0Cell); 589 589 590 590 // Offset of the chip on the FPA … … 682 682 masks->data[index] = psMemIncrRefCounter(readout->mask); 683 683 684 psTrace("psModules.camera", 9, "Added cell (% x) %ld: %d,%d; %d,%d, %d,%d.\n", cell, index,684 psTrace("psModules.camera", 9, "Added cell (%p) %ld: %d,%d; %d,%d, %d,%d.\n", cell, index, 685 685 x0->data.S32[index], y0->data.S32[index], xBin->data.S32[index], yBin->data.S32[index], 686 686 xFlip->data.U8[index], yFlip->data.U8[index]); -
trunk/psModules/src/camera/pmFPAfile.c
r7727 r8669 218 218 } 219 219 if (view->chip >= in->chips->n) { 220 psError(PS_ERR_IO, true, "Requested chip == %d >= in->chips->n == % d", view->chip, in->chips->n);220 psError(PS_ERR_IO, true, "Requested chip == %d >= in->chips->n == %ld", view->chip, in->chips->n); 221 221 return false; 222 222 } … … 229 229 } 230 230 if (view->cell >= inChip->cells->n) { 231 psError(PS_ERR_IO, true, "Requested cell == %d>= inChip->cells->n == % d",231 psError(PS_ERR_IO, true, "Requested cell == %d>= inChip->cells->n == %ld", 232 232 view->cell, inChip->cells->n); 233 233 return false; … … 261 261 } 262 262 if (view->chip >= in->chips->n) { 263 psError(PS_ERR_IO, true, "Requested chip == %d >= in->chips->n == % d", view->chip, in->chips->n);263 psError(PS_ERR_IO, true, "Requested chip == %d >= in->chips->n == %ld", view->chip, in->chips->n); 264 264 return false; 265 265 } … … 272 272 } 273 273 if (view->cell >= inChip->cells->n) { 274 psError(PS_ERR_IO, true, "Requested cell == %d>= inChip->cells->n == % d",274 psError(PS_ERR_IO, true, "Requested cell == %d>= inChip->cells->n == %ld", 275 275 view->cell, inChip->cells->n); 276 276 return false; -
trunk/psModules/src/camera/pmFPAfileDefine.c
r8246 r8669 243 243 file->camera = pmConfigCameraByName(config, words->data[0]); 244 244 if (!file->camera) { 245 psError(PS_ERR_IO, false, "camera %s not found\n", words->data[0]);245 psError(PS_ERR_IO, false, "camera %s not found\n", (char *)words->data[0]); 246 246 psFree(words); 247 247 return NULL; … … 305 305 } 306 306 if (infiles->n < 1) { 307 psError(PS_ERR_IO, false, "Found n == % d files in %s in arguments\n", infiles->n, argname);307 psError(PS_ERR_IO, false, "Found n == %ld files in %s in arguments\n", infiles->n, argname); 308 308 return NULL; 309 309 } … … 318 318 format = pmConfigCameraFormatFromHeader (config, phu); 319 319 if (!format) { 320 psError(PS_ERR_IO, false, "Failed to read CCD format from %s\n", infiles->data[0]);320 psError(PS_ERR_IO, false, "Failed to read CCD format from %s\n", (char *)infiles->data[0]); 321 321 psFree(phu); 322 322 return NULL; … … 326 326 fpa = pmFPAConstruct (config->camera); 327 327 if (!fpa) { 328 psError(PS_ERR_IO, false, "Failed to construct FPA from %s", infiles->data[0]);328 psError(PS_ERR_IO, false, "Failed to construct FPA from %s", (char *)infiles->data[0]); 329 329 return NULL; 330 330 } … … 433 433 } 434 434 if (infiles->n <= entry) { 435 psError(PS_ERR_IO, false, "only % d files in %s in argument, entry %d requested\n", infiles->n, argname, entry);435 psError(PS_ERR_IO, false, "only %ld files in %s in argument, entry %d requested\n", infiles->n, argname, entry); 436 436 return NULL; 437 437 } … … 448 448 format = pmConfigCameraFormatFromHeader (config, phu); 449 449 if (!format) { 450 psError(PS_ERR_IO, false, "Failed to read CCD format from %s\n", infiles->data[0]);450 psError(PS_ERR_IO, false, "Failed to read CCD format from %s\n", (char *)infiles->data[0]); 451 451 psFree(phu); 452 452 return NULL; … … 456 456 fpa = pmFPAConstruct (config->camera); 457 457 if (!fpa) { 458 psError(PS_ERR_IO, false, "Failed to construct FPA from %s", infiles->data[0]);458 psError(PS_ERR_IO, false, "Failed to construct FPA from %s", (char *)infiles->data[0]); 459 459 return NULL; 460 460 } -
trunk/psModules/src/camera/pmFPAfileFitsIO.c
r7726 r8669 30 30 31 31 if (view->chip >= fpa->chips->n) { 32 psError(PS_ERR_IO, true, "Requested chip == %d >= fpa->chips->n == % d", view->chip, fpa->chips->n);32 psError(PS_ERR_IO, true, "Requested chip == %d >= fpa->chips->n == %ld", view->chip, fpa->chips->n); 33 33 return false; 34 34 } … … 41 41 42 42 if (view->cell >= chip->cells->n) { 43 psError(PS_ERR_IO, true, "Requested cell == %d >= chip->cells->n == % d", view->cell, chip->cells->n);43 psError(PS_ERR_IO, true, "Requested cell == %d >= chip->cells->n == %ld", view->cell, chip->cells->n); 44 44 return false; 45 45 } … … 93 93 94 94 if (view->chip >= fpa->chips->n) { 95 psError(PS_ERR_IO, true, "Requested chip == %d >= fpa->chips->n == % d", view->chip, fpa->chips->n);95 psError(PS_ERR_IO, true, "Requested chip == %d >= fpa->chips->n == %ld", view->chip, fpa->chips->n); 96 96 return false; 97 97 } … … 104 104 105 105 if (view->cell >= chip->cells->n) { 106 psError(PS_ERR_IO, true, "Requested cell == %d >= chip->cells->n == % d", view->cell, chip->cells->n);106 psError(PS_ERR_IO, true, "Requested cell == %d >= chip->cells->n == %ld", view->cell, chip->cells->n); 107 107 return false; 108 108 } … … 178 178 179 179 if (view->chip >= fpa->chips->n) { 180 psError(PS_ERR_IO, true, "Requested chip == %d >= fpa->chips->n == % d", view->chip, fpa->chips->n);180 psError(PS_ERR_IO, true, "Requested chip == %d >= fpa->chips->n == %ld", view->chip, fpa->chips->n); 181 181 return false; 182 182 } … … 190 190 191 191 if (view->cell >= chip->cells->n) { 192 psError(PS_ERR_IO, true, "Requested cell == %d >= chip->cells->n == % d", view->cell, chip->cells->n);192 psError(PS_ERR_IO, true, "Requested cell == %d >= chip->cells->n == %ld", view->cell, chip->cells->n); 193 193 return false; 194 194 } -
trunk/psModules/src/camera/pmHDUGenerate.c
r8582 r8669 252 252 numReadouts = readouts->n; 253 253 } else if (readouts->n != numReadouts) { 254 psError(PS_ERR_IO, true, "Number of readouts doesn't match: % d vs %d\n", readouts->n,254 psError(PS_ERR_IO, true, "Number of readouts doesn't match: %ld vs %d\n", readouts->n, 255 255 numReadouts); 256 256 return false; … … 336 336 337 337 if (biassecs->n != readout->bias->n) { 338 psLogMsg(__func__, PS_LOG_WARN, "Number of bias sections (% d) and number of biases (%d)"338 psLogMsg(__func__, PS_LOG_WARN, "Number of bias sections (%ld) and number of biases (%ld)" 339 339 " do not match.\n", biassecs->n, readout->bias->n); 340 340 } -
trunk/psModules/src/camera/pmHDUUtils.c
r8246 r8669 102 102 } 103 103 104 psTrace("psModules.camera", level + 1, "Format: % x\n", hdu->format);104 psTrace("psModules.camera", level + 1, "Format: %p\n", hdu->format); 105 105 if (header) { 106 106 if (hdu->header) { -
trunk/psModules/src/concepts/pmConcepts.c
r8246 r8669 189 189 } 190 190 191 psTrace("psModules.concepts", 3, "Writing concepts (% x %x %x): %x\n", fpa, chip, cell, source);191 psTrace("psModules.concepts", 3, "Writing concepts (%p %p %p): %d\n", fpa, chip, cell, source); 192 192 193 193 if (source & PM_CONCEPT_SOURCE_CAMERA) { … … 212 212 { 213 213 PS_ASSERT_PTR_NON_NULL(fpa, false); 214 psTrace("psModules.concepts", 5, "Blanking FPA concepts: % x %x\n", conceptsFPA, fpa->concepts);214 psTrace("psModules.concepts", 5, "Blanking FPA concepts: %p %p\n", conceptsFPA, fpa->concepts); 215 215 return conceptsBlank(&conceptsFPA, fpa->concepts); 216 216 } … … 225 225 { 226 226 PS_ASSERT_PTR_NON_NULL(fpa, false); 227 psTrace("psModules.concepts", 5, "Reading FPA concepts: % x %x\n", conceptsFPA, fpa->concepts);227 psTrace("psModules.concepts", 5, "Reading FPA concepts: %p %p\n", conceptsFPA, fpa->concepts); 228 228 bool success = conceptsRead(&conceptsFPA, fpa, NULL, NULL, &fpa->conceptsRead, source, db, fpa->concepts); 229 229 if (propagateDown) { … … 248 248 { 249 249 PS_ASSERT_PTR_NON_NULL(fpa, false); 250 psTrace("psModules.concepts", 5, "Writing FPA concepts: % x %x\n", conceptsFPA, fpa->concepts);250 psTrace("psModules.concepts", 5, "Writing FPA concepts: %p %p\n", conceptsFPA, fpa->concepts); 251 251 bool success = conceptsWrite(&conceptsFPA, fpa, NULL, NULL, source, db, fpa->concepts); 252 252 if (propagateDown) { … … 267 267 { 268 268 PS_ASSERT_PTR_NON_NULL(chip, false); 269 psTrace("psModules.concepts", 5, "Blanking chip concepts: % x %x\n", conceptsChip, chip->concepts);269 psTrace("psModules.concepts", 5, "Blanking chip concepts: %p %p\n", conceptsChip, chip->concepts); 270 270 return conceptsBlank(&conceptsChip, chip->concepts); 271 271 } … … 280 280 { 281 281 PS_ASSERT_PTR_NON_NULL(chip, false); 282 psTrace("psModules.concepts", 5, "Reading chip concepts: % x %x\n", conceptsChip, chip->concepts);282 psTrace("psModules.concepts", 5, "Reading chip concepts: %p %p\n", conceptsChip, chip->concepts); 283 283 pmFPA *fpa = chip->parent; // FPA to which the chip belongs 284 284 bool success = conceptsRead(&conceptsChip, fpa, chip, NULL, &chip->conceptsRead, source, db, … … 308 308 { 309 309 PS_ASSERT_PTR_NON_NULL(chip, false); 310 psTrace("psModules.concepts", 5, "Writing chip concepts: % x %x\n", conceptsChip, chip->concepts);310 psTrace("psModules.concepts", 5, "Writing chip concepts: %p %p\n", conceptsChip, chip->concepts); 311 311 pmFPA *fpa = chip->parent; // FPA to which the chip belongs 312 312 bool success = conceptsWrite(&conceptsChip, fpa, chip, NULL, source, db, chip->concepts); … … 331 331 { 332 332 PS_ASSERT_PTR_NON_NULL(cell, false); 333 psTrace("psModules.concepts", 5, "Blanking cell concepts: % x %x\n", conceptsCell, cell->concepts);333 psTrace("psModules.concepts", 5, "Blanking cell concepts: %p %p\n", conceptsCell, cell->concepts); 334 334 return conceptsBlank(&conceptsCell, cell->concepts); 335 335 } … … 343 343 { 344 344 PS_ASSERT_PTR_NON_NULL(cell, false); 345 psTrace("psModules.concepts", 5, "Reading cell concepts: % x %x\n", conceptsCell, cell->concepts);345 psTrace("psModules.concepts", 5, "Reading cell concepts: %p %p\n", conceptsCell, cell->concepts); 346 346 pmChip *chip = cell->parent; // Chip to which the cell belongs 347 347 pmFPA *fpa = chip->parent; // FPA to which the chip belongs … … 371 371 { 372 372 PS_ASSERT_PTR_NON_NULL(cell, false); 373 psTrace("psModules.concepts", 5, "Writing cell concepts: % x %x\n", conceptsCell, cell->concepts);373 psTrace("psModules.concepts", 5, "Writing cell concepts: %p %p\n", conceptsCell, cell->concepts); 374 374 pmChip *chip = cell->parent; // Chip to which the cell belongs 375 375 pmFPA *fpa = chip->parent; // FPA to which the chip belongs … … 704 704 psArray *sourceChips = source->chips; // Chips in source 705 705 if (targetChips->n != sourceChips->n) { 706 psError(PS_ERR_IO, true, "Number of chips in target (% d) and source (%d) differ --- unable to copy "706 psError(PS_ERR_IO, true, "Number of chips in target (%ld) and source (%ld) differ --- unable to copy " 707 707 "concepts.\n", targetChips->n, sourceChips->n); 708 708 return false; … … 720 720 psArray *sourceCells = sourceChip->cells; // Cells in source 721 721 if (targetCells->n != sourceCells->n) { 722 psError(PS_ERR_IO, true, "Number of cells in target (% d) and source (%d) differ for chip %d ---"722 psError(PS_ERR_IO, true, "Number of cells in target (%ld) and source (%ld) differ for chip %d ---" 723 723 " unable to copy concepts.\n", targetCells->n, sourceCells->n, i); 724 724 return false; -
trunk/psModules/src/concepts/pmConceptsRead.c
r8246 r8669 156 156 if (!conceptParse(spec, conceptItem, cameraFormat, target, NULL, NULL, cell)) { 157 157 psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to parse concept %s from camera " 158 "configuration. It has a weird %s.SOURCE: %s\n", name, name);158 "configuration.\n", name); 159 159 status = false; 160 160 } … … 199 199 psString name = specItem->name; // The concept name 200 200 psMetadataItem *conceptItem = psMetadataLookup(defaults, name); // The concept, or NULL 201 psTrace("psModules.concepts", 10, "%s: % x\n", name, conceptItem);201 psTrace("psModules.concepts", 10, "%s: %p\n", name, conceptItem); 202 202 if (conceptItem && conceptItem->type == PS_DATA_METADATA) { 203 203 psTrace("psModules.concepts", 5, "%s is of type METADATA.\n", name); -
trunk/psModules/src/concepts/pmConceptsStandard.c
r7743 r8669 69 69 sscanf(concept->data.V, "%d %d %f", &big, &medium, &small) != 3) 70 70 { 71 psError(PS_ERR_UNKNOWN, true, "Cannot interpret FPA.RA: %s\n", concept->data. V);71 psError(PS_ERR_UNKNOWN, true, "Cannot interpret FPA.RA: %s\n", concept->data.str); 72 72 break; 73 73 } -
trunk/psModules/src/concepts/pmConceptsWrite.c
r8246 r8669 140 140 switch (item->type) { 141 141 case PS_DATA_STRING: 142 psTrace("psModules.concepts", 9, "Writing header %s: %s\n", keyword, item->data. V);142 psTrace("psModules.concepts", 9, "Writing header %s: %s\n", keyword, item->data.str); 143 143 return psMetadataAddStr(hdu->header, PS_LIST_TAIL, keyword, PS_META_REPLACE, item->comment, 144 144 item->data.V); … … 190 190 psList *keys = psStringSplit(keywords, " ,;", true); // List of keywords 191 191 if (keys->n != values->n) { 192 psLogMsg(__func__, PS_LOG_WARN, "Number of keywords (% d) does not match number of values (%d).\n",192 psLogMsg(__func__, PS_LOG_WARN, "Number of keywords (%ld) does not match number of values (%ld).\n", 193 193 keys->n, values->n); 194 194 } … … 259 259 continue; 260 260 } 261 psTrace("psModules.concepts", 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.str); 262 262 writeHeader(hdu, cameraItem->data.V, formatted); 263 263 } else if (strcasecmp(source, "VALUE") == 0) { … … 384 384 continue; 385 385 } 386 psTrace("psModules.concepts", 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.str); 387 387 psMetadataItem *conceptItem = psMetadataLookup(concepts, name); // The item from the concepts 388 388 psMetadataItem *formatted = conceptFormat(spec, conceptItem, cameraFormat, fpa, chip, cell); -
trunk/psModules/src/config/pmConfig.c
r8624 r8669 3 3 * @author PAP, IfA 4 4 * 5 * @version $Revision: 1.4 0$ $Name: not supported by cvs2svn $6 * @date $Date: 2006-08-2 6 03:14:40$5 * @version $Revision: 1.41 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2006-08-29 21:39:44 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 931 931 932 932 if (globList.gl_pathc == 0) { 933 psError(PS_ERR_IO, true, "No match for %s", words->data[i]);933 psError(PS_ERR_IO, true, "No match for %s", (char *)words->data[i]); 934 934 return input; 935 935 } -
trunk/psModules/src/detrend/pmFlatNormalize.c
r8397 r8669 28 28 if (*expFluxesPtr) { 29 29 PS_ASSERT_VECTOR_TYPE(*expFluxesPtr, PS_TYPE_F32, false); 30 PS_ASSERT_VECTOR_SIZE(*expFluxesPtr, numExps, false);30 PS_ASSERT_VECTOR_SIZE(*expFluxesPtr, (long)numExps, false); 31 31 } else { 32 32 *expFluxesPtr = psVectorAlloc(numExps, PS_TYPE_F32); … … 43 43 if (*chipGainsPtr) { 44 44 PS_ASSERT_VECTOR_TYPE(*chipGainsPtr, PS_TYPE_F32, false); 45 PS_ASSERT_VECTOR_SIZE(*chipGainsPtr, numChips, false);45 PS_ASSERT_VECTOR_SIZE(*chipGainsPtr, (long)numChips, false); 46 46 } else { 47 47 *chipGainsPtr = psVectorAlloc(numChips, PS_TYPE_F32); -
trunk/psModules/src/detrend/pmFringeStats.c
r8246 r8669 3 3 * @author Eugene Magnier, IfA 4 4 * 5 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $6 * @date $Date: 2006-08- 09 02:37:07$5 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2006-08-29 21:39:44 $ 7 7 * 8 8 * Copyright 2004 IfA … … 115 115 PS_ASSERT_VECTOR_TYPE(x, PS_TYPE_F32, false); 116 116 PS_ASSERT_VECTOR_TYPE(y, PS_TYPE_F32, false); 117 PS_ASSERT_VECTOR_SIZE(x, numRows, false);118 PS_ASSERT_VECTOR_SIZE(y, numRows, false);117 PS_ASSERT_VECTOR_SIZE(x, (long)numRows, false); 118 PS_ASSERT_VECTOR_SIZE(y, (long)numRows, false); 119 119 if (mask) { 120 120 PS_ASSERT_VECTOR_NON_NULL(mask, false); 121 121 PS_ASSERT_VECTOR_TYPE(mask, PS_TYPE_U8, false); 122 PS_ASSERT_VECTOR_SIZE(mask, numRows, false);122 PS_ASSERT_VECTOR_SIZE(mask, (long)numRows, false); 123 123 } 124 124 … … 356 356 PS_ASSERT_VECTOR_TYPE(f, PS_TYPE_F32, false); 357 357 PS_ASSERT_VECTOR_TYPE(df, PS_TYPE_F32, false); 358 PS_ASSERT_VECTOR_SIZE(f, numRows, false);359 PS_ASSERT_VECTOR_SIZE(df, numRows, false);358 PS_ASSERT_VECTOR_SIZE(f, (long)numRows, false); 359 PS_ASSERT_VECTOR_SIZE(df, (long)numRows, false); 360 360 361 361 // We need to write: … … 388 388 PS_ASSERT_INT_POSITIVE(regions->nRequested, NULL); 389 389 PS_ASSERT_VECTORS_SIZE_EQUAL(regions->x, regions->y, NULL); 390 PS_ASSERT_VECTOR_SIZE(regions->x, regions->nRequested, NULL);390 PS_ASSERT_VECTOR_SIZE(regions->x, (long)regions->nRequested, NULL); 391 391 392 392 if (extname && strlen(extname) > 0) { -
trunk/psModules/src/detrend/pmNonLinear.c
r7604 r8669 10 10 * @author GLG, MHPCC 11 11 * 12 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $13 * @date $Date: 2006-0 6-21 03:21:16$12 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2006-08-29 21:39:44 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 80 80 tableSize = PS_MIN(inFlux->n, outFlux->n); 81 81 psLogMsg(__func__, PS_LOG_WARN, 82 "WARNING: pmNonLinear.c: pmNonLinearityLookup(): input vectors have different sizes (% d, %d)\n", inFlux->n, outFlux->n);82 "WARNING: pmNonLinear.c: pmNonLinearityLookup(): input vectors have different sizes (%ld, %ld)\n", inFlux->n, outFlux->n); 83 83 } 84 84 PS_ASSERT_VECTOR_TYPE(inFlux, PS_TYPE_F32, NULL); -
trunk/psModules/src/detrend/pmSubtractBias.c
r8246 r8669 11 11 * @author GLG, MHPCC 12 12 * 13 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $14 * @date $Date: 2006-08- 09 02:37:07$13 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2006-08-29 21:39:44 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 288 288 psStatsOptions statistic = psStatsSingleOption(overscanOpts->stat->options); // Statistic to use 289 289 if (statistic == 0) { 290 psError(PS_ERR_BAD_PARAMETER_VALUE, false, "Multiple or no statistics options set: % x\n",290 psError(PS_ERR_BAD_PARAMETER_VALUE, false, "Multiple or no statistics options set: %p\n", 291 291 overscanOpts->stat); 292 292 return false; -
trunk/psModules/src/imcombine/pmImageCombine.c
r8246 r8669 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $11 * @date $Date: 2006-08- 09 02:37:07$10 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2006-08-29 21:39:44 $ 12 12 * 13 13 * XXX: pmRejectPixels() has a known bug with the pmImageTransform() call. … … 50 50 PS_ASSERT_PTR_NON_NULL(images, combine); 51 51 psU32 numImages = images->n; 52 psTrace("psModules.imcombine", 3, "Calling pmCombineImages(% d)\n", images->n);52 psTrace("psModules.imcombine", 3, "Calling pmCombineImages(%ld)\n", images->n); 53 53 54 54 if (errors != NULL) { 55 55 if (images->n != errors->n) { 56 psError(PS_ERR_UNKNOWN, true, "images and errors args must have same length (% d != %d)\n",56 psError(PS_ERR_UNKNOWN, true, "images and errors args must have same length (%ld != %ld)\n", 57 57 images->n, errors->n); 58 58 return(combine); … … 61 61 if (masks != NULL) { 62 62 if (images->n != masks->n) { 63 psError(PS_ERR_UNKNOWN, true, "images and masks args must have same length (% d != %d)\n",63 psError(PS_ERR_UNKNOWN, true, "images and masks args must have same length (%ld != %ld)\n", 64 64 images->n, masks->n); 65 65 return(combine); … … 297 297 psFree(qpPtr); 298 298 299 psTrace("psModules.imcombine", 3, "Exiting pmCombineImages(% d)\n", images->n);299 psTrace("psModules.imcombine", 3, "Exiting pmCombineImages(%ld)\n", images->n); 300 300 return(combine); 301 301 } -
trunk/psModules/src/imcombine/pmImageSubtract.c
r8246 r8669 7 7 * @author GLG, MHPCC 8 8 * 9 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $10 * @date $Date: 2006-08- 09 02:37:07$9 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2006-08-29 21:39:44 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 191 191 PS_ASSERT_VECTOR_NON_NULL(orders, NULL); 192 192 psTrace("psModules.imcombine", 3, 193 "Calling pmSubtractionKernelsAllocISIS(% d, %d, %d, %d)\n",193 "Calling pmSubtractionKernelsAllocISIS(%ld, %ld, %d, %d)\n", 194 194 sigmas->n, orders->n, size, spatialOrder); 195 195 PS_ASSERT_INT_POSITIVE(size, NULL); … … 307 307 308 308 psTrace("psModules.imcombine", 3, 309 "Exiting pmSubtractionKernelsAllocISIS(% d, %d, %d, %d)\n",309 "Exiting pmSubtractionKernelsAllocISIS(%ld, %ld, %d, %d)\n", 310 310 sigmas->n, orders->n, size, spatialOrder); 311 311 return(tmp); … … 679 679 } 680 680 psS32 nBF = kernels->u->n; 681 PS_ASSERT_VECTOR_SIZE(solution, nBF+1, NULL);681 PS_ASSERT_VECTOR_SIZE(solution, (long)nBF+1, NULL); 682 682 683 683 psS32 numCols = input->numCols; … … 826 826 } else { 827 827 PS_ASSERT_VECTOR_TYPE(stampVector, PS_TYPE_F64, false); 828 PS_ASSERT_VECTOR_SIZE(stampVector, numSolveParams, false);828 PS_ASSERT_VECTOR_SIZE(stampVector, (long)numSolveParams, false); 829 829 } 830 830 psVectorInit(stampVector, 0.0); … … 1038 1038 if (solution != NULL) { 1039 1039 PS_ASSERT_VECTOR_TYPE(solution, PS_TYPE_F64, NULL); 1040 PS_ASSERT_VECTOR_SIZE(solution, size, NULL);1040 PS_ASSERT_VECTOR_SIZE(solution, (long)size, NULL); 1041 1041 } else { 1042 1042 solution = psVectorAlloc(size, PS_TYPE_F64); … … 1070 1070 psVector *stampVector = stamp->vector; 1071 1071 PS_ASSERT_VECTOR_TYPE(stampVector, PS_TYPE_F64, NULL); 1072 PS_ASSERT_VECTOR_SIZE(stampVector, size, NULL);1072 PS_ASSERT_VECTOR_SIZE(stampVector, (long)size, NULL); 1073 1073 PS_ASSERT_IMAGE_TYPE(stampMatrix, PS_TYPE_F64, NULL); 1074 1074 PS_ASSERT_IMAGE_SIZE(stampMatrix, size, size, NULL); … … 1177 1177 } 1178 1178 psS32 nBF = kernels->u->n; 1179 PS_ASSERT_VECTOR_SIZE(solution, nBF+1, NULL);1179 PS_ASSERT_VECTOR_SIZE(solution, (long)nBF+1, NULL); 1180 1180 1181 1181 psS32 kernelSize = kernels->size; … … 1269 1269 1270 1270 psS32 nBF = kernels->u->n; 1271 PS_ASSERT_VECTOR_SIZE(solution, nBF+1, false);1271 PS_ASSERT_VECTOR_SIZE(solution, (long)nBF+1, false); 1272 1272 1273 1273 psVector *deviations = CalculateDeviations(NULL, -
trunk/psModules/src/imcombine/pmReadoutCombine.c
r8246 r8669 5 5 * @author GLG, MHPCC 6 6 * 7 * @version $Revision: 1.2 3$ $Name: not supported by cvs2svn $8 * @date $Date: 2006-08- 09 02:37:07$7 * @version $Revision: 1.24 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2006-08-29 21:39:44 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 136 136 137 137 if (!readout || !readout->image) { 138 psError(PS_ERR_UNEXPECTED_NULL, true, "Input readout % d is NULL or has NULL image.\n", i);138 psError(PS_ERR_UNEXPECTED_NULL, true, "Input readout %ld is NULL or has NULL image.\n", i); 139 139 return false; 140 140 } … … 151 151 if (readout->weight) { 152 152 if (valid && !haveWeights) { 153 psLogMsg(__func__, PS_LOG_WARN, "Readout % d has a weight map, but others don't --- "153 psLogMsg(__func__, PS_LOG_WARN, "Readout %ld has a weight map, but others don't --- " 154 154 "weights ignored.\n", i); 155 155 } else { … … 157 157 } 158 158 } else if (haveWeights) { 159 psLogMsg(__func__, PS_LOG_WARN, "Readout % d doesn't have a weight map, but others do --- "159 psLogMsg(__func__, PS_LOG_WARN, "Readout %ld doesn't have a weight map, but others do --- " 160 160 "weights ignored.\n", i); 161 161 haveWeights = false; … … 168 168 minInputCols = PS_MIN(minInputCols, readout->col0); 169 169 maxInputCols = PS_MAX(maxInputCols, readout->col0 + readout->image->numCols); 170 psTrace("psModules.imcombine", 7, "Readout % d: offset %d,%d; size %dx%d\n", i,170 psTrace("psModules.imcombine", 7, "Readout %ld: offset %d,%d; size %dx%d\n", i, 171 171 readout->col0, readout->row0, readout->image->numCols, readout->image->numRows); 172 172 } -
trunk/psModules/src/objects/pmPSFtry.c
r8436 r8669 5 5 * @author EAM, IfA 6 6 * 7 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $8 * @date $Date: 2006-08-2 1 14:52:02$7 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2006-08-29 21:39:44 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 128 128 Next ++; 129 129 } 130 psLogMsg ("psphot.psftry", 4, "fit ext: %f sec for %d of % d sources\n", psTimerMark ("fit"), Next, sources->n);131 psTrace ("psphot.psftry", 3, "keeping %d of % d PSF candidates (EXT)\n", Next, sources->n);130 psLogMsg ("psphot.psftry", 4, "fit ext: %f sec for %d of %ld sources\n", psTimerMark ("fit"), Next, sources->n); 131 psTrace ("psphot.psftry", 3, "keeping %d of %ld PSF candidates (EXT)\n", Next, sources->n); 132 132 133 133 // stage 2: construct a psf (pmPSF) from this collection of model fits … … 184 184 psfTry->psf->nPSFstars = Npsf; 185 185 186 psLogMsg ("psphot.psftry", 4, "fit psf: %f sec for %d of % d sources\n", psTimerMark ("fit"), Npsf, sources->n);187 psTrace ("psphot.psftry", 3, "keeping %d of % d PSF candidates (PSF)\n", Npsf, sources->n);186 psLogMsg ("psphot.psftry", 4, "fit psf: %f sec for %d of %ld sources\n", psTimerMark ("fit"), Npsf, sources->n); 187 psTrace ("psphot.psftry", 3, "keeping %d of %ld PSF candidates (PSF)\n", Npsf, sources->n); 188 188 189 189 // measure the chi-square trend as a function of flux (PAR[1]) -
trunk/psModules/src/objects/pmPeaks.c
r8422 r8669 6 6 * @author EAM, IfA: significant modifications. 7 7 * 8 * @version $Revision: 1. 7$ $Name: not supported by cvs2svn $9 * @date $Date: 2006-08- 18 14:13:29$8 * @version $Revision: 1.8 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2006-08-29 21:39:44 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 543 543 output->n = 0; 544 544 545 psTrace (".pmObjects.pmCullPeaks", 3, "list size is % d\n", peaks->n);545 psTrace (".pmObjects.pmCullPeaks", 3, "list size is %ld\n", peaks->n); 546 546 547 547 for (int i = 0; i < peaks->n; i++) { -
trunk/psModules/src/objects/pmSourceIO.c
r7725 r8669 3 3 * @author EAM, IfA 4 4 * 5 * @version $Revision: 1. 8$ $Name: not supported by cvs2svn $6 * @date $Date: 2006-0 6-28 19:21:00$5 * @version $Revision: 1.9 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2006-08-29 21:39:44 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 70 70 71 71 if (view->chip >= fpa->chips->n) { 72 psError(PS_ERR_UNKNOWN, false, "Writing chip == %d (>= chips->n == % d)", view->chip, fpa->chips->n);72 psError(PS_ERR_UNKNOWN, false, "Writing chip == %d (>= chips->n == %ld)", view->chip, fpa->chips->n); 73 73 return false; 74 74 } … … 84 84 85 85 if (view->cell >= chip->cells->n) { 86 psError(PS_ERR_UNKNOWN, false, "Writing cell == %d (>= cells->n == % d)",86 psError(PS_ERR_UNKNOWN, false, "Writing cell == %d (>= cells->n == %ld)", 87 87 view->cell, chip->cells->n); 88 88 return false; … … 100 100 101 101 if (view->readout >= cell->readouts->n) { 102 psError(PS_ERR_UNKNOWN, false, "Writing readout == %d (>= readouts->n == % d)",102 psError(PS_ERR_UNKNOWN, false, "Writing readout == %d (>= readouts->n == %ld)", 103 103 view->readout, cell->readouts->n); 104 104 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
