get_scan_data

Data_Reduction.DSN.Tid_ASCII_data.get_scan_data(data, index, block_size)

Get a scan from an ASCII file

A data block is everything between two lines which begin with the word ‘Scan’. The scan number is also encoded as the first data number. The source name, however, did not begin to appear in the header until later.

:param datalist of strings

All the lines from a file

:param indexint

a line with the word ‘Scan’

:param block_sizeint

number of lines in the block, including the line with ‘Scan’