Skip to content

Instantly share code, notes, and snippets.

Yuriy Czoli YKCzoli

Block or report user

Report or block YKCzoli

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@YKCzoli
YKCzoli / topShortStories.md
Last active Oct 7, 2018
Short Stories that have filled me with awe
View topShortStories.md
Title Author Link
Chicken Hill Joy Williams link
The Balloon Donald Barthelme link
The President Donald Barthelme link
Game Donald Barthelme link
The Party Donald Barthelme link
The School Donald Barthelme link
The Great Hug Donald Barthelme link
View AerialToronto1954.md

Process

tl;dr

This is the scrappy technical overview of processing the Southern Ontario 1954 imagery. I assume you are familiar with gdal, bash scripting, raster imagery. If you are trying to process similar data and something is unclear, feel free to reach out to me with questions.

I first found the data here:

https://mdl.library.utoronto.ca/air-photos/1954

@YKCzoli
YKCzoli / shapefileConversion.md
Last active Jul 16, 2018
Step through of converting shapefile to geojson with qgis.
View shapefileConversion.md

Converting shapefiles to geojson

####Assumptions

Get the data

We will use the Electoral District and Polling Division shapefiles found on the Elections Ontario site:

View ndvi.py
#!/usr/bin/env python
# ndvi.py red.tif nir.tif output-ndvi.tif
# Calculate NDVI (see Wikipedia). Assumes atmospheric correction.
# (Although I use it without all the time for quick experiments.)
import numpy as np
from sys import argv
from osgeo import gdal, gdalconst
@YKCzoli
YKCzoli / Elevation.md
Last active Aug 29, 2015
Elevation data sources (LiDAR, terrain, etc).
View Elevation.md
View L8FCWatervsLand.sh
#!/bin/bash
echo "Enter bands in descending order, (ie 4 3 2)"
read B1 B2 B3
echo "Enter the resulting filename"
read outputname
@YKCzoli
YKCzoli / MexicoFlood
Last active Aug 29, 2015
Mexico flood waters script
View MexicoFlood
#!/bin/bash
echo "Enter bands (ie 4 3 2)"
read B1 B2 B3
echo "Enter the resulting filename"
read outputname
View mex-post.md

Giving context to open spending data

Historic satellite imagery and flood response

Yesterday the government of Mexico launched datos.gob.mx to open up government data across all ministries. We [built a mapping tool](blog post) for ministries to quickly build rich maps from data on the site. The tool also makes it to combine government data with other open datasets. This provides context and meaning to complex government data.

The first dataset that we mapped was all 2013 funds for disaster response and reconstruction. The map plots thousands of reconstruction projects across 45 natural disasters, including Hurricane Manual and Ingrid which affected two-thirds of Mexico, killing 192 people and causing $75 billion pesos in damage.

This is an incredibily rich and complex dataset. But this data alone is not particularly helpful. We need to better understand the context to understand why government invested funds the w

@YKCzoli
YKCzoli / LAStoolsWine.md
Created Sep 21, 2014
LAStools Via Wine
View LAStoolsWine.md

Running LAStools on your Mac

If you want to use LAStools on OS X you will have to do some prep. This is a brief introduction to get you up and running with LAStools on a Mac in the Terminal.

You may have heard that you should use wine to run LAStools on OS X. Depending on your experience this might sound intuitive, or like utter jibberish. For those who empathize with the latter, let's walk through this.

Homebrew

homebrew

View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://d3js.org/topojson.v1.min.js"></script>
<script>
var width = 960,
height = 720,
origin = [71, -42],
You can’t perform that action at this time.