source: trunk/GRILLE/fmask.pro @ 2

Last change on this file since 2 was 2, checked in by opalod, 22 years ago

Initial revision

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1;------------------------------------------------------------
2;------------------------------------------------------------
3;------------------------------------------------------------
4;+
5; NAME:fmask
6;
7; PURPOSE:calcule fmask
8;
9; CATEGORY:fonction economisatrice de memoire (plus besion de garder
10; fmask) 
11;
12; CALLING SEQUENCE:res=fmask()
13;
14; OUTPUTS:un tableau 3d correspondant a fmask
15;
16; EXAMPLE:s''utilise comme si fmask etait un tableau connu en
17; replacant ds la syntaxe fmask par (fmask()). par ex:
18; au lieu de taper fmask[domainef] il faut taper (fmask())[domainef]
19;
20; MODIFICATION HISTORY: Sebastien Masson (smasson@lodyc.jussieu.fr)
21;                       11/12/98
22;-
23;------------------------------------------------------------
24;------------------------------------------------------------
25;------------------------------------------------------------
26FUNCTION fmask
27@common
28   tempsun = systime(1)         ; pour key_performance
29   if jpk EQ 1 then begin
30      res = tmask*shift(tmask, -1, 0)*shift(tmask, 0, -1)*shift(tmask, -1, -1)
31      if NOT keyword_set(key_periodique) then res[jpi-1, *] = fmaskredy
32      res[*, jpj-1] = fmaskredx
33   ENDIF ELSE BEGIN
34      res = tmask*shift(tmask, -1, 0, 0)*shift(tmask, 0, -1, 0)*shift(tmask, -1, -1, 0)
35      if NOT keyword_set(key_periodique) then res[jpi-1, *, *] = fmaskredy
36      res[*, jpj-1, *] = fmaskredx
37   ENDELSE
38   if keyword_set(key_performance) THEN print, 'temps fmask', systime(1)-tempsun
39
40   return, res
41end
Note: See TracBrowser for help on using the repository browser.