Elevation Dataset from NOAA
BRIDGES provides easy access to NOAA Grid Extraction's elevation data. This dataset is able to provide an ASCII grid of elevation values from the ETOPO1 elevation map. The resolution for this map is about 1 arc minute.
The program snippet below illustrates how to obtain elevation using a bounding box of latitude and longitude. When using a bounding box for your input slection put the coordinates in the order of minLat, minLon, maxLat, maxLon or (SWNE).
Suggested Examples:
data_source.get_elevation_data([36.8241, -116.8369, 35.7797, -117.4074])
data_source.get_elevation_data([49.0872, -113.6184, 47.3746, -114.8143])
data_source.get_elevation_data([40.1924, -79.3980, 37.5021, -81.8810])
See also
This tutorial gives an introduction to the usage of ColorGrid. You can find the complete documentation of the features in the Doxygen documentation of the following classes and functions:
Accessing Elevation Data: An Example BRIDGES program
- Copy/paste the code into your environment and compile.
- Assuming all your code is correct and it compiles correctly, the code will print basic meta data on the data and the first few entries.