pihmRasterLIBS/gridio.h File Reference

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <limits.h>
#include <math.h>
#include "gioapi.h"

Include dependency graph for gridio.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define NA   (10.0*FLT_MIN)
#define PI   3.14159265359
#define LINELEN   40
#define MAXLN   4096
#define RPSHRDTYPE   1
#define RPINTDTYPE   2
#define RPFLTDTYPE   3
#define RPSHRSIZE   (sizeof(short))
#define RPINTSIZE   (sizeof(int))
#define RPFLTSIZE   (sizeof(float))

Functions

void fgridread (char *file, void *dem, int *datatype, int *nx, int *ny, float *dx, float *dy, double bndbox[4], double *csize, float *ndv, int *filetype, int *igy)
void fgridwrite (char *file, void *dem, int *datatype, int *nx, int *ny, float *dx, float *dy, double bndbox[4], double *csize, float *ndv, int *filetype, int *igy)
int gridwrite (char *file, void **data, int datatype, int nx, int ny, float dx, float dy, double bndbox[4], double csize, float ndv, int filetype)
int gridread (char *file, void ***data, int datatype, int *nx, int *ny, float *dx, float *dy, double bndbox[4], double *csize, float *ndv, int *filetype)
void eol (FILE *fp)
int readline (FILE *fp, char *fline)
void ** matalloc (int nx, int ny, int datatype)
int nameadd (char *full, char *arg, char *suff)


Define Documentation

#define LINELEN   40

Definition at line 29 of file gridio.h.

Referenced by gridwrite().

#define MAXLN   4096

Definition at line 31 of file gridio.h.

Referenced by gridread(), gridwrite(), and readline().

#define NA   (10.0*FLT_MIN)

Definition at line 25 of file gridio.h.

#define PI   3.14159265359

Definition at line 27 of file gridio.h.

#define RPFLTDTYPE   3

Definition at line 37 of file gridio.h.

Referenced by catchmentGrid(), catchmentPoly(), flood(), gridread(), gridwrite(), setdir(), setdird8(), streamDefinition(), streamSegmentation(), and streamSegmentationShp().

#define RPFLTSIZE   (sizeof(float))

Definition at line 42 of file gridio.h.

#define RPINTDTYPE   2

Definition at line 36 of file gridio.h.

Referenced by aread8(), gridread(), gridwrite(), and setdfnoflood().

#define RPINTSIZE   (sizeof(int))

Definition at line 41 of file gridio.h.

#define RPSHRDTYPE   1

Definition at line 35 of file gridio.h.

Referenced by aread8(), catchmentGrid(), flood(), gridread(), gridwrite(), setdir(), setdird8(), streamSegmentation(), and streamSegmentationShp().

#define RPSHRSIZE   (sizeof(short))

Definition at line 40 of file gridio.h.


Function Documentation

void eol ( FILE *  fp  ) 

Definition at line 594 of file gridio.cpp.

References fseek().

Here is the call graph for this function:

void fgridread ( char *  file,
void *  dem,
int *  datatype,
int *  nx,
int *  ny,
float *  dx,
float *  dy,
double  bndbox[4],
double *  csize,
float *  ndv,
int *  filetype,
int *  igy 
)

void fgridwrite ( char *  file,
void *  dem,
int *  datatype,
int *  nx,
int *  ny,
float *  dx,
float *  dy,
double  bndbox[4],
double *  csize,
float *  ndv,
int *  filetype,
int *  igy 
)

int gridread ( char *  file,
void ***  data,
int  datatype,
int *  nx,
int *  ny,
float *  dx,
float *  dy,
double  bndbox[4],
double *  csize,
float *  ndv,
int *  filetype 
)

Definition at line 127 of file gridio.cpp.

References AccessWindowSet(), BndCellRead(), CAllocate1(), CELLFLOAT, CELLINT, CellLayerOpen(), CellLyrClose(), CFree1(), GetMissingFloat(), GetWindowRow(), GridIOExit(), GridIOSetup(), matalloc(), MAXLN, MISSINGINT, NULL, readline(), READONLY, ROWIO, RPFLTDTYPE, RPINTDTYPE, RPSHRDTYPE, type(), utme, utmn, WindowCols(), and WindowRows().

Referenced by aread8(), catchmentGrid(), catchmentPoly(), flood(), setdir(), setdird8(), streamDefinition(), streamSegmentation(), and streamSegmentationShp().

Here is the call graph for this function:

int gridwrite ( char *  file,
void **  data,
int  datatype,
int  nx,
int  ny,
float  dx,
float  dy,
double  bndbox[4],
double  csize,
float  ndv,
int  filetype 
)

Definition at line 410 of file gridio.cpp.

References AccessWindowClear(), AccessWindowSet(), CAllocate1(), CELLFLOAT, CELLINT, CellLayerCreate(), CellLyrClose(), CellLyrDelete(), CellLyrExists(), CFree1(), GetMissingFloat(), GridDelete(), GridIOExit(), GridIOSetup(), GridRename(), LINELEN, MAXLN, MISSINGINT, NULL, PutWindowRow(), ROWIO, RPFLTDTYPE, RPINTDTYPE, RPSHRDTYPE, type(), utme, utmn, and WRITEONLY.

Referenced by aread8(), catchmentGrid(), flood(), setdir(), setdird8(), streamDefinition(), and streamSegmentation().

Here is the call graph for this function:

void** matalloc ( int  nx,
int  ny,
int  datatype 
)

Definition at line 56 of file gridio.cpp.

References NULL.

Referenced by aread8(), flood(), gridread(), setdfnoflood(), setdir(), and setdird8().

int nameadd ( char *  full,
char *  arg,
char *  suff 
)

Definition at line 13 of file gridio.cpp.

References NULL.

int readline ( FILE *  fp,
char *  fline 
)

Definition at line 34 of file gridio.cpp.

References MAXLN.


Generated on Sun Aug 5 17:34:55 2007 for PIHMgis by  doxygen 1.5.2