mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-05 10:59:47 -05:00
Put scripts in its own folder and add remove timesteps script
This commit is contained in:
committed by
Matthias Berg
parent
ef4ca52ebd
commit
13ae30dd66
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user