Merge branch 'angel' of https://github.com/openwfm/JPSSdata into angel
[JPSSData.git] / setup_case.sh
blobbaccd5f10ebef39e633a3933fb9199330c4497f5
1 #!/bin/bash
3 if [ $(ls -l $1/*.hdf 2>/dev/null | wc -l) -gt 0 ]; then
4 ln -s $1/*.hdf .
5 elif [ $(ls -l $1/satdata/*.hdf 2>/dev/null | wc -l) -gt 0 ]; then
6 ln -s $1/satdata/*.hdf .
7 fi
9 if [ $(ls -l $1/*.h5 2>/dev/null | wc -l) -gt 0 ]; then
10 ln -s $1/*.h5 .
11 elif [ $(ls -l $1/satdata/*.h5 2>/dev/null | wc -l) -gt 0 ]; then
12 ln -s $1/satdata/*.h5 .
15 if [ $(ls -l $1/*.nc 2>/dev/null | wc -l) -gt 0 ]; then
16 ln -s $1/*.nc .
17 elif [ $(ls -l $1/satdata/*.nc 2>/dev/null | wc -l) -gt 0 ]; then
18 ln -s $1/satdata/*.nc .