source: trunk/SRC/ToBeReviewed/GRILLE/fmask.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: 1.1 KB
Line 
1;+
2;
3; @file_comments
4; calculate fmask. Economize memory (we do not need to keep fmask anymore)
5;
6; @categories
7; Grid
8;
9; @returns
10; A 3d array corresponding to fmask.
11;
12; @examples
13; Used like if fmask was a known array by substituing fmask by (fmask())
14; For example: Instead of write fmask[domainef] we have to write (fmask())[domainef]
15;
16; @history
17; Sebastien Masson (smasson\@lodyc.jussieu.fr)
18;                       11/12/98
19;
20; @version
21; $Id$
22;
23;-
24FUNCTION fmask
25;
26  compile_opt idl2, strictarrsubs
27;
28@cm_4mesh
29  IF NOT keyword_set(key_forgetold) THEN BEGIN
30@updatenew
31  ENDIF
32;---------------------------------------------------------
33  tempsun = systime(1)          ; For key_performance
34;
35  CASE size(tmask, /n_dimensions) OF
36    2:res = tmask*shift(tmask, -1, 0)*shift(tmask, 0, -1)*shift(tmask, -1, -1)
37    3:res = tmask*shift(tmask, -1, 0, 0)*shift(tmask, 0, -1, 0)*shift(tmask, -1, -1, 0)
38  ENDCASE
39;
40  if NOT keyword_set(key_periodic) then res[jpi-1, *, *] = fmaskredy
41  res[*, jpj-1, *] = fmaskredx
42;
43  if keyword_set(key_performance) THEN print, 'temps fmask', systime(1)-tempsun
44
45  return, res
46end
Note: See TracBrowser for help on using the repository browser.