isce3  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
isce3::geometry::DEMInterpolator Class Reference

Public Member Functions

 DEMInterpolator ()
 Default constructor with reference height of 0, bilinear interpolation.
 
 DEMInterpolator (float height, int epsg=4326)
 Constructor with custom reference height and bilinear interpolation.
 
 DEMInterpolator (float height, isce3::core::dataInterpMethod method, int epsg=4326)
 Constructor with custom reference height and custom interpolator method.
 
 ~DEMInterpolator ()
 Destructor.
 
void loadDEM (isce3::io::Raster &demRaster, double minX, double maxX, double minY, double maxY)
 Read in subset of data from a DEM with a supported projection. More...
 
void loadDEM (isce3::io::Raster &demRaster)
 Read in entire DEM with a supported projection. More...
 
void declare () const
 
void computeHeightStats (float &maxValue, float &meanValue, pyre::journal::info_t &info)
 Compute max and mean DEM height. More...
 
double interpolateLonLat (double lon, double lat) const
 Interpolate at a given longitude and latitude. More...
 
double interpolateXY (double x, double y) const
 Interpolate at native XY coordinates of DEM. More...
 
double xStart () const
 Get starting X coordinate.
 
void xStart (double xstart)
 Set starting X coordinate.
 
double yStart () const
 Get starting Y coordinate.
 
void yStart (double ystart)
 Set starting Y coordinate.
 
double deltaX () const
 Get X spacing.
 
void deltaX (double deltax)
 Set X spacing.
 
double deltaY () const
 Get Y spacing.
 
void deltaY (double deltay)
 Set Y spacing.
 
double midX () const
 Get mid X coordinate.
 
double midY () const
 Get mid Y coordinate.
 
cartesian_t midLonLat () const
 Get mid longitude and latitude.
 
bool haveRaster () const
 Flag indicating whether a DEM raster has been loaded.
 
double refHeight () const
 Get reference height of interpolator.
 
void refHeight (double h)
 Set reference height of interpolator.
 
double meanHeight () const
 Get mean height value.
 
double maxHeight () const
 Get max height value.
 
float * data ()
 Get pointer to underlying DEM data.
 
const float * data () const
 Get pointer to underlying DEM data.
 
size_t width () const
 Get width of DEM data used for interpolation.
 
void width (int width)
 Set width of DEM data used for interpolation.
 
size_t length () const
 Get length of DEM data used for interpolation.
 
void length (int length)
 Set length of DEM data used for interpolation.
 
int epsgCode () const
 Get EPSG code for input DEM.
 
void epsgCode (int epsgcode)
 Set EPSG code for input DEM.
 
isce3::core::dataInterpMethod interpMethod () const
 Get interpolator method enum.
 
void interpMethod (isce3::core::dataInterpMethod interpMethod)
 Set interpolator method enum.
 

Member Function Documentation

void isce3::geometry::DEMInterpolator::computeHeightStats ( float &  maxValue,
float &  meanValue,
pyre::journal::info_t &  info 
)

Compute max and mean DEM height.

Parameters
[out]maxValueMaximum DEM height
[out]meanValueMean DEM height
[in]infoPyre journal channel for printing info.
double isce3::geometry::DEMInterpolator::interpolateLonLat ( double  lon,
double  lat 
) const

Interpolate at a given longitude and latitude.

Parameters
[in]lonLongitude of interpolation point.
[in]latLatitude of interpolation point.

Interpolate DEM at a given longitude and latitude

double isce3::geometry::DEMInterpolator::interpolateXY ( double  x,
double  y 
) const

Interpolate at native XY coordinates of DEM.

Parameters
[in]xX-coordinate of interpolation point.
[in]yY-coordinate of interpolation point.

Interpolate DEM at native coordinates

void isce3::geometry::DEMInterpolator::loadDEM ( isce3::io::Raster demRaster,
double  minX,
double  maxX,
double  minY,
double  maxY 
)

Read in subset of data from a DEM with a supported projection.

Parameters
[in]demRasterinput DEM raster to subset
[in]minLonLongitude of western edge of bounding box
[in]maxLonLongitude of eastern edge of bounding box
[in]minLatLatitude of southern edge of bounding box
[in]maxLatLatitude of northern edge of bounding box

Loads a DEM subset given the extents of a bounding box

void isce3::geometry::DEMInterpolator::loadDEM ( isce3::io::Raster demRaster)

Read in entire DEM with a supported projection.

Parameters
[in]demRasterinput DEM raster to subset

Loads the entire DEM


The documentation for this class was generated from the following files:

Generated for ISCE3.0 by doxygen 1.8.5.