Add transfer function for temperature

This commit is contained in:
Jonathan Grangien
2018-06-14 09:59:01 -04:00
committed by Matthias Berg
parent f518277451
commit b921274dfb
2 changed files with 19 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
width 2048
lower 0.0
upper 1.0
mappingkey 0.005 0 54 135 0
mappingkey 0.06 255 67 168 0
mappingkey 0.1 90 180 255 4
mappingkey 0.2 255 180 255 100
mappingkey 0.3 255 180 255 150
mappingkey 0.4 255 93 183 255
mappingkey 0.5 255 177 242 255
mappingkey 0.6 255 223 255 255
mappingkey 0.7 255 255 214 255
mappingkey 0.8 255 200 114 255
mappingkey 0.9 249 199 97 255
mappingkey 1.0 255 140 48 255

View File

@@ -9,9 +9,9 @@
LENGTH=117
for i in $(seq 1 $LENGTH); do
filename="/home/jgrangien/Code/OpenSpace/data/mas/bastille/generated/mas_merged_step_${i}.dictionary"
filename="/home/jgrangien/Code/OpenSpace/data/mas/bastille/xxx/mas_merged_step_${i}.dictionary"
if [ ! -f /tmp/foo.txt ]; then
if [ ! -f $filename ]; 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