source: trunk/SRC/ToBeReviewed/CALCULS/depth2mask.pro @ 226

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

corrections of some misspellings in some *.pro

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
RevLine 
[2]1;------------------------------------------------------------
2;------------------------------------------------------------
3;------------------------------------------------------------
4;+
5;
[226]6; @file_comments
7; Allows to pass from a 2d depth sill array to a 3d array of mask
[142]8; with one of levels above the sill depth and 0s below.
[2]9;
[142]10; @categories
11; Without loop
[2]12;
[163]13; @param TAB {type=3d array}
[226]14; 2d sill depth array (or a structure respecting litchamp criterions)
[2]15;
[142]16; @keyword _EXTRA
17; used to pass your keywords
[226]18;
[142]19; @returns
20; It is a 3d array containing the mas associated to the 2d sill depth array
[2]21;
[142]22; @uses
23; common.pro
[2]24;
[142]25; @history
[157]26; Sebastien Masson (smasson\@lodyc.jussieu.fr)
[142]27;                       17/6/1999
[2]28;
[142]29; @version
30; $Id$
[2]31;
32;-
33;------------------------------------------------------------
34;------------------------------------------------------------
35;------------------------------------------------------------
36FUNCTION depth2mask, tab, _extra = ex
37;------------------------------------------------------------
[114]38;
39  compile_opt idl2, strictarrsubs
40;
[142]41   tempsun = systime(1)         ; For key_performance
[2]42@common
43;------------------------------------------------------------
[226]44; We transform the 2d depth value in a 2d array of levels corresponding to depths
[2]45;------------------------------------------------------------
46   niveaux = depth2level(tab, _extra = ex)
47   IF niveaux[0] EQ -1 THEN return,  -1
48;------------------------------------------------------------
[142]49; We transform the 2d array in a 3d array of mask
[2]50;------------------------------------------------------------
51   mask = level2mask(niveaux)
52;------------------------------------------------------------
[226]53   if keyword_set(key_performance) NE 0 THEN print, 'temps depth2mask', systime(1)-tempsun
[2]54   return, mask
55end
Note: See TracBrowser for help on using the repository browser.