Last change
on this file since 8 was
2,
checked in by post_it, 17 years ago
|
Initial import from ~/POST_IT/
|
File size:
1.6 KB
|
Line | |
---|
1 | ;--------------------------- |
---|
2 | ; Define data/plot type |
---|
3 | ;--------------------------- |
---|
4 | FUNCTION def_dptyp, cmd |
---|
5 | |
---|
6 | @common |
---|
7 | @com_eg |
---|
8 | |
---|
9 | splot = 0 |
---|
10 | pltztyp = '-' |
---|
11 | plt1dtyp = '-' |
---|
12 | |
---|
13 | CASE strmid(cmd.plt, 0, 2) OF |
---|
14 | |
---|
15 | 'xy': BEGIN & plttyp = 'plt' & hotyp = '-' & dimplot = 2 & END |
---|
16 | 'yz': BEGIN & plttyp = 'pltz' & hotyp = '-' & dimplot = 2 & pltztyp = 'yz' & END |
---|
17 | 'xz': BEGIN & plttyp = 'pltz' & hotyp = '-' & dimplot = 2 & pltztyp = 'xz' & END |
---|
18 | 'xt': BEGIN & plttyp = 'pltt' & hotyp = 'xt' & dimplot = 2 & END |
---|
19 | 'yt': BEGIN & plttyp = 'pltt' & hotyp = 'yt' & dimplot = 2 & END |
---|
20 | 'zt': BEGIN & plttyp = 'pltt' & hotyp = 'zt' & dimplot = 2 & END |
---|
21 | 't_': BEGIN & plttyp = 'pltt' & hotyp = 't' & dimplot = 1 & END |
---|
22 | 'x_': BEGIN & plttyp = 'plt1d' & hotyp = '-' & dimplot = 1 & plt1dtyp = 'x' & END |
---|
23 | 'y_': BEGIN & plttyp = 'plt1d' & hotyp = '-' & dimplot = 1 & plt1dtyp = 'y' & END |
---|
24 | 'z_': BEGIN & plttyp = 'plt1d' & hotyp = '-' & dimplot = 1 & plt1dtyp = 'z' & END |
---|
25 | |
---|
26 | 'xs': BEGIN & plttyp = 'pltz' & hotyp = '-' & dimplot = 2 & splot = 1 & pltztyp = 'xz' & END |
---|
27 | 'ys': BEGIN & plttyp = 'pltz' & hotyp = '-' & dimplot = 2 & splot = 1 & pltztyp = 'yz' & END |
---|
28 | 'st': BEGIN & plttyp = 'pltt' & hotyp = 'zt' & dimplot = 2 & splot = 1 & END |
---|
29 | 's_': BEGIN & plttyp = 'plt1d' & hotyp = '-' & dimplot = 1 & splot = 1 & plt1dtyp = 'z' & END |
---|
30 | |
---|
31 | ELSE: BEGIN & print, ' unknown projection plot ', cmd.plt & stop & END |
---|
32 | ENDCASE |
---|
33 | |
---|
34 | data_type = {plttyp: plttyp, hotyp: hotyp, dimplot: dimplot, pltztyp: pltztyp, splot: splot, plt1dtyp: plt1dtyp} |
---|
35 | |
---|
36 | return, data_type |
---|
37 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.