Public Member Functions | |
Raster () | |
Raster (int NROWS, int NCOLS, double XLL, double YLL, double CELLSIZE, int NODATA=-9999, double VALUE=0.0) | |
Raster (const Raster &rast, double value) | |
Raster (const Raster &rast) | |
Raster & | operator= (const Raster &rast) |
bool | conformal (const Raster &rast) |
bool | match (const Raster &rast) |
bool | inside (double x, double y) |
double | interpValue (double x, double y) |
double | getValue (double x, double y) |
int | getIndex (double x, double y, int &row, int &col) |
int | write (const char fileName[]) |
int | read (const char fileName[]) |
double | getX (int col) |
double | getY (int row) |
double | max () |
double | min () |
double | sum () |
Raster | where (const Raster &rast, const Raster &rast1, const Raster &rast2) |
Raster | where (const Raster &rast, const double &val1, const double &val2) |
void | scale (double value) |
void | whereAdd (const Raster &rast, double value) |
void | translate (const double &x, const double &y) |
~Raster () | |
Raster () | |
Raster (int NROWS, int NCOLS, double XLL, double YLL, double CELLSIZE, int NODATA=-9999, double VALUE=0.0) | |
Raster (const Raster &rast, double value) | |
Raster (const Raster &rast) | |
Raster & | operator= (const Raster &rast) |
bool | conformal (const Raster &rast) |
bool | match (const Raster &rast) |
bool | inside (double x, double y) |
double | interpValue (double x, double y) |
double | getValue (double x, double y) |
int | getIndex (double x, double y, int &row, int &col) |
int | write (const char fileName[]) |
int | read (const char fileName[]) |
double | getX (int col) |
double | getY (int row) |
double | max () |
double | min () |
double | sum () |
Raster | where (const Raster &rast, const Raster &rast1, const Raster &rast2) |
Raster | where (const Raster &rast, const double &val1, const double &val2) |
void | scale (double value) |
void | whereAdd (const Raster &rast, double value) |
void | translate (const double &x, const double &y) |
~Raster () | |
Data Fields | |
int | nrows |
int | ncols |
double | xll |
double | yll |
double | xur |
double | yur |
double | cellsize |
double | nodata |
std::vector< std::vector< double > > | data |
Raster | ( | ) |
Raster | ( | int | NROWS, |
int | NCOLS, | ||
double | XLL, | ||
double | YLL, | ||
double | CELLSIZE, | ||
int | NODATA = -9999 , |
||
double | VALUE = 0.0 |
||
) |
Raster | ( | ) |
Raster | ( | int | NROWS, |
int | NCOLS, | ||
double | XLL, | ||
double | YLL, | ||
double | CELLSIZE, | ||
int | NODATA = -9999 , |
||
double | VALUE = 0.0 |
||
) |
~Raster | ( | ) |
bool conformal | ( | const Raster & | rast | ) |
bool match | ( | const Raster & | rast | ) |
bool inside | ( | double | x, |
double | y | ||
) |
double interpValue | ( | double | x, |
double | y | ||
) |
Definition at line 256 of file Raster.C.
References Foam::constant::physicoChemical::b, data, Foam::exit(), getIndex(), getX(), getY(), ncols, nrows, Foam::pow(), Foam::sqrt(), x, and y.
double getValue | ( | double | x, |
double | y | ||
) |
Definition at line 173 of file Raster.C.
References data, Foam::exit(), getIndex(), x, and y.
int getIndex | ( | double | x, |
double | y, | ||
int & | row, | ||
int & | col | ||
) |
int write | ( | const char | fileName[] | ) |
int read | ( | const char | fileName[] | ) |
double getX | ( | int | col | ) |
Definition at line 186 of file Raster.C.
Referenced by interpValue().
double getY | ( | int | row | ) |
Definition at line 191 of file Raster.C.
Referenced by interpValue().
double max | ( | ) |
double min | ( | ) |
void scale | ( | double | value | ) |
void whereAdd | ( | const Raster & | rast, |
double | value | ||
) |
void translate | ( | const double & | x, |
const double & | y | ||
) |
bool conformal | ( | const Raster & | rast | ) |
bool match | ( | const Raster & | rast | ) |
bool inside | ( | double | x, |
double | y | ||
) |
double interpValue | ( | double | x, |
double | y | ||
) |
double getValue | ( | double | x, |
double | y | ||
) |
int getIndex | ( | double | x, |
double | y, | ||
int & | row, | ||
int & | col | ||
) |
int write | ( | const char | fileName[] | ) |
int read | ( | const char | fileName[] | ) |
double getX | ( | int | col | ) |
double getY | ( | int | row | ) |
double max | ( | ) |
double min | ( | ) |
double sum | ( | ) |
void scale | ( | double | value | ) |
void whereAdd | ( | const Raster & | rast, |
double | value | ||
) |
void translate | ( | const double & | x, |
const double & | y | ||
) |
int nrows |
Definition at line 15 of file Raster.H.
Referenced by getIndex(), interpValue(), intersect(), match(), max(), min(), operator*(), operator+(), operator-(), operator/(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), Raster(), read(), canopySource::readRaster(), scale(), sum(), where(), whereAdd(), and write().
int ncols |
Definition at line 16 of file Raster.H.
Referenced by getIndex(), interpValue(), intersect(), match(), max(), min(), operator*(), operator+(), operator-(), operator/(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), Raster(), read(), canopySource::readRaster(), scale(), sum(), where(), whereAdd(), and write().
double xll |
Definition at line 17 of file Raster.H.
Referenced by conformal(), getIndex(), getX(), inside(), match(), operator=(), Raster(), read(), canopySource::readRaster(), translate(), and write().
double yll |
Definition at line 18 of file Raster.H.
Referenced by conformal(), getIndex(), getY(), inside(), match(), operator=(), Raster(), read(), canopySource::readRaster(), translate(), and write().
double xur |
Definition at line 19 of file Raster.H.
Referenced by getIndex(), inside(), operator=(), Raster(), read(), canopySource::readRaster(), and translate().
double yur |
Definition at line 20 of file Raster.H.
Referenced by getIndex(), inside(), operator=(), Raster(), read(), canopySource::readRaster(), and translate().
double cellsize |
Definition at line 21 of file Raster.H.
Referenced by conformal(), getIndex(), getX(), getY(), operator=(), Raster(), read(), canopySource::readRaster(), and write().
double nodata |
Definition at line 22 of file Raster.H.
Referenced by max(), min(), operator*(), operator+(), operator-(), operator/(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), Raster(), read(), scale(), sum(), where(), and whereAdd().
std::vector< std::vector< double > > data |
Definition at line 23 of file Raster.H.
Referenced by getValue(), interpValue(), intersect(), max(), min(), operator*(), operator+(), operator-(), operator/(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), Raster(), read(), scale(), sum(), where(), whereAdd(), and write().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.