@hestia-earth/glossary 0.2.1 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +49 -0
- package/index.js +10 -1
- package/package.json +4 -3
- package/resources/arrayTreatment.json +206 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,55 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.2.4](https://gitlab.com/hestia-earth/hestia-glossary/compare/v0.2.3...v0.2.4) (2022-04-07)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **package:** fix `getArrayTreatment` file not found ([e3ecf68](https://gitlab.com/hestia-earth/hestia-glossary/commit/e3ecf68b80de6fbe07675ed901271114e9140205))
|
|
11
|
+
|
|
12
|
+
### [0.2.3](https://gitlab.com/hestia-earth/hestia-glossary/compare/v0.2.2...v0.2.3) (2022-04-07)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **crop:** add `macadamia trees` ([6147221](https://gitlab.com/hestia-earth/hestia-glossary/commit/6147221cfbd54841c4593415adb31538053ce945))
|
|
18
|
+
* **crop:** add `macadamia, kernel` and `macadamia, shell` ([b98f0f0](https://gitlab.com/hestia-earth/hestia-glossary/commit/b98f0f0aede1771df758c77baf4fed765ab12a40))
|
|
19
|
+
* **crop:** add `pistachio trees` ([d068dea](https://gitlab.com/hestia-earth/hestia-glossary/commit/d068dea5f034e3752bdf43b988c019ee2095a636))
|
|
20
|
+
* **crop:** add `pistachio, kernel` and `pistachio, shell` ([ef83a3a](https://gitlab.com/hestia-earth/hestia-glossary/commit/ef83a3a99cd5352aecb8f02f35f24f490e1ea2b7))
|
|
21
|
+
* **crop:** add terms for `allspice` and `angelica` ([81423fc](https://gitlab.com/hestia-earth/hestia-glossary/commit/81423fc35834ea541ce159a990d7c188afe3858c)), closes [#258](https://gitlab.com/hestia-earth/hestia-glossary/issues/258)
|
|
22
|
+
* **crop:** rename `macadamia` to `macadamia, in shell` ([7a8c2ae](https://gitlab.com/hestia-earth/hestia-glossary/commit/7a8c2aec34bc26273e2d97d6ba94035806fabfd2))
|
|
23
|
+
* **crop:** rename `pistachio nut` to `pistachio, in shell` ([1000a17](https://gitlab.com/hestia-earth/hestia-glossary/commit/1000a1700d08b9d771b4afb2b3684eaa2c92d0f7))
|
|
24
|
+
* **measurement:** add `cation exchange capacity (per m3 soil)` ([3b3274d](https://gitlab.com/hestia-earth/hestia-glossary/commit/3b3274d0b6fdf4ca3995589bb67ca7408cd9edad))
|
|
25
|
+
* **measurement:** add `siteTypesAllowed` lookup ([eae1ecc](https://gitlab.com/hestia-earth/hestia-glossary/commit/eae1eccc1573a3f4b96a120751d1017d12567175)), closes [#334](https://gitlab.com/hestia-earth/hestia-glossary/issues/334)
|
|
26
|
+
* **measurement:** added missing mineral content ([4c00956](https://gitlab.com/hestia-earth/hestia-glossary/commit/4c00956a6cfb81445d094b806dfbe549351aea79)), closes [#333](https://gitlab.com/hestia-earth/hestia-glossary/issues/333)
|
|
27
|
+
* **package:** export `getArrayTreatment` function ([2a6fb05](https://gitlab.com/hestia-earth/hestia-glossary/commit/2a6fb053e1cdf076f1ffd0bfa1aba5b2bc7e349e))
|
|
28
|
+
* **property:** add `boron content` and `organic matter content` ([647d4c0](https://gitlab.com/hestia-earth/hestia-glossary/commit/647d4c07fcb331f96cd005beee32d2937b39427b))
|
|
29
|
+
* **property:** add `electrical conductivity` ([01a1cfe](https://gitlab.com/hestia-earth/hestia-glossary/commit/01a1cfe78af8c8f619da1a58269a28b160d39223))
|
|
30
|
+
* **soilAmendment:** add `liquid humus` and `solid humus` ([25ed774](https://gitlab.com/hestia-earth/hestia-glossary/commit/25ed774d70f9a5c5c31c65d3bae10904ba5e2cbc))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* **crop:** errors in crop residue nitrogen content for `Bay leaf` ([df93e69](https://gitlab.com/hestia-earth/hestia-glossary/commit/df93e696a852a929ac5dce023619d4b6887aee27)), closes [#299](https://gitlab.com/hestia-earth/hestia-glossary/issues/299)
|
|
36
|
+
|
|
37
|
+
### [0.2.2](https://gitlab.com/hestia-earth/hestia-glossary/compare/v0.2.1...v0.2.2) (2022-03-28)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Features
|
|
41
|
+
|
|
42
|
+
* **antibiotic:** add new antibiotics ([b6b892d](https://gitlab.com/hestia-earth/hestia-glossary/commit/b6b892d96a658ccf6e48b2fd3a74cc1eb56d808f)), closes [#129](https://gitlab.com/hestia-earth/hestia-glossary/issues/129)
|
|
43
|
+
* **crop:** add `subClassOf` for hazelnuts ([4e631ac](https://gitlab.com/hestia-earth/hestia-glossary/commit/4e631acf847afd64dcfd87f7a1bd5db8f178e508))
|
|
44
|
+
* **emission:** add `siteTypesAllowed` lookup ([88cf8d5](https://gitlab.com/hestia-earth/hestia-glossary/commit/88cf8d565085e99ff83ef3a01cbefd79f56fe7fa)), closes [#330](https://gitlab.com/hestia-earth/hestia-glossary/issues/330)
|
|
45
|
+
* **region:** index `area` data ([0c492ce](https://gitlab.com/hestia-earth/hestia-glossary/commit/0c492ce4cf8088cecad48619e246ccf11711e773))
|
|
46
|
+
* **resourceUse:** add `siteTypesAllowed` lookup ([f5b2074](https://gitlab.com/hestia-earth/hestia-glossary/commit/f5b20743d6848e35412281c955f96f7f27976ee5)), closes [#330](https://gitlab.com/hestia-earth/hestia-glossary/issues/330)
|
|
47
|
+
* add crop lookup template file ([fcfb9ee](https://gitlab.com/hestia-earth/hestia-glossary/commit/fcfb9ee042bca80f46bc26c707318bc76fa27aef))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Bug Fixes
|
|
51
|
+
|
|
52
|
+
* **crop:** error in faostat lookups ([cd17a23](https://gitlab.com/hestia-earth/hestia-glossary/commit/cd17a237d4ac0dcdedf74f55ee3749739a2ceac1))
|
|
53
|
+
|
|
5
54
|
### [0.2.1](https://gitlab.com/hestia-earth/hestia-glossary/compare/v0.2.0...v0.2.1) (2022-03-15)
|
|
6
55
|
|
|
7
56
|
|
package/index.js
CHANGED
|
@@ -33,9 +33,18 @@ const iso31662ToId = (code = '') => loadResourceKey('iso3166-2-to-id.json', code
|
|
|
33
33
|
*/
|
|
34
34
|
const idToIso31662 = (id = '') => loadResourceKey('id-to-iso3166-2.json', id.toUpperCase());
|
|
35
35
|
|
|
36
|
+
/**
|
|
37
|
+
* Determines how an array of values should be handled (if summed up, or averaged, etc.).
|
|
38
|
+
*
|
|
39
|
+
* @param {string} id The Hestia term [id](https://hestia.earth/schema/Term#id).
|
|
40
|
+
* @returns {string} Possible values are: `mean`, `mode` and `sum`.
|
|
41
|
+
*/
|
|
42
|
+
const getArrayTreatment = (id) => loadResource('arrayTreatment.json')[id] || 'sum';
|
|
43
|
+
|
|
36
44
|
module.exports = {
|
|
37
45
|
loadResourceKey,
|
|
38
46
|
iso31662ToName,
|
|
39
47
|
iso31662ToId,
|
|
40
|
-
idToIso31662
|
|
48
|
+
idToIso31662,
|
|
49
|
+
getArrayTreatment
|
|
41
50
|
};
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hestia-earth/glossary",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Hestia Earth Glossary library",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
-
"generate:all": "npm run generate:mappings && npm run generate:impact-assessment
|
|
8
|
+
"generate:all": "npm run generate:mappings && npm run generate:impact-assessment && npm run generate:arrayTreatment",
|
|
9
9
|
"generate:mappings": "node gadm/mappings.js",
|
|
10
|
-
"generate:impact-assessment
|
|
10
|
+
"generate:impact-assessment": "node scripts/generate-impact-assessment-data.js",
|
|
11
|
+
"generate:arrayTreatment": "node scripts/generate-arrayTreatment-data.js",
|
|
11
12
|
"release": "standard-version -a",
|
|
12
13
|
"postrelease": "git push origin master --follow-tags"
|
|
13
14
|
},
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
{
|
|
2
|
+
"altitude": "arrayNotAllowed",
|
|
3
|
+
"slopeLength": "arrayNotAllowed",
|
|
4
|
+
"slope": "arrayNotAllowed",
|
|
5
|
+
"nutrientLossToAquaticEnvironment": "mean",
|
|
6
|
+
"erodibility": "mean",
|
|
7
|
+
"ecoClimateZone": "arrayNotAllowed",
|
|
8
|
+
"heavyWinterPrecipitation": "mode",
|
|
9
|
+
"precipitationLongTermAnnualMean": "mean",
|
|
10
|
+
"precipitationAnnual": "mean",
|
|
11
|
+
"precipitationPeriod": "mean",
|
|
12
|
+
"precipitationMonthly": "mean",
|
|
13
|
+
"precipitationDaily": "mean",
|
|
14
|
+
"precipitationHourly": "mean",
|
|
15
|
+
"rainfallLongTermAnnualMean": "mean",
|
|
16
|
+
"rainfallAnnual": "mean",
|
|
17
|
+
"rainfallPeriod": "mean",
|
|
18
|
+
"rainfallMonthly": "mean",
|
|
19
|
+
"rainfallDaily": "mean",
|
|
20
|
+
"rainfallHourly": "mean",
|
|
21
|
+
"drainageWaterLongTermAnnualMean": "mean",
|
|
22
|
+
"drainageWaterAnnual": "mean",
|
|
23
|
+
"drainageWaterPeriod": "mean",
|
|
24
|
+
"drainageWaterMonthly": "mean",
|
|
25
|
+
"drainageWaterDaily": "mean",
|
|
26
|
+
"drainageWaterHourly": "mean",
|
|
27
|
+
"arealActualEvapotranspirationLongTermAnnualMean": "mean",
|
|
28
|
+
"arealActualEvapotranspirationAnnual": "mean",
|
|
29
|
+
"arealActualEvapotranspirationPeriod": "mean",
|
|
30
|
+
"arealActualEvapotranspirationMonthly": "mean",
|
|
31
|
+
"arealActualEvapotranspirationDaily": "mean",
|
|
32
|
+
"arealActualEvapotranspirationHourly": "mean",
|
|
33
|
+
"potentialEvapotranspirationLongTermAnnualMean": "mean",
|
|
34
|
+
"potentialEvapotranspirationAnnual": "mean",
|
|
35
|
+
"potentialEvapotranspirationPeriod": "mean",
|
|
36
|
+
"potentialEvapotranspirationMonthly": "mean",
|
|
37
|
+
"potentialEvapotranspirationDaily": "mean",
|
|
38
|
+
"potentialEvapotranspirationHourly": "mean",
|
|
39
|
+
"temperatureLongTermAnnualMean": "mean",
|
|
40
|
+
"temperatureAnnual": "mean",
|
|
41
|
+
"temperaturePeriod": "mean",
|
|
42
|
+
"temperatureMonthly": "mean",
|
|
43
|
+
"temperatureDaily": "mean",
|
|
44
|
+
"temperatureHourly": "mean",
|
|
45
|
+
"temperaturePointMeasurement": "mean",
|
|
46
|
+
"temperatureGrowingSeasonLongTermAnnualMean": "mean",
|
|
47
|
+
"temperatureGrowingSeason": "mean",
|
|
48
|
+
"wetBulbTemperatureLongTermAnnualMean": "mean",
|
|
49
|
+
"wetBulbTemperatureAnnual": "mean",
|
|
50
|
+
"wetBulbTemperaturePeriod": "mean",
|
|
51
|
+
"wetBulbTemperatureMonthly": "mean",
|
|
52
|
+
"wetBulbTemperatureDaily": "mean",
|
|
53
|
+
"wetBulbTemperatureHourly": "mean",
|
|
54
|
+
"wetBulbTemperaturePointMeasurement": "mean",
|
|
55
|
+
"soilTemperatureLongTermAnnualMean": "mean",
|
|
56
|
+
"soilTemperatureAnnual": "mean",
|
|
57
|
+
"soilTemperaturePeriod": "mean",
|
|
58
|
+
"soilTemperatureMonthly": "mean",
|
|
59
|
+
"soilTemperatureDaily": "mean",
|
|
60
|
+
"soilTemperatureHourly": "mean",
|
|
61
|
+
"soilTemperaturePointMeasurement": "mean",
|
|
62
|
+
"totalSolarRadiationLongTermAnnualMean": "mean",
|
|
63
|
+
"totalSolarRadiationAnnual": "mean",
|
|
64
|
+
"totalSolarRadiationPeriod": "mean",
|
|
65
|
+
"totalSolarRadiationMonthly": "mean",
|
|
66
|
+
"totalSolarRadiationDaily": "mean",
|
|
67
|
+
"totalSolarRadiationHourly": "mean",
|
|
68
|
+
"directSolarRadiationLongTermAnnualMean": "mean",
|
|
69
|
+
"directSolarRadiationAnnual": "mean",
|
|
70
|
+
"directSolarRadiationPeriod": "mean",
|
|
71
|
+
"directSolarRadiationMonthly": "mean",
|
|
72
|
+
"directSolarRadiationDaily": "mean",
|
|
73
|
+
"directSolarRadiationHourly": "mean",
|
|
74
|
+
"diffuseSolarRadiationLongTermAnnualMean": "mean",
|
|
75
|
+
"diffuseSolarRadiationAnnual": "mean",
|
|
76
|
+
"diffuseSolarRadiationPeriod": "mean",
|
|
77
|
+
"diffuseSolarRadiationMonthly": "mean",
|
|
78
|
+
"diffuseSolarRadiationDaily": "mean",
|
|
79
|
+
"diffuseSolarRadiationHourly": "mean",
|
|
80
|
+
"humidityLongTermAnnualMean": "mean",
|
|
81
|
+
"humidityAnnual": "mean",
|
|
82
|
+
"humidityPeriod": "mean",
|
|
83
|
+
"humidityMonthly": "mean",
|
|
84
|
+
"humidityDaily": "mean",
|
|
85
|
+
"humidityHourly": "mean",
|
|
86
|
+
"humidityPointMeasurement": "mean",
|
|
87
|
+
"dewPointLongTermAnnualMean": "mean",
|
|
88
|
+
"dewPointAnnual": "mean",
|
|
89
|
+
"dewPointPeriod": "mean",
|
|
90
|
+
"dewPointMonthly": "mean",
|
|
91
|
+
"dewPointDaily": "mean",
|
|
92
|
+
"dewPointHourly": "mean",
|
|
93
|
+
"dewPointPointMeasurement": "mean",
|
|
94
|
+
"airPressureLongTermAnnualMean": "mean",
|
|
95
|
+
"airPressureAnnual": "mean",
|
|
96
|
+
"airPressurePeriod": "mean",
|
|
97
|
+
"airPressureMonthly": "mean",
|
|
98
|
+
"airPressureDaily": "mean",
|
|
99
|
+
"airPressureHourly": "mean",
|
|
100
|
+
"airPressurePointMeasurement": "mean",
|
|
101
|
+
"windSpeedLongTermAnnualMean": "mean",
|
|
102
|
+
"windSpeedAnnual": "mean",
|
|
103
|
+
"windSpeedPeriod": "mean",
|
|
104
|
+
"windSpeedMonthly": "mean",
|
|
105
|
+
"windSpeedDaily": "mean",
|
|
106
|
+
"windSpeedHourly": "mean",
|
|
107
|
+
"windSpeedPointMeasurement": "mean",
|
|
108
|
+
"windDirectionPointMeasurement": "mean",
|
|
109
|
+
"leafWetness": "mean",
|
|
110
|
+
"soilDepth": "mean",
|
|
111
|
+
"soilBulkDensity": "mean",
|
|
112
|
+
"soilMoistureByWeight": "mean",
|
|
113
|
+
"soilMoistureByVolume": "mean",
|
|
114
|
+
"waterFilledPoreSpace": "mean",
|
|
115
|
+
"soilPorosity": "mean",
|
|
116
|
+
"soilWaterPotential": "mean",
|
|
117
|
+
"soilFieldCapacity": "mean",
|
|
118
|
+
"permanentWiltingPoint": "mean",
|
|
119
|
+
"plantAvailableWater": "mean",
|
|
120
|
+
"drainageClass": "mode",
|
|
121
|
+
"waterTableLevelAboveHardPan": "mean",
|
|
122
|
+
"waterTableDepth": "mean",
|
|
123
|
+
"hardPanDepth": "mean",
|
|
124
|
+
"soilAggregateMeanWeightDiameter": "mean",
|
|
125
|
+
"sandContent": "mean",
|
|
126
|
+
"siltContent": "mean",
|
|
127
|
+
"clayContent": "mean",
|
|
128
|
+
"organicCarbonPerKgSoil": "mean",
|
|
129
|
+
"inorganicCarbonPerKgSoil": "mean",
|
|
130
|
+
"totalCarbonPerKgSoil": "mean",
|
|
131
|
+
"organicMatterPerKgSoil": "mean",
|
|
132
|
+
"totalNitrogenPerKgSoil": "mean",
|
|
133
|
+
"organicNitrogenPerKgSoil": "mean",
|
|
134
|
+
"inorganicNitrogenPerKgSoil": "mean",
|
|
135
|
+
"mineralNitrogenPerKgSoil": "mean",
|
|
136
|
+
"availableNitrogenPerKgSoil": "mean",
|
|
137
|
+
"phosphorusPerKgSoil": "mean",
|
|
138
|
+
"phosphatePerKgSoil": "mean",
|
|
139
|
+
"potassiumPerKgSoil": "mean",
|
|
140
|
+
"exchangeablePotassiumPerKgSoil": "mean",
|
|
141
|
+
"calciumPerKgSoil": "mean",
|
|
142
|
+
"calciumCarbonatePerKgSoil": "mean",
|
|
143
|
+
"magnesiumPerKgSoil": "mean",
|
|
144
|
+
"cadmiumPerKgSoil": "mean",
|
|
145
|
+
"sulphatePerKgSoil": "mean",
|
|
146
|
+
"ironPerKgSoil": "mean",
|
|
147
|
+
"manganesePerKgSoil": "mean",
|
|
148
|
+
"zincPerKgSoil": "mean",
|
|
149
|
+
"copperPerKgSoil": "mean",
|
|
150
|
+
"sulphurPerKgSoil": "mean",
|
|
151
|
+
"boronPerKgSoil": "mean",
|
|
152
|
+
"microbialBiomassCarbonPerKgSoil": "mean",
|
|
153
|
+
"microbialBiomassNitrogenPerKgSoil": "mean",
|
|
154
|
+
"microbialCellulaseActivityPerKgSoil": "mean",
|
|
155
|
+
"organicCarbonPerM3Soil": "mean",
|
|
156
|
+
"inorganicCarbonPerM3Soil": "mean",
|
|
157
|
+
"totalCarbonPerM3Soil": "mean",
|
|
158
|
+
"organicMatterPerM3Soil": "mean",
|
|
159
|
+
"totalNitrogenPerM3Soil": "mean",
|
|
160
|
+
"organicNitrogenPerM3Soil": "mean",
|
|
161
|
+
"inorganicNitrogenPerM3Soil": "mean",
|
|
162
|
+
"mineralNitrogenPerM3Soil": "mean",
|
|
163
|
+
"availableNitrogenPerM3Soil": "mean",
|
|
164
|
+
"phosphorusPerM3Soil": "mean",
|
|
165
|
+
"phosphatePerM3Soil": "mean",
|
|
166
|
+
"potassiumPerM3Soil": "mean",
|
|
167
|
+
"exchangeablePotassiumPerM3Soil": "mean",
|
|
168
|
+
"calciumPerM3Soil": "mean",
|
|
169
|
+
"calciumCarbonatePerM3Soil": "mean",
|
|
170
|
+
"magnesiumPerM3Soil": "mean",
|
|
171
|
+
"cadmiumPerM3Soil": "mean",
|
|
172
|
+
"sulphatePerM3Soil": "mean",
|
|
173
|
+
"ironPerM3Soil": "mean",
|
|
174
|
+
"manganesePerM3Soil": "mean",
|
|
175
|
+
"zincPerM3Soil": "mean",
|
|
176
|
+
"copperPerM3Soil": "mean",
|
|
177
|
+
"sulphurPerM3Soil": "mean",
|
|
178
|
+
"boronPerM3Soil": "mean",
|
|
179
|
+
"microbialBiomassCarbonPerM3Soil": "mean",
|
|
180
|
+
"microbialBiomassNitrogenPerM3Soil": "mean",
|
|
181
|
+
"microbialCellulaseActivityPerM3Soil": "mean",
|
|
182
|
+
"earthwormsPerM3Soil": "mean",
|
|
183
|
+
"adultEarthwormsPerM3Soil": "mean",
|
|
184
|
+
"juvenileEarthwormsPerM3Soil": "mean",
|
|
185
|
+
"epigeicEarthwormsPerM3Soil": "mean",
|
|
186
|
+
"adultEpigeicEarthwormsPerM3Soil": "mean",
|
|
187
|
+
"endogeicEarthwormsPerM3Soil": "mean",
|
|
188
|
+
"adultEndogeicEarthwormsPerM3Soil": "mean",
|
|
189
|
+
"anecicEarthwormsPerM3Soil": "mean",
|
|
190
|
+
"adultAnecicEarthwormsPerM3Soil": "mean",
|
|
191
|
+
"soilPh": "mean",
|
|
192
|
+
"waterPh": "mean",
|
|
193
|
+
"cationExchangeCapacityPerKgSoil": "mean",
|
|
194
|
+
"cationExchangeCapacityPerM3Soil": "mean",
|
|
195
|
+
"soilRedoxPotential": "mean",
|
|
196
|
+
"soilElectricalConductivity": "mean",
|
|
197
|
+
"rootBiomass": "mean",
|
|
198
|
+
"aboveGroundBiomass": "mean",
|
|
199
|
+
"leafLitterBiomass": "mean",
|
|
200
|
+
"waterDepth": "mean",
|
|
201
|
+
"slowFlowingWater": "arrayNotAllowed",
|
|
202
|
+
"fastFlowingWater": "arrayNotAllowed",
|
|
203
|
+
"netPrimaryProduction": "mean",
|
|
204
|
+
"fallowCorrection": "mean",
|
|
205
|
+
"croppingIntensity": "mean"
|
|
206
|
+
}
|