-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconvert_NLDASv2.sh
22 lines (17 loc) · 935 Bytes
/
convert_NLDASv2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# Script to move files and then run the aggregation script
# Theodore Barnhart | [email protected]
#SBATCH --job-name=convert_NLDASv2 # name that you chose
#SBATCH -n 1 # number of cores needed
#SBATCH -p normal # the partition you want to use, for this case prod is best
#SBATCH --account=wymtwsc # your account
#SBATCH --time=48:00:00 # Overestimated guess at time, the process will be cancelled at the time limit (this case 6 hours), prod allows 21 day jobs.
#SBATCH --mail-type=ALL # Send email on all events
#SBATCH [email protected]
#SBATCH -o %j.log # Sets output log file to %j ( will be the jobId returned by sbatch)
source activate py36
cd ~/projects/NHM_precipitation/data/NLDASv2
for fl in `find -type f -name '*.grb'`; do
gdal_translate -of Gtiff -b 1 -b 10 $fl ../NLDASv2_TP/${fl}.TP.tiff
echo $fl
done