-
Notifications
You must be signed in to change notification settings - Fork 0
/
convert.flow
executable file
·267 lines (267 loc) · 35.8 KB
/
convert.flow
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
# Project: adams
# Date: 2024-05-24 16:46:13
# User: fracpete
# Charset: UTF-8
# Modules: adams-bootstrapp,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-pyro4,adams-python,adams-r,adams-rats-core,adams-rats-net,adams-rats-redis,adams-rats-rest,adams-rats-webservice,adams-redis,adams-rest,adams-security,adams-spectral-2dim-core,adams-spectral-2dim-handheld,adams-spectral-2dim-r,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 -annotation "Expects two sub-dirs in the same dir as the flow:\\n- raw\\n- output\\nThe raw directory must contain the Excel files." -flow-execution-listener adams.flow.execution.NullListener -flow-restart-manager adams.flow.control.flowrestart.NullManager
adams.flow.standalone.TabView -name "MIR Clay" -skip true -display-type adams.flow.core.displaytype.Default -x 0 -y 0
adams.flow.sink.SpectrumDisplay -name "MIR Clay 45 0.25" -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 -always-show-markers false -anti-aliasing-enabled false" -plot-updater "adams.flow.sink.spectrumdisplay.SimplePlotUpdater -update-interval 50"
adams.flow.sink.SpectrumDisplay -name "MIR Clay 45 0.71" -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 -always-show-markers false -anti-aliasing-enabled false" -plot-updater "adams.flow.sink.spectrumdisplay.SimplePlotUpdater -update-interval 50"
adams.flow.sink.SpectrumDisplay -name "MIR Clay 45 2" -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 -always-show-markers false -anti-aliasing-enabled false" -plot-updater "adams.flow.sink.spectrumdisplay.SimplePlotUpdater -update-interval 50"
adams.flow.sink.SpectrumDisplay -name "MIR Clay 105 0.2" -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 -always-show-markers false -anti-aliasing-enabled false" -plot-updater "adams.flow.sink.spectrumdisplay.SimplePlotUpdater -update-interval 50"
adams.flow.sink.SpectrumDisplay -name "MIR Clay 105 0.71" -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 -always-show-markers false -anti-aliasing-enabled false" -plot-updater "adams.flow.sink.spectrumdisplay.SimplePlotUpdater -update-interval 50"
adams.flow.sink.SpectrumDisplay -name "MIR Clay 105 2" -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 -always-show-markers false -anti-aliasing-enabled false" -plot-updater "adams.flow.sink.spectrumdisplay.SimplePlotUpdater -update-interval 50"
adams.flow.standalone.TabView -name "MIR Sand" -skip true -display-type adams.flow.core.displaytype.Default -x 50 -y 50
adams.flow.sink.SpectrumDisplay -name "MIR Sand 45 0.25" -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 -always-show-markers false -anti-aliasing-enabled false" -plot-updater "adams.flow.sink.spectrumdisplay.SimplePlotUpdater -update-interval 50"
adams.flow.sink.SpectrumDisplay -name "MIR Sand 45 0.71" -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 -always-show-markers false -anti-aliasing-enabled false" -plot-updater "adams.flow.sink.spectrumdisplay.SimplePlotUpdater -update-interval 50"
adams.flow.sink.SpectrumDisplay -name "MIR Sand 45 2" -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 -always-show-markers false -anti-aliasing-enabled false" -plot-updater "adams.flow.sink.spectrumdisplay.SimplePlotUpdater -update-interval 50"
adams.flow.sink.SpectrumDisplay -name "MIR Sand 105 0.2" -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 -always-show-markers false -anti-aliasing-enabled false" -plot-updater "adams.flow.sink.spectrumdisplay.SimplePlotUpdater -update-interval 50"
adams.flow.sink.SpectrumDisplay -name "MIR Sand 105 0.71" -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 -always-show-markers false -anti-aliasing-enabled false" -plot-updater "adams.flow.sink.spectrumdisplay.SimplePlotUpdater -update-interval 50"
adams.flow.sink.SpectrumDisplay -name "MIR Sand 105 2" -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 -always-show-markers false -anti-aliasing-enabled false" -plot-updater "adams.flow.sink.spectrumdisplay.SimplePlotUpdater -update-interval 50"
adams.flow.standalone.TabView -name "Nir Clay" -skip true -display-type adams.flow.core.displaytype.Default -x 100 -y 100
adams.flow.sink.SpectrumDisplay -name "NIR Clay 45 0.25" -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 -always-show-markers false -anti-aliasing-enabled false" -plot-updater "adams.flow.sink.spectrumdisplay.SimplePlotUpdater -update-interval 50"
adams.flow.sink.SpectrumDisplay -name "NIR Clay 45 0.71" -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 -always-show-markers false -anti-aliasing-enabled false" -plot-updater "adams.flow.sink.spectrumdisplay.SimplePlotUpdater -update-interval 50"
adams.flow.sink.SpectrumDisplay -name "NIR Clay 45 2" -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 -always-show-markers false -anti-aliasing-enabled false" -plot-updater "adams.flow.sink.spectrumdisplay.SimplePlotUpdater -update-interval 50"
adams.flow.sink.SpectrumDisplay -name "NIR Clay 105 0.2" -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 -always-show-markers false -anti-aliasing-enabled false" -plot-updater "adams.flow.sink.spectrumdisplay.SimplePlotUpdater -update-interval 50"
adams.flow.sink.SpectrumDisplay -name "NIR Clay 105 0.71" -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 -always-show-markers false -anti-aliasing-enabled false" -plot-updater "adams.flow.sink.spectrumdisplay.SimplePlotUpdater -update-interval 50"
adams.flow.sink.SpectrumDisplay -name "NIR Clay 105 2" -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 -always-show-markers false -anti-aliasing-enabled false" -plot-updater "adams.flow.sink.spectrumdisplay.SimplePlotUpdater -update-interval 50"
adams.flow.standalone.TabView -name "NIR Sand" -skip true -display-type adams.flow.core.displaytype.Default -x 150 -y 150
adams.flow.sink.SpectrumDisplay -name "NIR Sand 45 0.25" -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 -always-show-markers false -anti-aliasing-enabled false" -plot-updater "adams.flow.sink.spectrumdisplay.SimplePlotUpdater -update-interval 50"
adams.flow.sink.SpectrumDisplay -name "NIR Sand 45 0.71" -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 -always-show-markers false -anti-aliasing-enabled false" -plot-updater "adams.flow.sink.spectrumdisplay.SimplePlotUpdater -update-interval 50"
adams.flow.sink.SpectrumDisplay -name "NIR Sand 45 2" -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 -always-show-markers false -anti-aliasing-enabled false" -plot-updater "adams.flow.sink.spectrumdisplay.SimplePlotUpdater -update-interval 50"
adams.flow.sink.SpectrumDisplay -name "NIR Sand 105 0.2" -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 -always-show-markers false -anti-aliasing-enabled false" -plot-updater "adams.flow.sink.spectrumdisplay.SimplePlotUpdater -update-interval 50"
adams.flow.sink.SpectrumDisplay -name "NIR Sand 105 0.71" -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 -always-show-markers false -anti-aliasing-enabled false" -plot-updater "adams.flow.sink.spectrumdisplay.SimplePlotUpdater -update-interval 50"
adams.flow.sink.SpectrumDisplay -name "NIR Sand 105 2" -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 -always-show-markers false -anti-aliasing-enabled false" -plot-updater "adams.flow.sink.spectrumdisplay.SimplePlotUpdater -update-interval 50"
adams.flow.standalone.CallableActors
adams.flow.control.Sequence -name "save CSV" -annotation "requires variables: name - the filename, no path/ext"
adams.flow.transformer.DeleteStorageValue -storage-name data
adams.flow.control.Tee -name "generate instances"
adams.flow.transformer.ArrayToSequence
adams.flow.control.TransformerReset -var-name name
adams.flow.transformer.InstanceGenerator -generator "adams.data.instances.SimpleInstanceGenerator -add-sample-id true -additional \"K mmolc.dm-³[N]\" -additional \"N g.Kg-¹[N]\" -no-additional-prefix true -field \"P mg.dm-³[N]\" -wave-number-as-suffix true"
adams.flow.control.TransformerReset -name "TransformerReset (2)" -var-name name
adams.flow.transformer.WekaInstanceBuffer
adams.flow.transformer.SetStorageValue -storage-name data
adams.flow.control.Trigger -name "save instances"
adams.flow.standalone.SetVariable -var-name output_file -var-value @{flow_dir}/output/@{name}.csv -expand-value true
adams.flow.source.StorageValue -storage-name data -conversion adams.data.conversion.UnknownToUnknown
adams.flow.sink.WekaFileWriter -output @{output_file} -use-custom true -saver "weka.core.converters.SpreadSheetSaver -writer \"adams.data.io.output.CsvSpreadSheetWriter -always-quote-text true\""
adams.flow.source.Start
adams.flow.control.Trigger -name MIR
adams.flow.standalone.SetVariable -name "SetVariable (6)" -var-name columns_with_samples -var-value 2-last
adams.flow.standalone.SetVariable -name "SetVariable (7)" -var-name column_with_sampledatanames -var-value 1
adams.flow.standalone.SetVariable -name "SetVariable (3)" -var-name column_with_wavenumbers -var-value 1
adams.flow.standalone.SetVariable -name "SetVariable (5)" -var-name rows_with_wavenumbers -var-value 5-last
adams.flow.standalone.SetVariable -name "SetVariable (2)" -var-name rows_with_meta -var-value 1-4
adams.flow.standalone.SetVariable -var-name id_row -var-value 1
adams.flow.source.Variable -var-name flow_dir -conversion adams.data.conversion.StringToString
adams.flow.control.Tee -name "Load and process MIR Clay"
adams.flow.transformer.AppendName -suffix raw/MIR_ATR_Clayey.xlsx -use-forward-slashes true
adams.flow.control.Tee -name "45 0.25"
adams.flow.transformer.SpreadSheetFileReader -reader "adams.data.io.input.ExcelSpreadSheetReader -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet -no-header true"
adams.flow.transformer.Convert -conversion "adams.data.conversion.SpreadSheetColumnsToSpectra -col-wave-number @{column_with_wavenumbers} -cols-amplitude @{columns_with_samples} -rows-amplitude @{rows_with_wavenumbers} -col-sampledata-names @{column_with_sampledatanames} -rows-sampledata @{rows_with_meta} -row-id @{id_row}"
adams.flow.control.Tee -skip true
adams.flow.sink.CallableSink -callable "MIR Clay 45 0.25"
adams.flow.control.Tee -name save
adams.flow.transformer.SetVariable -var-name name -var-value "MIR Clay 45 0.25"
adams.flow.sink.CallableSink -callable "save CSV"
adams.flow.control.Tee -name "45 0.71"
adams.flow.transformer.SpreadSheetFileReader -reader "adams.data.io.input.ExcelSpreadSheetReader -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet -sheets 2 -no-header true"
adams.flow.transformer.Convert -conversion "adams.data.conversion.SpreadSheetColumnsToSpectra -col-wave-number @{column_with_wavenumbers} -cols-amplitude @{columns_with_samples} -rows-amplitude @{rows_with_wavenumbers} -col-sampledata-names @{column_with_sampledatanames} -rows-sampledata @{rows_with_meta} -row-id @{id_row}"
adams.flow.control.Tee -skip true
adams.flow.sink.CallableSink -callable "MIR Clay 45 0.71"
adams.flow.control.Tee -name save
adams.flow.transformer.SetVariable -var-name name -var-value "MIR Clay 45 0.71"
adams.flow.sink.CallableSink -callable "save CSV"
adams.flow.control.Tee -name "45 2"
adams.flow.transformer.SpreadSheetFileReader -reader "adams.data.io.input.ExcelSpreadSheetReader -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet -sheets 3 -no-header true"
adams.flow.transformer.Convert -conversion "adams.data.conversion.SpreadSheetColumnsToSpectra -col-wave-number @{column_with_wavenumbers} -cols-amplitude @{columns_with_samples} -rows-amplitude @{rows_with_wavenumbers} -col-sampledata-names @{column_with_sampledatanames} -rows-sampledata @{rows_with_meta} -row-id @{id_row}"
adams.flow.control.Tee -skip true
adams.flow.sink.CallableSink -callable "MIR Clay 45 2"
adams.flow.control.Tee -name save
adams.flow.transformer.SetVariable -var-name name -var-value "MIR Clay 45 2"
adams.flow.sink.CallableSink -callable "save CSV"
adams.flow.control.Tee -name "105 0.2"
adams.flow.transformer.SpreadSheetFileReader -reader "adams.data.io.input.ExcelSpreadSheetReader -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet -sheets 4 -no-header true"
adams.flow.transformer.Convert -conversion "adams.data.conversion.SpreadSheetColumnsToSpectra -col-wave-number @{column_with_wavenumbers} -cols-amplitude @{columns_with_samples} -rows-amplitude @{rows_with_wavenumbers} -col-sampledata-names @{column_with_sampledatanames} -rows-sampledata @{rows_with_meta} -row-id @{id_row}"
adams.flow.control.Tee -skip true
adams.flow.sink.CallableSink -callable "MIR Clay 105 0.2"
adams.flow.control.Tee -name save
adams.flow.transformer.SetVariable -var-name name -var-value "MIR Clay 105 0.2"
adams.flow.sink.CallableSink -callable "save CSV"
adams.flow.control.Tee -name "105 0.71"
adams.flow.transformer.SpreadSheetFileReader -reader "adams.data.io.input.ExcelSpreadSheetReader -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet -sheets 5 -no-header true"
adams.flow.transformer.Convert -conversion "adams.data.conversion.SpreadSheetColumnsToSpectra -col-wave-number @{column_with_wavenumbers} -cols-amplitude @{columns_with_samples} -rows-amplitude @{rows_with_wavenumbers} -col-sampledata-names @{column_with_sampledatanames} -rows-sampledata @{rows_with_meta} -row-id @{id_row}"
adams.flow.control.Tee -skip true
adams.flow.sink.CallableSink -callable "MIR Clay 105 0.71"
adams.flow.control.Tee -name save
adams.flow.transformer.SetVariable -var-name name -var-value "MIR Clay 105 0.71"
adams.flow.sink.CallableSink -callable "save CSV"
adams.flow.control.Tee -name "105 2"
adams.flow.transformer.SpreadSheetFileReader -reader "adams.data.io.input.ExcelSpreadSheetReader -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet -sheets 6 -no-header true"
adams.flow.transformer.Convert -conversion "adams.data.conversion.SpreadSheetColumnsToSpectra -col-wave-number @{column_with_wavenumbers} -cols-amplitude @{columns_with_samples} -rows-amplitude @{rows_with_wavenumbers} -col-sampledata-names @{column_with_sampledatanames} -rows-sampledata @{rows_with_meta} -row-id @{id_row}"
adams.flow.control.Tee -skip true
adams.flow.sink.CallableSink -callable "MIR Clay 105 2"
adams.flow.control.Tee -name save
adams.flow.transformer.SetVariable -var-name name -var-value "MIR Clay 105 2"
adams.flow.sink.CallableSink -callable "save CSV"
adams.flow.control.Tee -name "Load and process MIR Sand"
adams.flow.transformer.AppendName -suffix raw/MIR_ATR_Sandy.xlsx -use-forward-slashes true
adams.flow.control.Tee -name "45 0.25"
adams.flow.transformer.SpreadSheetFileReader -reader "adams.data.io.input.ExcelSpreadSheetReader -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet -no-header true"
adams.flow.transformer.Convert -conversion "adams.data.conversion.SpreadSheetColumnsToSpectra -col-wave-number @{column_with_wavenumbers} -cols-amplitude @{columns_with_samples} -rows-amplitude @{rows_with_wavenumbers} -col-sampledata-names @{column_with_sampledatanames} -rows-sampledata @{rows_with_meta} -row-id @{id_row}"
adams.flow.control.Tee -skip true
adams.flow.sink.CallableSink -callable "MIR Sand 45 0.25"
adams.flow.control.Tee -name save
adams.flow.transformer.SetVariable -var-name name -var-value "MIR Sand 45 0.25"
adams.flow.sink.CallableSink -callable "save CSV"
adams.flow.control.Tee -name "45 0.71"
adams.flow.transformer.SpreadSheetFileReader -reader "adams.data.io.input.ExcelSpreadSheetReader -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet -sheets 2 -no-header true"
adams.flow.transformer.Convert -conversion "adams.data.conversion.SpreadSheetColumnsToSpectra -col-wave-number @{column_with_wavenumbers} -cols-amplitude @{columns_with_samples} -rows-amplitude @{rows_with_wavenumbers} -col-sampledata-names @{column_with_sampledatanames} -rows-sampledata @{rows_with_meta} -row-id @{id_row}"
adams.flow.control.Tee -skip true
adams.flow.sink.CallableSink -callable "MIR Sand 45 0.71"
adams.flow.control.Tee -name save
adams.flow.transformer.SetVariable -var-name name -var-value "MIR Sand 45 0.71"
adams.flow.sink.CallableSink -callable "save CSV"
adams.flow.control.Tee -name "45 2"
adams.flow.transformer.SpreadSheetFileReader -reader "adams.data.io.input.ExcelSpreadSheetReader -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet -sheets 3 -no-header true"
adams.flow.transformer.Convert -conversion "adams.data.conversion.SpreadSheetColumnsToSpectra -col-wave-number @{column_with_wavenumbers} -cols-amplitude @{columns_with_samples} -rows-amplitude @{rows_with_wavenumbers} -col-sampledata-names @{column_with_sampledatanames} -rows-sampledata @{rows_with_meta} -row-id @{id_row}"
adams.flow.control.Tee -skip true
adams.flow.sink.CallableSink -callable "MIR Sand 45 2"
adams.flow.control.Tee -name save
adams.flow.transformer.SetVariable -var-name name -var-value "MIR Sand 45 2"
adams.flow.sink.CallableSink -callable "save CSV"
adams.flow.control.Tee -name "105 0.2"
adams.flow.transformer.SpreadSheetFileReader -reader "adams.data.io.input.ExcelSpreadSheetReader -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet -sheets 4 -no-header true"
adams.flow.transformer.Convert -conversion "adams.data.conversion.SpreadSheetColumnsToSpectra -col-wave-number @{column_with_wavenumbers} -cols-amplitude @{columns_with_samples} -rows-amplitude @{rows_with_wavenumbers} -col-sampledata-names @{column_with_sampledatanames} -rows-sampledata @{rows_with_meta} -row-id @{id_row}"
adams.flow.control.Tee -skip true
adams.flow.sink.CallableSink -callable "MIR Sand 105 0.2"
adams.flow.control.Tee -name save
adams.flow.transformer.SetVariable -var-name name -var-value "MIR Sand 105 0.2"
adams.flow.sink.CallableSink -callable "save CSV"
adams.flow.control.Tee -name "105 0.71"
adams.flow.transformer.SpreadSheetFileReader -reader "adams.data.io.input.ExcelSpreadSheetReader -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet -sheets 5 -no-header true"
adams.flow.transformer.Convert -conversion "adams.data.conversion.SpreadSheetColumnsToSpectra -col-wave-number @{column_with_wavenumbers} -cols-amplitude @{columns_with_samples} -rows-amplitude @{rows_with_wavenumbers} -col-sampledata-names @{column_with_sampledatanames} -rows-sampledata @{rows_with_meta} -row-id @{id_row}"
adams.flow.control.Tee -skip true
adams.flow.sink.CallableSink -callable "MIR Sand 105 0.71"
adams.flow.control.Tee -name save
adams.flow.transformer.SetVariable -var-name name -var-value "MIR Sand 105 0.71"
adams.flow.sink.CallableSink -callable "save CSV"
adams.flow.control.Tee -name "105 2"
adams.flow.transformer.SpreadSheetFileReader -reader "adams.data.io.input.ExcelSpreadSheetReader -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet -sheets 6 -no-header true"
adams.flow.transformer.Convert -conversion "adams.data.conversion.SpreadSheetColumnsToSpectra -col-wave-number @{column_with_wavenumbers} -cols-amplitude @{columns_with_samples} -rows-amplitude @{rows_with_wavenumbers} -col-sampledata-names @{column_with_sampledatanames} -rows-sampledata @{rows_with_meta} -row-id @{id_row}"
adams.flow.control.Tee -skip true
adams.flow.sink.CallableSink -callable "MIR Sand 105 2"
adams.flow.control.Tee -name save
adams.flow.transformer.SetVariable -var-name name -var-value "MIR Sand 105 2"
adams.flow.sink.CallableSink -callable "save CSV"
adams.flow.control.Trigger -name "VIS NIR"
adams.flow.standalone.SetVariable -var-name wavenumber_header_row -var-value 1
adams.flow.standalone.SetVariable -name "SetVariable (2)" -var-name wavenumber_regex -var-value (.*)
adams.flow.standalone.SetVariable -name "SetVariable (3)" -var-name columns_with_wavenumbers -var-value 5-last
adams.flow.standalone.SetVariable -name "SetVariable (5)" -var-name rows_with_samples -var-value 2-last
adams.flow.standalone.SetVariable -name "SetVariable (6)" -var-name columns_with_meta -var-value 1-4
adams.flow.standalone.SetVariable -name "SetVariable (8)" -var-name row_sample_data_names -var-value 1
adams.flow.standalone.SetVariable -name "SetVariable (9)" -var-name id_column -var-value 1
adams.flow.source.Variable -var-name flow_dir -conversion adams.data.conversion.StringToString
adams.flow.control.Tee -name "Load and process NIR Clay"
adams.flow.transformer.AppendName -suffix raw/Vis-NIR_Clayey.xlsx -use-forward-slashes true
adams.flow.control.Tee -name "45 0.25"
adams.flow.transformer.SpreadSheetFileReader -reader "adams.data.io.input.ExcelSpreadSheetReader -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet -no-header true"
adams.flow.transformer.Convert -name "Convert (2)" -conversion "adams.data.conversion.SpreadSheetRowsToSpectra -row-wave-number @{wavenumber_header_row} -wave-number-regexp @{wavenumber_regex} -cols-amplitude @{columns_with_wavenumbers} -rows-amplitude @{rows_with_samples} -row-sampledata-names @{row_sample_data_names} -cols-sampledata @{columns_with_meta} -col-id @{id_column}"
adams.flow.control.Tee -skip true
adams.flow.sink.CallableSink -callable "NIR Clay 45 0.25"
adams.flow.control.Tee -name save
adams.flow.transformer.SetVariable -var-name name -var-value "NIR Clay 45 0.25"
adams.flow.sink.CallableSink -callable "save CSV"
adams.flow.control.Tee -name "45 0.71"
adams.flow.transformer.SpreadSheetFileReader -reader "adams.data.io.input.ExcelSpreadSheetReader -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet -sheets 2 -no-header true"
adams.flow.transformer.Convert -conversion "adams.data.conversion.SpreadSheetRowsToSpectra -row-wave-number @{wavenumber_header_row} -wave-number-regexp @{wavenumber_regex} -cols-amplitude @{columns_with_wavenumbers} -rows-amplitude @{rows_with_samples} -row-sampledata-names @{row_sample_data_names} -cols-sampledata @{columns_with_meta} -col-id @{id_column}"
adams.flow.control.Tee -skip true
adams.flow.sink.CallableSink -callable "NIR Clay 45 0.71"
adams.flow.control.Tee -name save
adams.flow.transformer.SetVariable -var-name name -var-value "NIR Clay 45 0.71"
adams.flow.sink.CallableSink -callable "save CSV"
adams.flow.control.Tee -name "45 2"
adams.flow.transformer.SpreadSheetFileReader -reader "adams.data.io.input.ExcelSpreadSheetReader -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet -sheets 3 -no-header true"
adams.flow.transformer.Convert -conversion "adams.data.conversion.SpreadSheetRowsToSpectra -row-wave-number @{wavenumber_header_row} -wave-number-regexp @{wavenumber_regex} -cols-amplitude @{columns_with_wavenumbers} -rows-amplitude @{rows_with_samples} -row-sampledata-names @{row_sample_data_names} -cols-sampledata @{columns_with_meta} -col-id @{id_column}"
adams.flow.control.Tee -skip true
adams.flow.sink.CallableSink -callable "NIR Clay 45 2"
adams.flow.control.Tee -name save
adams.flow.transformer.SetVariable -var-name name -var-value "NIR Clay 45 2"
adams.flow.sink.CallableSink -callable "save CSV"
adams.flow.control.Tee -name "105 0.2"
adams.flow.transformer.SpreadSheetFileReader -reader "adams.data.io.input.ExcelSpreadSheetReader -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet -sheets 4 -no-header true"
adams.flow.transformer.Convert -conversion "adams.data.conversion.SpreadSheetRowsToSpectra -row-wave-number @{wavenumber_header_row} -wave-number-regexp @{wavenumber_regex} -cols-amplitude @{columns_with_wavenumbers} -rows-amplitude @{rows_with_samples} -row-sampledata-names @{row_sample_data_names} -cols-sampledata @{columns_with_meta} -col-id @{id_column}"
adams.flow.control.Tee -skip true
adams.flow.sink.CallableSink -callable "NIR Clay 105 0.2"
adams.flow.control.Tee -name save
adams.flow.transformer.SetVariable -var-name name -var-value "NIR Clay 105 0.2"
adams.flow.sink.CallableSink -callable "save CSV"
adams.flow.control.Tee -name "105 0.71"
adams.flow.transformer.SpreadSheetFileReader -reader "adams.data.io.input.ExcelSpreadSheetReader -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet -sheets 5 -no-header true"
adams.flow.transformer.Convert -conversion "adams.data.conversion.SpreadSheetRowsToSpectra -row-wave-number @{wavenumber_header_row} -wave-number-regexp @{wavenumber_regex} -cols-amplitude @{columns_with_wavenumbers} -rows-amplitude @{rows_with_samples} -row-sampledata-names @{row_sample_data_names} -cols-sampledata @{columns_with_meta} -col-id @{id_column}"
adams.flow.control.Tee -skip true
adams.flow.sink.CallableSink -callable "NIR Clay 105 0.71"
adams.flow.control.Tee -name save
adams.flow.transformer.SetVariable -var-name name -var-value "NIR Clay 105 0.71"
adams.flow.sink.CallableSink -callable "save CSV"
adams.flow.control.Tee -name "105 2"
adams.flow.transformer.SpreadSheetFileReader -reader "adams.data.io.input.ExcelSpreadSheetReader -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet -sheets 6 -no-header true"
adams.flow.transformer.Convert -conversion "adams.data.conversion.SpreadSheetRowsToSpectra -row-wave-number @{wavenumber_header_row} -wave-number-regexp @{wavenumber_regex} -cols-amplitude @{columns_with_wavenumbers} -rows-amplitude @{rows_with_samples} -row-sampledata-names @{row_sample_data_names} -cols-sampledata @{columns_with_meta} -col-id @{id_column}"
adams.flow.control.Tee -skip true
adams.flow.sink.CallableSink -callable "NIR Clay 105 2"
adams.flow.control.Tee -name save
adams.flow.transformer.SetVariable -var-name name -var-value "NIR Clay 105 2"
adams.flow.sink.CallableSink -callable "save CSV"
adams.flow.control.Tee -name "Load and process NIR Sand"
adams.flow.transformer.AppendName -suffix raw/Vis-NIR_Sandy.xlsx -use-forward-slashes true
adams.flow.control.Tee -name "45 0.25"
adams.flow.transformer.SpreadSheetFileReader -reader "adams.data.io.input.ExcelSpreadSheetReader -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet -no-header true"
adams.flow.transformer.Convert -name "Convert (2)" -conversion "adams.data.conversion.SpreadSheetRowsToSpectra -row-wave-number @{wavenumber_header_row} -wave-number-regexp @{wavenumber_regex} -cols-amplitude @{columns_with_wavenumbers} -rows-amplitude @{rows_with_samples} -row-sampledata-names @{row_sample_data_names} -cols-sampledata @{columns_with_meta} -col-id @{id_column}"
adams.flow.control.Tee -skip true
adams.flow.sink.CallableSink -callable "NIR Sand 45 0.25"
adams.flow.control.Tee -name save
adams.flow.transformer.SetVariable -var-name name -var-value "NIR Sand 45 0.25"
adams.flow.sink.CallableSink -callable "save CSV"
adams.flow.control.Tee -name "45 0.71"
adams.flow.transformer.SpreadSheetFileReader -reader "adams.data.io.input.ExcelSpreadSheetReader -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet -sheets 2 -no-header true"
adams.flow.transformer.Convert -conversion "adams.data.conversion.SpreadSheetRowsToSpectra -row-wave-number @{wavenumber_header_row} -wave-number-regexp @{wavenumber_regex} -cols-amplitude @{columns_with_wavenumbers} -rows-amplitude @{rows_with_samples} -row-sampledata-names @{row_sample_data_names} -cols-sampledata @{columns_with_meta} -col-id @{id_column}"
adams.flow.control.Tee -skip true
adams.flow.sink.CallableSink -callable "NIR Sand 45 0.71"
adams.flow.control.Tee -name save
adams.flow.transformer.SetVariable -var-name name -var-value "NIR Sand 45 0.71"
adams.flow.sink.CallableSink -callable "save CSV"
adams.flow.control.Tee -name "45 2"
adams.flow.transformer.SpreadSheetFileReader -reader "adams.data.io.input.ExcelSpreadSheetReader -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet -sheets 3 -no-header true"
adams.flow.transformer.Convert -conversion "adams.data.conversion.SpreadSheetRowsToSpectra -row-wave-number @{wavenumber_header_row} -wave-number-regexp @{wavenumber_regex} -cols-amplitude @{columns_with_wavenumbers} -rows-amplitude @{rows_with_samples} -row-sampledata-names @{row_sample_data_names} -cols-sampledata @{columns_with_meta} -col-id @{id_column}"
adams.flow.control.Tee -skip true
adams.flow.sink.CallableSink -callable "NIR Sand 45 2"
adams.flow.control.Tee -name save
adams.flow.transformer.SetVariable -var-name name -var-value "NIR Sand 45 2"
adams.flow.sink.CallableSink -callable "save CSV"
adams.flow.control.Tee -name "105 0.2"
adams.flow.transformer.SpreadSheetFileReader -reader "adams.data.io.input.ExcelSpreadSheetReader -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet -sheets 4 -no-header true"
adams.flow.transformer.Convert -conversion "adams.data.conversion.SpreadSheetRowsToSpectra -row-wave-number @{wavenumber_header_row} -wave-number-regexp @{wavenumber_regex} -cols-amplitude @{columns_with_wavenumbers} -rows-amplitude @{rows_with_samples} -row-sampledata-names @{row_sample_data_names} -cols-sampledata @{columns_with_meta} -col-id @{id_column}"
adams.flow.control.Tee -skip true
adams.flow.sink.CallableSink -callable "NIR Sand 105 0.2"
adams.flow.control.Tee -name save
adams.flow.transformer.SetVariable -var-name name -var-value "NIR Sand 105 0.2"
adams.flow.sink.CallableSink -callable "save CSV"
adams.flow.control.Tee -name "105 0.71"
adams.flow.transformer.SpreadSheetFileReader -reader "adams.data.io.input.ExcelSpreadSheetReader -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet -sheets 5 -no-header true"
adams.flow.transformer.Convert -conversion "adams.data.conversion.SpreadSheetRowsToSpectra -row-wave-number @{wavenumber_header_row} -wave-number-regexp @{wavenumber_regex} -cols-amplitude @{columns_with_wavenumbers} -rows-amplitude @{rows_with_samples} -row-sampledata-names @{row_sample_data_names} -cols-sampledata @{columns_with_meta} -col-id @{id_column}"
adams.flow.control.Tee -skip true
adams.flow.sink.CallableSink -callable "NIR Sand 105 0.71"
adams.flow.control.Tee -name save
adams.flow.transformer.SetVariable -var-name name -var-value "NIR Sand 105 0.71"
adams.flow.sink.CallableSink -callable "save CSV"
adams.flow.control.Tee -name "105 2"
adams.flow.transformer.SpreadSheetFileReader -reader "adams.data.io.input.ExcelSpreadSheetReader -data-row-type adams.data.spreadsheet.DenseDataRow -spreadsheet-type adams.data.spreadsheet.DefaultSpreadSheet -sheets 6 -no-header true"
adams.flow.transformer.Convert -conversion "adams.data.conversion.SpreadSheetRowsToSpectra -row-wave-number @{wavenumber_header_row} -wave-number-regexp @{wavenumber_regex} -cols-amplitude @{columns_with_wavenumbers} -rows-amplitude @{rows_with_samples} -row-sampledata-names @{row_sample_data_names} -cols-sampledata @{columns_with_meta} -col-id @{id_column}"
adams.flow.control.Tee -skip true
adams.flow.sink.CallableSink -callable "NIR Sand 105 2"
adams.flow.control.Tee -name save
adams.flow.transformer.SetVariable -var-name name -var-value "NIR Sand 105 2"
adams.flow.sink.CallableSink -callable "save CSV"