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