IXFrebin x dataset 2d
Revision as of 09:03, 4 April 2008 by Dean Whittaker (talk | contribs)
This function will rebin an IXTdataset_2d object along the x dimension according to the supplied optional arguments to give an IXTdataset_2d object result. The two optional arguments are defined as follows:
- Xref is an IXTdataset_2d object, if it is supplied then the dataset_2d object will be rebinned according to the binning of Xref
- Xdesc is an array of bin boundaries and intervals with a simple and more general form.
- basic form (xlo,dx,xhi)
- dx > 0 constant bin width = dx
- dx < 0 logarithmic binning x(m+1) = x(m) *(1+|dx|)
- dx = 0 retain original bin boundaries
- general form (x_1,dx_1,x_2,dx_2,...,x_n,dx_n,x_n+1)
- dx_i > 0 constant bin width = dx_i
- dx_i < 0 logarithmic binning x(m+1) = x(m) *(1+|dx_i|)
- dx_i = 0 retain original bin boundaries
- basic form (xlo,dx,xhi)
Rebinning is ONLY possible on histogram data.
F90 syntax
use IXMdataset_2d type(IXTdataset_2d):: dataset_2d,result_d2d type(IXTstatus)::status ! optional arguments type(IXTdataset_2d)::Xref real(dp)::Xdesc(:) : : ! using an array of bin boundaries and intervals call IXFrebin_x_dataset_2d(result_d2d,status,dataset_2d,Xdesc) ! using a reference object call IXFrebin_x_dataset_2d(result_d2d,status,dataset_2d,Xref)