IXFintegrate xy dataset 2d

From LIBISIS
Jump to navigation Jump to search

This function will integrate the signal array of an IXTdataset_2d between two limits along both the x-dimension and the y-dimension to give an IXTdatum object result. It will integrate both distribution/non-distribution data but it will NOT integrate point data. The limits can exceed the data boundaries and error flags are raised if inapplicable limits are specified.


F90 syntax

use IXMdataset_2d

type(IXTdataset_2d):: dataset_2d
type (IXTdatum):: result
real(dp)::low_limit_x,high_limit_x,low_limit_y,high_limit_y
type (IXTstatus)::status

low_limit_x=10.0
high_limit_x=20.0

low_limit_y=10.0
high_limit_y=20.0

call IXFintegrate_xy_dataset_2d(result,low_limit_x,high_limit_x,low_limit_y,high_limit_y,dataset_2d,status)

!limits can be implicitly defined in the function call

call IXFintegrate_xy_dataset_2d(result,low_limit_x,high_limit_x,15.0_dp,25.0_dp,dataset_2d,status)