-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextractData.sh
24 lines (18 loc) · 917 Bytes
/
extractData.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
###################################################################
#Script Name : extractData.sh
#Description : Batch Extraction of avg_rade9h* tiffs from tgz VIIRS files.
#Args : Directory path with VIIRS tgz files
#Author : Leonidas Liakos
#Email : [email protected]
#Date : 05/2019
###################################################################
if [ "$1" != "" ]; then
cd $1
else
echo "Please provide a directory with VIIRS tgz files"
exit 1
fi
for f in *.tgz;do
pv "$f" | tar -xvzf - --wildcards --no-anchored '*avg_rade9h*'
done