-
This error is easily resolved by redownloading the radar data, but I'm running this particular script operationally, so when this error occurs, the script exits and I would miss the cycle. I was wondering is there a way to bypass this error? I am pulling the radar data from the TGFTP server. Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
@wxbinge Hmm would maybe a try and except, catch the error and rerun the download on the file work? or are you using pyarts nexrad reader to download the file? |
Beta Was this translation helpful? Give feedback.
-
I don't know why 'try and except' didn't cross my mind, but you're right. That will work to bypass the error. I'm using bash to download the radar files, so I'm going to need to do something creative to see if I can invoke a download from within the python script if the error arises. |
Beta Was this translation helpful? Give feedback.
-
@wxbinge that error occurs when the file is not completely downloaded. See the stack overflow discussion here You will need to add logic within your script to check to see if the file is completely downloaded yet, or consider streaming the data from Amazon Web Services (AWS), as we did in this example: |
Beta Was this translation helpful? Give feedback.
@wxbinge that error occurs when the file is not completely downloaded.
See the stack overflow discussion here
You will need to add logic within your script to check to see if the file is completely downloaded yet, or consider streaming the data from Amazon Web Services (AWS), as we did in this example: