Home > Libraries > Loaders > read_adsc.m

iFit/read_adsc

PURPOSE ^

data = read_adsc(filename)

SYNOPSIS ^

function frame = read_adsc(fname)

DESCRIPTION ^

 data = read_adsc(filename)

  Read an image file written by an ADSC detector.
  ADSC detectors write images in the "SMV" file format which consists of a text header and uncompressed image.
  ADSC_read takes the file 'fname' and returns the image information in 'imag' and text header in 'header'.

  A typical header begins,
               {
               HEADER_BYTES=  512;
               DIM=2;
               BYTE_ORDER=little_endian;
               TYPE=unsigned_short;
               SIZE1=1152;
               SIZE2=1152;
               PIXEL_SIZE=0.0816; ...

  From this one can rapidly determine,
               a)  The header is a 512 bytes long.
               b)  512 bytes into the file, the image is stored as a set of SIZE1*SIZE2 unsigned_short integers.

   ADSC_read   determines the size of the header, 
               places the header info in 'header',
               determines the image size,
               places the image in imag.

   At present ADSC_read has very little consistency checking.
   Furthermore, at present we assume the image consists of unsigned 16-bit integers.
   However, it should at least return the first Nmin=512 bytes of the file in header.

 References:
   GEST - August 7, 2004. Gil Toombes, get1 _ at _ cornell.edu 
   adsc_read by Gil Toombes, 2004
   used to import ADSC X-ray CCD image, no license
   <http://bigbro.biophys.cornell.edu/~toombes/Software/ADSC_Detectors_Using_Spec/>
   <http://www.adsc-xray.com/products.html>

 See also: read_cbf, read_edf, read_sif, read_mar, read_spe, read_fits, read_hbin, read_image

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 22-Mar-2017 09:13:30 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1