#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 LINELEN 40 |
#define MAXLN 4096 |
#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 RPINTDTYPE 2 |
Definition at line 36 of file gridio.h.
Referenced by aread8(), gridread(), gridwrite(), and setdfnoflood().
#define RPSHRDTYPE 1 |
Definition at line 35 of file gridio.h.
Referenced by aread8(), catchmentGrid(), flood(), gridread(), gridwrite(), setdir(), setdird8(), streamSegmentation(), and streamSegmentationShp().
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 | |||
) |
int readline | ( | FILE * | fp, | |
char * | fline | |||
) |