Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97911578
wr_arclet.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, 11:49
Size
1 KB
Mime Type
text/x-c
Expires
Thu, Jan 9, 11:49 (2 d)
Engine
blob
Format
Raw Data
Handle
23438010
Attached To
R1448 Lenstool-HPC
wr_arclet.c
View Options
#include<stdio.h>
#include<math.h>
#include "fonction.h"
#include "constant.h"
#include"dimension.h"
#include "structure.h"
/****************************************************************/
/* nom: ecrire */
/* auteur: Jean-Paul Kneib */
/* date: 10/02/92 */
/* place: Toulouse */
/****************************************************************/
//NOT USED IN LENSTOOL
void wr_arclet(int nl, struct galaxie liste[NAMAX], char name[50])
{
FILE *OUT;
int i;
OUT = fopen(name, "w");
for (i = 0; i < nl; i++)
{
if (liste[i].E.theta > PI)
liste[i].E.theta -= PI;
if (liste[i].c == 's')
{
liste[i].E.a = liste[i].E.b = 0.;
};
fprintf(OUT, "%4s %8.3lf %8.3lf %.5lf %.5lf %8.3lf %5.3lf %6.3lf\n",
liste[i].n, liste[i].C.x,
liste[i].C.y, liste[i].E.a, liste[i].E.b,
RTD*liste[i].E.theta, liste[i].z, liste[i].mag);
};
fclose(OUT);
}
Event Timeline
Log In to Comment