djgroen / covid19-preprocess Goto Github PK
View Code? Open in Web Editor NEWRepo for essential preprocessing scripts for the Covid19 simulations
License: BSD 3-Clause "New" or "Revised" License
Repo for essential preprocessing scripts for the Covid19 simulations
License: BSD 3-Clause "New" or "Revised" License
I went through the slides and was trying to follow the steps. However, there seems to be an error which I am unable to fix when I run the 'extract_*.py' files. The error is as follows:
Traceback (most recent call last):
File "extract_hospitals.py", line 25, in
extract_hospitals(tree)
File "extract_hospitals.py", line 15, in extract_hospitals
print("hospital,{},{},{}".format(p.centroid.x, p.centroid.y, int(calc_geom_area(p))))
File "/home/arindam/Dropbox/Brunel/FACS/PreProcessing/covid19-preprocess/parse_osm.py", line 58, in calc_geom_area
pyproj.Proj('EPSG:4326'),
File "/home/arindam/anaconda3/lib/python3.8/site-packages/pyproj/init.py", line 362, in new
return _proj.Proj.new(self, projstring)
File "_proj.pyx", line 129, in _proj.Proj.cinit
RuntimeError: b'projection not named'
Could someone in the group help me with that?
I have downloaded an OSM map (a .osm file) for a region near my home in Croydon. I was trying to extract the houses, hospitals, parks etc. from the map in order to pre-process the data for FACS simulation. So I ran
python3 extract_hospitals.py maps/home.osm
I am running Python 3.8.8 on Ubuntu 20.04. The list of installed packages I have is attached.
---> Solution shown to work: (by Imran)
From the error you mentioned, it seems your pyproj package is not correctly installed or using the wrong version. Could you update it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.