Last change
on this file since 134 was
134,
checked in by navarro, 18 years ago
|
change *.pro file properties (del eof-style, del executable, set keywords Id
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Id
|
File size:
955 bytes
|
Rev | Line | |
---|
[29] | 1 | FUNCTION triangule, maskentree, BASIC = basic, COINMONTE = coinmonte, COINDESCEND = coindescend, _extra = ex |
---|
[114] | 2 | ; |
---|
| 3 | compile_opt idl2, strictarrsubs |
---|
| 4 | ; |
---|
[2] | 5 | @common |
---|
[29] | 6 | ; |
---|
[116] | 7 | szmsk = size(maskentree) |
---|
| 8 | IF szmsk[0] EQ 0 THEN BEGIN |
---|
| 9 | nx = jpi |
---|
| 10 | ny = jpj |
---|
| 11 | ENDIF ELSE BEGIN |
---|
| 12 | nx = szmsk[1] |
---|
| 13 | ny = szmsk[2] |
---|
| 14 | ENDELSE |
---|
| 15 | IF nx EQ 1 OR ny EQ 1 THEN return, -1 |
---|
[29] | 16 | ; |
---|
| 17 | IF arg_present(coinmonte) THEN coinmonte = 1 |
---|
| 18 | IF arg_present(coindescend) THEN coindescend = 1 |
---|
| 19 | ; |
---|
| 20 | if keyword_set(basic) then $ |
---|
| 21 | return, triangule_c(maskentree, /BASIC, COINMONTE = coinmonte $ |
---|
| 22 | , COINDESCEND = coindescend, _extra = ex) |
---|
| 23 | ; |
---|
[2] | 24 | if n_elements(key_gridtype) EQ 0 then key_gridtype = 'c' |
---|
| 25 | if n_elements(maskentree) EQ 0 then maskentree = tmask[*, *, 0] |
---|
| 26 | case key_gridtype of |
---|
| 27 | 'e':res = triangule_e(maskentree, _extra = ex) |
---|
[29] | 28 | 'c':res = triangule_c(maskentree, COINMONTE = coinmonte, COINDESCEND = coindescend, _extra = ex) |
---|
[2] | 29 | endcase |
---|
| 30 | return, res |
---|
| 31 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.