bvanosnabrugge / summaWorkflow_public

GNU General Public License v3.0
0 stars 4 forks source link

Re-write bash scripts to support windows #44

Open wijayard opened 2 years ago

wijayard commented 2 years ago

Bash scripts do not support windows and data download files do not take inputs from control file as a result.

Downloading ERA5 forcing data require a manual entry for arguments :

The script does not take arguments from the control file leading to the following error: (cwarhm-env) B:\CWARHM\Repo\CWARHM\3a_forcing\1a_download_forcing>python download_ERA5_pressureLevel_annual.py Traceback (most recent call last): File "download_ERA5_pressureLevel_annual.py", line 17, in year = int(sys.argv[1]) # arguments are string by default; string to integer IndexError: list index out of range

The downloading proceeded after providing the necessary arguments. e.g., (cwarhm-env) B:\CWARHM\Repo\CWARHM\3a_forcing\1a_download_forcing>python download_ERA5_pressureLevel_annual.py 2008 51.74/-116.55/50.95/-115.52 B:\CWARHM\Results\domain_BowAtBanff\forcing\1_raw_data