biopsichas / SWATprepR

SWAT+ model input data preparation helper
https://biopsichas.github.io/SWATprepR/
MIT License
7 stars 2 forks source link

`location` parameter error with load_netcdf_weather and location "list" #2

Closed echiaradia closed 10 months ago

echiaradia commented 10 months ago

I load the weather stations data from template xlsx file. The data are loaded as list but list isn't accepted by the load_netcdf_weather function. It seems an error in the IF block at line 551 of loading.R file.

echiaradia commented 10 months ago

Please check my edits if they make sense for you: https://github.com/echiaradia/SWATprepR/commit/1be99b44495949ef829f16b9663def3d5fb07f4d

biopsichas commented 10 months ago

Hi Enrico, thanks for providing feedback on this function and corrections in the code. I was in the end of debugging in the moment of receiving your code, so left my version. But anyway I updated function to remove those bugs. You can use my version if you update the package ;)