File: nviz2.2

package info (click to toggle)
grass 6.0.2-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 40,044 kB
  • ctags: 31,303
  • sloc: ansic: 321,125; tcl: 25,676; sh: 11,176; cpp: 10,098; makefile: 5,025; fortran: 1,846; yacc: 493; lex: 462; perl: 133; sed: 1
file content (51 lines) | stat: -rwxr-xr-x 1,366 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/sh
# the next line restarts using tclsh \
exec $GRASS_TCLSH "$0" "$@"

global env
global argv

proc usage {} {
# Print out simple Usage statement
puts "Usage:"
puts "nviz2.2 -q -help path=dir elevation=name,name,... vector=name,name,... sites=name,name,... "
}

proc help {} {
#Print Detailed help info
puts "nviz - Visualization and animation tool for GRASS data"
puts ""
puts "Usage:"
puts "nviz2.2 -q -help path=dir elevation=name vector=name sites=name path=dir"
puts ""
puts "Where:"
puts "-q Quickstart. Skip the GRASS parser and other arguments and open nviz."
puts "-h or -help Displays this message and exits"
puts "path=dir Search for additional panels in the specified directory (dir)."
puts "elevation=name,name... Use the given comma separated list of raster files."
puts "vector=name,name... Use the given comma separated list of vector files."
puts "sites=name,name... Use the given comma separated list of sites files."
puts ""
puts "For more information see the GRASS manual page for nviz2.2"
}


#CASE too many ARGS
if {$argc > 7} {
puts "Too many arguments ..."
usage
exit 
}

#CASE Help Arguments
if {($argv == "-h") || ($argv == "-help")} {
help
exit
}

#set ENV for script
set NVIZ_SCRIPTS $env(GISBASE)/etc/nviz2.2/scripts


#Execute Command
eval exec nviz -f $env(GISBASE)/etc/nviz2.2/scripts/nviz2.2_script $argv -name NVIZ >&@stdout