source: trunk/SRC/ToBeReviewed/TRIANGULATION/triangule.pro @ 134

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
Line 
1FUNCTION triangule, maskentree, BASIC = basic, COINMONTE = coinmonte, COINDESCEND = coindescend, _extra = ex
2;
3  compile_opt idl2, strictarrsubs
4;
5@common
6;
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
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;
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)
28      'c':res = triangule_c(maskentree, COINMONTE = coinmonte, COINDESCEND = coindescend, _extra = ex)
29   endcase
30   return, res
31end
Note: See TracBrowser for help on using the repository browser.