source: trunk/SRC/ToBeReviewed/GRILLE/vmask.pro @ 325

Last change on this file since 325 was 325, checked in by pinsard, 17 years ago

modification of some headers (+some corrections) to prepare usage of the new idldoc

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 909 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;-
25FUNCTION vmask
26;
27  compile_opt idl2, strictarrsubs
28;
29@common
30  tempsun = systime(1)          ; For key_performance
31;
32  CASE size(tmask, /n_dimensions) OF
33    2:res = tmask*shift(tmask, 0, -1)
34    3:res = tmask*shift(tmask, 0, -1, 0)
35  ENDCASE
36;
37  res[*, jpj-1, *] = vmaskred
38  if keyword_set(key_performance) THEN print, 'temps vmask', systime(1)-tempsun
39
40  return, res
41end
Note: See TracBrowser for help on using the repository browser.