Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96626610
i_marker.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, 04:36
Size
1020 B
Mime Type
text/x-c
Expires
Tue, Dec 31, 04:36 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23218786
Attached To
R1448 Lenstool-HPC
i_marker.c
View Options
#include<stdio.h>
#include<math.h>
#include<fonction.h>
#include<constant.h>
#include<dimension.h>
#include<structure.h>
#include<lt.h>
/****************************************************************/
/* nom: i_marker */
/* auteur: Jean-Paul Kneib */
/* date: 10/02/92 */
/* place: Toulouse */
/****************************************************************/
void i_marker(char markfile[], double z)
{
const extern struct pot lens[];
int n = 0;
char line[128];
double dlsds;
struct point A, B;
FILE *IN, *OUT;
dlsds = dratio(lens[0].z, z);
IN = fopen(markfile, "r");
OUT = fopen("marker_s.dat", "w");
if ( IN != NULL )
{
while ((fscanf(IN, "%d%lf%lf", &n, &A.x, &A.y) != -1))
{
flire(IN, line);
e_dpl(&A, dlsds, &B);
fprintf(OUT, "%d %lf\t%lf\t\n", n, B.x, B.y);
};
};
fclose(IN);
fclose(OUT);
}
Event Timeline
Log In to Comment