core-seft 0.1.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.
Files changed (88) hide show
  1. config/__init__.py +1 -0
  2. config/counts.json +1 -0
  3. config/datasets.json +128 -0
  4. config/groundtruth/__init__.py +1 -0
  5. config/groundtruth/active_locations.json +4566 -0
  6. config/groundtruth/final_ground_truth.json +670 -0
  7. config/groundtruth/locations.json +1 -0
  8. config/groundtruth/pathways.json +112 -0
  9. config/groundtruth/resolution.json +1 -0
  10. config/locations.json +151 -0
  11. config/waterbody/__init__.py +1 -0
  12. config/waterbody/locations.json +151 -0
  13. core_seft/__init__.py +10 -0
  14. core_seft/errors.py +17 -0
  15. core_seft/knowledge.py +110 -0
  16. core_seft/present.py +652 -0
  17. core_seft/session.py +366 -0
  18. core_seft/types.py +51 -0
  19. core_seft-0.1.0.dist-info/METADATA +122 -0
  20. core_seft-0.1.0.dist-info/RECORD +88 -0
  21. core_seft-0.1.0.dist-info/WHEEL +5 -0
  22. core_seft-0.1.0.dist-info/licenses/LICENSE +661 -0
  23. core_seft-0.1.0.dist-info/top_level.txt +4 -0
  24. knowledge/__init__.py +1 -0
  25. knowledge/archetypes.json +428 -0
  26. knowledge/causal_graph.json +2253 -0
  27. knowledge/commons_connect.json +19000 -0
  28. knowledge/contexts.json +204 -0
  29. knowledge/interventions.json +2982 -0
  30. knowledge/manifest.json +7 -0
  31. knowledge/pools.json +1 -0
  32. knowledge/questions.json +2045 -0
  33. knowledge/schemes.json +1485 -0
  34. knowledge/sheet_rules.json +384 -0
  35. knowledge/signals.json +1940 -0
  36. knowledge/sources.json +374 -0
  37. knowledge/taxonomy.json +317 -0
  38. knowledge/variables.json +1028 -0
  39. knowledge/waterbody/__init__.py +1 -0
  40. knowledge/waterbody/questions.json +1126 -0
  41. knowledge/waterbody/roles.json +60 -0
  42. knowledge/waterbody/rules.json +396 -0
  43. knowledge/waterbody/schemes.json +330 -0
  44. knowledge/waterbody/signals.json +255 -0
  45. knowledge/waterbody/sources.json +13 -0
  46. knowledge/waterbody/types.json +131 -0
  47. knowledge/waterbody/variables.json +426 -0
  48. seft/__init__.py +2 -0
  49. seft/archetypes.py +70 -0
  50. seft/assess.py +64 -0
  51. seft/audit.py +36 -0
  52. seft/backfill.py +47 -0
  53. seft/cli.py +204 -0
  54. seft/commons_connect.py +748 -0
  55. seft/context.py +27 -0
  56. seft/export.py +165 -0
  57. seft/expr.py +396 -0
  58. seft/fetch.py +278 -0
  59. seft/geo.py +38 -0
  60. seft/groundtruth.py +398 -0
  61. seft/indicators.py +51 -0
  62. seft/ingest.py +83 -0
  63. seft/interventions.py +59 -0
  64. seft/load.py +363 -0
  65. seft/odk.py +97 -0
  66. seft/pipeline.py +84 -0
  67. seft/priority.py +452 -0
  68. seft/rescore.py +102 -0
  69. seft/schema.py +127 -0
  70. seft/schemes.py +41 -0
  71. seft/sheet.py +49 -0
  72. seft/signals.py +88 -0
  73. seft/stresses.py +131 -0
  74. seft/util.py +69 -0
  75. seft/validate.py +214 -0
  76. seft/wb/__init__.py +1 -0
  77. seft/wb/assess.py +96 -0
  78. seft/wb/audit.py +26 -0
  79. seft/wb/build.py +182 -0
  80. seft/wb/census.py +153 -0
  81. seft/wb/context.py +32 -0
  82. seft/wb/indicators.py +78 -0
  83. seft/wb/layers.py +117 -0
  84. seft/wb/run.py +231 -0
  85. seft/wb/score.py +161 -0
  86. seft/wb/validate.py +87 -0
  87. seft/wb/villages.py +50 -0
  88. seft/webdata.py +127 -0
