Skip to content

SONADCToDouble

  SONADCTODOUBLE scales a SON ADC channel to double precision floating point

  [OUT {, HEADER}]=SONADCTODOUBLE(IN {, HEADER})

  Applies the scale and offset supplied in HEADER to the data contained in
  IN. These values are derived form the channel header on disc.
                OUT=(IN*SCALE/6553.6)+OFFSET
  If no HEADER is supplied as input, a scale of 1.0 and offset of 0.0
  are assumed.
  If supplied as output, HEADER will be updated with fields
  for the min and max values and channel kind will be replaced with 9 (i.e.
  the RealWave channel value).


  Malcolm Lidierth 03/02
  Updated 03/06 ML
  Copyright © The Author & King's College London 2005-2006