#!/bin/bash
#SBATCH -n 1
#SBATCH -t 01:00:00
#SBATCH -J gfasftp
#SBATCH -e /esarchive/recon/ecmwf/gfas/scripts/i535-marc-hourly/out-logs/format-ftp-%j.err
#SBATCH -o /esarchive/recon/ecmwf/gfas/scripts/i535-marc-hourly/out-logs/format-ftp-%j.out

#module load xarray/0.19.0-foss-2019b-Python-3.7.4
#module load netcdf4-python/1.5.8-foss-2019b-Python-3.7.4
#module load dask/2022.2.0-foss-2019b-Python-3.7.4
#module load numpy/1.21.6-foss-2019b-Python-3.7.4

source $1/load_modules.sh #$1/load_modules.sh 

# operational
time python3 -u $1/run_GHOST_downloads.py $1 $2 $3 #script path, download path, network list

# testing
#time python3 -u /esarchive/scratch/rgrodofz/software/ghost/GHOST/download_scripts/run_GHOST_downloads.py