grass  7.8.6
About: GRASS (Geographic Resources Analysis Support System) is a raster- and vector-based GIS, image processing system, graphics production system and spatial modeling system.
  Fossies Dox: grass-7.8.6.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

range.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/glocale.h>
#include "raster3d_intern.h"
Include dependency graph for range.c:

Go to the source code of this file.

Functions

void Rast3d_range_update_from_tile (RASTER3D_Map *map, const void *tile, int rows, int cols, int depths, int xRedundant, int yRedundant, int zRedundant, int nofNum, int type)
 
int Rast3d_read_range (const char *name, const char *mapset, struct FPRange *drange)
 
int Rast3d_range_load (RASTER3D_Map *map)
 Loads the range into the range structure of map. More...
 
void Rast3d_range_min_max (RASTER3D_Map *map, double *min, double *max)
 Returns in min and max the minimum and maximum values of the range. More...
 
static int writeRange (const char *name, struct FPRange *range)
 
int Rast3d_range_write (RASTER3D_Map *map)
 Writes the range which is stored in the range structure of map. (This function is invoked automatically when a new file is closed). More...
 
int Rast3d_range_init (RASTER3D_Map *map)
 

Function Documentation

◆ Rast3d_range_init()

int Rast3d_range_init ( RASTER3D_Map map)

Definition at line 206 of file range.c.

References RASTER3D_Map::range, and Rast_init_fp_range().

Referenced by Rast3d_open_cell_new(), and Rast3d_open_cell_old_no_header().

◆ Rast3d_range_load()

int Rast3d_range_load ( RASTER3D_Map map)

Loads the range into the range structure of map.

Parameters
mapa pointer to a raster 3D map object
Returns
1 ... if successful 0 ... otherwise.

Definition at line 112 of file range.c.

References RASTER3D_Map::fileName, RASTER3D_Map::mapset, RASTER3D_Map::operation, RASTER3D_Map::range, Rast3d_read_range(), and RASTER3D_WRITE_DATA.

Referenced by open_g3d_file().

◆ Rast3d_range_min_max()

void Rast3d_range_min_max ( RASTER3D_Map map,
double *  min,
double *  max 
)

Returns in min and max the minimum and maximum values of the range.

Parameters
mapa pointer to a raster 3D map object
mina pointer to a double to store minumim
maxa pointer to a double to store maximum

Definition at line 135 of file range.c.

References max, min, RASTER3D_Map::range, and Rast_get_fp_range_min_max().

Referenced by open_g3d_file(), and Rast3d_print_header().

◆ Rast3d_range_update_from_tile()

void Rast3d_range_update_from_tile ( RASTER3D_Map map,
const void *  tile,
int  rows,
int  cols,
int  depths,
int  xRedundant,
int  yRedundant,
int  zRedundant,
int  nofNum,
int  type 
)

◆ Rast3d_range_write()

int Rast3d_range_write ( RASTER3D_Map map)

Writes the range which is stored in the range structure of map. (This function is invoked automatically when a new file is closed).

Parameters
map
Returns
1 ... if successful 0 ... otherwise.

Definition at line 189 of file range.c.

References RASTER3D_Map::fileName, GPATH_MAX, RASTER3D_Map::mapset, RASTER3D_Map::range, Rast3d_error(), Rast3d_filename(), RASTER3D_RANGE_ELEMENT, and writeRange().

Referenced by close_new().

◆ Rast3d_read_range()

int Rast3d_read_range ( const char *  name,
const char *  mapset,
struct FPRange drange 
)

◆ writeRange()

static int writeRange ( const char *  name,
struct FPRange range 
)
static