Hi,
I dont know specifically for BLR, but this might be a start:
It might be useful to see code I used to compute the same statistic for
Pune wards:
from area import area
def areas(gjson):
A = []
for entry in gjson['features']:
geom = entry['geometry']
A += [area(geom) if geom['type'] == 'Polygon' else 0]
return A
wardcrds = [avg_coords([ward]) for ward in wards['features']] # wards is a
geojson object (dict/json)
wardarea = areas(wards)
wardpops = [get_ward_pop(ward['properties']['prabhag'])
for ward in wards['features']]
warddens = np.array([pop/ar for pop, ar in zip(wardpops, wardarea)])
the notebook is linked here:
http://s000.tinyupload.com/?file_id=00023234941653471825
<http://s000.tinyupload.com/index.php?file_id=00023234941653471825>
Approach:
- Use 2011 census data to get population
- use an existing geojson mapping of wards
- Use python package `area` to compute area of the region
example usage and heatmap visualization using leafletJS is available online
at: https://punecovidcontain.herokuapp.com/
similar can be done for districts
On Tuesday, April 28, 2020 at 6:06:25 PM UTC+5:30, Sarabjeet Matharu wrote:
>
> Hi
>
> Is anyone compiling district wise population density? If not, I'll start
> the project and would love inputs from more experienced members of this
> group.
>
> Do let me know if you're interested. Any suggestions on how to collaborate
> / track progress would also be welcome.
>
> Thanks,
> Sarabjeet
>
>
> On Wed, Apr 22, 2020 at 6:48 PM blessing isaiah <[email protected]
> <javascript:>> wrote:
>
>> No we dont
>>
>> On Sun, Apr 19, 2020 at 5:57 PM Mitul Jhaveri <[email protected]
>> <javascript:>> wrote:
>>
>>> Do we have data on district wise population density?
>>>
>>> On Sun, 19 Apr, 2020, 2:30 am blessing isaiah, <[email protected]
>>> <javascript:>> wrote:
>>>
>>>> Hi all,
>>>>
>>>> Where can I find wardwise population density data for Bangalore.
>>>>
>>>> Best regards,
>>>> Blessing Isaiah
>>>>
>>>> --
>>>> Datameet is a community of Data Science enthusiasts in India. Know more
>>>> about us by visiting http://datameet.org
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "datameet" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected] <javascript:>.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/datameet/CABxwALaxB-_crFdMgN80TrXeMNROzAutG7iPz9%3DOGWDbTN7b-Q%40mail.gmail.com
>>>>
>>>> <https://groups.google.com/d/msgid/datameet/CABxwALaxB-_crFdMgN80TrXeMNROzAutG7iPz9%3DOGWDbTN7b-Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> Datameet is a community of Data Science enthusiasts in India. Know more
>>> about us by visiting http://datameet.org
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "datameet" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected] <javascript:>.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/datameet/CADzoc9NqSNC60kpscWYtEdkcFQnBk2Y2eS%2BoSLiHyQABQxhAaw%40mail.gmail.com
>>>
>>> <https://groups.google.com/d/msgid/datameet/CADzoc9NqSNC60kpscWYtEdkcFQnBk2Y2eS%2BoSLiHyQABQxhAaw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> Datameet is a community of Data Science enthusiasts in India. Know more
>> about us by visiting http://datameet.org
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "datameet" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/datameet/CABxwALbE%3DCWD53ezS2jUBb5t729rDXEeh1UZE_F%3DfH11E4P9ew%40mail.gmail.com
>>
>> <https://groups.google.com/d/msgid/datameet/CABxwALbE%3DCWD53ezS2jUBb5t729rDXEeh1UZE_F%3DfH11E4P9ew%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>
--
Datameet is a community of Data Science enthusiasts in India. Know more about
us by visiting http://datameet.org
---
You received this message because you are subscribed to the Google Groups
"datameet" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/datameet/6994c148-625f-47cc-82f5-7ac65ea7c659%40googlegroups.com.