GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
headerinfo.c File Reference
#include <grass/G3d.h>
#include "G3d_intern.h"
Include dependency graph for headerinfo.c:

Go to the source code of this file.

Functions

void G3d_getCoordsMap (G3D_Map *map, int *rows, int *cols, int *depths)
 Returns the size of the region of map in cells. More...
 
void G3d_getCoordsMapWindow (G3D_Map *map, int *rows, int *cols, int *depths)
 
void G3d_getNofTilesMap (G3D_Map *map, int *nx, int *ny, int *nz)
 Returns the dimensions of the tile-cube used to tile the region of map. These numbers include partial tiles. More...
 
void G3d_getRegionMap (G3D_Map *map, double *north, double *south, double *east, double *west, double *top, double *bottom)
 Returns the size of the region. More...
 
void G3d_getWindowMap (G3D_Map *map, double *north, double *south, double *east, double *west, double *top, double *bottom)
 
void G3d_getRegionStructMap (G3D_Map *map, G3D_Region *region)
 Returns in region the region of map. More...
 
void G3d_getWindowStructMap (G3D_Map *map, G3D_Region *window)
 
void G3d_getTileDimensionsMap (G3D_Map *map, int *x, int *y, int *z)
 Returns the tile dimensions used for map. More...
 
int G3d_tileTypeMap (G3D_Map *map)
 Returns the type in which tiles of map are stored in memory. More...
 
int G3d_fileTypeMap (G3D_Map *map)
 Returns the type with which tiles of map are stored on file. More...
 
int G3d_tilePrecisionMap (G3D_Map *map)
 Returns the precision used to store map. More...
 
int G3d_tileUseCacheMap (G3D_Map *map)
 Returns 1 if map uses cache, returns 0 otherwise. More...
 
void G3d_printHeader (G3D_Map *map)
 Prints the header information of map. More...
 

Function Documentation

int G3d_fileTypeMap ( G3D_Map *  map)

Returns the type with which tiles of map are stored on file.

Parameters
map
Returns
int

Definition at line 178 of file headerinfo.c.

Referenced by G3d_changeType(), G3d_makeAlignedVolumeFile(), G3d_retile(), and open_g3d_file().

void G3d_getCoordsMap ( G3D_Map *  map,
int rows,
int cols,
int depths 
)

Returns the size of the region of map in cells.

Parameters
map
rows
cols
depths
Returns
void

Definition at line 19 of file headerinfo.c.

Referenced by G3d_compareFiles(), G3d_flushTilesInCube(), G3d_retile(), and G3d_writeAscii().

void G3d_getCoordsMapWindow ( G3D_Map *  map,
int rows,
int cols,
int depths 
)

Definition at line 28 of file headerinfo.c.

void G3d_getNofTilesMap ( G3D_Map *  map,
int nx,
int ny,
int nz 
)

Returns the dimensions of the tile-cube used to tile the region of map. These numbers include partial tiles.

Parameters
map
nx
ny
nz
Returns
void

Definition at line 51 of file headerinfo.c.

Referenced by G3d_changePrecision(), G3d_changeType(), and G3d_compareFiles().

void G3d_getRegionMap ( G3D_Map *  map,
double *  north,
double *  south,
double *  east,
double *  west,
double *  top,
double *  bottom 
)

Returns the size of the region.

Parameters
map
north
south
east
west
top
bottom
Returns
void

Definition at line 77 of file headerinfo.c.

void G3d_getRegionStructMap ( G3D_Map *  map,
G3D_Region *  region 
)

Returns in region the region of map.

Parameters
map
region
Returns
void

Definition at line 115 of file headerinfo.c.

References G3d_regionCopy().

Referenced by G3d_changePrecision(), G3d_changeType(), G3d_maskOpenOld(), and G3d_retile().

void G3d_getTileDimensionsMap ( G3D_Map *  map,
int x,
int y,
int z 
)

Returns the tile dimensions used for map.

Parameters
map
x
y
z
Returns
void

Definition at line 142 of file headerinfo.c.

Referenced by G3d_changePrecision(), G3d_changeType(), G3d_compareFiles(), and G3d_maskTile().

void G3d_getWindowMap ( G3D_Map *  map,
double *  north,
double *  south,
double *  east,
double *  west,
double *  top,
double *  bottom 
)

Definition at line 91 of file headerinfo.c.

void G3d_getWindowStructMap ( G3D_Map *  map,
G3D_Region *  window 
)

Definition at line 122 of file headerinfo.c.

References G3d_regionCopy().

void G3d_printHeader ( G3D_Map *  map)

Prints the header information of map.

Parameters
map
Returns
void

Definition at line 228 of file headerinfo.c.

References G3d_isNullValueNum(), G3d_range_min_max(), G3D_READ_DATA, and G3D_WRITE_DATA.

Referenced by G3d_compareFiles().

int G3d_tilePrecisionMap ( G3D_Map *  map)

Returns the precision used to store map.

Parameters
map
Returns
int

Definition at line 195 of file headerinfo.c.

Referenced by G3d_compareFiles().

int G3d_tileTypeMap ( G3D_Map *  map)

Returns the type in which tiles of map are stored in memory.

Parameters
map
Returns
int

Definition at line 161 of file headerinfo.c.

Referenced by G3d_changePrecision(), G3d_changeType(), G3d_compareFiles(), G3d_retile(), G3d_writeAscii(), and N_read_rast3d_to_array_3d().

int G3d_tileUseCacheMap ( G3D_Map *  map)

Returns 1 if map uses cache, returns 0 otherwise.

Parameters
map
Returns
int

Definition at line 212 of file headerinfo.c.

Referenced by G3d_compareFiles(), and G3d_retile().