IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30191


Ignore:
Timestamp:
Dec 28, 2010, 10:39:03 AM (15 years ago)
Author:
rhenders
Message:

added comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/src/Batch.c

    r30147 r30191  
    22 *
    33 *  @ingroup ippToPsps
     4 *
     5 *  Source for all methods in the Batch class
    46 *
    57 *  @author IfA
     
    2527static bool haveSurveyType = false;
    2628
    27 
     29// some getter methods
    2830static bool gotResultsPath() {return haveResultsPath;}
    2931static bool gotFitsInPath() {return haveFitsInPath;}
     
    3537  Gets uncalibrated instrumental flux from magnitude
    3638  */
    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) {
    3845
    3946    *flux = powf(10.0, -0.4*magnitude) / exposureTime;
    4047    if (!isfinite(*flux) || *flux < 0.000001) return false;
    4148    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);
    4349
    4450    return true;
     
    8793
    8894    psFree(this->pmconfig);
    89 
    9095
    9196    for(uint32_t i=0; i<this->numOfInputFiles; i++) free(this->inputFiles[i]);
     
    335340
    336341/**
    337   Constructor
     342  Constructor. Takes a Batch object and initialises it.
    338343  */
    339344bool new_Batch(Batch *this) {
Note: See TracChangeset for help on using the changeset viewer.