Skip to content

ndr.format.ced.read_SOMSMR_sampleinterval

  ndr.format.ced.read_SOMSMR_sampleinterval - Reads sample interval from a CED SOM/SMR file 

   [SAMPLEINTERVAL,TOTAL_SAMPLES,TOTAL_TIME,BLOCKINFO] = ndr.format.ced.read_SOMSMR_sampleinterval(FILENAME, ...
      HEADER, CHANNEL_NUMBER)


   Inputs:
   Reads the sampleinterval (in seconds) for a given channel from the
   Cambridge Electronic Design .SOM or .SMR file FILENAME. The file HEADER
   information can be provided in HEADER. If HEADER is empty, then it will
   be read from the file.  CHANNEL_NUMBER is the the channel number for which
   to return data; it corresponds to the channel number in the Spike2 .SMR file 
   (that is, in the Sampling Configuration that was used on Spike2).

   Outputs:
     SAMPLE_INTERVAL - each column contains samples from an individual channel; if more than
        one channel has been requested, DATA will have more than one column.
     TOTAL_SAMPLES - The total number of (amplifier or digital) samples estimated to be
        in the file.
     TOTAL_TIME - An estimate of the total duration of the time series data in the
        recorded file, in seconds.

   See also: ndr.format.ced.read_SOMSMR_datafile, ndr.format.ced.read_SOMSMR_header