Git Product home page Git Product logo

jdeters-usace / antecedent-precipitation-tool Goto Github PK

View Code? Open in Web Editor NEW
10.0 6.0 8.0 173.18 MB

Created to automate the climatological analysis workflows USACE Regulatory Project Managers are required to perform to comply with long-standing agency guidance as well as the new Navigable Waters Protection Rule, effective June 22, 2020..

Home Page: https://github.com/jDeters-USACE/Antecedent-Precipitation-Tool

License: Other

Python 100.00%
climatology regulatory usace cwa

antecedent-precipitation-tool's People

Contributors

jdeters-usace avatar jlgutenson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

antecedent-precipitation-tool's Issues

USGS server error - APT won't complete

For the last few months, every time I try to run APT I get the same error, no matter the location or dates entered.

"USGS Server: "The requested service is temporarily unavailable. Please try later."

Any help?

Can you help me connect?

Please find below the output from running Antecedent Precipitation Tool.exe, from the cmd.exe. My company IT department indicates that they are not blocking github and that there may be something that you can do to get me past the error and connect.

C:\Users\Gjimenez\Antecedent.Precipitation.Calculator (1)\Antecedent Precipitation Calculator>"Antecedent Precipitation Tool.exe"
Traceback (most recent call last):
File "D:\Code\Python\WinPythonARC_dev_EPA\WinPythonZero32\python-3.6.5\lib\site-packages\urllib3\connectionpool.py", line 603, in urlopen
File "D:\Code\Python\WinPythonARC_dev_EPA\WinPythonZero32\python-3.6.5\lib\site-packages\urllib3\connectionpool.py", line 344, in _make_request
File "D:\Code\Python\WinPythonARC_dev_EPA\WinPythonZero32\python-3.6.5\lib\site-packages\urllib3\connectionpool.py", line 843, in validate_conn
File "D:\Code\Python\WinPythonARC_dev_EPA\WinPythonZero32\python-3.6.5\lib\site-packages\urllib3\connection.py", line 370, in connect
File "D:\Code\Python\WinPythonARC_dev_EPA\WinPythonZero32\python-3.6.5\lib\site-packages\urllib3\util\ssl
.py", line 355, in ssl_wrap_socket
File "D:\Code\Python\WinPythonARC_dev_EPA\WinPythonZero32\python-3.6.5\lib\ssl.py", line 407, in wrap_socket
File "D:\Code\Python\WinPythonARC_dev_EPA\WinPythonZero32\python-3.6.5\lib\ssl.py", line 814, in init
File "D:\Code\Python\WinPythonARC_dev_EPA\WinPythonZero32\python-3.6.5\lib\ssl.py", line 1068, in do_handshake
File "D:\Code\Python\WinPythonARC_dev_EPA\WinPythonZero32\python-3.6.5\lib\ssl.py", line 689, in do_handshake
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Code\Python\WinPythonARC_dev_EPA\WinPythonZero32\python-3.6.5\lib\site-packages\requests\adapters.py", line 449, in send
File "D:\Code\Python\WinPythonARC_dev_EPA\WinPythonZero32\python-3.6.5\lib\site-packages\urllib3\connectionpool.py", line 641, in urlopen
File "D:\Code\Python\WinPythonARC_dev_EPA\WinPythonZero32\python-3.6.5\lib\site-packages\urllib3\util\retry.py", line 399, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /jDeters-USACE/Antecedent-Precipitation-Tool/master/v/wbd (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)'),))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Code\Python\WinPythonARC_dev_EPA\Antecedent_Precipitation_Tool.py", line 77, in
File "D:\Code\Python\WinPythonARC_dev_EPA\arc\get_all.py", line 129, in ensure_wbd_folder
File "D:\Code\Python\WinPythonARC_dev_EPA\arc\get_files.py", line 208, in get_only_newer_version
File "D:\Code\Python\WinPythonARC_dev_EPA\arc\get_files.py", line 97, in parse_version
File "D:\Code\Python\WinPythonARC_dev_EPA\WinPythonZero32\python-3.6.5\lib\site-packages\requests\api.py", line 75, in get
File "D:\Code\Python\WinPythonARC_dev_EPA\WinPythonZero32\python-3.6.5\lib\site-packages\requests\api.py", line 60, in request
File "D:\Code\Python\WinPythonARC_dev_EPA\WinPythonZero32\python-3.6.5\lib\site-packages\requests\sessions.py", line 533, in request
File "D:\Code\Python\WinPythonARC_dev_EPA\WinPythonZero32\python-3.6.5\lib\site-packages\requests\sessions.py", line 668, in send
File "D:\Code\Python\WinPythonARC_dev_EPA\WinPythonZero32\python-3.6.5\lib\site-packages\requests\sessions.py", line 668, in
File "D:\Code\Python\WinPythonARC_dev_EPA\WinPythonZero32\python-3.6.5\lib\site-packages\requests\sessions.py", line 247, in resolve_redirects
File "D:\Code\Python\WinPythonARC_dev_EPA\WinPythonZero32\python-3.6.5\lib\site-packages\requests\sessions.py", line 646, in send
File "D:\Code\Python\WinPythonARC_dev_EPA\WinPythonZero32\python-3.6.5\lib\site-packages\requests\adapters.py", line 514, in send
requests.exceptions.SSLError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /jDeters-USACE/Antecedent-Precipitation-Tool/master/v/wbd (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)'),))
[13828] Failed to execute script Antecedent_Precipitation_Tool

