Rawread

From Eigenvector Research Documentation Wiki
Revision as of 10:40, 29 September 2009 by imported>Scott (New page: ===Purpose=== Imports Physical Electronics .raw files. ===Synopsis=== :out = rawread(filename,mass,blocks) ===Description=== The inputs to the function are the file name (filename) and opt...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Purpose

Imports Physical Electronics .raw files.

Synopsis

out = rawread(filename,mass,blocks)

Description

The inputs to the function are the file name (filename) and optional inputs with mass ranges to integrate (mass, a n by 2 array with upper and lower mass values for each range) and number of data blocks to read in (blocks). The output is a structure array with fields:

  • filename: name of the file read in
  • date: date file read in
  • time: time file read in
  • header: header info from raw file
  • hi_res_spec: high resolution spectra over all pixels
  • mass_axis: mass axis for high resolution spectra
  • total_ion: total ion image
  • data: 256 x 256 x n+1 array containing images at n specified mass ranges plus remaining ions

If RAWREAD is called with only the filename, a high resolution spectra is collected over all the pixels and no image data is collected. If n mass ranges are specified, the images are placed in the data field, with the n + 1 layer being the sum of all remaining ions not in the specified ranges. If blocks is not specified, the whole file is read in, which may take some time (10 minutes or so). Otherwise, just the number of specified blocks will be read (500 is a good first choice). Setting mass = 0 and specifying the number of blocks collects just the high resolution spectra from the specified blocks.

See Also