config/__init__.py ADDED
@@ -0,0 +1 @@
1
+ # CoRE Stack location and dataset config shipped with core-seft.
config/counts.json ADDED
@@ -0,0 +1 @@
1
+ {"ambegaon":[145,138],"baramati":[154,138],"bhor":[115,207],"daund":[170,128],"haveli":[180,549],"indapur":[146,161],"junnar":[171,188],"khed":[154,207],"mawal":[104,218],"mulshi-paud":[124,151],"achalpur":[70,206],"amaravati":[119,220],"anjangaon-surji":[58,146],"bhatkuli":[65,131],"chandur-railway":[69,109],"chandurbazar":[71,204],"chikhaldar":[273,223],"daryapur":[78,164],"dhamangaon":[73,133],"dharni":[150,141],"morshi":[94,191],"nandgaon":[90,156],"teosa":[66,92],"warud":[85,205],"amadagur":[44,15],"gandlapenta":[29,14],"nallacheruvu":[27,11],"nambulipulikunta":[45,15],"obuladevaracheruvu":[44,17],"raptadu":[45,72],"talupula":[62,15],"tanakal":[52,22],"bhamini":[26,28],"burja":[17,98],"echcherla":[24,134],"hiramandalam":[32,77],"kaviti":[16,31],"kotabommali":[19,47],"meliyaputti":[45,66],"palkonda":[18,57],"patapatnam":[37,72],"santbommali":[20,45],"saravakota":[30,40],"sarubujjili":[26,135],"sitampeta":[65,60],"vajrapukotturu":[18,52],"vangara":[20,51],"viragattam":[22,62],"basantrai":[16,126],"boarijor":[62,439],"godda":[54,269],"mahagama":[28,362],"meherma":[25,214],"pathargama":[26,214],"poreyahat":[59,216],"sundarpahari":[60,296],"thakur_gangti":[21,203],"jaypur":[178,530],"koraput":[195,417],"nandapur":[184,449],"narayanpatana":[111,301],"girwa":[167,316],"gogunda":[128,227],"lasadiya":[79,101],"salumber":[124,284],"sarara":[101,132],"semari":[42,50],"bairia":[43,133],"ballia":[94,906],"bansdih":[78,520],"belthara_road":[47,296],"rasra":[72,406],"sikandarpur":[46,240]}
config/datasets.json ADDED
@@ -0,0 +1,128 @@
1
+ {
2
+ "note": "get_tehsil_data datasets downloaded by seft.cli fetch. level: mws or village; MWS-level datasets are checked against the MWS count from GeoServer. bytes_per_row is an informational size estimate. All datasets come from one v2 request per tehsil without the data= filter, which also returns forest_fire, forest_fringes, tree_in_grassland and ndvi (CS-83). Tree-cover change keeps the v2 names (change_detection_tree_cover_decrease / _increase); v1 calls them change_detection_deforestation / _afforestation. 'optional': true marks a dataset the API may leave out (green_credit; mining, which lists only MWS with a mining project; hydrological_seasonal, used by the drought context ctx_low_kharif_rain and the Signal_Verification sheet rules); audit does not count it as missing. The full response of each tehsil is kept in data/raw/<...>/_response.json.gz, so a dataset added here later is extracted locally without a new request (--force re-downloads).",
3
+ "datasets": {
4
+ "lulc_vector": {
5
+ "level": "mws",
6
+ "bytes_per_row": 1600
7
+ },
8
+ "croppingintensity_annual": {
9
+ "level": "mws",
10
+ "bytes_per_row": 1100
11
+ },
12
+ "croppingdrought_kharif": {
13
+ "level": "mws",
14
+ "bytes_per_row": 930
15
+ },
16
+ "hydrological_annual": {
17
+ "level": "mws",
18
+ "bytes_per_row": 830
19
+ },
20
+ "surfacewaterbodies_annual": {
21
+ "level": "mws",
22
+ "bytes_per_row": 640
23
+ },
24
+ "aquifer_vector": {
25
+ "level": "mws",
26
+ "bytes_per_row": 350
27
+ },
28
+ "mws_intersect_villages": {
29
+ "level": "mws",
30
+ "bytes_per_row": 320
31
+ },
32
+ "change_detection_tree_cover_decrease": {
33
+ "level": "mws",
34
+ "bytes_per_row": 240
35
+ },
36
+ "change_detection_tree_cover_increase": {
37
+ "level": "mws",
38
+ "bytes_per_row": 240
39
+ },
40
+ "terrain": {
41
+ "level": "mws",
42
+ "bytes_per_row": 220
43
+ },
44
+ "change_detection_urbanization": {
45
+ "level": "mws",
46
+ "bytes_per_row": 210
47
+ },
48
+ "change_detection_degradation": {
49
+ "level": "mws",
50
+ "bytes_per_row": 190
51
+ },
52
+ "restoration_vector": {
53
+ "level": "mws",
54
+ "bytes_per_row": 160
55
+ },
56
+ "soge_vector": {
57
+ "level": "mws",
58
+ "bytes_per_row": 105
59
+ },
60
+ "canal": {
61
+ "level": "mws",
62
+ "bytes_per_row": 60
63
+ },
64
+ "green_credit": {
65
+ "level": "mws",
66
+ "bytes_per_row": 60,
67
+ "optional": true
68
+ },
69
+ "livestock": {
70
+ "level": "village",
71
+ "bytes_per_row": 450
72
+ },
73
+ "social_economic_indicator": {
74
+ "level": "village",
75
+ "bytes_per_row": 260
76
+ },
77
+ "soil_health": {
78
+ "level": "mws",
79
+ "bytes_per_row": 700
80
+ },
81
+ "nrega_annual": {
82
+ "level": "mws",
83
+ "bytes_per_row": 1500
84
+ },
85
+ "antyodaya": {
86
+ "level": "village",
87
+ "bytes_per_row": 2000
88
+ },
89
+ "facilities_proximity": {
90
+ "level": "village",
91
+ "bytes_per_row": 900
92
+ },
93
+ "river": {
94
+ "level": "mws",
95
+ "bytes_per_row": 40
96
+ },
97
+ "mws_connectivity": {
98
+ "level": "mws",
99
+ "bytes_per_row": 80
100
+ },
101
+ "forest_fringes": {
102
+ "level": "mws",
103
+ "bytes_per_row": 120
104
+ },
105
+ "forest_fire": {
106
+ "level": "mws",
107
+ "bytes_per_row": 60
108
+ },
109
+ "tree_in_grassland": {
110
+ "level": "mws",
111
+ "bytes_per_row": 200
112
+ },
113
+ "ndvi": {
114
+ "level": "mws",
115
+ "bytes_per_row": 120
116
+ },
117
+ "mining": {
118
+ "level": "mws",
119
+ "bytes_per_row": 200,
120
+ "optional": true
121
+ },
122
+ "hydrological_seasonal": {
123
+ "level": "mws",
124
+ "bytes_per_row": 900,
125
+ "optional": true
126
+ }
127
+ }
128
+ }
@@ -0,0 +1 @@
1
+ # Ground-truth config, including the cached get_active_locations list.