Closed biglimp closed 2 years ago
This seems to be an upstream issue in either CDSAPI or tqdm
(a progress bar tool).
@biglimp do you have a code snippet for me to reproduce this error?
import supy as sp
lat = 57.70709605197915
lon = 11.963822561731366
startDate = 2000-01-01T00:00:00
endDate = 2000-01-02T00:00:00
outputDir = 'C:\temp'
sp.util.gen_forcing_era5(lat, lon, startDate, endDate, dir_save=outputDir)
Hm, I wonder if I need to use pathlib to get a valid path...
Also, the CDSAPI is mostly super slow. Is that something we have to live with? Why do you think this tool is so fast. Is the data pre-processed (https://shinyweatherdata.com/)?
I solved it using pathlib
Great to know it can be solved in such a simple way: sorry didn't get a chance to look at that yet.
So I might also add a lighter wrapper in supy
to deal with this if a pure string path is passed in.
Hi there! I have the same issue. When I request vie UMEP > Pre-processor, the tool is endless running. I checked my request at CDS portal and it was finished there, so I could download it. I want to try this workaround with pathlib. Can you please give further details on how to proceed? Should I try a code line with the processing run? Thanks!
Hi @biglimp , how did you exactly resolve this issue? could you please provide some more code on this? I'm trying to do sth at the SuPy side as a related issue (#380) is reported but couldn't reproduce the issue on Mac so I'm wondering if this is due to sth particular on windows.
Hello, same here. I am experiencing thesame problem. @biglimp could you please more details how you solve this.
I see that I only updated UMEP for processing regarding the inclusion of pathlib in the ERA5 tool #375. Try via UMEP for processing (development release) and see this solves the issue. https://umep-docs.readthedocs.io/en/latest/Getting_Started.html#installing-development-release-could-be-unstable
so this should be resolved if users are using your updated umep-processing plugin?
I just had a look at the SuPy code and found I had done similar wrapping with SuPy so quite confused why this is happening.
Yes and I will update menu-based UMEP the same way, if this solves the issue...
Sorry How do I download this development release?
Cant get any zip file here
You have use our github repository, not the QGIS plugin repo. docs.readthedocs.io/en/latest/Getting_Started.html#installing-development-release-could-be-unstable
I am trying the processing and SuPy python console suggestion (under #380). I actually tried the whole morning but the request remains in the queue. So I will try again earlier in the morning and keep this post informed. Thanks for the reply!
The workaround with SuPy code worked! It took much longer (about 40 minutes to get the NetCDF file, plus other 40 minutes for the UMEP format file), I guess it is related to the CDS Api queue.
I get the following error trying to download ERA5 data through UMEP for processing. Sems like a supy error...
Any idea?