Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /tests/vis15-bugs/isohnd/run.sh
ViewVC logotype

View of /tests/vis15-bugs/isohnd/run.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4640 - (download) (as text) (annotate)
Tue Sep 27 20:54:47 2016 UTC (2 years, 8 months ago) by glk
File size: 1122 byte(s)
initial result of svn export --username anonsvn --password=anonsvn https://svn.smlnj-gforge.cs.uchicago.edu/svn/diderot/branches/vis15/src/tests/
#!/usr/bin/env bash
set -o errexit
set -o nounset
JUNK=""
function junk {
  JUNK="$JUNK $@"
}
function cleanup {
  rm -rf $JUNK
}
trap cleanup err exit int term

DIDEROTC=../../../../bin/diderotc

function ddro15 {
  name=$1
  echo "=== $DIDEROTC --debug --exec $name.diderot"
  $DIDEROTC --debug --exec $name.diderot
  echo "ddro compile done"
}

ddro15 isofixme

SIZE0=1000
SIZE1=600
OV=5
rm -f pos-???.png
for ITER in $(seq 0 39); do
  echo =========== $ITER
  echo "./isofixme -cent 61 40.7 -hght 53 -size0 77 -size1 34 -iterLimit $ITER -epsilon 0.001 -radius 2"
  ./isofixme -cent 61 40.7 -hght 53 -size0 77 -size1 34 -iterLimit $ITER -epsilon 0.001 -radius 2
  # from 10 to 110 is sampled with SIZE0=1000 pixels in joint histogram
  # => 1 unit of world-space is 10 pixels; particle radius is 20 pixels
  unu jhisto -i pos.nrrd -t float -min 10 10 -max 110 70 -b $[$SIZE0*$OV] $[$SIZE1*$OV] \
   | unu resample -s /$OV /$OV -k dgauss:1.1,3 \
   | unu quantize -b 8 -min 0 -max 0.008 -o $(printf pos-%03d.png $ITER)
done

# previously: one clump at 880 446 -> 98.0881 54.6745
# relocate to 403 258 -> 50.3403 35.8431

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0