biopsichas / SWATprepR

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

prepare_climate() currently single use #1

Closed moritzshore closed 11 months ago

moritzshore commented 11 months ago

Hi, first off, love the package, makes so much stuff so much easier. Thanks for making it.

The prepare_climate() function works for me when I use it on a fresh setup, however running it again on the same setup leads to this error:

image

You can replicate this error (probably) with your own setup (https://github.com/biopsichas/Zglowiaczka), however its possible its due to my input data as well. Let me know if you can't replicate and I'll send you my input data.

A fix would be nice great! 👍 I'm using it within my own "tools" package which will take download gridded reanalysis data and pipe it into SWAT+ input, with much assistance from your package.

biopsichas commented 11 months ago

Hi Moritz,

Thanks being a user and reporting a bug :) Glad to hear it makes things easier. Yep, I reproduced this error with my setup. And now updated the package. So it should be working for you.

Best wishes, Svajunas

On Mon, Oct 23, 2023 at 9:49 PM Moritz Shore @.***> wrote:

Hi, first off, love the package, makes so much stuff so much easier. Thanks for making it.

The prepare_climate() function works for me when I use it on a fresh setup, however running it again on the same setup leads to this error:

[image: image] https://user-images.githubusercontent.com/99182918/277442295-ab9a02df-f629-4b99-ad66-a8c1842a7046.png

You can replicate this error (probably) with your own setup ( https://github.com/biopsichas/Zglowiaczka), however its possible its due to my input data as well. Let me know if you can't replicate and I'll send you my input data.

A fix would be nice great! 👍 I'm using it within my own "tools" package which will take download gridded reanalysis data and pipe it into SWAT+ input, with much assistance from your package.

A temporary solution would be to add a parameter to the function which makes input file modification optional, as I am mainly interested in the generation of the input files, less so than the modification of the other SWAT+ input files (although it is a very nice help)

— Reply to this email directly, view it on GitHub https://github.com/biopsichas/SWATprepR/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALY4QAGCDEPSJC54W3DX5T3YA232FAVCNFSM6AAAAAA6MQ27I2VHI2DSMVQWIX3LMV43ASLTON2WKOZRHE2TOOBQHAZTINY . You are receiving this because you are subscribed to this thread.Message ID: @.***>