next up previous contents
Next: About this document ... Up: class-associated-arrays Previous: Evolution   Contents


ASSOCIATED ARRAYS section example

N                [I*4]  = 2  ! 2 arrays in the section

### Array 1 ###
  # Description
  FMT(1)         [I*4]  = fmt_b2  ! i.e. 2-bits integer
  DIM2(1)        [I*4]  = 0       ! i.e. array is 1D of size Nchan
  NAME(1)        [C*12] = "LINE"
  UNIT(1)        [C*12] = ""
  BAD(1)         [B*2]  = -1      ! 2-bits value
  # Data
  DATA1(1)       [B*2]            ! 2-bits-value
   ...
  DATA1(Nchan)   [B*2]            ! 2-bits value

### Array 2 ###
  # Description
  FMT(2)         [I*4]  = fmt_r4
  DIM2(2)        [I*4]  = 2          ! i.e. array is 2D of size Nchan x 2
  NAME(2)        [C*12] = "WAVELET"  ! All wavelet orders in a 2D array
  UNIT(2)        [C*12] = ""
  BAD(2)         [R*4]  = -1000.0
  # Data (column-major)
  DATA2(1,1)     [R*4]
   ...
  DATA2(Nchan,1) [R*4]
  DATA2(1,2)     [R*4]
   ...
  DATA2(Nchan,2) [R*4]



Gildas manager 2023-06-01