Expand description
Sample a bounding box into an elevation grid — the Rust twin of
SRTM.py’s get_image(..., mode='array') as used by ridge_map.
Functions§
- sample
- Sample
num_lines x elevation_ptselevations overbbox. - sample_
disc - Sample a square, disc-masked region:
n x npoints over a square of sidespan_degcentered at(center_lat, center_lon), with samples outside the inscribed circle (radiusspan_deg / 2) set to NaN. - sample_
window - Sample an ANISOTROPIC display window from a preprocessed square data
grid. The window covers
lat0..lat1 x lon0..lon1atnum_lines x elevation_ptssamples (cells of(lat1-lat0)/num_lines x (lon1-lon0)/elevation_ptsdegrees), reading the data grid at nearest nodes; positions outside the data grid become NaN. - swap_
for_ angle - Upstream
get_elevation_dataswaps the sampling resolution when the viewpoint angle is within the (45..135 | 225..315) degree bands.