Skip to content

Instantly share code, notes, and snippets.

oeon / gist:33f609c3502918d4a7c3
Last active August 29, 2015 14:18
Processing Landsat 8 imagery in Windows with OSGeo4W Shell and ImageMagick
View gist:33f609c3502918d4a7c3
::modified from Mapbox's guide for Windows
::requires OSGeo4W Shell (comes installed with QGIS) and ImageMagick
::I paste all of the lines below into the OSGeo4W Shell which I've changed directory to my expanded Landsat archive e.g. `C:\Users\joe\Downloads\LC80430352015089LGN00.tar>`
::establish an id variable
SET id=LC81600432014154LGN00
::use a for loop to reproject each of the bands you will be working with.
FOR %B in (4,3,2) DO gdalwarp -t_srs EPSG:3857 %id%"_B"%B.tif %B-projected.tif

MODIS downloads are stored as .hdf files which makes them non-trivial to interact with.

I've previously mentioned using HEG but for a more streamlined approach we're going to want to use gdal.

Compiling GDAL with HDF4 support can actually be done fairly easily using brew although information on this was a bear to find. Thanks to Wood Sun we can do this via three commands

brew tap homebrew/versions
brew install hdf4
brew install --with-hdf4
# Beta-quality Landsat 8-oriented windowed pansharpener by Charlie Loyd
# python3 $SCENE/*B{4,3,2,8}.TIF ${SCENE}-pansharp.tif
# Then you may want something like this to brighten it up:
# convert -channel B -gamma 0.96 -channel RGB -sigmoidal-contrast 40,14% ${SCENE}-pansharp.tif ${SCENE}-pretty.tif
# But that will strip geo tags.
import asyncio
import rasterio as rio
briantjacobs /
Last active March 24, 2021 16:42
Storytelling from Space

Storytelling from Space: Tools/Resources

This list of resources is all about acquring and processing aerial imagery. It's generally broken up in three ways: how to go about this in Photoshop/GIMP, using command-line tools, or in GIS software, depending what's most comfortable to you. Often these tools can be used in conjunction with each other.

Acquiring Landsat & MODIS

Web Interface

  • Landsat archive

This is my default career advice for people starting out in geo/GIS, especially remote sensing, adapted from a response to a letter in 2013.

I'm currently about to start a Geography degree at the University of [Redacted] at [Redacted] with a focus in GIS, and I've been finding that I have an interest in working with imagery. Obviously I should take Remote Sensing and other similar classes, but I'm the type of person who likes to self learn as well. So my question is this: What recommendations would you give to a student who is interested in working with imagery? Are there any self study paths that you could recommend?

I learned on my own and on the job, and there are a lot of important topics in GIS that I don’t know anything about, so I can’t give comprehensive advice. I haven’t arrived anywhere; I’m just ten minutes ahead in the convoy we’re both in. Take these recommendations critically.

Find interesting people. You’ll learn a lot more from a great professor (or mentor, or friend, or conference) o