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

SCM Repository

[diderot] View of /branches/charisee/data/plane-data-create.csh
ViewVC logotype

View of /branches/charisee/data/plane-data-create.csh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2377 - (download) (as text) (annotate)
Mon Jun 3 19:41:56 2013 UTC (6 years ago) by jhr
File size: 611 byte(s)
  Create new branch for Charisee's Einstein stuff
#!/bin/csh

##
## makes 9x9x9 volumes that are 0 except for a sheet
## of 1 where either x, y, or z index is 4
##

echo "0 0 0 0 1 0 0 0 0" \
 | unu reshape -s 9 1 1 \
 | unu pad -min 0 0 0 -max 8 8 8 \
 | unu make -s 9 9 9 -t float -e raw -ls 10 \
   -spc LPS -orig "(0,0,0)" -dirs "(1,0,0) (0,1,0) (0,0,1)" -o plane-x9.nrrd

##
## can't just do a unu swap because the space directions will
## also be swapped
##
unu swap -i plane-x9.nrrd -a 0 1 \
 | unu inset -i plane-x9.nrrd -min 0 0 0 -s - -o plane-y9.nrrd
unu swap -i plane-x9.nrrd -a 0 2 \
 | unu inset -i plane-x9.nrrd -min 0 0 0 -s - -o plane-z9.nrrd


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