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

SCM Repository

[diderot] Annotation of /trunk/data/plane-data-create.csh
ViewVC logotype

Annotation of /trunk/data/plane-data-create.csh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 224 - (view) (download) (as text)

1 : glk 224 #!/bin/csh
2 :    
3 :     ##
4 :     ## makes 9x9x9 volumes that are 0 except for a sheet
5 :     ## of 1 where either x, y, or z index is 4
6 :     ##
7 :    
8 :     echo "0 0 0 0 1 0 0 0 0" \
9 :     | unu reshape -s 9 1 1 \
10 :     | unu pad -min 0 0 0 -max 8 8 8 \
11 :     | unu make -s 9 9 9 -t float -e raw -ls 10 \
12 :     -spc LPS -orig "(0,0,0)" -dirs "(1,0,0) (0,1,0) (0,0,1)" -o plane-x9.nrrd
13 :    
14 :     ##
15 :     ## can't just do a unu swap because the space directions will
16 :     ## also be swapped
17 :     ##
18 :     unu swap -i plane-x9.nrrd -a 0 1 \
19 :     | unu inset -i plane-x9.nrrd -min 0 0 0 -s - -o plane-y9.nrrd
20 :     unu swap -i plane-x9.nrrd -a 0 2 \
21 :     | unu inset -i plane-x9.nrrd -min 0 0 0 -s - -o plane-z9.nrrd
22 :    

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