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

Last change on this file since 367 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
RevLine 
[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
[268]7; Grid
[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())
[268]14; For example: Instead 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;-
25FUNCTION vmask
[114]26;
27  compile_opt idl2, strictarrsubs
28;
[2]29@common
[142]30  tempsun = systime(1)          ; For key_performance
[2]31;
[13]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
[231]38  if keyword_set(key_performance) THEN print, 'temps vmask', systime(1)-tempsun
39
[13]40  return, res
[2]41end
Note: See TracBrowser for help on using the repository browser.