10.3.6 REBIN [IDL]


next up previous contents
Next: 10.3.7 PLOT_TRAV Up: 10.3 Miscellaneous Previous: 10.3.5 WC_WHERE

10.3.6 REBIN [IDL]

REBIN is an IDL routine that enables you to make a 2 dimension array larger or smaller (it also works on multidimensional arrays). To use it to create a new 512512 image (ndat) from a 6464 image (data) type:
IDL> ndat=rebin(data,512,512,/sample)
  Note that the new x and y dimensions must be integral multiples (or divisors) of the original array dimensions.


ydac@mssly1.mssl.ucl.ac.uk