Put scripts in its own folder and add remove timesteps script

This commit is contained in:
Jonathan Grangien
2018-06-13 16:02:28 -04:00
committed by Matthias Berg
parent ef4ca52ebd
commit 13ae30dd66
+3 -3
View File
@@ -9,9 +9,9 @@
LENGTH=117
for i in $(seq 1 $LENGTH); do
filename="/home/jgrangien/Code/OpenSpace/data/mas/bastille/xxx/mas_merged_step_${i}.dictionary"
filename="/home/jgrangien/Code/OpenSpace/data/mas/bastille/generated/mas_merged_step_${i}.dictionary"
if [ ! -f $filename ]; then
if [ ! -f /tmp/foo.txt ]; then
echo "Skipping file ${i}, not found."
continue
fi
@@ -19,6 +19,6 @@ for i in $(seq 1 $LENGTH); do
sed -i -e 's/MaxValue=[A-Za-z0-9.-]*/MaxValue=1/g' $filename
sed -i -e 's/MinValue=[A-Za-z0-9.-]*/MinValue=0/g' $filename
time=$(sed -n ${i}p "$1" | grep -o -P "2000-.*$")
time=$(sed -n ${i}p "$1" | grep -o -P "2000.*$")
sed -i -e "s/Time=\"0000-01-01T00:00:00.001\"/Time=\"${time}\"/g" $filename
done