RPellitero / ELA-calculation-toolbox

A GIS tool for automatic calculation of glacier equilibrium-line altitudes
2 stars 8 forks source link

ValueError: max() arg is an empty sequence #1

Open sk1me opened 5 years ago

sk1me commented 5 years ago

Anyone know how can I repair the error?

ELA_calculation_toolbox.tbx#AABR.py", line 134, in <module>
ValueError: max() arg is an empty sequence

Thank you.

RPellitero commented 5 years ago

Hi, I can help you. Please tell me the context in which you got the error, especially what is the input you used in the argument that gave the error

sk1me commented 5 years ago

Hey,

I resolved an error using the toolbox on another computer (where the bug wasn't present). Inputs were the same: my glacier DEM, standard Interval (50) and balance ratio (1).

Searching through the internet I see that this could be connected to the version of the python.

RPellitero commented 5 years ago

Cool! Thanks for using the tool, any other question please ask. Kind regards

On Mon, 18 Mar 2019 at 09:45, sk1me notifications@github.com wrote:

Hey,

I resolved an error using the toolbox on another computer (where the bug wasn't present). Inputs were the same: my glacier DEM, standard Interval (50) and balance ratio (1).

Searching through the internet I see that this could be connected to the version of the python.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/RPellitero/ELA-calculation-toolbox/issues/1#issuecomment-473819248, or mute the thread https://github.com/notifications/unsubscribe-auth/ALug9MtpBDRjn_DD8cSHg73nfUmq96Ezks5vX1IvgaJpZM4bpfwl .

--

Ramón Pellitero Ondicol. Profesor Ayudante Doctor / Teaching Fellow Facultad de Geografía e Historia Universidad Nacional de Educación a Distancia / National Distance Education University (UNED) Paseo Senda del Rey, 7, 28040 Madrid (Spain)

BorisGlacio commented 5 years ago

Hello ! I have exactlly the same error message , but i don't have other computer...I use my DEM of paleoglacier recosntructed whith glare, and the same ratio...

LPlazer commented 5 years ago

hello, i've installed ELA-toolbox on my ArcGIS 10.1 version. very cool, just have one problem, i don't see the 4rth tool (raster surfer creation from contour line) wich you talk about in the reading paper. any suggestion to add it? thank you very much.

ela prob

RPellitero commented 5 years ago

Hi, thanks for using the tool. There was a fourth tool which calculated ELA for all the glaciers within a folder, but the one you mention was never available, sorry if it is mentioned in the paper. However, turning contours into a raster surface is a fairly easy GIS procedure, if that is what you mean. Kind regards Ramón

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Libre de virus. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Thu, 16 May 2019 at 12:19, LPlazer notifications@github.com wrote:

hello, i've installed ELA-toolbox on my ArcGIS 10.1 version. very cool, just have one problem, i don't see the 4rth tool (raster surfer creation from contour line) wich you talk about in the reading paper. any suggestion to add it? thank you very much.

[image: ela prob] https://user-images.githubusercontent.com/50700554/57846450-833b8980-77d4-11e9-880e-c7e5e3a6d24e.JPG

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/RPellitero/ELA-calculation-toolbox/issues/1?email_source=notifications&email_token=AC52B5HN3372RLJLGQW654TPVUYKJA5CNFSM4G5F7QS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVRLUPQ#issuecomment-493009470, or mute the thread https://github.com/notifications/unsubscribe-auth/AC52B5DWSM3CJMRAYM2ZPLLPVUYKJANCNFSM4G5F7QSQ .

--

Ramón Pellitero Ondicol. Profesor Ayudante Doctor / Teaching Fellow Facultad de Geografía e Historia Universidad Nacional de Educación a Distancia / National Distance Education University (UNED) Paseo Senda del Rey, 7, 28040 Madrid (Spain)

guidopilato commented 5 years ago

Hi! ELA-calculation-toolbox works in Arcgis 10.6 ? ! I have exactlly the same error message. Can you help me ? This is the message

Executing: AAR-AABR-several-ratio "C:\Users\Guidopilato\Desktop\RAS\ELA-calculation-toolbox-master\ELA-calculation-toolbox-master\Viedma DEM.tif" C:\Users\Guidopilato\Desktop\RAS\ELA-calculation-toolbox-master\ELA-calculation-toolbox-master 10 "0.4 0.8 0.05" "0.9 4.4 0.1" Start Time: Thu Aug 8 12:30:03 2019 Running script AAR-AABR-several-ratio... 0,4 0,8 0,05 0,9 4,4 0,1 Failed script AAR-AABR-several-ratio...

Traceback (most recent call last): File "C:\Users\Guidopilato\Desktop\RAS\ELA-calculation-toolbox-master\ELA-calculation-toolbox-master\ELA_calculation_toolbox.tbx#AAR-AABR-several-ratio.py", line 79, in File "c:\program files (x86)\arcgis\desktop10.6\arcpy\arcpy\management.py", line 17050, in GetRasterProperties raise e ExecuteError: ERROR 001100: Failed because no statistics are available. Failed to execute (GetRasterProperties).

Failed to execute (AAR-AABR-several-ratio). Failed at Thu Aug 8 12:30:03 2019 (Elapsed Time: 0,12 seconds)

calen-rubin commented 2 years ago

Hi, I'm getting the following error message when I try to run AABR (and AA) in the toolbox:

Traceback (most recent call last): File "C:\Users\cr1125\OneDrive - USNH\Desktop\ELA_calculation_toolbox.tbx#AABR.py", line 84, in File "C:\Program Files\VirtualApps\ArcGIS\Pro\Resources\ArcPy\arcpy__init__.py", line 266, in GetMessage return gp.getMessage(index) File "C:\Program Files\VirtualApps\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing_base.py", line 135, in getMessage self._gp.GetMessage(*gp_fixargs(args, True))) RuntimeError: Object: Error in getting message

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\cr1125\OneDrive - USNH\Desktop\ELA_calculation_toolbox.tbx#AABR.py", line 86, in AttributeError: 'RuntimeError' object has no attribute 'message' Failed to execute (AABR).