Last change
on this file since 295 was
268,
checked in by pinsard, 17 years ago
|
typo and links in header in some pro files
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Id
|
File size:
911 bytes
|
Line | |
---|
1 | ;+ |
---|
2 | ; |
---|
3 | ; @file_comments |
---|
4 | ; calculate fmask. Economize memory (we do not need to keep vmask anymore) |
---|
5 | ; |
---|
6 | ; @categories |
---|
7 | ; Grid |
---|
8 | ; |
---|
9 | ; @returns |
---|
10 | ; A 3d array corresponding to vmask. |
---|
11 | ; |
---|
12 | ; @examples |
---|
13 | ; Used like if vmask was a known array by substituing vmask by (vmask()) |
---|
14 | ; For example: Instead of write vmask[domainef] we have to write (vmask())[domainef] |
---|
15 | ; |
---|
16 | ; @history |
---|
17 | ; Sebastien Masson (smasson\@lodyc.jussieu.fr) |
---|
18 | ; 11/12/98 |
---|
19 | ; 20/9/99 cas jpk=1 (merci jpblod\@ipsl.jussieu.fr) |
---|
20 | ; |
---|
21 | ; @version |
---|
22 | ; $Id$ |
---|
23 | ; |
---|
24 | ;- |
---|
25 | ; |
---|
26 | FUNCTION vmask |
---|
27 | ; |
---|
28 | compile_opt idl2, strictarrsubs |
---|
29 | ; |
---|
30 | @common |
---|
31 | tempsun = systime(1) ; For key_performance |
---|
32 | ; |
---|
33 | CASE size(tmask, /n_dimensions) OF |
---|
34 | 2:res = tmask*shift(tmask, 0, -1) |
---|
35 | 3:res = tmask*shift(tmask, 0, -1, 0) |
---|
36 | ENDCASE |
---|
37 | ; |
---|
38 | res[*, jpj-1, *] = vmaskred |
---|
39 | if keyword_set(key_performance) THEN print, 'temps vmask', systime(1)-tempsun |
---|
40 | |
---|
41 | return, res |
---|
42 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.