Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96688394
cor_shear.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, Dec 29, 20:45
Size
1 KB
Mime Type
text/x-c
Expires
Tue, Dec 31, 20:45 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23212388
Attached To
R1448 Lenstool-HPC
cor_shear.c
View Options
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<fonction.h>
#include<constant.h>
#include<dimension.h>
#include<structure.h>
/****************************************************************/
/* nom: cor_shear */
/* auteur: Jean-Paul Kneib */
/* date: 10/02/92 */
/* place: Toulouse */
/****************************************************************/
void cor_shear()
{
extern struct g_mode M;
// extern struct g_source S;
struct galaxie shear[NAMAX], coshear[NAMAX];
register long int i;
long int nsh = 0;
NPRINTF(stderr, "COR: shear\r");
if (M.icorshear == 1)
f_shape(&nsh, shear, M.corshfile, 1);
else
exit(-1);
pro_arclet(nsh, shear);
o_mag(nsh, shear);
for (i = 0; i < nsh; i++)
{
coshear[i] = shear[i];
coshear[i].E.theta = shear[i].E.theta - shear[i].thp;
coshear[i].E.a = fabs(shear[i].tau * shear[i].tp * sin(2.*coshear[i].E.theta));
coshear[i].E.b = coshear[i].E.a / 2.;
};
ecrire_r(0, nsh, coshear, "coshear.dat", 1);
}
Event Timeline
Log In to Comment