UMEP-dev / UMEP

Urban Multi-scale Environmental Predictor
https://umep-docs.readthedocs.io/
59 stars 15 forks source link

Error with ERA5/Copernicus Data Download Tool #423

Closed kellyi-sfei closed 1 year ago

kellyi-sfei commented 2 years ago

Describe the bug The tool appears to trigger a request the Copernicus data store (i.e., visible in my requests on their webpage), but not downloading/reformatting the data.

I'm getting the following error:

2022-06-08T17:08:28     CRITICAL    EXCEPTION IN ~/QGIS/QGIS3\profiles\default/python/plugins\UMEP\copernicus_data\WorkerDownload.py, 
             LINE 43 "sp.util.gen_forcing_era5(self.lat, self.lon, self.start_date, self.end_date, dir_save=Path(self.folderPath))" 
             ERROR MESSAGE: 'NoneType' object has no attribute 'write'

Note: I got to this error after editing the import lines in the following two files to correct NameError copernicus_data.py, line 25 from qgis.core import Qgis, QgsMessageLog and WorkerDownload.py import linecache

To Reproduce Steps to reproduce the behavior:

  1. UMEP > Pre-processor > Meteorological Data > Download Data (Era5)
  2. Enter Lat/Lon and Date range

Desktop (please complete the following information):

sunt05 commented 2 years ago

This is likely to be caused by a write access error.

Please check:

  1. if the specified folder is valid location (e.g. not existing); or
  2. if your python/QGIS has write access to the specified folder (e.g. see here).

If not, please fix related issue; otherwise, please let us know here.

Meanwhile, we'll add something in the UMEP code to help determine the cause of such issues.

biglimp commented 1 year ago

@kellyi-sfei , was this solved? Can I close?

kellyi-sfei commented 1 year ago

Hi -

I'm sorry, I've lost tabs on this issue. I know I ended up downloading directly from the Copernicus site instead of trying to sort out my problems with downloading through the package. You can close.

Kelly Iknayan Senior Scientist Resilient Landscapes Program San Francisco Estuary Institute @.**> she/her*

On Sun, Feb 19, 2023 at 4:50 AM biglimp @.***> wrote:

@kellyi-sfei https://github.com/kellyi-sfei , was this solved? Can I close?

— Reply to this email directly, view it on GitHub https://github.com/UMEP-dev/UMEP/issues/423#issuecomment-1435980594, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOHIRDVUPK6AYEQJ6E7ESXLWYIJIBANCNFSM5YIIURLA . You are receiving this because you were mentioned.Message ID: @.***>