source: trunk/SRC/ToBeReviewed/GRILLE/fmask.pro @ 493

Last change on this file since 493 was 493, checked in by pinsard, 10 years ago

fix some typos in comments

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.1 KB
RevLine 
[2]1;+
2;
[142]3; @file_comments
4; calculate fmask. Economize memory (we do not need to keep fmask anymore)
[2]5;
[142]6; @categories
[268]7; Grid
[2]8;
[142]9; @returns
10; A 3d array corresponding to fmask.
[2]11;
[142]12; @examples
[493]13; Used like if fmask was a known array by substituting fmask by (fmask())
[226]14; For example: Instead of write fmask[domainef] we have to write (fmask())[domainef]
[2]15;
[142]16; @history
[157]17; Sebastien Masson (smasson\@lodyc.jussieu.fr)
[142]18;                       11/12/98
[2]19;
[142]20; @version
21; $Id$
22;
[2]23;-
24FUNCTION fmask
[114]25;
26  compile_opt idl2, strictarrsubs
27;
[13]28@cm_4mesh
29  IF NOT keyword_set(key_forgetold) THEN BEGIN
30@updatenew
31  ENDIF
32;---------------------------------------------------------
[142]33  tempsun = systime(1)          ; For key_performance
[226]34;
[13]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;
[226]43  if keyword_set(key_performance) THEN print, 'temps fmask', systime(1)-tempsun
44
[13]45  return, res
[2]46end
Note: See TracBrowser for help on using the repository browser.