rishabh99 commited on
Commit
41896b8
·
verified ·
1 Parent(s): 7642f6c

Upload 3 files

Browse files
Files changed (3) hide show
  1. brick_kiln_lucknow_v1.csv +479 -0
  2. fcb_zigzag.py +145 -0
  3. requirements.txt +10 -0
brick_kiln_lucknow_v1.csv ADDED
@@ -0,0 +1,479 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Index,Type,Lat,Lon,Year made,fcb to zigzag,Othesrs
2
+ 0,1,26.71308429,80.9556925,2011,2015,0=fcb
3
+ 1,0,26.62134907,80.93536782,2011,2009,1=zigzag
4
+ 2,0,26.85057735,81.23535708,2011,2009,
5
+ 3,1,26.87522306,81.233375,2011,2024,
6
+ 4,1,26.96901304,80.89631392,2010,2018,
7
+ 5,0,26.95107334,81.05381558,2011,2009,
8
+ 6,1,26.94530389,81.05478519,2011,2021,
9
+ 7,0,26.96790845,81.21465619,2010,2009,
10
+ 8,0,26.69308959,80.84319917,2010,2009,
11
+ 9,0,26.68958743,80.84479847,2010,2009,
12
+ 10,1,26.68947216,80.84050805,2010,2009,
13
+ 11,1,26.90348677,81.20394428,2011,2023,
14
+ 12,0,26.76499575,81.23515057,2011,2024,
15
+ 13,1,26.75509583,81.22480246,2015,2021,
16
+ 14,1,26.75510723,81.22480711,2015,2021,
17
+ 15,1,26.76498346,81.23513678,2011,2024,
18
+ 16,1,26.75459549,81.01170264,2010,2020,
19
+ 17,1,26.75447246,81.01028532,2010,2020,
20
+ 18,0,27.10233071,81.19167984,2010,2009,
21
+ 19,1,26.9815742,81.11801041,2011,2022,
22
+ 20,0,26.97879865,81.08828628,2013,2009,
23
+ 21,0,27.1163246,80.78531854,2015,2009,
24
+ 22,0,26.86850906,81.13595429,2011,2009,
25
+ 23,1,26.87024474,81.14060487,2011,2024,
26
+ 24,0,26.87023963,81.14369523,2011,2009,
27
+ 25,1,26.87138077,81.14032105,2011,2020,
28
+ 26,0,26.87069456,81.14462799,2011,2009,
29
+ 27,0,27.12277533,80.86045646,2017,2009,
30
+ 28,0,26.71893902,81.22863887,2011,2009,
31
+ 29,0,26.72411337,81.23451511,2011,2009,
32
+ 30,1,26.92813922,81.0527019,2011,2018,
33
+ 31,1,26.93177276,81.04508156,2011,2018,
34
+ 32,1,26.93211184,81.05119708,2011,2015,
35
+ 33,1,26.92609336,81.0468773,2010,2009,in 2016 got converted from circular to zigzag
36
+ 34,0,26.71179998,81.19693072,2011,2009,
37
+ 35,0,26.70847572,81.20339474,2011,2009,
38
+ 36,0,26.86988672,80.86824464,2010,2009,
39
+ 37,1,26.93879201,81.03080021,2010,2017,
40
+ 38,1,26.82374281,81.16735067,2021,2009,
41
+ 39,0,26.72781312,81.22416592,2011,2009,
42
+ 40,1,26.88491266,81.18565625,2013,2009,
43
+ 41,0,26.87687046,81.18816545,2011,2009,
44
+ 42,1,26.99300045,81.12322047,2011,2022,
45
+ 43,0,26.62501354,81.09691046,2012,2009,
46
+ 44,1,26.71484045,81.21710723,2011,2024,
47
+ 45,0,26.71121559,81.22501672,2011,2009,
48
+ 46,1,26.70805052,81.22128425,2021,2009,
49
+ 47,1,27.14339623,80.75429434,2012,2023,
50
+ 48,0,26.74213671,81.14748569,2011,2009,
51
+ 49,1,26.73895682,81.14955089,2011,2018,
52
+ 50,1,26.74071248,81.15534131,2011,2009,in 2020 got converted from circular to zigzag
53
+ 51,0,26.85962892,81.21314189,2011,2009,
54
+ 52,0,26.6467833,80.99523894,2010,2009,
55
+ 53,0,26.68064806,80.83117936,2010,2009,
56
+ 54,1,27.10137865,80.75613333,2018,2009,
57
+ 55,1,26.69222463,80.85782489,2011,2019,
58
+ 56,0,26.89005587,81.22516495,2011,2009,
59
+ 57,1,27.12301819,81.11658137,2010,2020,
60
+ 58,1,26.93180564,81.04512063,2011,2018,
61
+ 59,0,27.10000323,81.01225103,2013,2009,
62
+ 60,1,26.74070904,81.15536311,2011,2009,in 2020 got converted from circular to zigzag
63
+ 61,1,26.73912487,81.15728476,2012,2017,
64
+ 62,0,26.62316375,81.15209865,2012,2009,
65
+ 63,0,26.68495056,80.78487919,2017,2009,
66
+ 64,1,26.86201941,81.23031828,2011,2023,
67
+ 65,1,26.85936558,81.15649122,2011,2018,
68
+ 66,0,26.62135796,80.93535997,2011,2009,
69
+ 67,0,26.85931466,81.18596399,2011,2009,
70
+ 68,1,27.12191386,81.19549531,2010,2022,
71
+ 69,1,26.71939284,81.13895951,2011,2022,
72
+ 70,0,26.64007145,80.89273562,2012,2009,
73
+ 71,1,26.9283334,80.96571175,2010,2014,
74
+ 72,0,26.92960109,80.96561883,2010,2009,
75
+ 73,0,26.65202497,80.89989375,2011,2009,
76
+ 74,1,26.93708335,81.04086904,2011,2018,
77
+ 75,1,26.94443952,81.04545367,2010,2016,
78
+ 76,0,27.01935808,80.89832626,2011,2009,
79
+ 77,0,27.02113183,80.90148782,2011,2009,
80
+ 78,0,26.96773133,80.87765371,2011,2009,
81
+ 79,1,26.9367818,80.98890045,2010,2009,in 2021 circular got converted to zigzag
82
+ 80,0,26.93657569,80.99190334,2010,2009,
83
+ 81,0,26.92167664,81.05005733,2011,2009,
84
+ 82,1,26.92315901,81.04658315,2010,2019,
85
+ 83,1,26.69044183,81.05445426,2012,2020,
86
+ 84,0,26.68707683,80.69422733,2014,2009,
87
+ 85,1,26.88509353,81.21059623,2011,2022,
88
+ 86,1,26.73446242,81.14704851,2011,2022,
89
+ 87,1,26.99582149,81.13506794,2010,2022,
90
+ 88,1,27.08874712,80.90491414,2011,2022,
91
+ 89,0,27.13326903,81.22676112,2013,2009,
92
+ 90,1,26.87334167,81.11696481,2011,2009,
93
+ 91,0,26.86726811,81.11587676,2011,2009,
94
+ 92,1,26.8684621,81.12525897,2011,2013,
95
+ 93,1,26.87354724,81.11965947,2011,2009,
96
+ 94,1,26.85853753,81.13037867,2011,2016,
97
+ 95,1,26.67893674,80.80244495,2010,2017,
98
+ 96,1,26.9348196,81.03243403,2011,2019,
99
+ 97,0,26.95000531,81.22167469,2010,2009,
100
+ 98,0,27.03366222,80.92921881,2011,2009,
101
+ 99,0,26.69395421,80.85384109,2011,2009,
102
+ 100,1,26.69349323,80.84954136,2011,2009,
103
+ 101,0,26.68960543,80.84478728,2010,2009,
104
+ 102,1,26.69033147,80.8453375,2010,2009,
105
+ 103,1,26.80080312,81.23901707,2017,2023,
106
+ 104,0,26.72438457,81.10829296,2012,2009,
107
+ 105,0,26.7112181,81.22499957,2011,2009,
108
+ 106,1,26.7118281,81.22706527,2011,2021,
109
+ 107,1,26.7144778,81.22823172,2011,2021,
110
+ 108,1,27.04960766,80.94976611,2011,2024,
111
+ 109,1,26.77490185,81.17553316,2019,2009,
112
+ 110,1,26.72100447,81.06606361,2011,2014,
113
+ 111,0,26.73588548,81.17408626,2011,2009,
114
+ 112,0,26.73549856,81.17543231,2011,2009,
115
+ 113,1,26.73872376,81.17509235,2011,2017,
116
+ 114,1,26.68403669,80.84726462,2010,2016,
117
+ 115,1,26.68306657,80.85163825,2017,2009,
118
+ 116,0,26.79306069,81.04794573,2010,2009,
119
+ 117,1,26.87749225,81.14714348,2011,2024,
120
+ 118,1,26.7383817,81.13718706,2020,2009,
121
+ 119,1,26.87078551,81.12913318,2011,2020,
122
+ 120,1,26.86846873,81.12521133,2011,2013,
123
+ 121,1,26.95013581,81.02536482,2010,2018,
124
+ 122,0,26.95022843,81.02910992,2010,2009,
125
+ 123,1,26.94950205,81.03338942,2010,2019,
126
+ 124,1,26.70456136,81.17664263,2013,2015,
127
+ 125,1,26.70159963,81.18499616,2011,2018,
128
+ 126,0,26.68265543,81.06447392,2012,2009,
129
+ 127,1,26.94833484,81.05629991,2011,2017,
130
+ 128,1,26.94526914,81.05476717,2011,2021,
131
+ 129,0,26.72574474,81.24105519,2017,2009,
132
+ 130,0,27.04709711,81.04006039,2010,2009,
133
+ 131,1,27.13381235,80.72667298,2012,2022,in 2015 got converted from circular to fcb
134
+ 132,1,27.13149059,80.73008764,2012,2020,
135
+ 133,1,27.13020561,80.73212882,2012,2015,
136
+ 134,1,27.12757663,80.73480466,2012,2009,
137
+ 135,0,27.129896,80.73500517,2012,2009,
138
+ 136,1,26.90187821,81.03053697,2010,2020,
139
+ 137,1,26.89731514,81.03166669,2010,2018,
140
+ 138,0,26.60804217,81.04725663,2013,2009,
141
+ 139,0,26.6093273,81.04969952,2013,2009,
142
+ 140,1,26.66440764,80.80427996,2010,2014,
143
+ 141,0,27.12225224,80.71778466,2012,2009,
144
+ 142,0,26.64675505,80.99525718,2010,2009,
145
+ 143,1,27.16842499,80.69118455,2012,2009,in 2017 got converted from circular to zigzag
146
+ 144,0,26.86520403,81.1121844,2015,2009,
147
+ 145,0,27.11448643,80.7175031,2012,2009,
148
+ 146,1,27.1105408,80.71552515,2018,2009,
149
+ 147,0,26.62491113,81.09694885,2012,2009,
150
+ 148,0,26.86280269,81.17604425,2011,2009,
151
+ 149,1,27.14005788,81.19306036,2021,2009,
152
+ 150,1,27.01735803,81.13143289,2010,2023,
153
+ 151,1,26.76497679,81.23515618,2011,2024,
154
+ 152,1,26.93702921,81.02431161,2010,2020,
155
+ 153,0,27.12226245,80.87645401,2011,2009,
156
+ 154,0,26.67234187,81.0446133,2014,2009,
157
+ 155,0,27.10840897,80.74163597,2016,2009,
158
+ 156,1,26.71178802,81.0546851,2011,2017,
159
+ 157,0,26.71058164,81.06354225,2011,2009,
160
+ 158,0,27.11629642,80.78534808,2015,2009,
161
+ 159,1,26.91976957,81.02369043,2010,2021,
162
+ 160,0,26.63347555,80.69997476,2018,2009,
163
+ 161,0,27.14457343,80.84192609,2013,2009,
164
+ 162,1,26.96904963,81.03762655,2010,2009,in 2021 got converted from circular to zigzag
165
+ 163,1,26.97024764,81.04174617,2010,2013,
166
+ 164,1,26.95691923,80.86541993,2015,2009,
167
+ 165,1,27.12086213,80.90784668,2011,2024,
168
+ 166,1,26.86393421,80.86972498,2010,2018,
169
+ 167,0,26.86077739,80.86622771,2010,2009,
170
+ 168,1,26.9140999,81.22257983,2011,2020,
171
+ 169,0,26.95365069,80.89662529,2014,2009,
172
+ 170,1,26.95169083,80.89882685,2010,2023,
173
+ 171,1,27.09722601,81.17781876,2010,2020,
174
+ 172,1,26.87241179,81.10088242,2011,2020,
175
+ 173,1,26.93519788,80.97284355,2010,2024,
176
+ 174,0,26.63175179,80.89589853,2013,2009,
177
+ 175,1,26.71179424,81.0546889,2011,2017,
178
+ 176,1,26.97631353,81.04617594,2010,2017,
179
+ 177,0,26.74520595,81.02529867,2010,2009,
180
+ 178,1,26.89577829,81.03780817,2011,2019,
181
+ 179,0,27.15341534,80.72524606,2015,2009,
182
+ 180,1,27.03181713,80.94499495,2011,2024,
183
+ 181,0,26.78611685,81.10774376,2011,2009,
184
+ 182,1,26.73871241,81.17508828,2011,2017,
185
+ 183,0,26.73552304,81.17542118,2011,2009,
186
+ 184,1,27.10657057,80.74863484,2012,2018,
187
+ 185,1,27.11193752,80.74919116,2012,2020,
188
+ 186,0,27.10872425,80.75005686,2012,2009,
189
+ 187,0,27.11345254,80.74952499,2012,2009,
190
+ 188,0,26.67033076,80.80098705,2010,2009,
191
+ 189,1,26.7015891,81.18502385,2011,2018,
192
+ 190,0,27.17083459,80.73270887,2012,2009,
193
+ 191,0,26.80811215,81.21928222,2015,2009,
194
+ 192,1,26.70118777,81.16574572,2017,2020,
195
+ 193,1,27.07026013,80.96548172,2011,2024,
196
+ 194,0,26.85720367,80.86407283,2010,2009,
197
+ 195,0,26.68842905,80.7853925,2015,2009,
198
+ 196,1,26.68746063,80.79031917,2012,2017,
199
+ 197,0,26.68502439,80.78488556,2017,2009,
200
+ 198,1,26.69047689,81.12814123,2018,2009,
201
+ 199,1,26.68787991,80.81258541,2014,2009,
202
+ 200,0,26.67964356,81.08384983,2019,2009,
203
+ 201,1,26.86853535,81.16549563,2011,2020,
204
+ 202,1,26.86879028,81.17214746,2011,2024,
205
+ 203,1,27.14963473,81.08698174,2010,2019,
206
+ 204,1,26.70845049,80.81010448,2010,2020,
207
+ 205,1,27.0843783,81.02755594,2015,2024,
208
+ 206,0,26.72516608,80.91321479,2010,2009,
209
+ 207,1,26.84083595,81.14503942,2011,2017,
210
+ 208,1,26.97967986,81.04433772,2010,2018,
211
+ 209,0,27.14911935,81.05835268,2010,2009,
212
+ 210,1,26.77665772,81.13657984,2011,2019,
213
+ 211,1,26.78161138,81.13850054,2011,2020,
214
+ 212,0,26.78398079,81.13993862,2011,2009,
215
+ 213,1,26.77626474,81.13870238,2011,2020,
216
+ 214,0,26.68267216,81.06451094,2012,2009,
217
+ 215,1,26.99583171,81.13510405,2010,2022,
218
+ 216,1,26.8983167,81.11992329,2011,2019,
219
+ 217,1,27.19261755,80.88801773,2012,2020,
220
+ 218,0,26.96627373,81.22531479,2010,2009,
221
+ 219,1,26.94570223,81.03676034,2010,2020,
222
+ 220,1,26.95196749,81.04245551,2010,2015,
223
+ 221,1,26.9546896,81.04087337,2010,2017,
224
+ 222,0,26.61234601,80.97940589,2010,2009,
225
+ 223,1,26.61415783,80.98045604,2011,2020,
226
+ 224,1,26.70482647,81.13685465,2017,2020,
227
+ 225,1,26.69753652,81.13806202,2017,2022,
228
+ 226,1,26.95980582,80.86965602,2010,2020,
229
+ 227,0,26.96163598,80.87395869,2010,2009,
230
+ 228,1,26.95852628,80.87334737,2010,2019,
231
+ 229,1,26.95690141,80.86541957,2015,2009,
232
+ 230,1,26.7044884,81.20215747,2011,2021,
233
+ 231,0,26.76031377,81.00656204,2011,2009,
234
+ 232,1,26.76297383,81.00783237,2010,2020,
235
+ 233,0,26.67121606,80.827957,2010,2009,
236
+ 234,0,26.66912223,80.83286841,2010,2009,
237
+ 235,0,26.74517252,81.02528403,2010,2009,
238
+ 236,0,26.80558524,81.18116357,2014,2009,
239
+ 237,1,26.80873564,81.17445661,2017,2009,
240
+ 238,0,27.13003911,80.90817209,2011,2017,
241
+ 239,0,26.67235265,81.04457944,2014,2009,
242
+ 240,0,27.14728138,81.23415405,2010,2009,
243
+ 241,1,26.96293306,80.8863309,2010,2019,
244
+ 242,0,26.7248213,81.23724822,2015,2009,
245
+ 243,1,26.71829378,81.23596138,2011,2024,
246
+ 244,1,26.71964887,81.23573419,2011,2021,
247
+ 245,0,26.71686011,81.24017235,2014,2009,
248
+ 246,1,26.8904497,81.16973377,2011,2015,
249
+ 247,1,26.88590444,81.17412462,2011,2020,
250
+ 248,1,26.84085468,81.14505591,2011,2017,
251
+ 249,1,26.84210973,81.14177116,2013,2009,
252
+ 250,0,26.95175456,80.8748098,2010,2009,
253
+ 251,0,26.95438422,80.878928,2010,2009,
254
+ 252,1,26.95375534,80.87447213,2010,2020,
255
+ 253,1,26.95456072,80.87498158,2015,2009,
256
+ 254,1,26.94750741,80.87745201,2020,2021,
257
+ 255,0,26.90977473,81.01289078,2010,2009,
258
+ 256,0,26.76563153,81.21846064,2011,2009,
259
+ 257,1,26.87896922,81.11505546,2014,2009,
260
+ 258,0,26.88294541,81.10765909,2011,2009,
261
+ 259,1,26.8818412,81.10506988,2011,2009,
262
+ 260,1,26.71643634,81.19610613,2011,2021,
263
+ 261,1,26.71829938,81.1944107,2011,2020,
264
+ 262,1,26.99614842,81.06801639,2011,2018,
265
+ 263,0,26.94122024,81.06248602,2011,2009,
266
+ 264,1,26.84652181,81.1694955,2015,2009,
267
+ 265,0,26.99339922,81.14379055,2010,2009,
268
+ 266,0,27.18466717,81.09708558,2010,2009,
269
+ 267,0,26.92749069,81.0169235,2010,2009,
270
+ 268,0,26.68294234,80.84192109,2010,2009,
271
+ 269,1,26.67679371,80.84270438,2010,2018,
272
+ 270,1,26.83750368,81.15776414,2013,2009,
273
+ 271,0,27.11539195,80.86896322,2011,2009,
274
+ 272,1,26.88157185,81.09845082,2011,2022,
275
+ 273,1,26.88182495,81.10510403,2011,2009,
276
+ 274,1,27.17151605,80.69665024,2012,2015,
277
+ 275,0,27.17182691,80.70170517,2012,2009,
278
+ 276,0,27.17309732,80.69743115,2012,2009,
279
+ 277,0,26.74300064,81.04195354,2010,2009,
280
+ 278,0,27.1286687,80.85463933,2011,2009,
281
+ 279,0,27.10400854,81.22391495,2010,2009,
282
+ 280,1,27.11050273,80.71548231,2018,2009,
283
+ 281,0,26.71800016,81.21224118,2013,2009,
284
+ 282,1,26.78203373,81.12520517,2011,2017,
285
+ 283,0,26.98955276,81.11018213,2011,2009,
286
+ 284,0,26.98996214,81.11372734,2010,2009,
287
+ 285,1,26.61299701,80.95665454,2011,2018,
288
+ 286,1,27.1039353,80.74870301,2012,2018,
289
+ 287,1,26.67163446,80.79343031,2010,2014,
290
+ 288,0,27.13978387,80.73582031,2013,2009,
291
+ 289,0,27.13877171,80.73461254,2012,2009,
292
+ 290,0,26.71411839,80.91354458,2014,2009,
293
+ 291,1,26.70999004,81.18686912,2011,2019,
294
+ 292,1,26.71296513,81.18581426,2011,2021,
295
+ 293,1,26.71435417,81.18722003,2013,2021,
296
+ 294,1,26.71323107,81.19155226,2011,2020,
297
+ 295,1,26.89559594,81.16316029,2011,2009,in 2023 got converted from circular to zigzag
298
+ 296,0,26.71075638,81.17857739,2017,2009,
299
+ 297,1,26.70584321,81.1791934,2013,2015,
300
+ 298,0,27.16992204,80.92681764,2012,2009,
301
+ 299,1,26.61129641,80.82821913,2010,2009,
302
+ 300,1,26.91744471,81.03578131,2010,2017,
303
+ 301,1,26.93831341,81.04762655,2011,2017,
304
+ 302,1,26.94292336,81.04924325,2011,2015,
305
+ 303,1,26.94443907,81.04549589,2010,2016,
306
+ 304,0,27.04847587,81.01371208,2010,2009,
307
+ 305,0,27.05807155,81.19927858,2010,2009,
308
+ 306,0,27.0413698,81.02821735,2010,2009,
309
+ 307,1,27.15557576,80.9073851,2011,2021,
310
+ 308,1,26.78219449,81.10897705,2011,2019,
311
+ 309,0,26.77575637,81.10805762,2011,2009,
312
+ 310,0,27.02581355,80.9052708,2011,2009,
313
+ 311,1,26.95889625,80.91082555,2010,2019,
314
+ 312,1,26.95524767,80.91448318,2010,2023,
315
+ 313,0,26.96340748,80.90712473,2010,2009,
316
+ 314,1,27.08874266,80.90495105,2011,2022,
317
+ 315,1,26.73267278,81.10496847,2014,2020,
318
+ 316,0,27.02583072,80.90528161,2011,2009,
319
+ 317,0,26.7728667,81.16689885,2015,2009,
320
+ 318,1,26.7739829,81.16881417,2015,2024,
321
+ 319,0,26.77119307,81.17124364,2013,2009,
322
+ 320,0,26.77209124,81.17240203,2015,2009,
323
+ 321,1,26.7749126,81.17553356,2019,2009,
324
+ 322,0,27.13920999,80.72523981,2018,2009,
325
+ 323,1,26.95619672,81.03257921,2011,2020,
326
+ 324,1,26.93262661,81.06010475,2011,2009,in 2017 got converted from circular to zigzag
327
+ 325,0,26.93004089,81.06220146,2011,2009,
328
+ 326,1,26.93297789,81.0570174,2011,2009,in 2017 got converted from circular to zigzag
329
+ 327,1,27.12942469,80.74512349,2012,2023,
330
+ 328,0,27.13093795,80.74748918,2012,2009,
331
+ 329,0,26.72156459,81.18687389,2011,2009,
332
+ 330,0,26.71673509,81.19149979,2011,2009,
333
+ 331,1,26.71829532,81.19439986,2011,2020,
334
+ 332,1,26.76499485,81.2351426,2011,2024,
335
+ 333,0,26.81967412,81.17790082,2017,2009,
336
+ 334,1,26.73453836,81.15879828,2011,2009,in 2019 got converted from circular to zigzag
337
+ 335,1,26.73239025,81.15990121,2011,2009,in 2020 got converted from circular to zigzag
338
+ 336,1,26.73064168,81.1607005,2011,2022,
339
+ 337,0,26.73309953,81.16471744,2011,2009,
340
+ 338,1,26.95016353,81.02534312,2010,2018,
341
+ 339,0,26.73306797,81.16474183,2011,2009,
342
+ 340,1,26.72991411,81.1662542,2020,2009,
343
+ 341,0,26.6933291,81.06633463,2012,2009,
344
+ 342,0,27.12891162,81.21225465,2011,2009,
345
+ 343,1,26.71718242,80.95630198,2010,2009,in 2013 got converted from circular to zigzag
346
+ 344,1,26.71555016,80.96193046,2010,2015,
347
+ 345,1,26.7244857,80.90802786,2011,2022,
348
+ 346,1,26.88884733,81.10274181,2011,2020,
349
+ 347,1,26.7804375,81.11596125,2022,2009,
350
+ 348,1,26.78208132,81.12525453,2011,2017,
351
+ 349,1,26.96267681,80.87866578,2011,2021,
352
+ 350,1,26.96444555,80.88129565,2012,2019,
353
+ 351,0,26.95588322,80.88170877,2012,2009,
354
+ 352,1,26.70915425,81.15645577,2011,2020,
355
+ 353,0,26.71149487,81.16533102,2011,2009,
356
+ 354,1,26.88820018,81.22178869,2011,2019,
357
+ 355,0,26.8900409,81.2251826,2011,2009,
358
+ 356,0,26.70663697,81.06943457,2011,2009,
359
+ 357,0,26.62358824,80.98416342,2013,2009,
360
+ 358,0,26.98402583,81.12963309,2015,2009,
361
+ 359,1,27.08794678,81.06313904,2010,2018,
362
+ 360,1,26.8722573,81.20860616,2015,2009,
363
+ 361,0,26.87248068,81.21268872,2015,2009,
364
+ 362,1,26.8789016,81.11510175,2014,2009,
365
+ 363,0,26.86338572,81.14442585,2017,2009,
366
+ 364,1,26.69043548,81.0544729,2012,2020,
367
+ 365,0,26.68833904,81.06379887,2012,2009,
368
+ 366,0,26.69492606,81.056593,2012,2009,
369
+ 367,0,26.80173904,81.17675073,2017,2009,
370
+ 368,0,26.82783592,81.19645322,2017,2009,
371
+ 369,0,26.6100112,81.17624009,2011,2009,
372
+ 370,1,26.60697411,81.17699118,2017,2009,
373
+ 371,0,26.95990902,80.90145889,2010,2009,
374
+ 372,1,26.95819107,80.90145617,2010,2018,
375
+ 373,0,26.95910065,80.89977068,2010,2009,
376
+ 374,1,27.17577722,80.87687855,2012,2014,
377
+ 375,1,26.95879102,81.0554568,2011,2021,
378
+ 376,0,27.11522435,80.74239547,2012,2009,
379
+ 377,1,27.11681964,80.73688394,2012,2020,
380
+ 378,1,27.11772401,80.7446663,2012,2009,in 2020 got converted from circular to zigzag
381
+ 379,1,26.82779276,81.16900724,2019,2009,
382
+ 380,0,27.0639145,80.94912607,2017,2009,
383
+ 381,1,26.95375096,80.87442585,2010,2020,
384
+ 382,1,26.95458903,80.87497621,2015,2009,
385
+ 383,0,26.95169968,80.87479606,2010,2009,
386
+ 384,1,26.8423319,81.1680068,2020,2009,
387
+ 385,0,26.85056795,81.2353392,2011,2009,
388
+ 386,0,27.13903572,80.6934508,2012,2009,
389
+ 387,0,27.0245332,80.92140276,2011,2009,
390
+ 388,0,26.7114897,81.16535177,2011,2009,
391
+ 389,0,26.7069279,81.16565656,2012,2009,
392
+ 390,0,26.71047112,81.17137695,2011,2009,
393
+ 391,1,26.71026418,81.17042067,2021,2009,
394
+ 392,1,26.91539894,81.23268621,2011,2017,
395
+ 393,1,26.95526653,80.91451672,2010,2023,
396
+ 394,0,26.96530443,80.91419066,2010,2009,
397
+ 395,1,27.03181274,80.94500483,2011,2024,
398
+ 396,1,26.82422367,81.20062866,2021,2009,
399
+ 397,0,27.13730499,80.82634837,2017,2009,
400
+ 398,0,26.71418673,81.15116997,2011,2009,
401
+ 399,0,26.69503478,81.05662488,2012,2009,
402
+ 400,1,26.69802261,80.83992778,2010,2009,in 2020 got converted from circular to zigzag
403
+ 401,0,27.0500564,81.23012792,2010,2009,
404
+ 402,0,26.71723424,81.21688891,2011,2009,
405
+ 403,0,26.72010069,81.22426592,2011,2009,
406
+ 404,1,26.71833146,81.22339474,2011,2020,
407
+ 405,1,26.7151371,81.22000359,2011,2020,
408
+ 406,1,26.72489293,81.14858085,2013,2019,
409
+ 407,1,26.88074658,81.13659462,2011,2016,
410
+ 408,0,26.94280278,81.16418045,2011,2009,
411
+ 409,0,26.93741389,81.16102047,2011,2009,
412
+ 410,0,26.94013288,81.16188041,2011,2009,
413
+ 411,1,26.64195928,80.85230161,2012,2009,
414
+ 412,0,26.66184525,81.03210445,2013,2009,
415
+ 413,0,26.69973925,81.0489701,2012,2009,
416
+ 414,1,26.96385327,81.04727973,2010,2015,
417
+ 415,1,26.95884566,81.05538619,2011,2021,
418
+ 416,0,26.86866809,81.22862224,2011,2009,
419
+ 417,1,26.87329337,81.22931204,2011,2020,
420
+ 418,0,27.02260814,80.90634482,2011,2009,
421
+ 419,1,26.88497139,81.21053956,2011,2022,
422
+ 420,1,27.12753329,80.73482415,2012,2009,
423
+ 421,1,27.12941511,80.74515868,2012,2023,
424
+ 422,1,27.12976669,80.73590669,2021,2009,
425
+ 423,0,27.129911,80.73501113,2012,2009,
426
+ 424,0,27.12596245,80.73651318,2012,2009,
427
+ 425,0,26.70215646,81.13192576,2017,2009,
428
+ 426,1,26.67599793,81.03310694,2021,2009,
429
+ 427,1,26.70407779,81.14998217,2012,2021,
430
+ 428,1,26.61591568,80.94872877,2013,2009,
431
+ 429,1,27.07020662,80.96537524,2011,2024,
432
+ 430,0,26.97976161,81.18768294,2010,2009,
433
+ 431,1,26.7022549,81.06857082,2012,2017,
434
+ 432,1,26.69698991,81.06845249,2012,2021,
435
+ 433,0,26.96790357,81.21465072,2010,2009,
436
+ 434,0,26.96625619,81.22531325,2010,2009,
437
+ 435,0,26.79671137,81.05219648,2011,2009,
438
+ 436,1,26.79914345,81.05438874,2011,2009,in 2017 got converted from circular to zigzag
439
+ 437,1,26.7954041,81.05352162,2011,2018,
440
+ 438,1,26.7235763,80.94909249,2010,2020,
441
+ 439,1,26.71753943,80.94996176,2010,2009,in 2016 got converted from circular to zigzag
442
+ 440,1,26.91367676,81.04145397,2010,2019,
443
+ 441,0,27.062931,80.95610493,2011,2009,
444
+ 442,1,26.72515516,81.13684443,2011,2020,
445
+ 443,0,27.13434797,80.71970936,2015,2009,
446
+ 444,0,26.65590507,80.70841423,2010,2009,
447
+ 445,0,27.12866188,80.85456363,2011,2009,
448
+ 446,0,26.71985625,81.15846796,2011,2009,
449
+ 447,1,26.7221966,81.16059825,2011,2020,
450
+ 448,1,26.72070926,81.15888832,2011,2019,
451
+ 449,0,27.138816,80.7345804,2012,2009,
452
+ 450,1,27.13922447,80.72523473,2018,2009,
453
+ 451,0,26.68849249,80.78541249,2015,2009,
454
+ 452,0,26.68504825,80.78486791,2017,2009,
455
+ 453,1,26.63937331,80.85986367,2012,2018,
456
+ 454,1,26.71162161,81.20584261,2011,2024,
457
+ 455,1,26.71054553,81.21236195,2011,2024,
458
+ 456,1,26.87859395,81.12665768,2012,2009,
459
+ 457,1,26.77498194,81.17550792,2019,2009,
460
+ 458,1,26.7326389,81.1049528,2014,2020,
461
+ 459,0,27.12086347,80.75097083,2012,2009,
462
+ 460,1,27.11774669,80.74463448,2012,2009,in 2020 got converted from circular to zigzag
463
+ 461,1,26.6347301,81.14614522,2012,2024,
464
+ 462,0,26.63392202,81.15375195,2012,2009,
465
+ 463,1,26.77646741,81.24443581,2011,2024,
466
+ 464,1,26.63038702,80.97071623,2011,2009,
467
+ 465,1,26.63102248,80.9708175,2011,2009,
468
+ 466,1,26.86575744,81.16034396,2011,2020,
469
+ 467,1,26.87540794,81.17943817,2011,2009,
470
+ 468,0,26.67411902,80.94574678,2010,2009,in 2012 got converted from zigzag to fcb
471
+ 469,1,26.85561692,81.15324201,2011,2024,
472
+ 470,0,26.86348851,81.14441763,2017,2009,
473
+ 471,1,26.9941613,81.058132,2015,2009,
474
+ 472,1,27.1175472,81.1779843,2010,2022,
475
+ 473,0,26.70139483,80.93894024,2011,2009,
476
+ 474,1,26.71310127,80.95566747,2011,2015,
477
+ 475,0,27.02592118,80.92089614,2011,2009,
478
+ 476,1,26.914755,81.02922197,2010,2016,
479
+ 477,1,26.91429555,81.03148594,2010,2016,
fcb_zigzag.py ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import pandas as pd
3
+ import plotly.express as px
4
+ import plotly.graph_objs as go
5
+
6
+ # Load the CSV file
7
+ file = "brick_kiln_lucknow_v1.csv" # Replace with the correct path to your CSV file
8
+ data = pd.read_csv(file)
9
+
10
+ # Streamlit app title
11
+ st.markdown("<h2 style='text-align: center;'>Brick Kiln Location and Conversion Visualization</h2>", unsafe_allow_html=True)
12
+
13
+ # Slider to select the year
14
+ year_selected = st.slider("Select the Year", min_value=int(data["Year made"].min()), max_value=int(data["fcb to zigzag"].max()), value=int(data["Year made"].min()), step=1)
15
+ filtered_data = data[data["Year made"] <= year_selected]
16
+
17
+ # # Calculate the change in fcbk to zigzag by checking the 'fcb to zigzag' column
18
+ filtered_data["Conversion"] = filtered_data.apply(
19
+ lambda row: "Converted" if row["Year made"] != row["fcb to zigzag"] else "No Conversion", axis=1
20
+ )
21
+
22
+
23
+ # Function to determine the status of each kiln based on the selected year
24
+ def get_status(row, year_selected):
25
+ if row["fcb to zigzag"]==2009:
26
+ return "fcbk"
27
+ elif year_selected == row["fcb to zigzag"]:
28
+ return "converted"
29
+ else:
30
+ return "zigzag"
31
+
32
+
33
+
34
+ # Apply the status function to each row
35
+ data["Status"] = data.apply(lambda row: get_status(row, year_selected), axis=1)
36
+ filtered_data_conv = data[data["Year made"] <= year_selected]
37
+ filtered_data_conv["Type"] = filtered_data_conv["Type"].map({0: "fcbk", 1: "zigzag"})
38
+ filtered_data["Type"] = filtered_data["Type"].map({0: "fcbk", 1: "Zigzag"})
39
+ # Count the total brick kilns, fcbk, zigzag, and conversions
40
+ total_kilns = len(filtered_data)
41
+ fcbk_count = filtered_data[(filtered_data["Type"] == "fcbk")].shape[0]
42
+ zigzag_count = filtered_data_conv[(filtered_data_conv["Type"] == 'zigzag')].shape[0]
43
+ converted_count = filtered_data_conv[filtered_data_conv["Status"] == "converted"].shape[0]
44
+
45
+
46
+ # Display the total count and conversions
47
+ st.subheader(f"Total Brick Kilns up to Year {year_selected}: {total_kilns}")
48
+ st.write(f"Fcbk: {fcbk_count}",' and ' f"Zigzag: {zigzag_count}")
49
+ # st.write(f"fcbk: {fcbk_count}")
50
+ # st.write(f"zigzag: {zigzag_count}")
51
+ st.write(f"Converted from fcbk to zigzag: {converted_count}")
52
+
53
+
54
+ # Plotting the filtered data points on a map, with different colors for statuses
55
+ fig_filtered = px.scatter_mapbox(
56
+ data,
57
+ lat="Lat",
58
+ lon="Lon",
59
+ color="Status",
60
+ color_discrete_map={"fcbk": "blue", "converted": "green", "zigzag": "red"}, # Set colors for fcbk, converted, and zigzag kilns
61
+ mapbox_style="carto-positron",
62
+ hover_name="Type",
63
+ zoom=8.5,
64
+ center={"lat": 26.8467, "lon": 80.9462},
65
+ title=f"Brick Kiln Locations and Status up to Year {year_selected}",
66
+ height=600,
67
+ width=600
68
+ )
69
+
70
+ # # Display the map in Streamlit
71
+ # st.plotly_chart(fig_filtered)
72
+
73
+ # Yearly count of fcbk and zigzag kilns up to the selected year
74
+ yearly_summary = filtered_data.groupby("Year made")["Type"].value_counts().unstack(fill_value=0)
75
+
76
+ # Adjust the layout to display the table next to the map
77
+ col1, col2 = st.columns([3, 1.5])
78
+
79
+ with col1:
80
+ st.plotly_chart(fig_filtered)
81
+
82
+ with col2:
83
+ st.subheader("Yearly Kiln Made")
84
+ st.dataframe(yearly_summary)
85
+
86
+ # Historical data for brick kilns
87
+ years = [2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022]
88
+ brick_kilns_total = [117, 314, 376, 396, 408, 432, 433, 454, 461, 466, 470, 477, 478]
89
+ brick_kilns_fcb = [52, 127, 159, 171, 178, 191, 192, 206, 208, 209, 209, 209, 209]
90
+ brick_kilns_zigzag = [65, 187, 217, 225, 230, 241, 241, 248, 253, 257, 261, 268, 269]
91
+
92
+ # Creating the line plot for the number of brick kilns over the years
93
+ fig_line = go.Figure()
94
+
95
+ fig_line.add_trace(go.Scatter(x=years, y=brick_kilns_total, mode='lines+markers', name='Total Brick Kilns', line=dict(color='red')))
96
+ fig_line.add_trace(go.Scatter(x=years, y=brick_kilns_fcb, mode='lines+markers', name='FCBTK', line=dict(color='blue')))
97
+ fig_line.add_trace(go.Scatter(x=years, y=brick_kilns_zigzag, mode='lines+markers', name='Zigzag Brick Kilns', line=dict(color='green')))
98
+
99
+ # Adding labels and title to the line chart
100
+ fig_line.update_layout(
101
+ title="Number of Brick Kilns Over Years in Lucknow",
102
+ xaxis_title="Years",
103
+ yaxis_title="Number of Brick Kilns",
104
+ yaxis=dict(tickmode='linear', tick0=0, dtick=25,showgrid=False),
105
+ width=900
106
+ )
107
+
108
+ # Adding vertical line for the selected year
109
+ fig_line.add_vline(x=year_selected, line_dash="dash", line_color="black", annotation_text=f"Year {year_selected}")
110
+ # Displaying the line chart
111
+ st.plotly_chart(fig_line)
112
+
113
+ # # Emission factors
114
+ # emission_factor_pm25_fcb = 15000 * 6.8 # grams/day per FCB kiln
115
+ # emission_factor_pm10_fcb = 15000 * 4.08 # grams/day per FCB kiln
116
+ # emission_factor_pm25_zigzag = 15000 * 3.5 # grams/day per Zigzag kiln
117
+ # emission_factor_pm10_zigzag = 15000 * 2.1 # grams/day per Zigzag kiln
118
+
119
+ # # Calculating annual emissions for each year
120
+ # emission_pm25 = []
121
+ # emission_pm10 = []
122
+
123
+ # for fcb, zigzag in zip(brick_kilns_fcb, brick_kilns_zigzag):
124
+ # annual_emission_pm25 = (fcb * emission_factor_pm25_fcb + zigzag * emission_factor_pm25_zigzag) * 365 / 1e6 # Convert to metric tons
125
+ # annual_emission_pm10 = (fcb * emission_factor_pm10_fcb + zigzag * emission_factor_pm10_zigzag) * 365 / 1e6 # Convert to metric tons
126
+ # emission_pm25.append(annual_emission_pm25)
127
+ # emission_pm10.append(annual_emission_pm10)
128
+
129
+ # # Creating the plot
130
+ # fig = go.Figure()
131
+
132
+ # fig.add_trace(go.Scatter(x=years, y=emission_pm25, mode='lines+markers', name='PM2.5 Emissions', line=dict(color='orange')))
133
+ # fig.add_trace(go.Scatter(x=years, y=emission_pm10, mode='lines+markers', name='PM10 Emissions', line=dict(color='blue')))
134
+
135
+ # # Adding labels and title to the line chart
136
+ # fig.update_layout(
137
+ # title="Annual PM2.5 and PM10 Emissions from Brick Kilns in Lucknow",
138
+ # xaxis_title="Year",
139
+ # yaxis_title="Annual Emissions (Metric Tons)",
140
+ # yaxis=dict(tickmode='linear', tick0=0, dtick=50),
141
+ # width=900
142
+ # )
143
+
144
+ # # Displaying the plot
145
+ # fig.show()
requirements.txt ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ folium
2
+ streamlit==1.33.0
3
+ pandas
4
+ numpy
5
+ scipy
6
+ matplotlib
7
+ geopandas==0.10.2
8
+ itertools
9
+ operator
10
+ huggingface-hub