Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97926899
wr_pot.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, 16:06
Size
1008 B
Mime Type
text/x-c
Expires
Thu, Jan 9, 16:06 (2 d)
Engine
blob
Format
Raw Data
Handle
23441591
Attached To
R1448 Lenstool-HPC
wr_pot.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: g_mass */
/* auteur: Jean-Paul Kneib */
/* date: 10/02/92 */
/* place: Toulouse */
/****************************************************************/
void wr_pot(char *name, double **map)
{
const extern struct g_grille G;
//int size[2];
register int i, j;
double **mp;
mp = (double **) alloc_square_double(G.nx, G.ny);
for (i = 0; i < G.nx; i++)
for (j = 0; j < G.ny; j++)
mp[j][i] = map[i][j];
wrf_fits(name, mp, G.nx, G.ny, G.xmin, G.xmax, G.ymin, G.ymax);
/*
size[0]=G.nx;
size[1]=G.ny;
wr_ipx(name,mp,2,size,"double","bin","real","poten_map",
G.xmin,G.xmax,G.ymin,G.ymax);
*/
free_square_double(mp, G.nx);
}
Event Timeline
Log In to Comment