Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97870322
sig2posSe.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
Tue, Jan 7, 00:13
Size
1 KB
Mime Type
text/x-c
Expires
Thu, Jan 9, 00:13 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23423908
Attached To
R1448 Lenstool-HPC
sig2posSe.c
View Options
#include<stdio.h>
#include<math.h>
#include<fonction.h>
#include<constant.h>
#include<dimension.h>
#include<structure.h>
/****************************************************************/
/* nom: sig2posSe */
/* auteur: Eric Jullo */
/* date: 01/07 */
/* place: Marseille */
/****************************************************************
* Assuming that the deflection angle is linear between the observed
* and predicted image, it is possible to analytically relate the
* image plane chi2 to the source plane chi2.
*
* chi2_img = (xi - xiobs) = (xs - bar(xs)) / (1 - d2xxPhi)
*
* The observational uncertainties are the image ellipticities a & b.
*
* Global variables used :
*
*/
void
sig2posSe
(
struct
galaxie
*
multi
,
double
*
sigx2
,
double
*
sigy2
)
{
struct
matrix
grad2
;
grad2
=
e_grad2_gal
(
multi
,
NULL
);
grad2
.
a
/=
multi
->
dos
;
grad2
.
c
/=
multi
->
dos
;
*
sigx2
=
(
1.
-
grad2
.
a
)
*
(
1.
-
grad2
.
a
)
*
multi
->
E
.
a
*
multi
->
E
.
a
;
*
sigy2
=
(
1.
-
grad2
.
c
)
*
(
1.
-
grad2
.
c
)
*
multi
->
E
.
b
*
multi
->
E
.
b
;
}
Event Timeline
Log In to Comment