Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97868278
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
Mon, Jan 6, 23:33
Size
1 KB
Mime Type
text/x-c
Expires
Wed, Jan 8, 23:33 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23423595
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