Skip to content

Instantly share code, notes, and snippets.


Morgan Herlocker morganherlocker

View GitHub Profile

Pansharpening notes, mid-2021

First posted in August 2021. Last corrections in January 2022. This is probably the final version, unless to fix massive errors or to link to a sequel: this is a warts-and-all report, not a living notebook.


This is a collection of notes on how I’ve been approaching convolutional neural networks for pansharpening. It’s an edited version of an e-mail to a friend who had asked about this tweet, so it’s informal and somewhat silly; it’s not as polished as, say, a blog post would be. It’s basically the advice I would give to an image processing hobbyist before they started working on pansharpening.

If you want a more serious introduction, start with the literature review in Learning deep multiresolution representations for pansharpening. Most of the academic work I would recommend is mentioned there.

View simplesytle.js
var options = {
var out = {};
out.color =;
View jquery.js
* jQuery JavaScript Library v2.1.1pre
* Includes Sizzle.js
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
wboykinm / index.html
Last active May 16, 2016
Mapbox.js GeoJSON markers with Google Static Chart API Popups
View index.html
<!doctype html>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<link href='' rel='stylesheet' />
<link href="" rel="stylesheet">
<link rel="stylesheet" href="" />
<link rel='stylesheet' href='' />
body { margin:0; padding:0; }
View gist:8063003
// JavaScript that solves
// Run in Chrome or Firefox console
// Enjoy ;-)
// Some people, when confronted with a problem, think
// “I know, I'll use regular expressions.”
// Now they have two problems.
for(var lvl in levels) {
var fn = function(lvl) {
calvinmetcalf /
Last active Dec 15, 2015
express server bounding boxes

how to set up a quick server that gives you geojson based on a bounding box, your going to need to remember to install express and rtree with

npm install rtree express