26 int rows, cols, depths, typeIntern;
36 else if ((fp = fopen(fname,
"w")) ==
NULL)
39 for (z = 0; z < depths; z++) {
40 for (y = 0; y < rows; y++) {
41 fprintf(fp,
"z y x %d %d (%d - %d)\n", z, y, 0, cols - 1);
42 for (x = 0; x < cols; x++) {
46 fprintf(fp,
"%.18f ", *f1p);
48 fprintf(fp,
"%.50f ", d1);
void Rast3d_get_coords_map(RASTER3D_Map *, int *, int *, int *)
Returns the size of the region of map in cells.
void Rast3d_write_ascii(void *map, const char *fname)
Writes the cell-values of map in ascii format to file fname. The values are organized by horizontal s...
void Rast3d_fatal_error(const char *,...) __attribute__((format(printf
void Rast3d_get_value_region(RASTER3D_Map *, int, int, int, void *, int)
Returns in *value the cell-value of the cell with region-coordinate (x, y, z). The value returned is ...
int Rast3d_tile_type_map(RASTER3D_Map *)
Returns the type in which tiles of map are stored in memory.