31 const struct Cell_head *cellhd,
int is_cellhd)
38 fprintf(fd,
"proj: %d\n", cellhd->
proj);
39 fprintf(fd,
"zone: %d\n", cellhd->
zone);
42 fprintf(fd,
"north: %s\n", buf);
45 fprintf(fd,
"south: %s\n", buf);
48 fprintf(fd,
"east: %s\n", buf);
51 fprintf(fd,
"west: %s\n", buf);
53 fprintf(fd,
"cols: %d\n", cellhd->
cols);
54 fprintf(fd,
"rows: %d\n", cellhd->
rows);
57 fprintf(fd,
"e-w resol: %s\n", buf);
60 fprintf(fd,
"n-s resol: %s\n", buf);
63 fprintf(fd,
"format: %d\n", cellhd->
format);
64 fprintf(fd,
"compressed: %d\n", cellhd->
compressed);
79 const struct Cell_head *cellhd,
int is_cellhd)
88 fprintf(fd,
"top: %.15f\n", cellhd->
top);
89 fprintf(fd,
"bottom: %.15f\n", cellhd->
bottom);
91 fprintf(fd,
"cols3: %d\n", cellhd->
cols3);
92 fprintf(fd,
"rows3: %d\n", cellhd->
rows3);
93 fprintf(fd,
"depths: %d\n", cellhd->
depths);
96 fprintf(fd,
"e-w resol3: %s\n", buf);
99 fprintf(fd,
"n-s resol3: %s\n", buf);
102 fprintf(fd,
"t-b resol: %s\n", buf);
2D/3D raster map header (used also for region)
double west
Extent coordinates (west)
int format
Max number of bytes per raster data value minus 1 (raster header only)
void G_format_northing(double, char *, int)
Northing to ASCII.
void G_format_resolution(double, char *, int)
Resolution to ASCII.
void G_format_easting(double, char *, int)
Easting to ASCII.
int cols3
Number of columns for 3D data.
void G__write_Cell_head(FILE *fd, const struct Cell_head *cellhd, int is_cellhd)
Write cell header or window.
double top
Extent coordinates (top) - 3D data.
int compressed
Compression mode (raster header only)
double north
Extent coordinates (north)
double ns_res3
Resolution - north to south cell size for 3D data.
int rows3
Number of rows for 3D data.
double south
Extent coordinates (south)
int zone
Projection zone (UTM)
double bottom
Extent coordinates (bottom) - 3D data.
int depths
number of depths for 3D data
int cols
Number of columns for 2D data.
double ns_res
Resolution - north to south cell size for 2D data.
double east
Extent coordinates (east)
double ew_res
Resolution - east to west cell size for 2D data.
double tb_res
Resolution - top to bottom cell size for 3D data.
void G__write_Cell_head3(FILE *fd, const struct Cell_head *cellhd, int is_cellhd)
Write 3D cell header or window.
int rows
Number of rows for 2D data.
double ew_res3
Resolution - east to west cell size for 3D data.