C:\Users\Gjimenez\Antecedent.Precipitation.Calculator (1)\Antecedent Precipitation Calculator>

Program will not open or place desktop icon

Hi, I and at least one other person are having an issue where the tool opens the terminal and the license agreement, but once we check the box and hit submit the software closes out and does not create the desktop icon.

APT crashing

Our wetland and soils scientists are using the new version of the tool (v1.0.20) and it keeps crashing. It ran successfully a few times, but lately they have been getting this message. They had no issues with the previous version of APT
Capture

Cannot use on mac?

I get a notification on my computer when I try to open main_ex.exe that it is not supported on Macs?

Weather Station Data Overflow

When I run the tool and there are more than ~10 weather stations, it causes an overflow on the PDF batch printout. The only workaround I found it to go through and individually delete the overflow rows. I would expect the excess data to either get truncated or continue to another page. Is there a setting in the tool that manages the batch PDF printout?

Antecedent run issue

"No suitable primary station locations were found by the APT..."

Recently when I try to use the APT it will seem to be functioning properly until it starts repeating the following text indefinitely.

"Searching for primary station...
No suitable primary station locations were found by the APT..."

APT Error

Attached is a screenshot of the input and error I've been running into.

I've attempted running the tool with several different locations and they all ended with the same error.
Any help with resolving this issue would be greatly appreciated.

NED EPQS Server Offline Error

I received the following error when attempting to use the APT tool today. It appears that the USGS EPQS that the APT is pulling from has been retired as of March 1, 2023. (https://ned.usgs.gov/epqs/)

#######################################################################################################################

-------------------------- USGS Elevation Point Query Service (EPQS) Status Check ---------------------------

#######################################################################################################################
Original - National Map Variant:
-Test URL: https://nationalmap.gov/epqs/pqs.php?x=-121.5&y=38.5&output=json&units=Feet
-Attempting to connect (15-second timeout)
Querying https://nationalmap.gov/epqs...

############################################
# --- National Map EPQS Server Offline --- #
############################################

New Mirror - National Elevation Dataset (NED) Variant:
-Test URL: https://ned.usgs.gov/epqs/pqs.php?x=-121.5&y=38.5&units=Feet&output=json
-Attempting to connect (15-second timeout)
Querying https://ned.usgs.gov/epqs...

###################################
# --- NED EPQS Server Offline --- #
###################################

The APT cannot complete this analysis.

The following error occurred. Please close the APT and reboot.

Exception in Tkinter callback
Traceback (most recent call last):
File "arc\anteProcess.py", line 207, in test_usgs_epqs_servers
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "tkinter_init_.py", line 1705, in call
File "arc\ant_GUI.py", line 742, in calculate_and_graph
File "arc\ant_GUI.py", line 791, in get_inputs_unique
File "arc\ant_GUI.py", line 1215, in calculate_or_add_batch
File "arc\anteProcess.py", line 379, in init
File "arc\anteProcess.py", line 225, in test_usgs_epqs_servers
Exception: The APT is unable to run if both USGS Elevation Point Query Services are offline.

Coordinates must be within the United States

Is it possible to use the APT outside the USA in countries with GHCN-Daily coverage?

Now I get the error: Coordinates must be within the United States!

This is a snapshot of the GHCN-Daily stations including Spain, the country in which I am interested.

image

Thank you for sharing your work!

Best regards,
Borja

Errors - Cannot complete analysis

No matter the dates or location entered the following errors occur:

The APT cannot complete this analysis.

The following error occurred. Please close the APT and reboot.

Exception in Tkinter callback
Traceback (most recent call last):
File "arc\anteProcess.py", line 191, in test_usgs_epqs_servers
TypeError: 'NoneType' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "tkinter_init_.py", line 1892, in call
File "arc\ant_GUI.py", line 773, in calculate_and_graph
File "arc\ant_GUI.py", line 837, in get_inputs_unique
File "arc\ant_GUI.py", line 1256, in calculate_or_add_batch
File "arc\anteProcess.py", line 356, in init
File "arc\anteProcess.py", line 204, in test_usgs_epqs_servers
Exception: The APT is unable to run if USGS Elevation Point Query Services are offline.

main_ex doesn't open application

I can move this issue/question to a different location if this isn't appropriate. I've followed the installation instructions on the erdc GitHub and am able to open the Antecedent Precipitation Tool directory from my desktop. When I double click main_ex.exe a command prompt window opens and closes quickly. I'm not seeing Antecedent Precipitation Tool.exe anywhere. I'm working on a Windows 10 64-bit system.

RuntimeError

Keep getting error PROJ: proj_identify: cannot find proj.db
Unsure if this has something to do with the error posted last week but any help would be greatly appreciated. This is my first time using Antecedent so it could certainly be an operator error.

Thanks,
B

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.