120 likes | 264 Views
Marvin Simkin http://simkin.asu.edu. HoloDraw instructions. color = 1 0 0 line: 0 0 0, 1 2 3 point: 2 2 2 color = 0.0 0.5 0.5 line: 1 1 1, 4 4 4, 1 4 1 point: 5 5 5, 5 6 7. Login and Setup. > vi .cshrc Add HoloDraw to your "path": # update environment to include . in $path
E N D
HoloDraw instructions color = 1 0 0 line: 0 0 0, 1 2 3 point: 2 2 2 color = 0.0 0.5 0.5 line: 1 1 1, 4 4 4, 1 4 1 point: 5 5 5, 5 6 7
Login and Setup >vi .cshrc Add HoloDraw to your "path": # update environment to include . in $path set path = ( $path . /export/home4/msimkin/holodraw ) Save your changes: :wq Test it using a DIFFERENT terminal window! Window, New Terminal >echo $path
Make Your Own 3D Image >cat > hello.draw text2:0 0 0,Hello line:0 0 0,5 5 5 [control-D] >drawbbox.pl < hello.draw > hellobox.draw Bounding box is 0 0 0 to 5 5 5 TickFreqX=1,TickLenX=0.5 TickFreqY=1,TickLenY=0.5 TickFreqZ=1,TickLenZ=0.5 >cat hello.draw hellobox.draw | drawwrl.pl > hello.wrl
Example Data File X, Y, Z,A0.9961,14.671,12.409,20.3191,1.6958,24.077,80.1797,11.501,15.133,32.7960,14.565,6.2765,12.6589,15.011,6.1656,11.7052,12.376,7.1086,12.6402,4.9692,15.413,70.8833,10.468,7.9641,10.0428,0.9109,16.076,70.5855,10.315,11.851,20.1297,7.0747,5.1924,5 Columns Rows
Processing this Data point:0.9961 14.671 12.409 point:0.3191 1.6958 24.077 point:0.1797 11.501 15.133 point:2.7960 14.565 6.2765 point:2.6589 15.011 6.1656 point:1.7052 12.376 7.1086 point:2.6402 4.9692 15.413 point:0.8833 10.468 7.9641 point:0.0428 0.9109 16.076 point:0.5855 10.315 11.851 Unix does this HoloDraw does this File transfer to PC
Generic “awk” recipe Use “awk” for data that has a delimiter awk ' BEGIN { FS = ":" } { print $5 } ' < /etc/passwd Copy these spaces and quotes exactly What is your delimiter? What do you want to output? Where is your data coming from?
> pscoast -R0/360/-90/90 -A1000 -W -Dc -M | head -33 # Data from the crude resolution GMT shoreline, borders, and rivers database > Shore Bin # 0, Level 1 20 79.1594 18.2831 79.6211 17.6718 79.3608 16.2698 80.0587 16.5267 78.9055 14.7265 79.7887 14.0432 79.2638 12.3482 79.5799 13.8064 79.8772 10.6648 79.5467 13.0001 78.2045 15.3466 78.8505 15.4232 78.4578 16.5701 78.7163 17.3983 78.4294 13.5982 78.0568 13.9498 77.7162 16.9915 77.9292 14.7384 77.6533 16.0998 77.4595 13.915 77.5242 15.4382 76.9999 15.4382 76.9999 16.99 76.5962 19.0283 78.4224 20 78.5487 > Shore Bin # 0, Level 1 20 80.4292 19.6249 80.5055 19.57 80.1363 pscoast