Viewshed | A GDAL-based Viewshed command line tool with python bindings | Machine Learning library
kandi X-RAY | Viewshed Summary
kandi X-RAY | Viewshed Summary
A GDAL-based Viewshed command line tool with python bindings
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Viewshed
Viewshed Key Features
Viewshed Examples and Code Snippets
Community Discussions
Trending Discussions on Viewshed
QUESTION
---- Update with what I got so far and what's left to resolve can be found in point 3 below ----
Using Octave I want to create 30 horizontal box and whisker plots without spread (x-axis) from 30 different GeoTIFF's. This is a sketch of how I would like the plot to look like:
Ideally the best solution for me would be an Octave code (workflow) that would allow me to place multiple GeoTIFFs in one directory and then with one click create a box and whisker plot for all GeotIFFs at once - just like the sketch above.
A GeoTIFF-sample with 3 GeoTIFF's can be downloaded here. The file looks like this in QGIS:
It holds elevation values on band 1 (the ones that each box and whisker plot should be based on, and no data values (-999), the no-data values should be excluded from the plot.
Right now this is what I got:
- Using
img = imread ("filname.tif")
gets the file into Octave. Usinghist (img(:), 200);
shows that all cells are concentrated around 65300.imagesc (img, [65100 65600])
follwed bycolorbar
displays the image extent but's it's clear that this way simply doesn't import the real cell values. I can't find a working solution to import GeoTIFF's with cell values, therefor my current work-around is exporting the GeoTIFF from QGIS withgdal_translate -of aaigrid
which creates a .asc-file that I manually edit to remove header rows, rename to .csv and load into Octave. That .csv can be found here. To load it and create a box plot I'm currently using this code (thanks to @Andy and @Cris Luengo):
...
ANSWER
Answered 2018-Jan-14 at 16:47Does not directly read GeoTIFF but calls gdal_translate under the hood. Just place all your .tif in the same directory. Make sure gdal_translate is in your PATH:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Viewshed
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page