Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97537626
o_chi_flux.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jan 5, 01:35
Size
1 KB
Mime Type
text/x-c
Expires
Tue, Jan 7, 01:35 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23423213
Attached To
R1448 Lenstool-HPC
o_chi_flux.c
View Options
#include<stdio.h>
#include<math.h>
#include<fonction.h>
#include<constant.h>
#include<dimension.h>
#include<structure.h>
/****************************************************************/
/* nom: o_chi_flux */
/* auteur: Ghislain Golse */
/* date: 10/99 */
/* place: Toulouse */
/****************************************************************
* Calcul de chi2 deduit de la difference de flux entre celui
* donne par la source "moyenne" et celui de l'image
*
* mag = -2.5 log f
* dmag = -2.5 df / f --> df = abs( dmag * f / 2.5 )
*
* Global variables used :
* - I
*/
void o_chi_flux(struct galaxie *arclet, double fluxS, double *da, double *sig2flux)
{
double Dflux;
const extern struct g_image I;
// If Dmag is very small compared to flux then
// the approximation is dfv = ln10/2.5*dM*fv
Dflux = I.Dmag * arclet->flux / 2.5;
*sig2flux = Dflux * Dflux;
*da = arclet->flux - fluxS / arclet->A;
}
Event Timeline
Log In to Comment