Wdf |
public class WdfFileReader
The WdfFileReader type exposes the following members.
Name | Description | |
---|---|---|
WdfFileReader | Initializes a new instance of the WdfFileReader class |
Name | Description | |
---|---|---|
AccumulationCount | Number of accumulations used for one spectrum. | |
ApplicationName | Name of the application that created this file. | |
ApplicationVersion | Version of the application that created this file. | |
Capacity | Total number of experiments, can be greater than Count. | |
Count | Number of experiments of the same type, can be smaller than Capacity. | |
DataOriginCount | Number of rows in the data origin list. | |
FileName | Gets the name of the Wdf file. | |
HasMapData | Gets a value indicating whether this instance has map data. | |
IsCompleted | True if the number of spectra in this file equals the total number of spectra for this measurement. | |
LaserWavelength_nm | Wavelength of the exciting laser in nm. | |
MapShape | ||
MeasurementType | Type of the measurement that created this file. | |
NumberOfPointsPerSpectrum | Number of data points in each spectrum. | |
OriginListHeader | ||
ScanType | Type of the scan that created this file. | |
Spectra | ||
SpectralUnit | Unit of the y-values of the spectra. | |
Title | Title of the measurement. | |
UserName | Operator of the measurement. | |
XData | ||
XPositions | ||
XPositionUnit | ||
XUnit | ||
YData | ||
YPositions | ||
YPositionUnit | ||
YUnit | ||
ZPositions | ||
ZPositionUnit |
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
FromFileName | ||
FromStream | ||
GetHashCode | Serves as the default hash function. (Inherited from Object) | |
GetSpectrum | Gets the spectrum with index idx. | |
GetType | Gets the Type of the current instance. (Inherited from Object) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
ToString | Returns a string that represents the current object. (Inherited from Object) |
The wdf file format is separated into several DataBlocks, with starting 4-char strings such as (incomplete list): `WDF1`: File header for information `DATA`: Spectra data `XLST`: Data for X-axis of data, usually the Raman shift or wavelength `YLST`: Data for Y-axis of data, possibly not important `WMAP`: Information for mapping, e.g.StreamLine or StreamLineHR mapping `MAP `: Mapping information(?) `ORGN`: Data for stage origin `TEXT`: Annotation text etc `WXDA`: ? TODO `WXDM`: ? TODO `ZLDC`: ? TODO `BKXL`: ? TODO `WXCS`: ? TODO `WXIS`: ? TODO `WHTL`: Whilte light image Following the block name, there are two indicators: Block uid: int32 Block size: int64 Args: file_name(file) : File object for the wdf file Attributes: title(str) : Title of measurement username(str) : Username application_name(str) : Default WiRE application_version(int,) * 4 : Version number, e.g. [4, 4, 0, 6602] measurement_type(int) : Type of measurement 0=unknown, 1=single, 2=multi, 3=mapping scan_type(int) : Scan of type, see values in scan_types laser_wavenumber(float32) : Wavenumber in cm^-1 count(int) : Numbers of experiments(same type), can be smaller than capacity spectral_units(int) : Unit of spectra, see unit_types xlist_type(int) : See unit_types xlist_unit(int) : See unit_types xlist_length(int) : Size for the xlist xdata(numpy.array) : x-axis data ylist_type(int) : Same as xlist_type ylist_unit(int): Same as xlist_unit ylist_length(int): Same as xlist_length ydata(numpy.array): y-data, possibly not used point_per_spectrum(int): Should be identical to xlist_length data_origin_count(int) : Number of rows in data origin list capacity(int) : Max number of spectra accumulation_count(int) : Single or multiple measurements block_info(dict) : Info block at least with following keys DATA, XLST, YLST, ORGN # TODO types?