IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 21, 2010, 2:45:13 PM (16 years ago)
Author:
eugene
Message:

merge changes from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100823/ippToPsps/src/ippToPspsBatchTest.c

    r28759 r29515  
    1313#include "fitsio.h"
    1414
    15 // Gets uncalibrated instrumental flux from magnitude
    16 static __inline bool ippToPsps_getFlux(const float exposureTime, const float magnitude, float* flux, const float magnitudeErr, float* fluxErr) {
    17 
    18     *flux = powf(10.0, -0.4*magnitude) / exposureTime;
    19     if (!isfinite(*flux) || *flux < 0.000001) return false;
    20     if (fluxErr) *fluxErr = fabsf((magnitudeErr * *flux)/1.085736);
    21     //  if (fluxErr)    printf("Mag = %03.03f, Flux = %03.03f, Mag err = %03.03f, Flux Err = %03.03f\n", magnitude, *flux, magnitudeErr, *fluxErr);
    22 
    23     return true;
    24 }
    2515
    2616/**
     
    5545
    5646    // FrameMeta values
    57 //    fits_write_col(this->fitsOut, TLONG, FRAMEMETA_FRAMEID, 1, 1, 1, &this->expId, &status);
     47//    fits_write_col(this->fitsOut, TLONG, FRAMEMETA_FRAMEID, 1, 1, 1, &this->id, &status);
    5848
    5949    int8_t filterID = -1;
     
    187177
    188178            // create unique int from 'frameID' (aka exposure ID) and ccd number
    189             pspsImageId = (this->expId*100) + pImage->ccdnum;
     179            pspsImageId = (this->id*100) + pImage->ccdnum;
    190180
    191181            // now get DVO detections
Note: See TracChangeset for help on using the changeset viewer.