Changeset 11527
- Timestamp:
- Jan 31, 2007, 5:15:13 PM (19 years ago)
- Location:
- trunk/psModules/src
- Files:
-
- 7 edited
-
camera/pmFPARead.c (modified) (2 diffs)
-
camera/pmFPA_JPEG.c (modified) (2 diffs)
-
concepts/pmConceptsStandard.c (modified) (1 diff)
-
objects/models/pmModel_GAUSS.c (modified) (1 diff)
-
objects/models/pmModel_PGAUSS.c (modified) (1 diff)
-
objects/models/pmModel_QGAUSS.c (modified) (1 diff)
-
objects/pmSourcePhotometry.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPARead.c
r10705 r11527 183 183 } 184 184 185 bool (*hduReadFunc)(pmHDU*, psFits*) ; // Function to use to read the HDU186 psArray **imageArray ;// Array of images in the HDU187 psElemType imageType ;// Expected type for image185 bool (*hduReadFunc)(pmHDU*, psFits*) = NULL; // Function to use to read the HDU 186 psArray **imageArray = NULL; // Array of images in the HDU 187 psElemType imageType = PS_TYPE_F32; // Expected type for image 188 188 switch (type) { 189 189 case FPA_READ_TYPE_IMAGE: … … 245 245 } 246 246 247 psImage **target ; // Place in readout to put carved image247 psImage **target = NULL; // Place in readout to put carved image 248 248 switch (type) { 249 249 case FPA_READ_TYPE_IMAGE: -
trunk/psModules/src/camera/pmFPA_JPEG.c
r11292 r11527 5 5 * @author EAM, IfA 6 6 * 7 * @version $Revision: 1.1 7$ $Name: not supported by cvs2svn $8 * @date $Date: 2007-0 1-26 00:05:17$7 * @version $Revision: 1.18 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2007-02-01 03:15:13 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 147 147 } 148 148 149 float min, max; // Minimum and maximum for stretch 150 float mean, delta; 149 float min = 0; 150 float max = 0; // Minimum and maximum for stretch 151 float mean = 0; 152 float delta = 0; 151 153 152 154 // measure the image statistics for scaling -
trunk/psModules/src/concepts/pmConceptsStandard.c
r11431 r11527 422 422 psStringSubstitute(×ysName, "TIMESYS", "TIME"); 423 423 bool mdok = false; // Result of MD lookup 424 psTimeType timeSys ;// The time system424 psTimeType timeSys = PS_TIME_UTC; // The time system 425 425 if (cell) { 426 426 timeSys = psMetadataLookupS32(&mdok, cell->concepts, timesysName); -
trunk/psModules/src/objects/models/pmModel_GAUSS.c
r10262 r11527 63 63 bool PM_MODEL_LIMITS (psMinConstraintMode mode, int nParam, float *params, float *beta) 64 64 { 65 float beta_lim , params_min, params_max;66 float f1 , f2, q1, q2;65 float beta_lim = 0, params_min = 0, params_max = 0; 66 float f1 = 0, f2 = 0, q1 = 0, q2 = 0; 67 67 68 68 // we need to calculate the limits for SXY specially -
trunk/psModules/src/objects/models/pmModel_PGAUSS.c
r10262 r11527 65 65 bool PM_MODEL_LIMITS (psMinConstraintMode mode, int nParam, float *params, float *beta) 66 66 { 67 float beta_lim , params_min, params_max;68 float f1 , f2, q1, q2;67 float beta_lim = 0, params_min = 0, params_max = 0; 68 float f1 = 0, f2 = 0, q1 = 0, q2 = 0; 69 69 70 70 // we need to calculate the limits for SXY specially -
trunk/psModules/src/objects/models/pmModel_QGAUSS.c
r11301 r11527 80 80 bool PM_MODEL_LIMITS (psMinConstraintMode mode, int nParam, float *params, float *beta) 81 81 { 82 float beta_lim , params_min, params_max;83 float f1 , f2, q1, q2;82 float beta_lim = 0, params_min = 0, params_max = 0; 83 float f1 = 0, f2 = 0, q1 = 0, q2 = 0; 84 84 85 85 // we need to calculate the limits for SXY specially -
trunk/psModules/src/objects/pmSourcePhotometry.c
r10094 r11527 3 3 * @author EAM, IfA; GLG, MHPCC 4 4 * 5 * @version $Revision: 1.2 0$ $Name: not supported by cvs2svn $6 * @date $Date: 200 6-11-20 05:23:23 $5 * @version $Revision: 1.21 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2007-02-01 03:15:13 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 478 478 const bool unweighted_sum) // should the cross product be weighted? 479 479 { 480 481 int xi, yi; 482 double flux, wt, factor; 480 double flux = 0, wt = 0, factor = 0; 483 481 484 482 const psImage *Pi = Mi->pixels; … … 488 486 // note that this is addressing the same image pixels, 489 487 // though only if both are source not model images 490 flux = 0; 491 for (yi = 0; yi < Pi->numRows; yi++) { 492 for (xi = 0; xi < Pi->numCols; xi++) { 488 for (int yi = 0; yi < Pi->numRows; yi++) { 489 for (int xi = 0; xi < Pi->numCols; xi++) { 493 490 if (Ti->data.U8[yi][xi]) 494 491 continue;
Note:
See TracChangeset
for help on using the changeset viewer.
