Package adams.data.io.output
-
Interface Summary Interface Description SampleDataWriter Indicator interface for readers that process sample data. -
Class Summary Class Description AbstractSpectrumWriter Abstract ancestor for writers that write spectra to files in various formats.AbstractTextBasedSpectrumWriter Ancestor for text-based spectrum writers that support streaming.AbstractThreeWayDataWriter Ancestor for writers for 3-way data.ASCIIXYSpectrumWriter Writer that stores spectra in ASCII XY format.ASCSpectrumWriter Writer that stores spectra in the BLGG ASC format.CALSpectrumWriter Write spectra to .CAL file.DPTSpectrumWriter Writer that stores spectra in the simple CSV format.FilteredSpectrumWriter Applies the specified filter to the data before outputting it using the supplied writer.JCampDX2SpectrumWriter Writer that stores spectra in the simple CSV format.JsonSpectrumWriter Writes spectra in JSON format.
Output format for single spectrum:
- outputting the complete report:
{
"id": "someid",
"format": "NIR",
"waves": [1.0, 2.0],
"amplitudes": [1.1, 2.1],
"report": {
"Sample ID": "someid",
"GLV2": 1.123,
"valid": true
}
}
- outputting specific reference and meta-data values:
{
"id": "someid",
"format": "NIR",
"waves": [1.0, 2.0],
"amplitudes": [1.1, 2.1],
"reference": {
"GLV2": 1.123
},
"meta-data": {
"valid": true
}
}
Multiple spectra get wrapped in an array called 'spectra'.NIRSpectrumWriter Writer that stores spectra in the FOSS .nir Format.SimpleCSVSampleDataWriter Writes reports in CSV file format.SimpleEEMWriter Writes 3-way data in spreadsheet format (tab-separated columns).SimpleJsonSampleDataWriter Writes reports in Json file format.SimpleSampleDataWriter Writes reports in properties file format.SimpleSpectrumWriter Writer that stores spectra in the simple CSV format.SimpleXYZWriter Writes 3-way data in CSV format (x/y/z/data columns).SpectrumImageWriter Writes spectra as images using the supplied generator.SpreadSheetSpectrumWriter Uses the supplied spreadsheet writer to write the spectra as spreadsheets.TrinamixSpectrumWriter Writer for the trinamiX (https://trinamixsensing.com/) CSV format.ZippedSpectrumWriter Writes spectra to the zip file using the specified base writer (must support streaming).