Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97031264
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
Wed, Jan 1, 19:40
Size
1020 B
Mime Type
text/x-c
Expires
Fri, Jan 3, 19:40 (2 d)
Engine
blob
Format
Raw Data
Handle
23315723
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