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