Plot hillshade over Lake Kossou using satellite elevation data
Project description
Python-based analysis of geospatial data
Replication of results described in [^1].
conda create -c conda-forge -n kossou-hillshade earthpy matplotlib misaka numpy rasterio
pip install kossou-hillshade-cli
kossou-hillshade --colormap cividis Figure_3_Hillshade_Kossou_1609.jpg
kossou-hillshade --azimuth 230 Figure_4_Azimuth_hillshade_Kossou.jpg
kossou-hillshade --altitude 10 --colormap magma Figure_5_Angle_hillshade_Kossou.jpg
Download elevation file
To download the elevation file, first register an account on the USGS EROS registration system to get download access via EarthExplorer and/or GloVis.
EarthExplorer
Under the Datasets tab, under the Digital Elevation category, under the SRTM subcategory, select SRTM Void Filled.
Under the Additional Criteria tab, set Entity ID to SRTM3N07W006V2.
The results tab will then contain the SRTM Void Filled DEM entity with ID SRTM3N07W006V2, as described in [^1].
You can select the Download Options icon and download the GeoTIFF 3 Arc-second file, n07_w006_3arc_v2.tif
.
GloVis
Under the Interface Controls, click the "+" next to "Selected Data Set(s) and add the SRTM Void Filled data set.
Add a Dataset Metadata Filter for the SRTM Void Filled dataset with Entity ID SRTM3N07W006V2, and apply the filter.
You may need to scroll the map view to west Africa in order to find the result. The scene will appear in the Scene Navigator, where you can view the download options and download the GeoTIFF 3 Arc-second file n07_w006_3arc_v2.tif
.
Download landsat files
Similar to above, use EarthExplorer or GloVis to search the Landsat 8-9 OLI/TIRS C2 L1 dataset for a result with Landsat Product Identifier L1 of LC09_L1TP_197055_20220111_20230502_02_T1.
Generate plots
The results of [^1] may be replicated by running:
kossou-hillshade --geotiff n07_w006_3arc_v2.tif --colormap cividis Figure_3_Hillshade_Kossou_1609.jpg
kossou-hillshade --geotiff n07_w006_3arc_v2.tif --azimuth 230 --colormap plasma Figure_4_Azimuth_hillshade_Kossou.jpg
kossou-hillshade --geotiff n07_w006_3arc_v2.tif --altitude 10 --colormap magma Figure_5_Angle_hillshade_Kossou.jpg
In fact, the geotiff file n07_w006_3arc_v2.tif
is included in the kossou-hillshade-base
package, so this will also work:
kossou-hillshade --colormap cividis Figure_3_Hillshade_Kossou_1609.jpg
kossou-hillshade --azimuth 230 --colormap plasma Figure_4_Azimuth_hillshade_Kossou.jpg
kossou-hillshade --altitude 10 --colormap magma Figure_5_Angle_hillshade_Kossou.jpg
[^1]: Polina Lemenkova and Olivier Debeir, Satellite Image Processing by Python and R Using Landsat 9 OLI/TIRS and SRTM DEM Data on Côte d’Ivoire, West Africa. J. Imaging 2022
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file kossou_hillshade_cli-0.0.5.tar.gz
.
File metadata
- Download URL: kossou_hillshade_cli-0.0.5.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b265e0e2186f495d81011c08968448ba932fb74829d0be6c2d668522a567607 |
|
MD5 | 5f4047cef22669f470a547682d22abe2 |
|
BLAKE2b-256 | b1e751ecdf8b2b9ad92a671457ea68f8cc2bf56cc72648c84807cc37659a2e25 |
File details
Details for the file kossou_hillshade_cli-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: kossou_hillshade_cli-0.0.5-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5911d45b8f30302b05e3b65144c68fc09b7e6f657795f89efda8851e88866936 |
|
MD5 | 7e6787ef909bde41754e17b0ef8fe50c |
|
BLAKE2b-256 | 269126e0de982d0433f29adc75c91d63b26accf5e63c920373f7d15e553a9567 |