XMM-Newton SAS Home Page
XMM-Newton Science Analysis System


dal (dal-1.198) [xmmsas_20211130_0941-20.0.0]


Array

An array is a block that is an n-dimensional array of scalars. An array can be accessed and released with the following procedures:

Once the handle is available, the following properties can be enquired:

The data in an array can be accessed via access function. There is a large variety of those to support the different types and dimensions.

The following example illustrates how to change the values in an array.

program modifyColumn
  use dal
  type(DataSetT) :: set
  type(ArrayT) :: arr
  integer(kind=int32), dimension(:,:), pointer :: x

  set = dataSet("test.dat",Modify)
  arr = array(set,"test")
  x => int32Array2Data(arr)
  x = 124
  call release(arr)
  call release(set)
end program

To reduce the size of the array that is accessed in one go (and thereby reducing memory usage), one can select a certain range:

Note: the current DAL does not support the seek function.

XMM-Newton SOC -- 2021-11-30