Comments (8)
I'm facing related issues; but a few steps before trying to get jupyter notebooks to run
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>When you come into the office early to get some non-work work done, you spend 50 minutes getting python and jupyter to (re)install, you forget what task you wanted to do in the first place... #python
— Symbolix (@SymbolixAU) February 11, 2019
from geospatialstroke.
@richardbeare your pyproj installation is misconfigured. I haven't used pip to install the stack in a few years so it's a bit hard to guess what's happening with that install. In general I'd strongly suggest conda + conda-forge for easy management of the python spatial data science stack. On linux, something like:
wget http://bit.ly/miniconda -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
hash -r
conda update conda
conda config --add channels conda-forge --force
conda create --name my_env python=3 --file requirements.txt
source activate my_env
jupyter lab
from geospatialstroke.
OK,
I haven't played with conda - will look into it. We'll need some introduction about the appropriate environments for both R and python in our supplementary material.
from geospatialstroke.
@gboeing Is it possible to render the ipynb to .html
(or .md
) ?
from geospatialstroke.
Yep! Gonna put my son down for bed then return to this in ~30 minutes.
from geospatialstroke.
The conda instructions worked perfectly.
Is it possible to display leaflet map in the notebook?
In the last map, colour should be by stroke count:
folium.Choropleth(gdf_nearby, data=gdf_nearby, columns=['POA_CODE', 'strokes'],
key_on='feature.properties.POA_CODE',
legend_name='Number of strokes', fill_color='YlOrRd').add_to(m)
from geospatialstroke.
I'm working through example 2 - it runs perfectly.
Query on the voronoi tesselation - was the basin expansion step required due to keeping the largest polygon in the previous cell?
Also, the final stroke calculation seems to be different to what we're doing on the R side, if I'm reading it correctly. My thought was to use the proportions of simulated cases from a postcode to drive the calculation. It seems to me that any postcode intersecting a catchment is included, rather than a fraction of a postcode? i.e. we should assign the 1000 sample locations to the containing postcodes, then compute a proportion from each postcode attending each destination, then multiply that by the predicted cases, then add those up.
There are certainly some large areas of nothing in that part of Melbourne (airports and former rural areas that are currently being developed), which could bias calculations in strange ways.
from geospatialstroke.
We'll need some introduction about the appropriate environments for both R and python in our supplementary material.
I'll add this to the subdirectory's readme.
Is it possible to render the ipynb to
.html
(or.md
) ?
I'll include .html versions in the notebooks folder.
Is it possible to display leaflet map in the notebook?
Yes, and they were in an earlier commit, but I removed them because it adds a lot of size to the commits and in turn the repo. Your call on if it's in the notebook directly or not.
In the last map, colour should be by stroke count
I'll adjust accordingly.
was the basin expansion step required due to keeping the largest polygon in the previous cell?
It was because the tessellation left parts of the periphery patchy. As the sample size -> infinity, the patches will disappear, but with a moderate n I wanted to make sure to fill in all the gaps for nice complete basins.
It seems to me that any postcode intersecting a catchment is included, rather than a fraction of a postcode?
I'll adjust accordingly.
from geospatialstroke.
Related Issues (17)
- Data sets for examples HOT 3
- Final steps HOT 30
- R versus python HOT 7
- Visualization consistency HOT 1
- API keys query HOT 9
- googleway & madpeck
- RehabCatchments HOT 1
- RehabCatchment - repeated nodes HOT 1
- The web site HOT 26
- Choropleth - stroke by postcode HOT 7
- Python setup for windows
- critical eye HOT 12
- Markers in tmap HOT 1
- dodgr automatically removing impassable routes for given wt_profile? HOT 3
- Merge branches sooner rather than later HOT 3
- Catchment basins HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geospatialstroke.