-
Notifications
You must be signed in to change notification settings - Fork 0
/
convert.flow
executable file
·21 lines (21 loc) · 2.77 KB
/
convert.flow
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Project: adams
# Date: 2021-05-31 10:52:35
# User: dale
# Charset: windows-1252
# Modules: adams-compress,adams-core,adams-db,adams-event,adams-excel,adams-heatmap,adams-imaging,adams-imaging-boofcv,adams-json,adams-math,adams-matlab,adams-meta,adams-ml,adams-net,adams-odf,adams-pdf,adams-r,adams-rabbitmq,adams-rabbitmq-rats,adams-rats-core,adams-rats-net,adams-rats-rest,adams-rats-webservice,adams-rest,adams-security,adams-spectral-2dim-core,adams-spectral-2dim-handheld,adams-spectral-2dim-rats,adams-spectral-2dim-webservice,adams-spectral-3way-core,adams-spectral-app,adams-spreadsheet,adams-terminal,adams-visualstats,adams-webservice,adams-webservice-core,adams-weka-lts,adams-xml,adams-yaml
#
adams.flow.control.Flow -flow-execution-listener adams.flow.execution.NullListener -flow-restart-manager adams.flow.control.flowrestart.NullManager
adams.flow.standalone.SetVariable -name "SetVariable (8)" -var-name rows_with_amplitudes -var-value 2-last
adams.flow.standalone.SetVariable -name "SetVariable (6)" -var-name columns_with_amplitudes -var-value 10-last
adams.flow.standalone.SetVariable -name "SetVariable (3)" -var-name header_row -var-value 1
adams.flow.standalone.SetVariable -name "SetVariable (5)" -var-name column_with_id -var-value 2
adams.flow.standalone.SetVariable -name "SetVariable (2)" -var-name columns_with_sampledata -var-value 1-9
adams.flow.source.Variable -var-name flow_dir -conversion adams.data.conversion.StringToString
adams.flow.transformer.AppendName -suffix "raw/2. AfSISTZNIRspectraDataverse.csv" -use-forward-slashes true
adams.flow.control.Tee -name "Read spectra and reference"
adams.flow.transformer.SpreadSheetFileReader -reader "adams.data.io.input.CsvSpreadSheetReader -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet"
adams.flow.control.Breakpoint -skip true -scope-restriction adams.flow.execution.debug.NoScopeRestriction -condition adams.flow.condition.bool.Expression
adams.flow.transformer.Convert -conversion "adams.data.conversion.SpreadSheetRowsToSpectra -row-wave-number @{header_row} -wave-numbers-in-header true -wave-number-regexp w(.*) -cols-amplitude @{columns_with_amplitudes} -rows-amplitude @{rows_with_amplitudes} -row-sampledata-names @{header_row} -cols-sampledata @{columns_with_sampledata} -col-id @{column_with_id}"
adams.flow.transformer.ArrayToSequence
adams.flow.transformer.SetStorageValue -storage-name spectrum
adams.flow.sink.SpectrumDisplay -display-type adams.flow.core.displaytype.Default -writer adams.gui.print.NullWriter -color-provider adams.gui.visualization.core.DefaultColorProvider -paintlet "adams.gui.visualization.spectrum.SpectrumPaintlet -anti-aliasing-enabled false" -plot-updater "adams.flow.sink.spectrumdisplay.SimplePlotUpdater -update-interval -1"