IXFshift dataset 2d

From LIBISIS
Jump to navigation Jump to search

This routine will shift the x array and/or y array of an IXTdataset_2d object by an amount shift_x and/or shift_y respectively to give an IXTdataset_2d object.


F90 syntax

use IXMdataset_2d

type(IXTdataset_2d):: input_d2d, result_d2d
real(dp)::shift_x,shift_y

type(IXTstatus)::status
! the shift_x and shift_y are optional arguments, so need to be supplied with keywords
call IXFshift_dataset_2d(result_d2d,input_d2d,status,shift_x=shift_x)
call IXFshift_dataset_2d(result_d2d,input_d2d,status,shift_y=shift_y)

! when all optional parameters are supplied keywords are not required
call IXFshift_dataset_2d(result_d2d,input_d2d,status,shift_x,shift_y)