source: trunk/SRC/Obsolete/congridseb.pro @ 152

Last change on this file since 152 was 152, checked in by smasson, 18 years ago

introduce pltv.pro

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1;------------------------------------------------------------
2;------------------------------------------------------------
3;------------------------------------------------------------
4;+
5; @file_comments
6;
7; Used to avoid a bug in congrid in a old version of IDL
8; Useless now...
9;
10; old example: based on a old version of IDL (5.??)
11; IDL> print, congrid([[1,2,3,4],[5,6,7,8]],12,4)
12;       1 1 1 2 2 2 3 3 3 3 4 4
13;       1 1 1 2 2 2 3 3 3 3 4 4
14;       5 5 5 6 6 6 7 7 7 7 8 8
15;       5 5 5 6 6 6 7 7 7 7 8 8
16; IDL> print, rebin([[1,2,3,4],[5,6,7,8]],12,4)
17;       1 1 1 2 2 2 3 3 3 4 4 4
18;       3 3 3 4 4 4 5 5 5 6 6 6
19;       5 5 5 6 6 6 7 7 7 8 8 8
20;       5 5 5 6 6 6 7 7 7 8 8 8
21; IDL> print, congridseb([[1,2,3,4],[5,6,7,8]],12,4)
22;       1 1 1 2 2 2 3 3 3 4 4 4
23;       1 1 1 2 2 2 3 3 3 4 4 4
24;       5 5 5 6 6 6 7 7 7 8 8 8
25;       5 5 5 6 6 6 7 7 7 8 8 8
26;
27; @obsolete
28;
29; @param arr {in}{required}
30; 1 or 2d array
31;
32; @param x {in}{required}
33; first dimension of the result which must be
34; a multiple of the first dimension of the input array.
35;
36; @param y {in}{required}
37; second dimension of the result which must be
38; a multiple of the second dimension of the input array
39;
40; @returns
41; an array which dimensions are x,y
42;
43; @history Sebastien Masson (smasson\@lodyc.jussieu.fr)
44;                      20/3/98
45;                      18/6/1999 supression d''une horrible boucle
46;
47; @version $Id$
48;
49;-
50;------------------------------------------------------------
51;------------------------------------------------------------
52;------------------------------------------------------------
53function congridseb, tableau, x, y
54;
55  compile_opt idl2, strictarrsubs
56;
57   CASE N_PARAMS() OF
58      2: return, congrid(tableau, x)
59      3:return, congrid(tableau, x, y)
60      else: return, report('Bad number or arguments in the call of congridseb')
61   endcase
62end
Note: See TracBrowser for help on using the repository browser.