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

Last change on this file since 378 was 371, checked in by pinsard, 16 years ago

improvements of headers (alignments of IDL prompt in examples)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1;+
2;
3; @file_comments
4;
5; Used to avoid a bug in congrid in a old version of IDL
6; Useless now...
7;
8; @examples
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 tableau {in}{required}
30; 1d 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
44; Sebastien Masson (smasson\@lodyc.jussieu.fr)
45;                      20/3/98
46;                      18/6/1999 supression d''une horrible boucle
47;
48; @version
49; $Id$
50;
51;-
52FUNCTION congridseb, tableau, x, y
53;
54  compile_opt idl2, strictarrsubs
55;
56   CASE N_PARAMS() OF
57      2: return, congrid(tableau, x)
58      3:return, congrid(tableau, x, y)
59      else: return, report('Bad number or arguments in the call of congridseb')
60   endcase
61end
Note: See TracBrowser for help on using the repository browser.