Skip to content

Instantly share code, notes, and snippets.

@gabrieldance
gabrieldance / l8get
Last active August 29, 2015 14:12 — forked from briantjacobs/l8get
# This is a shell function to quickly grab the data for a given Landsat 8 tile ID from Google's servers
# For example:
# l8get LC81690352014169LGN00
# The echo at the end is to remind myself of the syntax for extracting bands 8, 4, 3, and 2. (Pansharp, Red, Green, Blue)
# On OSX this would go into your ~/.bash_profile file.
# Requires gsutil from https://developers.google.com/storage/docs/gsutil_install
# Most useful in conjunction with USGS' Earth Explorer: http://earthexplorer.usgs.gov/
# These are shell functions to quickly create pansharpened RGB images ready for color correction
# from a set of raw Landsat 8 TIF files in a given directory.
# For example:
# l8_pansharp LC81690352014169LGN00
# Creates:
# LC81690352014169LGN00_rgb_pansharp.tif
# l8_rush_pansharp downloads a L8 tile from Google Storage (if they have it), extracts the relevant bands, then creates the pansharpened output.
/* all single-instance buttons get the .gia-button class */
.gia-button {
display: inline-block;
padding: 8px 22px;
color: #fff;
font-size: 14px;
font-family: Helvetica, Arial, sans-serif;
font-weight: 200;
line-height: 1em;
<style type="text/css">
#gia-header div,
#gia-header h1,
#gia-header p,
#gia-header ul,
#gia-header li {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
<!DOCTYPE html>
<html>
<head>
<title>GIA Button Example</title>
<link rel="stylesheet" type="text/css" href="gia-tabbed-buttons.css">
</head>
<body>
<h1>GIA Button Example</h1>
;(function() {
'use strict';
var giahost = 'http://gia.guim.co.uk';
var giaIframe = document.getElementById('gia-iframe');
if (giaIframe) {
if (giaIframe.dataset.src) {
giaIframe.src = [giaIframe.dataset.src, window.location.hash].join('');
<!DOCTYPE html>
<html>
<head>
<title>GIA Button Example</title>
<link rel="stylesheet" type="text/css" href="gia-tabbed-buttons.css">
</head>
<body>
<h1>GIA Button Example</h1>