Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yannforget/foss4g
Presentation: Automated remote sensing with Python
https://github.com/yannforget/foss4g
foss4g python remote-sensing
Last synced: about 1 month ago
JSON representation
Presentation: Automated remote sensing with Python
- Host: GitHub
- URL: https://github.com/yannforget/foss4g
- Owner: yannforget
- License: mit
- Created: 2016-09-21T23:47:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-22T00:08:57.000Z (over 8 years ago)
- Last Synced: 2024-01-29T20:54:38.029Z (12 months ago)
- Topics: foss4g, python, remote-sensing
- Language: Jupyter Notebook
- Size: 32.6 MB
- Stars: 9
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Automated urban remote sensing with Python
## Setup
### Python environment
Using [Anaconda distribution](https://www.continuum.io/downloads):
``` bash
# Create a new virtual environment
conda create --name remotesensing python
source activate remotesensing# Install packages
conda install numpy scipy scikit-learn matplotlib \
pandas psycopg2 rasterio fiona \
jupyter
```### Run the notebook
``` bash
# Clone the repository
git clone https://github.com/yannforget/foss4g.git your_directory
cd your_directory# Start jupyter notebook
jupyter notebook
```### Populate a local PostGIS database with OSM data
Using [`osm2pgsql`](https://github.com/openstreetmap/osm2pgsql):
``` bash
# Start postgres if needed
sudo systemctl start postgres.service# Login using psql
psql -U postgres
`````` sql
CREATE DATABASE your_database;
\connect your_database;
CREATE EXTENSION postgis
`````` bash
# Populate the database
osqm2pgsql --slim --create --multi-geometry --prefix osm \
--database your_database --proj 32630 data/ouagadougou.xml
```