Code Monkey home page Code Monkey logo

bal's People

Contributors

cekrause avatar tina5870 avatar wcarthur avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bal's Issues

BAL tool script not working in Arcgis environment

Tried to run the latest BAL Tool and received this error:
Traceback (most recent call last):
File "H:\BAL_GA\BAL-master\bal.py", line 21, in
from utilities.sa_tools import extract_by_mask, reclassify, cal_slope_aspect
File "H:\BAL_GA\BAL-master\utilities\sa_tools.py", line 17, in
from scipy import ndimage
ImportError: No module named scipy

Failed to execute (BAL).

Assistance will be greatly appreciated and thank you

Input datasets must be in same folder

Input DEM and classified vegetation raster layers must be in the same directory. This is documented, but it would be easier to remove this dependency on the location of the input data.

Traceback generated when DEM and vegetation data are in different directories:

  File "C:\WorkSpace\bal\bal.py", line 370, in <module>
    run()
  File "C:\WorkSpace\bal\bal.py", line 356, in run
    mask = find_aoi(extent, dem, veg)
  File "C:\WorkSpace\bal\bal.py", line 308, in find_aoi
    arcpy.Intersect_analysis([dem_poly, veg_poly], mask)
  File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\analysis.py", line 317, in Intersect
    raise e
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: Input Features: Dataset dem_poly.shp #;C:\WorkSpace\bal\examples\input\veg_poly.shp # does not exist or is not supported
Failed to execute (Intersect).


Failed to execute (BAL).

Code tests require python

Difficulties in setting Python paths for locked down computers - tests require python path to set location of python.exe

QGIS plugin option

Can we develop this as a QGIS plugin? That would require modification of the interface and completely removing dependency on arcpy from the core algorithm (not just removing the Spatial Analyst dependency).

Using BAL tool on ArcMap 10.6.1

Have added Pythonpath to C:Python2.7, etc; tool still won't run. Ran unit tests through cmd (admin), some tests work (not all). Error message via Arcmap
Traceback (most recent call last):
File "C:\Python27\ArcGIS10.6\BAL-2.1.2\bal.py", line 371, in
run()
File "C:\Python27\ArcGIS10.6\BAL-2.1.2\bal.py", line 357, in run
mask = find_aoi(extent, dem, veg)
File "C:\Python27\ArcGIS10.6\BAL-2.1.2\bal.py", line 317, in find_aoi
get_extent_mask(extent, mask)
File "C:\Python27\ArcGIS10.6\BAL-2.1.2\bal.py", line 247, in get_extent_mask
array.add(arcpy.Point(float(extent_list[0]), float(extent_list[1])))
ValueError: could not convert string to float: None

Failed to execute (BAL).

Error running BAL toolbox ArcGIS10.5

Executing: BAL "C:\Data\BAL Toolbox\BAL-2.1.2\examples\input\jerram_dem" "C:\Data\BAL Toolbox\BAL-2.1.2\examples\input\jerram_veg" "1 6;2 1;3 1;4 1;5 13 2;14 5;15 18 3;19 22 7;23 4;24 25 NODATA;26 4;27 28 NODATA;29 4;30 1;31 2;32 5;99 NODATA" "C:\Data\BAL Toolbox\BAL-2.1.2\examples\output" 80 #
Start Time: Thu Jun 08 11:39:59 2017
Running script BAL...
DEM's spatial reference type is Projected
Get the area of interest from the input extent ...
Failed script BAL...

Traceback (most recent call last):
File "C:\Data\BAL Toolbox\BAL-2.1.2\bal.py", line 371, in
run()
File "C:\Data\BAL Toolbox\BAL-2.1.2\bal.py", line 357, in run
mask = find_aoi(extent, dem, veg)
File "C:\Data\BAL Toolbox\BAL-2.1.2\bal.py", line 317, in find_aoi
get_extent_mask(extent, mask)
File "C:\Data\BAL Toolbox\BAL-2.1.2\bal.py", line 247, in get_extent_mask
array.add(arcpy.Point(float(extent_list[0]), float(extent_list[1])))
ValueError: could not convert string to float: None

Failed to execute (BAL).
Failed at Thu Jun 08 11:39:59 2017 (Elapsed Time: 0.09 seconds)

Test command adds .txt to file names for test datasets

Some of the tests appeared to append .txt to the filename for the raster comparison output files. In some of the tests, the result is written to an xml file, which may be appending .txt to the basename.

Can't attribute this to an ArcGIS version problem

Change the theme color for the docs

Would prefer to use GA standard colours for the documentation, but seems the sphinx_rtd_theme is fairly stubborn about allowing this sort of change.

The primary colours are (all in hexadecimal representation):
"#006983" - Deep teal
"#A33F1F" - Deep red/brown - for the BAL this is the prefered option as the main colour
Highlights: "#72C7E7" - sky blue
Secondary colours:
"#A5D867" - Pale green
"#CA7700" - Orange
"#6E7645"- Green/grey
"#988642" - Dark tan
"#003145" - Deep blue
"#5E6A71" - Grey/blue

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.