IXFrebin dataset 1d
Revision as of 09:34, 4 April 2008 by Dean Whittaker (talk | contribs)
This function will rebin an IXTdataset_1d object according to the supplied optional arguments to give an IXTdataset_1d object result. The two optional arguments are defined as follows:
- Xref is an IXTdataset_1d object, if it is supplied then the dataset_1d 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_1d type(IXTdataset_1d):: dataset_1d,result_d1d type(IXTstatus)::status ! optional arguments type(IXTdataset_1d)::Xref real(dp)::Xdesc(:) : : ! using an array of bin boundaries and intervals call IXFrebin_dataset_1d(result_d1d,status,dataset_1d,Xdesc) ! using a reference object call IXFrebin_dataset_1d(result_d1d,status,dataset_1d,Xref)