Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97916080
w_sicat.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, 13:01
Size
1 KB
Mime Type
text/x-c
Expires
Thu, Jan 9, 13:01 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23439590
Attached To
R1448 Lenstool-HPC
w_sicat.c
View Options
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#include<fonction.h>
#include<constant.h>
#include<dimension.h>
#include<structure.h>
/****************************************************************/
/* nom: w_sicat */
/* auteur: Jean-Paul Kneib */
/****************************************************************/
void w_sicat(struct galaxie ima[NFMAX][NIMAX], struct galaxie ss[NFMAX])
{
const extern struct g_source S;
const extern struct g_mode M;
long int i;
int j;
FILE *OUT;
OUT = fopen("sipos.dat", "w");
fprintf(OUT, "#REFERENCE 3 %.7lf %.7lf\n", M.ref_ra, M.ref_dec);
for ( i = 0 ; i < S.ns ; i++ )
{
if ( ss[i].E.theta > PI )
ss[i].E.theta -= PI;
for (j = 0; j < NIMAX && strcmp(ima[i][j].n, "") ; j++ )
{
fprintf(OUT, "%s %.3lf %.3lf %.3lf %.3lf %.2lf %.3lf %.2lf %.3lf %.3lf %.2lf %.2lf\n",
ss[i].n, ss[i].C.x, ss[i].C.y, ss[i].E.a, ss[i].E.b,
RTD*ss[i].E.theta, ss[i].z, ss[i].mag,
ima[i][j].C.x, ima[i][j].C.y, ss[i].mag - ima[i][j].mag,
ima[i][j].mag);
};
};
fclose(OUT);
}
Event Timeline
Log In to Comment