Last change
on this file since 249 was
231,
checked in by pinsard, 17 years ago
|
improvements/corrections of some *.pro headers
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Id
|
File size:
915 bytes
|
Rev | Line | |
---|
[2] | 1 | ;+ |
---|
| 2 | ; |
---|
[142] | 3 | ; @file_comments |
---|
| 4 | ; calculate fmask. Economize memory (we do not need to keep vmask anymore) |
---|
[2] | 5 | ; |
---|
[142] | 6 | ; @categories |
---|
| 7 | ; Utilities |
---|
[2] | 8 | ; |
---|
[142] | 9 | ; @returns |
---|
| 10 | ; A 3d array corresponding to vmask. |
---|
[2] | 11 | ; |
---|
[142] | 12 | ; @examples |
---|
| 13 | ; Used like if vmask was a known array by substituing vmask by (vmask()) |
---|
| 14 | ; For example: Instaed of write vmask[domainef] we have to write (vmask())[domainef] |
---|
[2] | 15 | ; |
---|
[142] | 16 | ; @history |
---|
[157] | 17 | ; Sebastien Masson (smasson\@lodyc.jussieu.fr) |
---|
[2] | 18 | ; 11/12/98 |
---|
[157] | 19 | ; 20/9/99 cas jpk=1 (merci jpblod\@ipsl.jussieu.fr) |
---|
[142] | 20 | ; |
---|
| 21 | ; @version |
---|
| 22 | ; $Id$ |
---|
| 23 | ; |
---|
[2] | 24 | ;- |
---|
[231] | 25 | ; |
---|
[2] | 26 | FUNCTION vmask |
---|
[114] | 27 | ; |
---|
| 28 | compile_opt idl2, strictarrsubs |
---|
| 29 | ; |
---|
[2] | 30 | @common |
---|
[142] | 31 | tempsun = systime(1) ; For key_performance |
---|
[2] | 32 | ; |
---|
[13] | 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 |
---|
[231] | 39 | if keyword_set(key_performance) THEN print, 'temps vmask', systime(1)-tempsun |
---|
| 40 | |
---|
[13] | 41 | return, res |
---|
[2] | 42 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.