A static class to compute various DEM-related parameters (such as shading, view factors, etc)
|
static Grid2DObject | getHillshade (const DEMObject &dem, const double &elev, const double &azimuth) |
| Computes the hillshade for the dem This "fake illumination" method is used to better show the relief on maps. More...
|
|
static double | getHorizon (const DEMObject &dem, const size_t &ix1, const size_t &iy1, const double &bearing) |
| Returns the tangente of the horizon from a given point looking toward a given bearing. More...
|
|
static double | getHorizon (const DEMObject &dem, Coords point, const double &bearing) |
| Returns the tangente of the horizon from a given point looking toward a given bearing. More...
|
|
static std::vector< std::pair< double, double > > | getHorizonScan (const DEMObject &dem, Coords point, const double &increment) |
| Returns the horizon from a given point looking 360 degrees around by increments. If the provided point does not fit within the provided DEM, an empty result set is returned. More...
|
|
static std::map< std::string, std::vector< std::pair< double, double > > > | readHorizonScan (const std::string &where, const std::string &filename) |
| Read the horizons from a given set of points looking 360 degrees around provided in a file. More...
|
|
static double | getHorizon (const std::vector< std::pair< double, double > > &horizon, const double &azimuth) |
| Linearly interpolate the horizon height for any given azimuth given a set of (azimuth, elevation) points. More...
|
|
static void | writeHorizons (const std::map< std::string, std::vector< std::pair< double, double > > > &horizon, const std::string &filename) |
| Write to a file the horizons from a given set of points looking 360 degrees around. More...
|
|
static double | getCellSkyViewFactor (const DEMObject &dem, const size_t &ii, const size_t &jj) |
| Compute the sky view factors for the terrain radiation based on the DEM. This is inspired (ie with some changes) by Manners, J., S. B. Vosper, and N. Roberts, "Radiative transfer over resolved
topographic features for highâresolution weather prediction", Quarterly journal of the royal meteorological society, 138.664, pp720-733, 2012. More...
|
|
double mio::DEMAlgorithms::getCellSkyViewFactor |
( |
const DEMObject & |
dem, |
|
|
const size_t & |
ii, |
|
|
const size_t & |
jj |
|
) |
| |
|
static |
Compute the sky view factors for the terrain radiation based on the DEM. This is inspired (ie with some changes) by Manners, J., S. B. Vosper, and N. Roberts, "Radiative transfer over resolved
topographic features for highâresolution weather prediction", Quarterly journal of the royal meteorological society, 138.664, pp720-733, 2012.
- Parameters
-
[in] | dem | DEM to work with |
[in] | ii | x coordinate of the cell whose view factor should be computed |
[in] | jj | y coordinate of the cell whose view factor should be computed |
- Returns
- sky view factor