diff --git a/backend/configs/config.json b/backend/configs/config.json index f934996..53ab8b2 100644 --- a/backend/configs/config.json +++ b/backend/configs/config.json @@ -92,26 +92,16 @@ "columns": { "geom": "centroid(merge(point(socio_eco_gps.long, socio_eco_gps.latit)))", "population": "sum(hab)", - "energyType": "count(ener)", - "boughtWoodEnergy": "count(1)", - "coalEnergy": "count(1)", - "organicWasteEnergy": "count(1)", - "animalWasteEnergy": "count(1)", - "gasEnergy": "count(1)", - "otherEnergy": "count(1)", - "woodEnergyConsumption": "count(1)", - "woodEnergyNeeds": "count(1)", - "woodCollectionTime:": "count(1)", - "timberNeeds": "count(1)", - "foodDiversity": "count(1)", - "autoConsumtionNeeds": "count(1)", - "hungryGap": "count(1)", - "incomeSources": "count(1)", - "incomeEvolution": "count(1)", - "estateIndex": "count(1)", - "livingConditionsPercreption": "count(1)", - "conflictIndex": "count(1)", - "beneficialPractices": "count(1)" + "fuelType": "list_aggregate(flatten(list(ener)), 'histogram')", + "woodFuelConsumption": "sum( 12 * ( ifnull(feu_qte * code_bois.bois_vol * feu_jrs, 0) + ifnull(char_qte * charbon.char_conv * char_jrs, 0) / 600 ) ) / sum(hab)", + "firewoodCollectionTimeSpent": "sum(coll_jrs * coll_tps / 30) / count(1)", + "woodEnergyNeedsSatisfaction": "count(1 if comb_satis = 1) / count(1 if feu_jrs > 0) * 100", + "timberNeedSatisfaction": "count(1 if int(serv_satis) = 1) / count(1 if serv_yn = 1) * 100", + "leanSeasonDuration": "sum(list_unique(soud_mois) if soud_yn = 1) / count(1)", + "dietaryDiversityScore": "sum(list_unique(alim_typ) / 9 * 10) / count(1)", + "foodSelfSufficiency": "sum(list_unique(alim_typ) / list_unique(alim_auto) * 100) / count(1)", + "perceptionChangesLivingConditions": "count(1 if int(cond_evol) = 1) / count(1) * 100", + "materialAssetsIndex": "sum(int(mais_type) + 1 * (int(mais_piec) if int(mais_piec) < 98) * int(mais_prop) + list_unique(biens) + 1 * (int(bet_pt) if int(bet_pt) < 98) + 1 * (int(bet_gr) if int(bet_gr) < 98) + 1 * (1 * (int(prop) if int(prop) < 98) + 1 * (int(titr) if int(titr) < 98) + 1 * (int(sup) if int(sup) < 98) if int(prop) > 0)) / count(1)" }, "popup": { "trigger": "click"