Changeset 30191 for trunk/ippToPsps/src/Batch.c
- Timestamp:
- Dec 28, 2010, 10:39:03 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/src/Batch.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/src/Batch.c
r30147 r30191 2 2 * 3 3 * @ingroup ippToPsps 4 * 5 * Source for all methods in the Batch class 4 6 * 5 7 * @author IfA … … 25 27 static bool haveSurveyType = false; 26 28 27 29 // some getter methods 28 30 static bool gotResultsPath() {return haveResultsPath;} 29 31 static bool gotFitsInPath() {return haveFitsInPath;} … … 35 37 Gets uncalibrated instrumental flux from magnitude 36 38 */ 37 __inline bool getFlux(const float exposureTime, const float magnitude, float* flux, const float magnitudeErr, float* fluxErr) { 39 __inline bool getFlux( 40 const float exposureTime, 41 const float magnitude, 42 float* flux, 43 const float magnitudeErr, 44 float* fluxErr) { 38 45 39 46 *flux = powf(10.0, -0.4*magnitude) / exposureTime; 40 47 if (!isfinite(*flux) || *flux < 0.000001) return false; 41 48 if (fluxErr) *fluxErr = fabsf((magnitudeErr * *flux)/1.085736); 42 // if (fluxErr) printf("Mag = %03.03f, Flux = %03.03f, Mag err = %03.03f, Flux Err = %03.03f\n", magnitude, *flux, magnitudeErr, *fluxErr);43 49 44 50 return true; … … 87 93 88 94 psFree(this->pmconfig); 89 90 95 91 96 for(uint32_t i=0; i<this->numOfInputFiles; i++) free(this->inputFiles[i]); … … 335 340 336 341 /** 337 Constructor 342 Constructor. Takes a Batch object and initialises it. 338 343 */ 339 344 bool new_Batch(Batch *this) {
Note:
See TracChangeset
for help on using the changeset viewer.
