Giter VIP home page Giter VIP logo

albertgallegojimenez / shoreline-evolution-toolbox Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 1.0 6.96 MB

Explore the dynamic history of coastlines with our Shoreline Evolution Analysis Toolbox for ArcGIS Pro. This repository houses a set of tools that allow the user to perform simple and automated regression analysis of a given coastal zone, all integrated into ArcGIS Pro.

Home Page: https://arcg.is/ez9KK0

License: GNU General Public License v3.0

Python 100.00%
arcgis-pro gis-development remote-sensing shoreline-change-analysis

shoreline-evolution-toolbox's People

Contributors

albertgallegojimenez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

roger120981

shoreline-evolution-toolbox's Issues

Error when re-running "2. Intersect Shorelines And Baseline With Transects" tool

This tool creates two output files, i.e. both baseline and shoreline intersection features.
The problem occurs when these output files are rewritten with the same filenames as the first time the tool was run. The error is raised when calling the arcpy.management.CreateFeatureclass() function. This function is used to create an empty feature class to be filled with the calculated intersection points for both baselines and shorelines.

As you can see in the image below, the traceback error that ArcGIS identifies is related to a problem with invalid characters in the filename, which makes no sense as this error does not appear the first time you run the tool.

I've done several tests to pretend to fix this problem, but for some reason that escapes me, the error doesn't always appear, even when I try to reproduce the exact same process that previously gave me an error. I've coded something that should fix this, but it doesn't, the following snippet detects if the filename already exists and removes it before calling the arcpy.management.CreateFeatureclass() function.
if arcpy.Exists(baseOutFeature):
arcpy.Delete_management(baseOutFeature)

For now, I have managed to solve the problem by doing the following:

  • Restart ArcGIS Pro when the error occurs.
  • Delete (if they still exist) the two baseline and shoreline intersection features in the default GDB where all the outputs are stored.
  • Re-run the tool.

image

Mislabelling at multiple intersections

I have identified a bug in the output of "2. Intersect Shorelines And Baseline With Transects" tool.
The problem occurs when there is at least one shoreline that intersects the same transect multiple times. The code I provided to handle this situation does not work as the following values of both the transect and shoreline IDs are not assigned correctly.

Error in "Plot the Analysis Results" Module with limited shoreline data

Description

I have detected an issue in the "Plot the Analysis Results" module of our tool. This problem occurs when performing a coastline evolution analysis (calculating retreat rates per year for each transect) with a minimal number of shorelines.

Error Traceback

Traceback (most recent call last):
File "C:\Users............TOOLBOXES\shoreline-evolution-toolbox\src\tools\plotResults.py", line 83, in execute
plotter.plot_seasonality(transects2plot=transectsID_2plot)
File "C:\Users............TOOLBOXES\shoreline-evolution-toolbox\src\tools\utils\plot_results.py", line 270, in plot_seasonality
shore_month = shore_month.append({'month': m,
File "C:\Users...\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\pandas\core\generic.py", line 5989, in getattr
return object.getattribute(self, name)
AttributeError: 'DataFrame' object has no attribute 'append'

Question

How this issue can be solved?
How do you recomend to proceed?

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.