ReadASD 1.0


Program by George Scheer and Jonathan Greenberg.
Property of the CSTARS Lab at the University of California, Davis. Please ask for permission before distributing this script.


Introduction:

This MATLAB function is designed to collate the single-file output of the portspec.exe program used by the ASD spectrometer.


System Requirements:

This should run on MATLAB 5.1 or higher on UNIX, Mac and PC platforms. Earlier versions of MATLAB may not work.


Instructions:

1. Unzip the file with your favorite decompressor-- Unix users use "unzip [filename]", Macintosh users can use Stuffit Expander and Windows users have a myriad of decompressors (usually WinZip is the unzipper of choice).

2. Place the readASD.m file in your MATLAB:Toolbox:local folder.

3. Run the portspec.exe program to convert the binary ASD output into text files. Follow the instructions distributed with that program.

4. Take all the output files and place them in an empty folder (it is important that the folder contain nothing but the text output files). Only use files from a single ASD detector- don't mix in several detector's files. In MATLAB, navigate to that folder using "cd".

5. The function is initiated by "feval('readasd',fileFile,waveFile,dataFile)".
-fileFile: the filename of the comma-deliminated file which includes the filenames of the portspec.exe output. Each filename is on a different line.
- waveFile: the filename of the list of wavelengths the ASD uses. Each wave is on a different line.
- dataFile: the filename of the collated datafile. The output is formatted as rows x columns = wavelengths x number of files.
Note: you might want to append ".csv" to the filename, since this is a comma deliminated file.


Notes:

You might want to break down your conversions to 200 files or so at a time, since many spreadsheet programs can't handle more than 200-400 columns.

ASD's web page is: http://www.asdi.com/asd/


Bugs:

None so far, but I didn't put any error catching routines into it, so if you mistype it may not catch it. I tested this on a Powermac G4 with 320 megs of RAM and MATLAB 5.1. Other platforms HOPEFULLY should work fine.


Contact:

Jonathan Greenberg, greenberg@ucdavis.edu.


The software on this page has been created by CSTARS members, and may be freely downloaded by outside users. However, if you wish to distribute or use the source code of these applications, please ask permission from the author(s) first.