hestia-earth-models 0.57.2__py3-none-any.whl → 0.59.0__py3-none-any.whl
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.
Potentially problematic release.
This version of hestia-earth-models might be problematic. Click here for more details.
- hestia_earth/models/cycle/aboveGroundCropResidueTotal.py +17 -12
- hestia_earth/models/cycle/excretaKgMass.py +4 -5
- hestia_earth/models/cycle/excretaKgN.py +4 -5
- hestia_earth/models/cycle/excretaKgVs.py +4 -5
- hestia_earth/models/cycle/inorganicFertiliser.py +2 -2
- hestia_earth/models/cycle/{irrigated.py → irrigatedTypeUnspecified.py} +4 -4
- hestia_earth/models/cycle/liveAnimal.py +9 -11
- hestia_earth/models/cycle/milkYield.py +154 -0
- hestia_earth/models/cycle/residueIncorporated.py +1 -1
- hestia_earth/models/cycle/utils.py +6 -0
- hestia_earth/models/emepEea2019/nh3ToAirInorganicFertiliser.py +3 -3
- hestia_earth/models/faostat2018/seed.py +2 -3
- hestia_earth/models/geospatialDatabase/clayContent.py +17 -4
- hestia_earth/models/geospatialDatabase/sandContent.py +17 -4
- hestia_earth/models/geospatialDatabase/siltContent.py +2 -2
- hestia_earth/models/impact_assessment/irrigated.py +0 -3
- hestia_earth/models/ipcc2006/co2ToAirOrganicSoilCultivation.py +2 -2
- hestia_earth/models/ipcc2006/n2OToAirCropResidueDecompositionIndirect.py +2 -2
- hestia_earth/models/ipcc2006/n2OToAirExcretaDirect.py +1 -1
- hestia_earth/models/ipcc2006/n2OToAirExcretaIndirect.py +8 -4
- hestia_earth/models/ipcc2006/n2OToAirInorganicFertiliserDirect.py +4 -1
- hestia_earth/models/ipcc2006/n2OToAirInorganicFertiliserIndirect.py +1 -1
- hestia_earth/models/ipcc2006/n2OToAirOrganicFertiliserDirect.py +1 -1
- hestia_earth/models/ipcc2006/n2OToAirOrganicFertiliserIndirect.py +1 -1
- hestia_earth/models/ipcc2006/utils.py +11 -8
- hestia_earth/models/ipcc2019/ch4ToAirEntericFermentation.py +4 -4
- hestia_earth/models/ipcc2019/ch4ToAirFloodedRice.py +16 -7
- hestia_earth/models/ipcc2019/co2ToAirSoilCarbonStockChangeManagementChange.py +759 -0
- hestia_earth/models/ipcc2019/croppingDuration.py +12 -6
- hestia_earth/models/ipcc2019/n2OToAirCropResidueDecompositionDirect.py +5 -52
- hestia_earth/models/ipcc2019/n2OToAirInorganicFertiliserDirect.py +104 -0
- hestia_earth/models/ipcc2019/n2OToAirInorganicFertiliserIndirect.py +1 -1
- hestia_earth/models/ipcc2019/n2OToAirOrganicFertiliserDirect.py +105 -0
- hestia_earth/models/ipcc2019/n2OToAirOrganicFertiliserIndirect.py +1 -1
- hestia_earth/models/ipcc2019/no3ToGroundwaterCropResidueDecomposition.py +1 -1
- hestia_earth/models/ipcc2019/no3ToGroundwaterExcreta.py +1 -1
- hestia_earth/models/ipcc2019/no3ToGroundwaterInorganicFertiliser.py +1 -1
- hestia_earth/models/ipcc2019/no3ToGroundwaterOrganicFertiliser.py +1 -1
- hestia_earth/models/ipcc2019/organicCarbonPerHa.py +1088 -1268
- hestia_earth/models/ipcc2019/pastureGrass.py +4 -4
- hestia_earth/models/ipcc2019/utils.py +102 -1
- hestia_earth/models/koble2014/aboveGroundCropResidue.py +15 -17
- hestia_earth/models/koble2014/cropResidueManagement.py +2 -2
- hestia_earth/models/koble2014/utils.py +19 -3
- hestia_earth/models/linkedImpactAssessment/__init__.py +4 -2
- hestia_earth/models/log.py +15 -3
- hestia_earth/models/mocking/search-results.json +184 -118
- hestia_earth/models/pooreNemecek2018/excretaKgN.py +6 -7
- hestia_earth/models/pooreNemecek2018/excretaKgVs.py +7 -6
- hestia_earth/models/pooreNemecek2018/no3ToGroundwaterCropResidueDecomposition.py +3 -2
- hestia_earth/models/pooreNemecek2018/no3ToGroundwaterExcreta.py +3 -2
- hestia_earth/models/pooreNemecek2018/no3ToGroundwaterInorganicFertiliser.py +3 -2
- hestia_earth/models/pooreNemecek2018/saplings.py +0 -1
- hestia_earth/models/site/management.py +168 -0
- hestia_earth/models/site/organicCarbonPerHa.py +251 -89
- hestia_earth/models/stehfestBouwman2006/n2OToAirCropResidueDecompositionDirect.py +3 -2
- hestia_earth/models/stehfestBouwman2006/n2OToAirExcretaDirect.py +3 -2
- hestia_earth/models/stehfestBouwman2006/n2OToAirInorganicFertiliserDirect.py +3 -2
- hestia_earth/models/stehfestBouwman2006/n2OToAirOrganicFertiliserDirect.py +3 -2
- hestia_earth/models/stehfestBouwman2006/noxToAirCropResidueDecomposition.py +3 -2
- hestia_earth/models/stehfestBouwman2006/noxToAirExcreta.py +3 -2
- hestia_earth/models/stehfestBouwman2006/noxToAirInorganicFertiliser.py +3 -2
- hestia_earth/models/stehfestBouwman2006/noxToAirOrganicFertiliser.py +3 -2
- hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirCropResidueDecomposition.py +3 -2
- hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirExcreta.py +3 -2
- hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirInorganicFertiliser.py +3 -2
- hestia_earth/models/stehfestBouwman2006GisImplementation/noxToAirOrganicFertiliser.py +3 -2
- hestia_earth/models/utils/aggregated.py +1 -0
- hestia_earth/models/utils/blank_node.py +394 -72
- hestia_earth/models/utils/cropResidue.py +13 -0
- hestia_earth/models/utils/cycle.py +18 -9
- hestia_earth/models/utils/measurement.py +1 -1
- hestia_earth/models/utils/property.py +4 -4
- hestia_earth/models/utils/term.py +48 -3
- hestia_earth/models/version.py +1 -1
- {hestia_earth_models-0.57.2.dist-info → hestia_earth_models-0.59.0.dist-info}/METADATA +5 -9
- {hestia_earth_models-0.57.2.dist-info → hestia_earth_models-0.59.0.dist-info}/RECORD +109 -97
- {hestia_earth_models-0.57.2.dist-info → hestia_earth_models-0.59.0.dist-info}/WHEEL +1 -1
- tests/models/cycle/animal/input/test_hestiaAggregatedData.py +2 -14
- tests/models/cycle/input/test_hestiaAggregatedData.py +4 -16
- tests/models/cycle/test_coldCarcassWeightPerHead.py +1 -1
- tests/models/cycle/test_coldDressedCarcassWeightPerHead.py +1 -1
- tests/models/cycle/{test_irrigated.py → test_irrigatedTypeUnspecified.py} +1 -1
- tests/models/cycle/test_milkYield.py +58 -0
- tests/models/cycle/test_readyToCookWeightPerHead.py +1 -1
- tests/models/emepEea2019/test_nh3ToAirInorganicFertiliser.py +1 -1
- tests/models/geospatialDatabase/test_clayContent.py +9 -3
- tests/models/geospatialDatabase/test_sandContent.py +9 -3
- tests/models/ipcc2006/test_n2OToAirExcretaDirect.py +7 -2
- tests/models/ipcc2006/test_n2OToAirExcretaIndirect.py +1 -1
- tests/models/ipcc2006/test_n2OToAirInorganicFertiliserDirect.py +7 -2
- tests/models/ipcc2006/test_n2OToAirInorganicFertiliserIndirect.py +7 -2
- tests/models/ipcc2006/test_n2OToAirOrganicFertiliserDirect.py +7 -2
- tests/models/ipcc2006/test_n2OToAirOrganicFertiliserIndirect.py +7 -2
- tests/models/ipcc2019/test_ch4ToAirEntericFermentation.py +1 -1
- tests/models/ipcc2019/test_co2ToAirSoilCarbonStockChangeManagementChange.py +228 -0
- tests/models/ipcc2019/test_n2OToAirInorganicFertiliserDirect.py +74 -0
- tests/models/ipcc2019/test_n2OToAirOrganicFertiliserDirect.py +74 -0
- tests/models/ipcc2019/test_organicCarbonPerHa.py +303 -1044
- tests/models/koble2014/test_residueBurnt.py +1 -2
- tests/models/koble2014/test_residueLeftOnField.py +1 -2
- tests/models/koble2014/test_residueRemoved.py +1 -2
- tests/models/koble2014/test_utils.py +52 -0
- tests/models/site/test_management.py +117 -0
- tests/models/site/test_organicCarbonPerHa.py +51 -5
- tests/models/utils/test_blank_node.py +230 -34
- tests/models/utils/test_term.py +17 -3
- {hestia_earth_models-0.57.2.dist-info → hestia_earth_models-0.59.0.dist-info}/LICENSE +0 -0
- {hestia_earth_models-0.57.2.dist-info → hestia_earth_models-0.59.0.dist-info}/top_level.txt +0 -0
|
@@ -839,11 +839,11 @@
|
|
|
839
839
|
},
|
|
840
840
|
{
|
|
841
841
|
"@type": "Term",
|
|
842
|
-
"@id": "
|
|
842
|
+
"@id": "shortFallowCrop"
|
|
843
843
|
},
|
|
844
844
|
{
|
|
845
845
|
"@type": "Term",
|
|
846
|
-
"@id": "
|
|
846
|
+
"@id": "longFallowCrop"
|
|
847
847
|
}
|
|
848
848
|
]
|
|
849
849
|
},
|
|
@@ -914,23 +914,19 @@
|
|
|
914
914
|
"results": [
|
|
915
915
|
{
|
|
916
916
|
"@type": "Term",
|
|
917
|
-
"@id": "
|
|
918
|
-
},
|
|
919
|
-
{
|
|
920
|
-
"@type": "Term",
|
|
921
|
-
"@id": "residueIncorporated"
|
|
917
|
+
"@id": "residueRemoved"
|
|
922
918
|
},
|
|
923
919
|
{
|
|
924
920
|
"@type": "Term",
|
|
925
|
-
"@id": "
|
|
921
|
+
"@id": "residueIncorporatedMoreThan30DaysBeforeCultivation"
|
|
926
922
|
},
|
|
927
923
|
{
|
|
928
924
|
"@type": "Term",
|
|
929
|
-
"@id": "
|
|
925
|
+
"@id": "residueIncorporated"
|
|
930
926
|
},
|
|
931
927
|
{
|
|
932
928
|
"@type": "Term",
|
|
933
|
-
"@id": "
|
|
929
|
+
"@id": "residueIncorporatedLessThan30DaysBeforeCultivation"
|
|
934
930
|
},
|
|
935
931
|
{
|
|
936
932
|
"@type": "Term",
|
|
@@ -958,43 +954,43 @@
|
|
|
958
954
|
},
|
|
959
955
|
{
|
|
960
956
|
"@type": "Term",
|
|
961
|
-
"@id": "
|
|
957
|
+
"@id": "discardedCropIncorporated"
|
|
962
958
|
},
|
|
963
959
|
{
|
|
964
960
|
"@type": "Term",
|
|
965
|
-
"@id": "
|
|
961
|
+
"@id": "aboveGroundCropResidueRemoved"
|
|
966
962
|
},
|
|
967
963
|
{
|
|
968
964
|
"@type": "Term",
|
|
969
|
-
"@id": "
|
|
965
|
+
"@id": "discardedCropLeftOnField"
|
|
970
966
|
},
|
|
971
967
|
{
|
|
972
968
|
"@type": "Term",
|
|
973
|
-
"@id": "
|
|
969
|
+
"@id": "discardedCropTotal"
|
|
974
970
|
},
|
|
975
971
|
{
|
|
976
972
|
"@type": "Term",
|
|
977
|
-
"@id": "
|
|
973
|
+
"@id": "discardedCropRemoved"
|
|
978
974
|
},
|
|
979
975
|
{
|
|
980
976
|
"@type": "Term",
|
|
981
|
-
"@id": "
|
|
977
|
+
"@id": "aboveGroundCropResidueTotal"
|
|
982
978
|
},
|
|
983
979
|
{
|
|
984
980
|
"@type": "Term",
|
|
985
|
-
"@id": "
|
|
981
|
+
"@id": "aboveGroundCropResidueIncorporated"
|
|
986
982
|
},
|
|
987
983
|
{
|
|
988
984
|
"@type": "Term",
|
|
989
|
-
"@id": "
|
|
985
|
+
"@id": "aboveGroundCropResidueBurnt"
|
|
990
986
|
},
|
|
991
987
|
{
|
|
992
988
|
"@type": "Term",
|
|
993
|
-
"@id": "
|
|
989
|
+
"@id": "belowGroundCropResidue"
|
|
994
990
|
},
|
|
995
991
|
{
|
|
996
992
|
"@type": "Term",
|
|
997
|
-
"@id": "
|
|
993
|
+
"@id": "aboveGroundCropResidueLeftOnField"
|
|
998
994
|
}
|
|
999
995
|
]
|
|
1000
996
|
},
|
|
@@ -1032,11 +1028,11 @@
|
|
|
1032
1028
|
},
|
|
1033
1029
|
{
|
|
1034
1030
|
"@type": "Term",
|
|
1035
|
-
"@id": "
|
|
1031
|
+
"@id": "digestibleEnergyPigs"
|
|
1036
1032
|
},
|
|
1037
1033
|
{
|
|
1038
1034
|
"@type": "Term",
|
|
1039
|
-
"@id": "
|
|
1035
|
+
"@id": "digestibleEnergySalmonids"
|
|
1040
1036
|
},
|
|
1041
1037
|
{
|
|
1042
1038
|
"@type": "Term",
|
|
@@ -1090,11 +1086,11 @@
|
|
|
1090
1086
|
},
|
|
1091
1087
|
{
|
|
1092
1088
|
"@type": "Term",
|
|
1093
|
-
"@id": "
|
|
1089
|
+
"@id": "energyDigestibilityRuminants"
|
|
1094
1090
|
},
|
|
1095
1091
|
{
|
|
1096
1092
|
"@type": "Term",
|
|
1097
|
-
"@id": "
|
|
1093
|
+
"@id": "energyDigestibilitySalmonids"
|
|
1098
1094
|
},
|
|
1099
1095
|
{
|
|
1100
1096
|
"@type": "Term",
|
|
@@ -1115,67 +1111,67 @@
|
|
|
1115
1111
|
"results": [
|
|
1116
1112
|
{
|
|
1117
1113
|
"@type": "Term",
|
|
1118
|
-
"@id": "
|
|
1114
|
+
"@id": "excretaInsectsKgN"
|
|
1119
1115
|
},
|
|
1120
1116
|
{
|
|
1121
1117
|
"@type": "Term",
|
|
1122
|
-
"@id": "
|
|
1118
|
+
"@id": "excretaBeefCattleFeedlotFedKgN"
|
|
1123
1119
|
},
|
|
1124
1120
|
{
|
|
1125
1121
|
"@type": "Term",
|
|
1126
|
-
"@id": "
|
|
1122
|
+
"@id": "excretaGeeseKgN"
|
|
1127
1123
|
},
|
|
1128
1124
|
{
|
|
1129
1125
|
"@type": "Term",
|
|
1130
|
-
"@id": "
|
|
1126
|
+
"@id": "excretaKgN"
|
|
1131
1127
|
},
|
|
1132
1128
|
{
|
|
1133
1129
|
"@type": "Term",
|
|
1134
|
-
"@id": "
|
|
1130
|
+
"@id": "excretaPoultryKgN"
|
|
1135
1131
|
},
|
|
1136
1132
|
{
|
|
1137
1133
|
"@type": "Term",
|
|
1138
|
-
"@id": "
|
|
1134
|
+
"@id": "excretaGoatsKgN"
|
|
1139
1135
|
},
|
|
1140
1136
|
{
|
|
1141
1137
|
"@type": "Term",
|
|
1142
|
-
"@id": "
|
|
1138
|
+
"@id": "excretaBeefCattleExceptFeedlotFedKgN"
|
|
1143
1139
|
},
|
|
1144
1140
|
{
|
|
1145
1141
|
"@type": "Term",
|
|
1146
|
-
"@id": "
|
|
1142
|
+
"@id": "excretaDeerKgN"
|
|
1147
1143
|
},
|
|
1148
1144
|
{
|
|
1149
1145
|
"@type": "Term",
|
|
1150
|
-
"@id": "
|
|
1146
|
+
"@id": "excretaSolidFishCrustaceansKgN"
|
|
1151
1147
|
},
|
|
1152
1148
|
{
|
|
1153
1149
|
"@type": "Term",
|
|
1154
|
-
"@id": "
|
|
1150
|
+
"@id": "excretaDucksKgN"
|
|
1155
1151
|
},
|
|
1156
1152
|
{
|
|
1157
1153
|
"@type": "Term",
|
|
1158
|
-
"@id": "
|
|
1154
|
+
"@id": "excretaTurkeysKgN"
|
|
1159
1155
|
},
|
|
1160
1156
|
{
|
|
1161
1157
|
"@type": "Term",
|
|
1162
|
-
"@id": "
|
|
1158
|
+
"@id": "excretaMixturesKgN"
|
|
1163
1159
|
},
|
|
1164
1160
|
{
|
|
1165
1161
|
"@type": "Term",
|
|
1166
|
-
"@id": "
|
|
1162
|
+
"@id": "excretaLiquidFishCrustaceansKgN"
|
|
1167
1163
|
},
|
|
1168
1164
|
{
|
|
1169
1165
|
"@type": "Term",
|
|
1170
|
-
"@id": "
|
|
1166
|
+
"@id": "processedExcretaKgN"
|
|
1171
1167
|
},
|
|
1172
1168
|
{
|
|
1173
1169
|
"@type": "Term",
|
|
1174
|
-
"@id": "
|
|
1170
|
+
"@id": "excretaBuffaloKgN"
|
|
1175
1171
|
},
|
|
1176
1172
|
{
|
|
1177
1173
|
"@type": "Term",
|
|
1178
|
-
"@id": "
|
|
1174
|
+
"@id": "excretaSolidAndLiquidFishCrustaceansKgN"
|
|
1179
1175
|
},
|
|
1180
1176
|
{
|
|
1181
1177
|
"@type": "Term",
|
|
@@ -1216,47 +1212,47 @@
|
|
|
1216
1212
|
},
|
|
1217
1213
|
{
|
|
1218
1214
|
"@type": "Term",
|
|
1219
|
-
"@id": "
|
|
1215
|
+
"@id": "excretaPigsKgVs"
|
|
1220
1216
|
},
|
|
1221
1217
|
{
|
|
1222
1218
|
"@type": "Term",
|
|
1223
|
-
"@id": "
|
|
1219
|
+
"@id": "excretaCamelsKgVs"
|
|
1224
1220
|
},
|
|
1225
1221
|
{
|
|
1226
1222
|
"@type": "Term",
|
|
1227
|
-
"@id": "
|
|
1223
|
+
"@id": "excretaDucksKgVs"
|
|
1228
1224
|
},
|
|
1229
1225
|
{
|
|
1230
1226
|
"@type": "Term",
|
|
1231
|
-
"@id": "
|
|
1227
|
+
"@id": "processedExcretaKgVs"
|
|
1232
1228
|
},
|
|
1233
1229
|
{
|
|
1234
1230
|
"@type": "Term",
|
|
1235
|
-
"@id": "
|
|
1231
|
+
"@id": "excretaHorsesMulesAndAssesKgVs"
|
|
1236
1232
|
},
|
|
1237
1233
|
{
|
|
1238
1234
|
"@type": "Term",
|
|
1239
|
-
"@id": "
|
|
1235
|
+
"@id": "excretaBuffaloKgVs"
|
|
1240
1236
|
},
|
|
1241
1237
|
{
|
|
1242
1238
|
"@type": "Term",
|
|
1243
|
-
"@id": "
|
|
1239
|
+
"@id": "excretaTurkeysKgVs"
|
|
1244
1240
|
},
|
|
1245
1241
|
{
|
|
1246
1242
|
"@type": "Term",
|
|
1247
|
-
"@id": "
|
|
1243
|
+
"@id": "excretaLiquidFishCrustaceansKgVs"
|
|
1248
1244
|
},
|
|
1249
1245
|
{
|
|
1250
1246
|
"@type": "Term",
|
|
1251
|
-
"@id": "
|
|
1247
|
+
"@id": "excretaSolidAndLiquidFishCrustaceansKgVs"
|
|
1252
1248
|
},
|
|
1253
1249
|
{
|
|
1254
1250
|
"@type": "Term",
|
|
1255
|
-
"@id": "
|
|
1251
|
+
"@id": "excretaDairyCattleKgVs"
|
|
1256
1252
|
},
|
|
1257
1253
|
{
|
|
1258
1254
|
"@type": "Term",
|
|
1259
|
-
"@id": "
|
|
1255
|
+
"@id": "excretaGeeseKgVs"
|
|
1260
1256
|
},
|
|
1261
1257
|
{
|
|
1262
1258
|
"@type": "Term",
|
|
@@ -1303,7 +1299,7 @@
|
|
|
1303
1299
|
"@type": "Term",
|
|
1304
1300
|
"name": "Generic crop, seed",
|
|
1305
1301
|
"@id": "genericCropSeed",
|
|
1306
|
-
"_score":
|
|
1302
|
+
"_score": 24.857483
|
|
1307
1303
|
}
|
|
1308
1304
|
]
|
|
1309
1305
|
},
|
|
@@ -1353,43 +1349,43 @@
|
|
|
1353
1349
|
},
|
|
1354
1350
|
{
|
|
1355
1351
|
"@type": "Term",
|
|
1356
|
-
"@id": "
|
|
1352
|
+
"@id": "irrigatedContinuouslyFlooded"
|
|
1357
1353
|
},
|
|
1358
1354
|
{
|
|
1359
1355
|
"@type": "Term",
|
|
1360
|
-
"@id": "
|
|
1356
|
+
"@id": "irrigatedSurfaceIrrigation"
|
|
1361
1357
|
},
|
|
1362
1358
|
{
|
|
1363
1359
|
"@type": "Term",
|
|
1364
|
-
"@id": "
|
|
1360
|
+
"@id": "irrigated"
|
|
1365
1361
|
},
|
|
1366
1362
|
{
|
|
1367
1363
|
"@type": "Term",
|
|
1368
|
-
"@id": "
|
|
1364
|
+
"@id": "irrigatedManualIrrigation"
|
|
1369
1365
|
},
|
|
1370
1366
|
{
|
|
1371
1367
|
"@type": "Term",
|
|
1372
|
-
"@id": "
|
|
1368
|
+
"@id": "irrigatedLocalizedIrrigation"
|
|
1373
1369
|
},
|
|
1374
1370
|
{
|
|
1375
1371
|
"@type": "Term",
|
|
1376
|
-
"@id": "
|
|
1372
|
+
"@id": "irrigatedFurrowIrrigation"
|
|
1377
1373
|
},
|
|
1378
1374
|
{
|
|
1379
1375
|
"@type": "Term",
|
|
1380
|
-
"@id": "
|
|
1376
|
+
"@id": "irrigatedSubIrrigation"
|
|
1381
1377
|
},
|
|
1382
1378
|
{
|
|
1383
1379
|
"@type": "Term",
|
|
1384
|
-
"@id": "
|
|
1380
|
+
"@id": "irrigatedDripIrrigation"
|
|
1385
1381
|
},
|
|
1386
1382
|
{
|
|
1387
1383
|
"@type": "Term",
|
|
1388
|
-
"@id": "
|
|
1384
|
+
"@id": "irrigatedSprinklerIrrigation"
|
|
1389
1385
|
},
|
|
1390
1386
|
{
|
|
1391
1387
|
"@type": "Term",
|
|
1392
|
-
"@id": "
|
|
1388
|
+
"@id": "irrigatedLateralMoveIrrigation"
|
|
1393
1389
|
},
|
|
1394
1390
|
{
|
|
1395
1391
|
"@type": "Term",
|
|
@@ -1496,7 +1492,7 @@
|
|
|
1496
1492
|
"results": [
|
|
1497
1493
|
{
|
|
1498
1494
|
"@type": "Term",
|
|
1499
|
-
"@id": "
|
|
1495
|
+
"@id": "marineDieselOil"
|
|
1500
1496
|
},
|
|
1501
1497
|
{
|
|
1502
1498
|
"@type": "Term",
|
|
@@ -1504,11 +1500,7 @@
|
|
|
1504
1500
|
},
|
|
1505
1501
|
{
|
|
1506
1502
|
"@type": "Term",
|
|
1507
|
-
"@id": "
|
|
1508
|
-
},
|
|
1509
|
-
{
|
|
1510
|
-
"@type": "Term",
|
|
1511
|
-
"@id": "diesel"
|
|
1503
|
+
"@id": "diesel1D"
|
|
1512
1504
|
},
|
|
1513
1505
|
{
|
|
1514
1506
|
"@type": "Term",
|
|
@@ -1520,23 +1512,66 @@
|
|
|
1520
1512
|
},
|
|
1521
1513
|
{
|
|
1522
1514
|
"@type": "Term",
|
|
1523
|
-
"@id": "
|
|
1515
|
+
"@id": "diesel"
|
|
1524
1516
|
},
|
|
1525
1517
|
{
|
|
1526
1518
|
"@type": "Term",
|
|
1527
1519
|
"@id": "petrolBurntIn4StrokeEngine"
|
|
1528
1520
|
},
|
|
1521
|
+
{
|
|
1522
|
+
"@type": "Term",
|
|
1523
|
+
"@id": "petrol"
|
|
1524
|
+
},
|
|
1529
1525
|
{
|
|
1530
1526
|
"@type": "Term",
|
|
1531
1527
|
"@id": "en590Diesel"
|
|
1532
1528
|
},
|
|
1529
|
+
{
|
|
1530
|
+
"@type": "Term",
|
|
1531
|
+
"@id": "diesel2D"
|
|
1532
|
+
},
|
|
1533
1533
|
{
|
|
1534
1534
|
"@type": "Term",
|
|
1535
1535
|
"@id": "diesel4D"
|
|
1536
|
+
}
|
|
1537
|
+
]
|
|
1538
|
+
},
|
|
1539
|
+
{
|
|
1540
|
+
"name": "get_long_fallow_land_cover_terms",
|
|
1541
|
+
"query": {
|
|
1542
|
+
"bool": {
|
|
1543
|
+
"must": [
|
|
1544
|
+
{
|
|
1545
|
+
"match": {
|
|
1546
|
+
"@type": "Term"
|
|
1547
|
+
}
|
|
1548
|
+
},
|
|
1549
|
+
{
|
|
1550
|
+
"match": {
|
|
1551
|
+
"termType.keyword": "landCover"
|
|
1552
|
+
}
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
"match_phrase_prefix": {
|
|
1556
|
+
"name": "long"
|
|
1557
|
+
}
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
"match": {
|
|
1561
|
+
"name": "fallow"
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
]
|
|
1565
|
+
}
|
|
1566
|
+
},
|
|
1567
|
+
"results": [
|
|
1568
|
+
{
|
|
1569
|
+
"@type": "Term",
|
|
1570
|
+
"@id": "longFallow"
|
|
1536
1571
|
},
|
|
1537
1572
|
{
|
|
1538
1573
|
"@type": "Term",
|
|
1539
|
-
"@id": "
|
|
1574
|
+
"@id": "longBareFallow"
|
|
1540
1575
|
}
|
|
1541
1576
|
]
|
|
1542
1577
|
},
|
|
@@ -1566,15 +1601,15 @@
|
|
|
1566
1601
|
"results": [
|
|
1567
1602
|
{
|
|
1568
1603
|
"@type": "Term",
|
|
1569
|
-
"@id": "
|
|
1604
|
+
"@id": "milkYieldPerSheepRaw"
|
|
1570
1605
|
},
|
|
1571
1606
|
{
|
|
1572
1607
|
"@type": "Term",
|
|
1573
|
-
"@id": "
|
|
1608
|
+
"@id": "milkYieldPerGoatRaw"
|
|
1574
1609
|
},
|
|
1575
1610
|
{
|
|
1576
1611
|
"@type": "Term",
|
|
1577
|
-
"@id": "
|
|
1612
|
+
"@id": "milkYieldPerBuffaloFpcm"
|
|
1578
1613
|
},
|
|
1579
1614
|
{
|
|
1580
1615
|
"@type": "Term",
|
|
@@ -1654,10 +1689,6 @@
|
|
|
1654
1689
|
{
|
|
1655
1690
|
"@type": "Term",
|
|
1656
1691
|
"@id": "residueBurnt"
|
|
1657
|
-
},
|
|
1658
|
-
{
|
|
1659
|
-
"@type": "Term",
|
|
1660
|
-
"@id": "residueBurntBeforeAllowingForCombustionFactor"
|
|
1661
1692
|
}
|
|
1662
1693
|
]
|
|
1663
1694
|
},
|
|
@@ -1696,41 +1727,6 @@
|
|
|
1696
1727
|
}
|
|
1697
1728
|
]
|
|
1698
1729
|
},
|
|
1699
|
-
{
|
|
1700
|
-
"name": "get_rice_plant_upland_terms",
|
|
1701
|
-
"query": {
|
|
1702
|
-
"bool": {
|
|
1703
|
-
"must": [
|
|
1704
|
-
{
|
|
1705
|
-
"match": {
|
|
1706
|
-
"@type": "Term"
|
|
1707
|
-
}
|
|
1708
|
-
},
|
|
1709
|
-
{
|
|
1710
|
-
"match": {
|
|
1711
|
-
"termType.keyword": "landCover"
|
|
1712
|
-
}
|
|
1713
|
-
},
|
|
1714
|
-
{
|
|
1715
|
-
"match_phrase": {
|
|
1716
|
-
"name": "rice plant"
|
|
1717
|
-
}
|
|
1718
|
-
},
|
|
1719
|
-
{
|
|
1720
|
-
"match": {
|
|
1721
|
-
"name": "upland"
|
|
1722
|
-
}
|
|
1723
|
-
}
|
|
1724
|
-
]
|
|
1725
|
-
}
|
|
1726
|
-
},
|
|
1727
|
-
"results": [
|
|
1728
|
-
{
|
|
1729
|
-
"@type": "Term",
|
|
1730
|
-
"@id": "ricePlantUpland"
|
|
1731
|
-
}
|
|
1732
|
-
]
|
|
1733
|
-
},
|
|
1734
1730
|
{
|
|
1735
1731
|
"name": "get_tillage_terms",
|
|
1736
1732
|
"query": {
|
|
@@ -1772,6 +1768,76 @@
|
|
|
1772
1768
|
}
|
|
1773
1769
|
]
|
|
1774
1770
|
},
|
|
1771
|
+
{
|
|
1772
|
+
"name": "get_upland_rice_crop_terms",
|
|
1773
|
+
"query": {
|
|
1774
|
+
"bool": {
|
|
1775
|
+
"must": [
|
|
1776
|
+
{
|
|
1777
|
+
"match": {
|
|
1778
|
+
"@type": "Term"
|
|
1779
|
+
}
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
"match": {
|
|
1783
|
+
"termType.keyword": "crop"
|
|
1784
|
+
}
|
|
1785
|
+
},
|
|
1786
|
+
{
|
|
1787
|
+
"match_phrase": {
|
|
1788
|
+
"name": "rice"
|
|
1789
|
+
}
|
|
1790
|
+
},
|
|
1791
|
+
{
|
|
1792
|
+
"match": {
|
|
1793
|
+
"name": "upland"
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
]
|
|
1797
|
+
}
|
|
1798
|
+
},
|
|
1799
|
+
"results": [
|
|
1800
|
+
{
|
|
1801
|
+
"@type": "Term",
|
|
1802
|
+
"@id": "riceGrainInHuskUpland"
|
|
1803
|
+
}
|
|
1804
|
+
]
|
|
1805
|
+
},
|
|
1806
|
+
{
|
|
1807
|
+
"name": "get_upland_rice_land_cover_terms",
|
|
1808
|
+
"query": {
|
|
1809
|
+
"bool": {
|
|
1810
|
+
"must": [
|
|
1811
|
+
{
|
|
1812
|
+
"match": {
|
|
1813
|
+
"@type": "Term"
|
|
1814
|
+
}
|
|
1815
|
+
},
|
|
1816
|
+
{
|
|
1817
|
+
"match": {
|
|
1818
|
+
"termType.keyword": "landCover"
|
|
1819
|
+
}
|
|
1820
|
+
},
|
|
1821
|
+
{
|
|
1822
|
+
"match_phrase": {
|
|
1823
|
+
"name": "rice plant"
|
|
1824
|
+
}
|
|
1825
|
+
},
|
|
1826
|
+
{
|
|
1827
|
+
"match": {
|
|
1828
|
+
"name": "upland"
|
|
1829
|
+
}
|
|
1830
|
+
}
|
|
1831
|
+
]
|
|
1832
|
+
}
|
|
1833
|
+
},
|
|
1834
|
+
"results": [
|
|
1835
|
+
{
|
|
1836
|
+
"@type": "Term",
|
|
1837
|
+
"@id": "ricePlantUpland"
|
|
1838
|
+
}
|
|
1839
|
+
]
|
|
1840
|
+
},
|
|
1775
1841
|
{
|
|
1776
1842
|
"name": "get_urea_terms",
|
|
1777
1843
|
"query": {
|
|
@@ -1785,11 +1851,11 @@
|
|
|
1785
1851
|
},
|
|
1786
1852
|
{
|
|
1787
1853
|
"@type": "Term",
|
|
1788
|
-
"@id": "
|
|
1854
|
+
"@id": "ureaAmmoniumSulphateKgN"
|
|
1789
1855
|
},
|
|
1790
1856
|
{
|
|
1791
1857
|
"@type": "Term",
|
|
1792
|
-
"@id": "
|
|
1858
|
+
"@id": "ureaFormaldehydeKgN"
|
|
1793
1859
|
},
|
|
1794
1860
|
{
|
|
1795
1861
|
"@type": "Term",
|
|
@@ -1797,11 +1863,11 @@
|
|
|
1797
1863
|
},
|
|
1798
1864
|
{
|
|
1799
1865
|
"@type": "Term",
|
|
1800
|
-
"@id": "
|
|
1866
|
+
"@id": "sulphurCoatedUreaKgN"
|
|
1801
1867
|
},
|
|
1802
1868
|
{
|
|
1803
1869
|
"@type": "Term",
|
|
1804
|
-
"@id": "
|
|
1870
|
+
"@id": "ureaCalciumNitrateKgN"
|
|
1805
1871
|
}
|
|
1806
1872
|
]
|
|
1807
1873
|
},
|
|
@@ -1841,11 +1907,11 @@
|
|
|
1841
1907
|
"results": [
|
|
1842
1908
|
{
|
|
1843
1909
|
"@type": "Term",
|
|
1844
|
-
"@id": "
|
|
1910
|
+
"@id": "woodFuel"
|
|
1845
1911
|
},
|
|
1846
1912
|
{
|
|
1847
1913
|
"@type": "Term",
|
|
1848
|
-
"@id": "
|
|
1914
|
+
"@id": "woodPellets"
|
|
1849
1915
|
},
|
|
1850
1916
|
{
|
|
1851
1917
|
"@type": "Term",
|
|
@@ -78,7 +78,6 @@ LOOKUPS = {
|
|
|
78
78
|
"liveAquaticSpecies": ["excretaKgNTermId", "allowedExcretaKgNTermIds"]
|
|
79
79
|
}
|
|
80
80
|
MODEL_KEY = 'excretaKgN'
|
|
81
|
-
MODEL_LOG = '/'.join([MODEL, MODEL_KEY])
|
|
82
81
|
|
|
83
82
|
|
|
84
83
|
def _product(excreta_product: str, value: float):
|
|
@@ -109,9 +108,9 @@ def _should_run(cycle: dict):
|
|
|
109
108
|
is_product_complete = dc.get('product', False)
|
|
110
109
|
|
|
111
110
|
inputs_feed = get_feed_inputs(cycle)
|
|
112
|
-
inputs_n = convert_to_nitrogen(cycle,
|
|
111
|
+
inputs_n = convert_to_nitrogen(cycle, MODEL, excreta_term_id, inputs_feed, model_key=MODEL_KEY)
|
|
113
112
|
|
|
114
|
-
products_n = get_animal_produced_nitrogen(
|
|
113
|
+
products_n = get_animal_produced_nitrogen(MODEL, cycle.get('products', []))
|
|
115
114
|
|
|
116
115
|
# we can still run the model for `liveAquaticSpecies`
|
|
117
116
|
is_liveAquaticSpecies = primary_prod.get('term', {}).get('termType') == TermTermType.LIVEAQUATICSPECIES.value
|
|
@@ -119,13 +118,13 @@ def _should_run(cycle: dict):
|
|
|
119
118
|
nitrogen_content = _get_nitrogen_content(primary_prod)
|
|
120
119
|
|
|
121
120
|
if is_liveAquaticSpecies:
|
|
122
|
-
logRequirements(cycle, model=
|
|
121
|
+
logRequirements(cycle, model=MODEL, term=excreta_term_id, model_key=MODEL_KEY,
|
|
123
122
|
is_liveAquaticSpecies=is_liveAquaticSpecies,
|
|
124
123
|
product_value=product_value,
|
|
125
124
|
nitrogen_content=nitrogen_content)
|
|
126
125
|
|
|
127
126
|
else:
|
|
128
|
-
logRequirements(cycle, model=
|
|
127
|
+
logRequirements(cycle, model=MODEL, term=excreta_term_id, model_key=MODEL_KEY,
|
|
129
128
|
is_animalFeed_complete=is_animalFeed_complete,
|
|
130
129
|
is_product_complete=is_product_complete,
|
|
131
130
|
inputs_n=inputs_n,
|
|
@@ -144,8 +143,8 @@ def _should_run(cycle: dict):
|
|
|
144
143
|
])
|
|
145
144
|
# only log if the excreta term does not exist to avoid showing failure when it already exists
|
|
146
145
|
if should_add_product:
|
|
147
|
-
logShouldRun(cycle,
|
|
148
|
-
logShouldRun(cycle,
|
|
146
|
+
logShouldRun(cycle, MODEL, excreta_term_id, should_run, model_key=MODEL_KEY)
|
|
147
|
+
logShouldRun(cycle, MODEL, None, should_run)
|
|
149
148
|
return should_run, excreta_product, mass_balance_items, alternate_items
|
|
150
149
|
|
|
151
150
|
|