-
Notifications
You must be signed in to change notification settings - Fork 2
/
swagger.json
455 lines (455 loc) · 15 KB
/
swagger.json
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
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
{
"swagger": "2.0",
"info": {
"version": "2.0.0",
"title": "Fuel Reduction Cost Simulator Web Service",
"contact": {
"email": "[email protected]"
},
"license": {
"name": "MIT license",
"url": "https://github.com/ucdavis/fuel-reduction-cost-simulator/blob/master/LICENSE"
}
},
"paths": {
"/frcs": {
"post": {
"tags": ["FRCS"],
"summary": "Get FRCS Outputs",
"description": "| Limits | Ground-Based Mech WT | Ground-Based CTL | Ground-Based Manual WT | Ground-Based Manual Log | Cable Manual WT/Log | Cable Manual WT | Cable Manual Log | Cable CTL | Helicopter Manual Log | Helicopter CTL |\n|-|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|\n| TreeVol Maximum CT, ft3 | 80 | 80 | 80 | 80 | 80 | 80 | 80 | 80 | 80 | 80 |\n| TreeVol Maximum SLT, ft3 | 80 | 80 | 80 | 80 | 80 | 80 | 80 | 80 | 80 | 80 |\n| TreeVol Maximum LLT, ft3 | 250 | | 250 | 250 | 250 | 250 | 250 | | 250 | |\n| Maximum slope, % | 40 | 40 | 40 | 40 | 100 | 100 | 100 | 40 | 100 | 40 |\n| Maximum Yarding Dist, ft | | | | | 1300 | 1300 | 1300 | 1300 | 10000 | 10000 |\n",
"operationId": "getFrcsOutputs",
"produces": ["application/json"],
"parameters": [
{
"in": "body",
"name": "params",
"schema": {
"$ref": "#/definitions/FrcsInputs"
}
}
],
"responses": {
"200": {
"description": "successful operation",
"schema": {
"$ref": "#/definitions/FrcsOutputs"
}
},
"400": {
"description": "Invalid parameters supplied"
}
}
}
}
},
"definitions": {
"FrcsInputs": {
"type": "object",
"properties": {
"system": {
"type": "string",
"example": "Ground-Based Mech WT",
"description": "Selected from the ten harvesting systems including four ground-based systems, four cable-yarding systems, and two helicopter systems.",
"enum": [
"Ground-Based Mech WT",
"Ground-Based Manual WT",
"Ground-Based Manual Log",
"Ground-Based CTL",
"Cable Manual WT/Log",
"Cable Manual WT",
"Cable Manual Log",
"Cable CTL",
"Helicopter Manual Log",
"Helicopter CTL"
]
},
"isPartialCut": {
"type": "boolean",
"example": false,
"description": "Indicate the type of harvest: if true, partial-cut; otherwise clear-cut."
},
"deliverToLandingDistance": {
"type": "number",
"format": "float",
"example": 553.905970179181,
"description": "Distance that trees or logs are moved from the stump to be delivered to the landing. Subject to the selected harvesting system, trees or logs can be yarded, skidded, or forwarded to the landing."
},
"slope": {
"type": "number",
"format": "float",
"example": 12.4204116232628,
"description": "Average fall-line slope (%) of the harvest unit"
},
"elevation": {
"type": "number",
"format": "float",
"example": 1586.29244594638,
"description": "Elevation (ft) is required for helicopter systems."
},
"includeLoadingCosts": {
"type": "boolean",
"example": true,
"description": "Indicate whether to include the costs of fuel loading."
},
"includeMoveInCosts": {
"type": "boolean",
"example": false,
"description": "Indicate whether to include the costs of moving equipment to the harvest unit."
},
"area": {
"type": "number",
"format": "float",
"example": 32.025456,
"description": "Area (acres) of the harvest unit"
},
"moveInDistance": {
"type": "number",
"format": "float",
"example": 0,
"description": "One-way distance (miles) of moving harvesting equipment to the harvest unit"
},
"includeCostsCollectChipResidues": {
"type": "boolean",
"example": true,
"description": "Indicate whether to include the costs of collecting and chipping residues."
},
"woodDensityCT": {
"type": "number",
"format": "float",
"example": 81.08754477475162,
"description": "Ratio (%) of chip tree green weight to green volume (pounds per cubic foot)"
},
"woodDensitySLT": {
"type": "number",
"format": "float",
"example": 67.169795406641,
"description": "Ratio (%) of small log tree green weight to green volume (pounds per cubic foot)"
},
"woodDensityLLT": {
"type": "number",
"format": "float",
"example": 57.64241518721146,
"description": "Ratio (%) of large log tree green weight to green volume (pounds per cubic foot)"
},
"residueFractionCT": {
"type": "number",
"format": "float",
"example": 0.2695949034364167,
"description": "Ratio of the green weight of chip tree tops and limbs to the green weight of the tree bole"
},
"residueFractionSLT": {
"type": "number",
"format": "float",
"example": 0.2968554014193552,
"description": "Ratio of the green weight of small log tree tops and limbs to the green weight of the tree bole"
},
"residueFractionLLT": {
"type": "number",
"format": "float",
"example": 0.2635482997321487,
"description": "Ratio of the green weight of large log tree tops and limbs to the green weight of the tree bole"
},
"hardwoodFractionCT": {
"type": "number",
"format": "float",
"example": 0.2,
"description": "Ratio of the green volume of hardwood to the total green volume of chip trees in the harvest unit"
},
"hardwoodFractionSLT": {
"type": "number",
"format": "float",
"example": 0,
"description": "Ratio of the green volume of hardwood to the total green volume of small log trees in the harvest unit"
},
"hardwoodFractionLLT": {
"type": "number",
"format": "float",
"example": 0,
"description": "Ratio of the green volume of hardwood to the total green volume of large log trees in the harvest unit"
},
"treesPerAcreCT": {
"type": "number",
"format": "float",
"example": 77.4143957724794,
"description": "Number of chip trees/acre"
},
"volumeCT": {
"type": "number",
"format": "float",
"example": 2.05701405451453,
"description": "Volume of chip trees (cf/tree)"
},
"treesPerAcreSLT": {
"type": "number",
"format": "float",
"example": 19.6966665842466,
"description": "Number of small log trees/acre"
},
"volumeSLT": {
"type": "number",
"format": "float",
"example": 23.6023369439501,
"description": "Volume of small log trees (cf/tree)"
},
"treesPerAcreLLT": {
"type": "number",
"format": "float",
"example": 2.69861110290771,
"description": "Number of large log trees/acre"
},
"volumeLLT": {
"type": "number",
"format": "float",
"example": 137.702754194984,
"description": "Volume of large log trees (cf/tree)"
},
"dieselFuelPrice": {
"type": "number",
"format": "float",
"example": 2.24,
"description": "Current wholesale price ($/gallon) of low-sulfur diesel fuel in the California"
},
"moistureContent": {
"type": "number",
"format": "float",
"example": 50,
"description": "Moisture content of biomass on a wet basis (% w.b.)"
},
"isBiomassSalvage": {
"type": "boolean",
"example": false,
"description": "Indicate whether all trees will be utilized as feedstock for the conversion facility."
},
"wageFaller": {
"type": "number",
"format": "float",
"example": 35.13,
"description": "Hourly wage of faller/bucker ($/h)"
},
"wageOther": {
"type": "number",
"format": "float",
"example": 22.07,
"description": "Hourly wage of other workers ($/h)"
},
"laborBenefits": {
"type": "number",
"format": "float",
"example": 35,
"description": "Ratio (%) of benefits and overhead to wages"
},
"ppiCurrent": {
"type": "number",
"format": "float",
"example": 284.7,
"description": "Latest published value of the U.S. producer price index (PPI)"
},
"residueRecovFracWT": {
"type": "number",
"format": "float",
"example": 80,
"description": "Green weight fraction (%) of residues recovered in WT systems"
},
"residueRecovFracCTL": {
"type": "number",
"format": "float",
"example": 50,
"description": "Green weight fraction (%) of residues recovered in CTL systems"
}
},
"required": [
"system",
"isPartialCut",
"deliverToLandingDistance",
"slope",
"elevation",
"includeLoadingCosts",
"includeMoveInCosts",
"area",
"moveInDistance",
"includeCostsCollectChipResidues",
"woodDensityCT",
"woodDensitySLT",
"woodDensityLLT",
"residueFractionCT",
"residueFractionSLT",
"residueFractionLLT",
"hardwoodFractionCT",
"hardwoodFractionSLT",
"hardwoodFractionLLT",
"treesPerAcreCT",
"volumeCT",
"treesPerAcreSLT",
"volumeSLT",
"treesPerAcreLLT",
"volumeLLT",
"dieselFuelPrice",
"moistureContent",
"isBiomassSalvage",
"wageFaller",
"wageOther",
"laborBenefits",
"ppiCurrent",
"residueRecovFracWT",
"residueRecovFracCTL"
],
"xml": {
"name": "FrcsInputs"
}
},
"FrcsOutputs": {
"type": "object",
"properties": {
"totalBiomass": {
"$ref": "#/definitions/TotalBiomass"
},
"feedstock": {
"$ref": "#/definitions/Feedstock"
}
},
"xml": {
"name": "FrcsOutputs"
}
},
"TotalBiomass": {
"type": "object",
"properties": {
"yieldPerAcre": {
"type": "number",
"format": "float",
"example": 37.87998060825467,
"description": "Total yield (GT/acre)"
},
"costPerAcre": {
"type": "number",
"format": "float",
"example": 627.3814992388325,
"description": "Total harvest cost ($/acre)"
},
"costPerBoleCCF": {
"type": "number",
"format": "float",
"example": 63.00680825182345,
"description": "Total harvest cost ($/CCF)"
},
"costPerGT": {
"type": "number",
"format": "float",
"example": 16.562350063667026,
"description": "Total harvest cost ($/GT)"
},
"dieselPerAcre": {
"type": "number",
"format": "float",
"example": 12.648562901817883,
"description": "Total diesel consumption (gal/acre)"
},
"dieselPerBoleCCF": {
"type": "number",
"format": "float",
"example": 1.2702726783988008,
"description": "Total diesel consumption (gal/CCF)"
},
"gasolinePerAcre": {
"type": "number",
"format": "float",
"example": 0.2890999584945396,
"description": "Total gasoline consumption (gal/acre)"
},
"gasolinePerBoleCCF": {
"type": "number",
"format": "float",
"example": 0.02903379470477717,
"description": "Total gasoline consumption (gal/CCF)"
},
"jetFuelPerAcre": {
"type": "number",
"format": "float",
"example": 0,
"description": "Total jet fuel consumption (gal/acre)"
},
"jetFuelPerBoleCCF": {
"type": "number",
"format": "float",
"example": 0,
"description": "Total jet fuel consumption (gal/CCF)"
}
},
"xml": {
"name": "TotalBiomass"
}
},
"Feedstock": {
"type": "object",
"properties": {
"yieldPerAcre": {
"type": "number",
"format": "float",
"example": 11.556647235892862,
"description": "Feedstock yield (GT/acre)"
},
"costPerAcre": {
"type": "number",
"format": "float",
"example": 153.26147167945427,
"description": "Feedstock harvest cost ($/acre)"
},
"costPerBoleCCF": {
"type": "number",
"format": "float",
"example": 15.391777045091967,
"description": "Feedstock harvest cost ($/CCF)"
},
"costPerGT": {
"type": "number",
"format": "float",
"example": 4.04597545242819,
"description": "Feedstock harvest cost ($/GT)"
},
"dieselPerAcre": {
"type": "number",
"format": "float",
"example": 4.409948082301028,
"description": "Diesel consumption associated with feedstock harvest (gal/acre)"
},
"dieselPerBoleCCF": {
"type": "number",
"format": "float",
"example": 0.44288324338404267,
"description": "Diesel consumption associated with feedstock harvest (gal/CCF)"
},
"gasolinePerAcre": {
"type": "number",
"format": "float",
"example": 0,
"description": "Gasoline consumption associated with feedstock harvest (gal/acre)"
},
"gasolinePerBoleCCF": {
"type": "number",
"format": "float",
"example": 0,
"description": "Gasoline consumption associated with feedstock harvest (gal/CCF)"
},
"jetFuelPerAcre": {
"type": "number",
"format": "float",
"example": 0,
"description": "Jet fuel consumption associated with feedstock harvest (gal/acre)"
},
"jetFuelPerBoleCCF": {
"type": "number",
"format": "float",
"example": 0,
"description": "Jet fuel consumption associated with feedstock harvest (gal/CCF)"
}
},
"xml": {
"name": "Feedstock"
}
}
},
"externalDocs": {
"description": "Source code",
"url": "https://github.com/ucdavis/fuel-reduction-cost-simulator"
}
}