Skip to content

Instantly share code, notes, and snippets.

@james-brennan
james-brennan / gdal2image.py
Last active September 19, 2018 20:07
Python wrapper around `gdaldem color-relief`to produce a colourised image of any raster format with gdal.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Basically a wrapper around
gdaldem color-relief which allows
automation of images and specifying
some nice color features etc
"""
import argparse
import matplotlib
@james-brennan
james-brennan / MODIS_tiles.txt
Created November 28, 2017 17:46
Corners of the MODIS 500m tiles in the MODIS sinusoidal projection
h00v08 -20015109.354 1111950.51967 -18903158.8343 0.0
h32v07 15567307.2753 2223901.03933 16679257.795 1111950.51967
h00v09 -20015109.354 0.0 -18903158.8343 -1111950.51967
h33v10 16679257.795 -1111950.51967 17791208.3147 -2223901.03933
h32v08 15567307.2753 1111950.51967 16679257.795 0.0
h00v10 -20015109.354 -1111950.51967 -18903158.8343 -2223901.03933
h32v09 15567307.2753 0.0 16679257.795 -1111950.51967
h01v07 -18903158.8343 2223901.03933 -17791208.3147 1111950.51967
h33v11 16679257.795 -2223901.03933 17791208.3147 -3335851.559
h01v08 -18903158.8343 1111950.51967 -17791208.3147 0.0