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

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

improvements/corrections of some *.pro headers

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