Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97129824
w_prop.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
Thu, Jan 2, 18:45
Size
1 KB
Mime Type
text/x-c
Expires
Sat, Jan 4, 18:45 (2 d)
Engine
blob
Format
Raw Data
Handle
23261250
Attached To
R1448 Lenstool-HPC
w_prop.c
View Options
#include<stdio.h>
#include<math.h>
#include<fonction.h>
#include<constant.h>
#include<dimension.h>
#include<structure.h>
/****************************************************************/
/* nom: w_prop */
/* auteur: Jean-Paul Kneib */
/* date: 10/02/92 */
/* place: Toulouse */
/****************************************************************/
void
w_prop
(
int
nprop
,
char
propfile
[])
{
const
extern
struct
g_frame
F
;
const
extern
struct
propertie
gprop
[
NTMAX
][
NTMAX
];
FILE
*
OUT
;
register
int
i
,
j
;
OUT
=
fopen
(
propfile
,
"w"
);
fprintf
(
OUT
,
"%d %d %lf %lf %lf %lf
\n
"
,
nprop
,
nprop
,
F
.
xmin
,
F
.
xmax
,
F
.
ymin
,
F
.
ymax
);
for
(
j
=
0
;
j
<
nprop
;
j
++
)
for
(
i
=
0
;
i
<
nprop
;
i
++
)
{
fprintf
(
OUT
,
"%.3lf %.4lf %.4lf %.2lf %.4lf %.4lf %.4lf
\n
"
,
gprop
[
i
][
j
].
A
,
gprop
[
i
][
j
].
k
,
gprop
[
i
][
j
].
s
,
180.
/
PI
*
gprop
[
i
][
j
].
theta
,
gprop
[
i
][
j
].
t
,
gprop
[
i
][
j
].
q
,
gprop
[
i
][
j
].
g
);
};
fclose
(
OUT
);
}
Event Timeline
Log In to Comment