Changeset 23487
- Timestamp:
- Mar 23, 2009, 9:42:42 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 43 edited
-
ippTools/src/pxerrors.c (modified) (2 diffs)
-
ippTools/src/pxtools.h (modified) (8 diffs)
-
magic/remove/src/streaksio.c (modified) (14 diffs)
-
magic/remove/src/streaksio.h (modified) (1 diff)
-
ppSim/src/ppSim.h (modified) (3 diffs)
-
ppSim/src/ppSimRandomGaussian.c (modified) (6 diffs)
-
ppSim/src/ppSimStars.c (modified) (2 diffs)
-
psModules/src/astrom/pmAstrometryDistortion.c (modified) (3 diffs)
-
psModules/src/astrom/pmAstrometryDistortion.h (modified) (1 diff)
-
psModules/src/astrom/pmAstrometryVisual.c (modified) (1 diff)
-
psModules/src/astrom/pmAstrometryVisual.h (modified) (1 diff)
-
psModules/src/camera/pmFPAfile.c (modified) (1 diff)
-
psModules/src/camera/pmFPAfile.h (modified) (1 diff)
-
psModules/src/detrend/pmDetrendDB.h (modified) (1 diff)
-
psModules/src/detrend/pmDetrendThreads.h (modified) (1 diff)
-
psModules/src/detrend/pmShutterCorrection.c (modified) (1 diff)
-
psModules/src/detrend/pmShutterCorrection.h (modified) (1 diff)
-
psModules/src/extras/pmKapaPlots.c (modified) (1 diff)
-
psModules/src/extras/pmKapaPlots.h (modified) (2 diffs)
-
psModules/src/extras/psPipe.c (modified) (1 diff)
-
psModules/src/extras/psPipe.h (modified) (2 diffs)
-
psModules/src/imcombine/pmSubtractionVisual.c (modified) (2 diffs)
-
psModules/src/imcombine/pmSubtractionVisual.h (modified) (1 diff)
-
psModules/src/objects/pmDetections.c (modified) (1 diff)
-
psModules/src/objects/pmDetections.h (modified) (1 diff)
-
psModules/src/objects/pmMoments.c (modified) (1 diff)
-
psModules/src/objects/pmMoments.h (modified) (1 diff)
-
psModules/src/objects/pmPSF.c (modified) (1 diff)
-
psModules/src/objects/pmPSF.h (modified) (1 diff)
-
psModules/src/objects/pmSource.h (modified) (1 diff)
-
psModules/src/objects/pmSourceExtendedPars.c (modified) (6 diffs)
-
psModules/src/objects/pmSourceExtendedPars.h (modified) (1 diff)
-
psModules/src/objects/pmSourceFitSet.c (modified) (3 diffs)
-
psModules/src/objects/pmSourceFitSet.h (modified) (3 diffs)
-
psModules/src/objects/pmSourcePlots.c (modified) (1 diff)
-
psModules/src/objects/pmSourcePlots.h (modified) (1 diff)
-
psphot/src/psphotCleanup.c (modified) (1 diff)
-
psphot/src/psphotDetect.h (modified) (1 diff)
-
psphot/src/psphotStandAlone.h (modified) (1 diff)
-
pswarp/src/pswarp.h (modified) (3 diffs)
-
pswarp/src/pswarpMapGrid.c (modified) (9 diffs)
-
pswarp/src/pswarpSetThreads.c (modified) (1 diff)
-
pswarp/src/pswarpTransformTile.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/pxerrors.c
r17611 r23487 24 24 #include "pxtools.h" 25 25 26 psExit pxerrorGetExitStatus () {26 psExit pxerrorGetExitStatus(void) { 27 27 28 28 psErrorCode err = psErrorCodeLast (); … … 38 38 default: 39 39 return PS_EXIT_UNKNOWN_ERROR; 40 } 40 } 41 41 return PS_EXIT_UNKNOWN_ERROR; 42 42 } -
trunk/ippTools/src/pxtools.h
r18561 r23487 53 53 bool pxSetFaultCode(psDB *dbh, const char *tableName, psMetadata *where, psS16 code); 54 54 55 psExit pxerrorGetExitStatus ();55 psExit pxerrorGetExitStatus(void); 56 56 57 57 void pxUsage(FILE *stream, int argc, char **argv, const char *modeName, psMetadata *argSet); … … 303 303 #define PXOPT_ADD_WHERE_BOOL(name) \ 304 304 { \ 305 bool value = false; \305 bool value = false; \ 306 306 bool status = false; \ 307 307 if ((value = psMetadataLookupBool(&status, config->args, "-" #name))) { \ … … 370 370 } 371 371 372 #define PXOPT_ADD_WHERE_BOOL_ALIAS(flag,name) \372 #define PXOPT_ADD_WHERE_BOOL_ALIAS(flag,name) \ 373 373 { \ 374 374 bool value = 0; \ 375 375 bool status = false; \ 376 if ((value = psMetadataLookupBool(&status, config->args, flag))) { \376 if ((value = psMetadataLookupBool(&status, config->args, flag))) { \ 377 377 if (!psMetadataAddBOOL(config->where, PS_LIST_TAIL, name, 0, "==", value)) { \ 378 378 psError(PS_ERR_UNKNOWN, false, "failed to add item %s", flag); \ … … 383 383 } 384 384 385 #define PXOPT_ADD_WHERE_S16_ALIAS(flag,name) \385 #define PXOPT_ADD_WHERE_S16_ALIAS(flag,name) \ 386 386 { \ 387 387 psS16 s16 = 0; \ 388 388 bool status = false; \ 389 if ((s16= psMetadataLookupS16(&status, config->args, flag))) { \389 if ((s16= psMetadataLookupS16(&status, config->args, flag))) { \ 390 390 if (!psMetadataAddS16(config->where, PS_LIST_TAIL, name, 0, "==", s16)) { \ 391 391 psError(PS_ERR_UNKNOWN, false, "failed to add item %s", flag); \ … … 396 396 } 397 397 398 #define PXOPT_ADD_WHERE_S32_ALIAS(flag,name) \398 #define PXOPT_ADD_WHERE_S32_ALIAS(flag,name) \ 399 399 { \ 400 400 psS32 s32 = 0; \ 401 401 bool status = false; \ 402 if ((s32= psMetadataLookupS32(&status, config->args, flag))) { \402 if ((s32= psMetadataLookupS32(&status, config->args, flag))) { \ 403 403 if (!psMetadataAddS32(config->where, PS_LIST_TAIL, name, 0, "==", s32)) { \ 404 404 psError(PS_ERR_UNKNOWN, false, "failed to add item %s", flag); \ … … 409 409 } 410 410 411 #define PXOPT_ADD_WHERE_S64_ALIAS(flag,name) \411 #define PXOPT_ADD_WHERE_S64_ALIAS(flag,name) \ 412 412 { \ 413 413 psS64 s64 = 0; \ 414 414 bool status = false; \ 415 if ((s64= psMetadataLookupS64(&status, config->args, flag))) { \415 if ((s64= psMetadataLookupS64(&status, config->args, flag))) { \ 416 416 if (!psMetadataAddS64(config->where, PS_LIST_TAIL, name, 0, "==", s64)) { \ 417 417 psError(PS_ERR_UNKNOWN, false, "failed to add item %s", flag); \ … … 422 422 } 423 423 424 #define PXOPT_ADD_WHERE_F32_ALIAS(flag,name) \424 #define PXOPT_ADD_WHERE_F32_ALIAS(flag,name) \ 425 425 { \ 426 426 psF32 var = 0; \ 427 427 bool status = false; \ 428 if ((var = psMetadataLookupF32(&status, config->args, flag))) { \428 if ((var = psMetadataLookupF32(&status, config->args, flag))) { \ 429 429 if (!isnan(var)) { \ 430 430 if (!psMetadataAddF32(config->where, PS_LIST_TAIL, name, 0, "==", var)) { \ … … 437 437 } 438 438 439 #define PXOPT_ADD_WHERE_F64_ALIAS(flag,name) \439 #define PXOPT_ADD_WHERE_F64_ALIAS(flag,name) \ 440 440 { \ 441 441 psF64 var = 0; \ 442 442 bool status = false; \ 443 if ((var = psMetadataLookupF64(&status, config->args, flag))) { \443 if ((var = psMetadataLookupF64(&status, config->args, flag))) { \ 444 444 if (!isnan(var)) { \ 445 445 if (!psMetadataAddF64(config->where, PS_LIST_TAIL, name, 0, "==", var)) { \ -
trunk/magic/remove/src/streaksio.c
r21481 r23487 75 75 } 76 76 } 77 77 78 78 psElemType tileType; // Type corresponding to "long" 79 79 if (sizeof(long) == sizeof(psS64)) { … … 214 214 215 215 // XXX: I should probably be using a different file rule for diffs, but I don't 216 // have an input rule that takes a diff image. 216 // have an input rule that takes a diff image. 217 217 // Since they're skycells, this should be compatible 218 218 sfile->pmfile = pmFPAfileDefineFromArgs(&status, config, "PPSUB.INPUT", "INPUT"); … … 229 229 psFree(view); 230 230 sfile->resolved_name = psStringCopy(sfile->pmfile->filename); 231 231 232 232 // copy header from fpu 233 233 sfile->header = (psMetadata*) psMemIncrRefCounter(sfile->pmfile->fpa->hdu->header); … … 248 248 } 249 249 250 // if outputFilename is not null name it contains the "directory" 250 // if outputFilename is not null name it contains the "directory" 251 251 // and outputFilename is the basename name of the file (or nebulous key) 252 252 // and the file is to be opened for writing … … 293 293 bool status = psFitsMoveExtNum(sfile->fits, extnum, false); 294 294 if (!status) { 295 psError(PS_ERR_IO, false, 295 psError(PS_ERR_IO, false, 296 296 "failed to move to extension %d for %s", extnum, sfile->resolved_name); 297 297 streaksExit("", PS_EXIT_DATA_ERROR); … … 427 427 return true; 428 428 } else if (in->nHDU == 1) { 429 // no extensions in the file, can just return true? For now require 429 // no extensions in the file, can just return true? For now require 430 430 // at least one dimension 431 431 int naxis = psMetadataLookupS32(&status, in->header, "NAXIS"); … … 524 524 in->header = psFitsReadHeader(NULL, in->fits); 525 525 if (!in->header) { 526 psError(PS_ERR_IO, false, "failed to read header from %s extnum: %d", 526 psError(PS_ERR_IO, false, "failed to read header from %s extnum: %d", 527 527 in->resolved_name, extnum); 528 528 streaksExit("", PS_EXIT_DATA_ERROR); … … 541 541 in->image = psFitsReadImage(in->fits, region, 0); 542 542 if (!in->image) { 543 psError(PS_ERR_IO, false, "failed to read image from %s extnum: %d", 543 psError(PS_ERR_IO, false, "failed to read image from %s extnum: %d", 544 544 in->resolved_name, extnum); 545 545 streaksExit("", PS_EXIT_DATA_ERROR); … … 559 559 in->imagecube = psFitsReadImageCube(in->fits, region); 560 560 if (!in->imagecube) { 561 psError(PS_ERR_IO, false, "failed to read image cube from %s extnum: %d", 561 psError(PS_ERR_IO, false, "failed to read image cube from %s extnum: %d", 562 562 in->resolved_name, extnum); 563 563 streaksExit("", PS_EXIT_DATA_ERROR); … … 631 631 // XXX abort? 632 632 return; 633 } 633 } 634 634 if (!extname) { 635 635 psWarning("extnum %d has no image and extname not defined in %s", … … 689 689 } 690 690 if (!psFitsWriteImage(sfile->fits, sfile->header, sfile->image, 0, extname)) { 691 psError(PS_ERR_IO, false, "failed to write image to %s extnum: %d", 691 psError(PS_ERR_IO, false, "failed to write image to %s extnum: %d", 692 692 sfile->resolved_name, extnum); 693 693 streaksExit("", PS_EXIT_DATA_ERROR); … … 706 706 } 707 707 if (!psFitsWriteImageCube(sfile->fits, sfile->header, imagecube, extname)) { 708 psError(PS_ERR_IO, false, "failed to write image to %s extnum: %d", 708 psError(PS_ERR_IO, false, "failed to write image to %s extnum: %d", 709 709 sfile->resolved_name, extnum); 710 710 streaksExit("", PS_EXIT_DATA_ERROR); … … 732 732 } 733 733 if (sfile->fits && !psFitsClose(sfile->fits)) { 734 psError(PS_ERR_IO, false, "failed to close image to %s", 734 psError(PS_ERR_IO, false, "failed to close image to %s", 735 735 sfile->resolved_name); 736 736 streaksExit("", PS_EXIT_DATA_ERROR); … … 1030 1030 1031 1031 void 1032 streaksNebulousCleanup( )1032 streaksNebulousCleanup(void) 1033 1033 { 1034 1034 nebServerFree(ourNebServer); -
trunk/magic/remove/src/streaksio.h
r21481 r23487 30 30 bool swapOutputsToInputs(streakFiles *sf); 31 31 bool deleteTemps(streakFiles *sf); 32 void streaksNebulousCleanup( );32 void streaksNebulousCleanup(void); 33 33 34 34 #endif // STREAKS_IO_H -
trunk/ppSim/src/ppSim.h
r23465 r23487 67 67 } ppSimGalaxy; 68 68 69 ppSimStar *ppSimStarAlloc ();70 ppSimGalaxy *ppSimGalaxyAlloc ();69 ppSimStar *ppSimStarAlloc(void); 70 ppSimGalaxy *ppSimGalaxyAlloc(void); 71 71 72 72 /// Parse command-line arguments … … 136 136 137 137 // add a bad CTE region 138 bool ppSimBadCTE(psImage *image, // Signal image, modified and returned139 const pmConfig *config // configuration138 bool ppSimBadCTE(psImage *image, // Signal image, modified and returned 139 const pmConfig *config // configuration 140 140 ); 141 141 … … 189 189 double ppSimRandomGaussian (const psRandom *rnd, double mean, double sigma); 190 190 double ppSimRandomGaussianNorm (const psRandom *rnd); 191 void ppSimRandomGaussianFree( );191 void ppSimRandomGaussianFree(void); 192 192 193 193 bool ppSimPhotomFiles (pmConfig *config, pmFPAfile *fakeFile, pmFPAfile *forceFile); -
trunk/ppSim/src/ppSimRandomGaussian.c
r18011 r23487 29 29 30 30 /* integrate a gaussian from -5 sigma to +5 sigma */ 31 void p_ppSimRandomGaussianInit ( ) {32 31 void p_ppSimRandomGaussianInit (void) { 32 33 33 int i; 34 34 long A, B; 35 35 double val, x, dx, dx1, dx2, dx3, df; 36 36 double mean, sigma; 37 37 38 38 /* no need to generate this if it already exists */ 39 39 if (gaussint) return; … … 42 42 for (B = 0; A == time(NULL); B++); 43 43 srand48(B); 44 44 45 45 Ngaussint = 0x1000; 46 46 ppSimRandomGaussianAlloc (Ngaussint + 1); … … 53 53 mean = 0.0; 54 54 sigma = 1.0; 55 55 56 56 for (i = 0, x = -7.0; (i < Ngaussint) && (x < 7.0); x += dx) { 57 df = (3.0*p_ppSimGaussian(x , mean, sigma) + 57 df = (3.0*p_ppSimGaussian(x , mean, sigma) + 58 58 9.0*p_ppSimGaussian(x+dx1, mean, sigma) + 59 9.0*p_ppSimGaussian(x+dx2, mean, sigma) + 59 9.0*p_ppSimGaussian(x+dx2, mean, sigma) + 60 60 3.0*p_ppSimGaussian(x+dx3, mean, sigma)) * (dx1/8.0); 61 61 val += df; … … 67 67 } 68 68 69 // XXX we are using drand48() rather than the random var supplied by rnd 69 // XXX we are using drand48() rather than the random var supplied by rnd 70 70 double ppSimRandomGaussian (const psRandom *rnd, double mean, double sigma) { 71 71 72 72 int i; 73 73 double y; 74 74 75 75 if (gaussint == NULL) { 76 76 p_ppSimRandomGaussianInit (); … … 80 80 i = Ngaussint*y; 81 81 y = gaussint[i]*sigma + mean; 82 82 83 83 return (y); 84 84 85 85 } 86 87 // XXX we are using drand48() rather than the random var supplied by rnd 86 87 // XXX we are using drand48() rather than the random var supplied by rnd 88 88 double ppSimRandomGaussianNorm (const psRandom *rnd) { 89 89 90 90 int i; 91 91 double y; 92 92 93 93 if (gaussint == NULL) { 94 94 p_ppSimRandomGaussianInit (); … … 98 98 i = Ngaussint*y; 99 99 y = gaussint[i]; 100 100 101 101 return (y); 102 102 } -
trunk/ppSim/src/ppSimStars.c
r17557 r23487 6 6 } 7 7 8 ppSimStar *ppSimStarAlloc () {8 ppSimStar *ppSimStarAlloc(void) { 9 9 10 10 ppSimStar *star = (ppSimStar *) psAlloc(sizeof(ppSimStar)); … … 19 19 } 20 20 21 ppSimGalaxy *ppSimGalaxyAlloc () {21 ppSimGalaxy *ppSimGalaxyAlloc(void) { 22 22 23 23 ppSimGalaxy *galaxy = (ppSimGalaxy *) psAlloc(sizeof(ppSimGalaxy)); -
trunk/psModules/src/astrom/pmAstrometryDistortion.c
r21183 r23487 40 40 } 41 41 42 pmAstromGradient *pmAstromGradientAlloc ( )42 pmAstromGradient *pmAstromGradientAlloc (void) 43 43 { 44 44 … … 126 126 grad = pmAstromGradientAlloc (); 127 127 128 // XXX psTraceSetLevel("psLib.math.psVectorClipFitPolynomial2D", 7);128 // XXX psTraceSetLevel("psLib.math.psVectorClipFitPolynomial2D", 7); 129 129 130 130 // fit the collection of positions and offsets with a local 1st order gradient … … 138 138 grad->dTPdM.x = local->coeff[0][1]; 139 139 140 // XXX psTraceSetLevel("psLib.math.psVectorClipFitPolynomial2D", 0);140 // XXX psTraceSetLevel("psLib.math.psVectorClipFitPolynomial2D", 0); 141 141 142 142 // fit the collection of positions and offsets with a local 1st order gradient -
trunk/psModules/src/astrom/pmAstrometryDistortion.h
r12486 r23487 27 27 pmAstromGradient; 28 28 29 pmAstromGradient *pmAstromGradientAlloc ( );29 pmAstromGradient *pmAstromGradientAlloc (void); 30 30 31 31 /* The following function determines the position residual, in the tangent -
trunk/psModules/src/astrom/pmAstrometryVisual.c
r23242 r23487 47 47 /* Initialization Routines */ 48 48 49 bool pmAstromVisualClose( )49 bool pmAstromVisualClose(void) 50 50 { 51 51 if(kapa != -1) -
trunk/psModules/src/astrom/pmAstrometryVisual.h
r23242 r23487 26 26 /** Close plotting windows at the end of a run 27 27 * @return true for success */ 28 bool pmAstromVisualClose( );28 bool pmAstromVisualClose(void); 29 29 30 30 -
trunk/psModules/src/camera/pmFPAfile.c
r23358 r23487 58 58 } 59 59 60 pmFPAfile *pmFPAfileAlloc( )60 pmFPAfile *pmFPAfileAlloc(void) 61 61 { 62 62 pmFPAfile *file = psAlloc(sizeof(pmFPAfile)); -
trunk/psModules/src/camera/pmFPAfile.h
r23358 r23487 115 115 116 116 // allocate an empty pmFPAfile structure 117 pmFPAfile *pmFPAfileAlloc ();117 pmFPAfile *pmFPAfileAlloc(void); 118 118 119 119 // select the readout from the named pmFPAfile; if the named file does not exist, -
trunk/psModules/src/detrend/pmDetrendDB.h
r23268 r23487 63 63 64 64 pmDetrendSelectOptions *pmDetrendSelectOptionsAlloc(const char *camera, psTime time, pmDetrendType type); 65 pmDetrendSelectResults *pmDetrendSelectResultsAlloc( );65 pmDetrendSelectResults *pmDetrendSelectResultsAlloc(void); 66 66 pmDetrendSelectResults *pmDetrendSelect (const pmDetrendSelectOptions *options, const pmConfig *config); 67 67 char *pmDetrendFile (const char *detID, const char *classID, const pmConfig *config); -
trunk/psModules/src/detrend/pmDetrendThreads.h
r18893 r23487 18 18 19 19 /// get the requested number of scan rows per thread 20 int pmDetrendGetScanRows ();20 int pmDetrendGetScanRows(void); 21 21 22 22 /// @} -
trunk/psModules/src/detrend/pmShutterCorrection.c
r23259 r23487 71 71 } 72 72 73 pmShutterCorrection *pmShutterCorrectionAlloc( )73 pmShutterCorrection *pmShutterCorrectionAlloc(void) 74 74 { 75 75 pmShutterCorrection *corr = (pmShutterCorrection*)psAlloc(sizeof(pmShutterCorrection)); -
trunk/psModules/src/detrend/pmShutterCorrection.h
r21509 r23487 69 69 70 70 /// Allocator for shutter correction parameters 71 pmShutterCorrection *pmShutterCorrectionAlloc( );71 pmShutterCorrection *pmShutterCorrectionAlloc(void); 72 72 73 73 /// Guess a shutter correction, based on plot of counts vs exposure time -
trunk/psModules/src/extras/pmKapaPlots.c
r13896 r23487 47 47 } 48 48 49 bool pmKapaClose ( )49 bool pmKapaClose (void) 50 50 { 51 51 -
trunk/psModules/src/extras/pmKapaPlots.h
r12696 r23487 1 1 /* @file pmKapaPlots.h 2 * @brief functions to make plots with the external program 'kapa' 2 * @brief functions to make plots with the external program 'kapa' 3 3 * 4 4 * @author EAM, IfA … … 17 17 // move to psLib or psModules 18 18 int pmKapaOpen (bool showWindow); 19 bool pmKapaClose ();19 bool pmKapaClose(void); 20 20 bool pmKapaPlotVectorPair (psVector *xVec, psVector *yVec); 21 21 -
trunk/psModules/src/extras/psPipe.c
r12888 r23487 35 35 } 36 36 37 psPipe *psPipeAlloc ( )37 psPipe *psPipeAlloc (void) 38 38 { 39 39 psPipe *pipe = (psPipe *)psAlloc(sizeof(psPipe)); -
trunk/psModules/src/extras/psPipe.h
r11253 r23487 1 1 /* @file psPipe.h 2 * @brief 3-stream pipe 2 * @brief 3-stream pipe 3 3 * 4 4 * @author EAM, IfA … … 26 26 27 27 // psPipe functions 28 psPipe *psPipeAlloc ( );28 psPipe *psPipeAlloc (void); 29 29 psPipe *psPipeOpen (char *command); 30 30 int psPipeClose (psPipe *pipe); -
trunk/psModules/src/imcombine/pmSubtractionVisual.c
r23242 r23487 44 44 45 45 /** destroy windows at the end of a run*/ 46 bool pmSubtractionVisualClose( )46 bool pmSubtractionVisualClose(void) 47 47 { 48 48 if(kapa != -1) … … 256 256 257 257 #else 258 bool pmSubtractionVisualClose( ) {return true;}258 bool pmSubtractionVisualClose(void) {return true;} 259 259 bool pmSubtractionVisualPlotConvKernels(psImage *convKernels) {return true;} 260 260 bool pmSubtractionVisualPlotStamps(pmSubtractionStampList *stamps, pmReadout *ro) {return true;} -
trunk/psModules/src/imcombine/pmSubtractionVisual.h
r23242 r23487 2 2 #define PM_SUBTRACTION_VISUAL_H 3 3 4 bool pmSubtractionVisualClose( );4 bool pmSubtractionVisualClose(void); 5 5 bool pmSubtractionVisualPlotConvKernels(psImage *convKernels); 6 6 bool pmSubtractionVisualPlotStamps(pmSubtractionStampList *stamps, pmReadout *ro); -
trunk/psModules/src/objects/pmDetections.c
r18828 r23487 30 30 31 31 // generate a pmDetections container with empty (allocated) footprints and peaks containers 32 pmDetections *pmDetectionsAlloc( ) {32 pmDetections *pmDetectionsAlloc(void) { 33 33 34 34 pmDetections *detections = (pmDetections *)psAlloc(sizeof(pmDetections)); -
trunk/psModules/src/objects/pmDetections.h
r18828 r23487 20 20 */ 21 21 typedef struct { 22 psArray *footprints; // collection of footprints in the image23 psArray *peaks; // collection of all peaks contained by the footprints24 psArray *oldPeaks; // collection of all peaks previously found22 psArray *footprints; // collection of footprints in the image 23 psArray *peaks; // collection of all peaks contained by the footprints 24 psArray *oldPeaks; // collection of all peaks previously found 25 25 int last; 26 26 } pmDetections; 27 27 28 pmDetections *pmDetectionsAlloc ( );28 pmDetections *pmDetectionsAlloc (void); 29 29 30 30 /// @} -
trunk/psModules/src/objects/pmMoments.c
r23187 r23487 25 25 to zero. 26 26 *****************************************************************************/ 27 pmMoments *pmMomentsAlloc( )27 pmMoments *pmMomentsAlloc(void) 28 28 { 29 29 psTrace("psModules.objects", 10, "---- %s() begin ----\n", __func__); -
trunk/psModules/src/objects/pmMoments.h
r19879 r23487 53 53 * 54 54 */ 55 pmMoments *pmMomentsAlloc( );55 pmMoments *pmMomentsAlloc(void); 56 56 57 57 /// @} -
trunk/psModules/src/objects/pmPSF.c
r20937 r23487 54 54 } 55 55 56 pmPSFOptions *pmPSFOptionsAlloc ( ) {56 pmPSFOptions *pmPSFOptionsAlloc (void) { 57 57 58 58 pmPSFOptions *options = (pmPSFOptions *) psAlloc(sizeof(pmPSFOptions)); -
trunk/psModules/src/objects/pmPSF.h
r21183 r23487 96 96 pmPSF *pmPSFAlloc (const pmPSFOptions *options); 97 97 bool psMemCheckPSF(psPtr ptr); 98 pmPSFOptions *pmPSFOptionsAlloc( );98 pmPSFOptions *pmPSFOptionsAlloc(void); 99 99 bool psMemCheckPSFOptions(psPtr ptr); 100 100 -
trunk/psModules/src/objects/pmSource.h
r23184 r23487 105 105 * 106 106 */ 107 pmSource *pmSourceAlloc( );107 pmSource *pmSourceAlloc(void); 108 108 109 109 /** pmSourceCopy() -
trunk/psModules/src/objects/pmSourceExtendedPars.c
r21363 r23487 46 46 } 47 47 48 pmSourceExtendedPars *pmSourceExtendedParsAlloc ( ) {48 pmSourceExtendedPars *pmSourceExtendedParsAlloc (void) { 49 49 pmSourceExtendedPars *pars = (pmSourceExtendedPars *) psAlloc(sizeof(pmSourceExtendedPars)); 50 50 psMemSetDeallocator(pars, (psFreeFunc) pmSourceExtendedParsFree); … … 75 75 } 76 76 77 pmSourceRadialProfile *pmSourceRadialProfileAlloc ( ) {77 pmSourceRadialProfile *pmSourceRadialProfileAlloc (void) { 78 78 79 79 pmSourceRadialProfile *profile = (pmSourceRadialProfile *) psAlloc(sizeof(pmSourceRadialProfile)); … … 99 99 } 100 100 101 pmSourceIsophotalValues *pmSourceIsophotalValuesAlloc ( ) {101 pmSourceIsophotalValues *pmSourceIsophotalValuesAlloc (void) { 102 102 103 103 pmSourceIsophotalValues *isophot = (pmSourceIsophotalValues *) psAlloc(sizeof(pmSourceIsophotalValues)); … … 125 125 } 126 126 127 pmSourcePetrosianValues *pmSourcePetrosianValuesAlloc ( ) {127 pmSourcePetrosianValues *pmSourcePetrosianValuesAlloc (void) { 128 128 129 129 pmSourcePetrosianValues *petrosian = (pmSourcePetrosianValues *) psAlloc(sizeof(pmSourcePetrosianValues)); … … 150 150 } 151 151 152 pmSourceKronValues *pmSourceKronValuesAlloc ( ) {152 pmSourceKronValues *pmSourceKronValuesAlloc (void) { 153 153 154 154 pmSourceKronValues *kron = (pmSourceKronValues *) psAlloc(sizeof(pmSourceKronValues)); … … 181 181 } 182 182 183 pmSourceAnnuli *pmSourceAnnuliAlloc ( ) {183 pmSourceAnnuli *pmSourceAnnuliAlloc (void) { 184 184 185 185 pmSourceAnnuli *annuli = (pmSourceAnnuli *) psAlloc(sizeof(pmSourceAnnuli)); -
trunk/psModules/src/objects/pmSourceExtendedPars.h
r21363 r23487 55 55 } pmSourceExtendedPars; 56 56 57 pmSourceExtendedPars *pmSourceExtendedParsAlloc ();57 pmSourceExtendedPars *pmSourceExtendedParsAlloc(void); 58 58 bool psMemCheckSourceExtendedPars(psPtr ptr); 59 pmSourceRadialProfile *pmSourceRadialProfileAlloc ();59 pmSourceRadialProfile *pmSourceRadialProfileAlloc(void); 60 60 bool psMemCheckSourceRadialProfile(psPtr ptr); 61 pmSourceIsophotalValues *pmSourceIsophotalValuesAlloc ();61 pmSourceIsophotalValues *pmSourceIsophotalValuesAlloc(void); 62 62 bool psMemCheckSourceIsophotalValues(psPtr ptr); 63 pmSourcePetrosianValues *pmSourcePetrosianValuesAlloc ();63 pmSourcePetrosianValues *pmSourcePetrosianValuesAlloc(void); 64 64 bool psMemCheckSourcePetrosianValues(psPtr ptr); 65 pmSourceKronValues *pmSourceKronValuesAlloc ();65 pmSourceKronValues *pmSourceKronValuesAlloc(void); 66 66 bool psMemCheckSourceKronValues(psPtr ptr); 67 pmSourceAnnuli *pmSourceAnnuliAlloc ();67 pmSourceAnnuli *pmSourceAnnuliAlloc(void); 68 68 bool psMemCheckSourceAnnuli(psPtr ptr); 69 69 -
trunk/psModules/src/objects/pmSourceFitSet.c
r23187 r23487 67 67 } 68 68 69 void pmSourceFitSetDone ( ) {69 void pmSourceFitSetDone (void) { 70 70 psFree (fitSets); 71 71 } … … 150 150 } 151 151 152 pmSourceFitSetData *pmSourceFitSetDataGet ( ) {152 pmSourceFitSetData *pmSourceFitSetDataGet (void) { 153 153 154 154 psAssert (fitSets, "pmSourceFitSetInit not called"); … … 172 172 } 173 173 174 void pmSourceFitSetDataClear ( ) {174 void pmSourceFitSetDataClear (void) { 175 175 176 176 int i; -
trunk/psModules/src/objects/pmSourceFitSet.h
r21183 r23487 24 24 // use this function to init the fit sets based on the number of threads 25 25 bool pmSourceFitSetInit (int nThreads); 26 void pmSourceFitSetDone ( );26 void pmSourceFitSetDone (void); 27 27 28 28 // initialize data for a group of object models … … 32 32 // functions for selecting the FitSet corresponding to the current thread 33 33 pmSourceFitSetData *pmSourceFitSetDataSet (psArray *modelSet); 34 pmSourceFitSetData *pmSourceFitSetDataGet ( );35 void pmSourceFitSetDataClear ( );34 pmSourceFitSetData *pmSourceFitSetDataGet (void); 35 void pmSourceFitSetDataClear (void); 36 36 37 37 // function used to set limits for a group of models … … 54 54 */ 55 55 bool pmSourceFitSet( 56 pmSource *source, ///< The input pmSource57 psArray *modelSet, ///< model to be fitted58 pmSourceFitMode mode, ///< define parameters to be fitted59 psImageMaskType maskVal ///< Vale to mask56 pmSource *source, ///< The input pmSource 57 psArray *modelSet, ///< model to be fitted 58 pmSourceFitMode mode, ///< define parameters to be fitted 59 psImageMaskType maskVal ///< Vale to mask 60 60 61 61 ); -
trunk/psModules/src/objects/pmSourcePlots.c
r19849 r23487 139 139 } 140 140 141 pmSourcePlotLayout *pmSourcePlotLayoutAlloc( )141 pmSourcePlotLayout *pmSourcePlotLayoutAlloc(void) 142 142 { 143 143 pmSourcePlotLayout *layout = (pmSourcePlotLayout *)psAlloc(sizeof(pmSourcePlotLayout)); -
trunk/psModules/src/objects/pmSourcePlots.h
r15562 r23487 29 29 // typedef bool (*pmSourcePlotFunction)(pmConfig *config, pmFPAview *view, pmSourcePlotLayout *layout); 30 30 31 pmSourcePlotLayout *pmSourcePlotLayoutAlloc( );31 pmSourcePlotLayout *pmSourcePlotLayoutAlloc(void); 32 32 bool psMemCheckSourcePlotLayout(psPtr ptr); 33 33 -
trunk/psphot/src/psphotCleanup.c
r21341 r23487 18 18 } 19 19 20 psExit psphotGetExitStatus ( ) {20 psExit psphotGetExitStatus (void) { 21 21 22 22 psErrorCode err = psErrorCodeLast (); 23 23 switch (err) { 24 24 case PS_ERR_NONE: 25 return PS_EXIT_SUCCESS;25 return PS_EXIT_SUCCESS; 26 26 case PSPHOT_ERR_SYS: 27 27 return PS_EXIT_SYS_ERROR; -
trunk/psphot/src/psphotDetect.h
r21392 r23487 19 19 bool psphotMosaicChip(pmConfig *config, const pmFPAview *view, char *outFile, char *inFile); 20 20 void psphotCleanup (pmConfig *config); 21 psExit psphotGetExitStatus ( );21 psExit psphotGetExitStatus (void); 22 22 23 23 #endif -
trunk/psphot/src/psphotStandAlone.h
r12805 r23487 17 17 bool psphotMosaicChip(pmConfig *config, const pmFPAview *view, char *outFile, char *inFile); 18 18 void psphotCleanup (pmConfig *config); 19 psExit psphotGetExitStatus ( );19 psExit psphotGetExitStatus (void); 20 20 21 21 #endif -
trunk/pswarp/src/pswarp.h
r23195 r23487 72 72 } pswarpTransformTileArgs; 73 73 74 pswarpTransformTileArgs *pswarpTransformTileArgsAlloc( );74 pswarpTransformTileArgs *pswarpTransformTileArgsAlloc(void); 75 75 bool pswarpTransformTile (pswarpTransformTileArgs *args); 76 76 … … 87 87 bool pswarpMatchRange (int *minX, int *minY, int *maxX, int *maxY, pmReadout *dest, pmReadout *src); 88 88 89 pswarpMap *pswarpMapAlloc ( );89 pswarpMap *pswarpMapAlloc (void); 90 90 pswarpMapGrid *pswarpMapGridAlloc (int Nx, int Ny); 91 91 … … 111 111 * define threads for this program 112 112 */ 113 bool pswarpSetThreads ( );113 bool pswarpSetThreads (void); 114 114 115 115 /// Return software version -
trunk/pswarp/src/pswarpMapGrid.c
r21323 r23487 43 43 // measure the map for the center of each superpixel 44 44 for (ni = 0, i = xMin; ni < nXpts; i += nXpix, ni++) { 45 for (nj = 0, j = yMin; nj < nYpts; j += nYpix, nj++) {46 pswarpMapSetLocalModel (grid->maps[ni][nj], dest, src, i, j);47 }45 for (nj = 0, j = yMin; nj < nYpts; j += nYpix, nj++) { 46 pswarpMapSetLocalModel (grid->maps[ni][nj], dest, src, i, j); 47 } 48 48 } 49 49 50 50 grid->nXpix = nXpix; 51 51 grid->nYpix = nYpix; … … 112 112 113 113 for (int i = 0; i < grid->nXpts - 1; i++) { 114 for (int j = 0; j < grid->nYpts - 1; j++) {115 116 // measure the output coordinates for the next grid position using the current grid map117 // compare with the coordinates measured using the next grid map118 pswarpMapApply (&xRaw, &yRaw, grid->maps[i][j], grid->maps[i][j]->xo + grid->nXpix, grid->maps[i][j]->yo);119 pswarpMapApply (&xRef, &yRef, grid->maps[i+1][j], grid->maps[i][j]->xo + grid->nXpix, grid->maps[i][j]->yo);120 121 double posError = hypot (xRaw-xRef, yRaw-yRef);122 maxError = PS_MAX (maxError, posError);123 }124 } 114 for (int j = 0; j < grid->nYpts - 1; j++) { 115 116 // measure the output coordinates for the next grid position using the current grid map 117 // compare with the coordinates measured using the next grid map 118 pswarpMapApply (&xRaw, &yRaw, grid->maps[i][j], grid->maps[i][j]->xo + grid->nXpix, grid->maps[i][j]->yo); 119 pswarpMapApply (&xRef, &yRef, grid->maps[i+1][j], grid->maps[i][j]->xo + grid->nXpix, grid->maps[i][j]->yo); 120 121 double posError = hypot (xRaw-xRef, yRaw-yRef); 122 maxError = PS_MAX (maxError, posError); 123 } 124 } 125 125 return maxError; 126 126 } … … 176 176 psPlaneTransformApply (FP, fpaDest->fromTPA, TP); 177 177 psPlaneTransformApply (V00, chipDest->fromFPA, FP); 178 178 179 179 /** V(1,0) position */ 180 180 offset->x = ix + 1; … … 186 186 psPlaneTransformApply (FP, fpaDest->fromTPA, TP); 187 187 psPlaneTransformApply (V10, chipDest->fromFPA, FP); 188 188 189 189 /** V(0,1) position */ 190 190 offset->x = ix; … … 204 204 map->Yy = V01->y - V00->y; 205 205 map->Yo = V00->y - map->Yx*ix - map->Yy*iy; 206 206 207 207 map->xo = ix; 208 208 map->yo = iy; … … 224 224 } 225 225 226 pswarpMap *pswarpMapAlloc () {226 pswarpMap *pswarpMapAlloc(void) { 227 227 228 228 pswarpMap *map = (pswarpMap *) psAlloc (sizeof(pswarpMap)); … … 238 238 239 239 for (int i = 0; i < grid->nXpts; i++) { 240 for (int j = 0; j < grid->nYpts; j++) {241 psFree (grid->maps[i][j]);242 }243 psFree (grid->maps[i]);240 for (int j = 0; j < grid->nYpts; j++) { 241 psFree (grid->maps[i][j]); 242 } 243 psFree (grid->maps[i]); 244 244 } 245 245 psFree (grid->maps); … … 256 256 grid->maps[i] = psAlloc (nYpts*sizeof(void *)); 257 257 for (int j = 0; j < nYpts; j++) { 258 grid->maps[i][j] = pswarpMapAlloc();258 grid->maps[i][j] = pswarpMapAlloc(); 259 259 } 260 260 } … … 264 264 grid->nXpix = 0; 265 265 grid->nYpix = 0; 266 266 267 267 return grid; 268 268 } -
trunk/pswarp/src/pswarpSetThreads.c
r21323 r23487 23 23 } 24 24 25 bool pswarpSetThreads () {25 bool pswarpSetThreads(void) { 26 26 27 27 psThreadTask *task = NULL; -
trunk/pswarp/src/pswarpTransformTile.c
r21368 r23487 24 24 } 25 25 26 pswarpTransformTileArgs *pswarpTransformTileArgsAlloc( )26 pswarpTransformTileArgs *pswarpTransformTileArgsAlloc(void) 27 27 { 28 28 pswarpTransformTileArgs *args = psAlloc(sizeof(pswarpTransformTileArgs));
Note:
See TracChangeset
for help on using the changeset viewer.
