Skip to content

Instantly share code, notes, and snippets.

View pdbartsch's full-sized avatar

Paul Bartsch pdbartsch

  • UC Santa Barbara
  • 93455
View GitHub Profile
@pdbartsch
pdbartsch / MAPPS California Counties
Created February 28, 2017 16:01
Quick map of California Counties using Bryan McBride's MAPPS tool. See: https://github.com/bmcbride/mapps/blob/gh-pages/README.md
https://bmcbride.github.io/mapps/?
src=https://gist.githubusercontent.com/pdbartsch/4a4ad6c68ab75d597610/raw/4adc6d41320d06e42a43e4075106932ca7b44cd5/ca_counties.geojson
&
icon=http://cdn.mysitemyway.com/etc-mysitemyway/icons/legacy-previews/icons/matte-blue-and-white-square-icons-culture/117332-matte-blue-and-white-square-icon-culture-state-california.png
&
fields=NAMELSAD,STATEFP,COUNTYFP,COUNTYNS
&
sortfield=NAMELSAD
&
title=California%20Counties
@pdbartsch
pdbartsch / map.geojson
Last active May 23, 2016 17:13
building footprints
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pdbartsch
pdbartsch / gist:baeca4c85bda38dec84c5a566e9957d4
Last active April 11, 2016 23:02
OpenStreetMap Overpass, Quantum GIS
* cygwin64 to get wget on windows
* QGIS 2 OpenStreetMap Vectors
QGIS 2.0 integrates OpenStreetMap import as a core functionality. To get OSM data:
Menu "Vector -> Openstreetmap -> Load data" will connect to the OSM server and download data. You can skip this step if you already have a .osm XML file.
"Import topology from an XML file" below will convert your .osm file into a spatialite database, and create a db connection.
"Export topology to Spatialite" then allows you to open the database connection, select the type of data you want (points, lines, polygons) and choose tags to import. This creates a spatialite geometry layer that you can then add to your project via the "add a spatialite layer" menu.
More details here. Note that this process imports raw OSM GIS data not any particular map style/symbology.
@pdbartsch
pdbartsch / process_landsat.sh
Last active March 23, 2017 20:13 — forked from andymason/Landsat 8 gdal processing
Landsat 8 gdal processing
#! /bin/bash
# Forked from: Andy Mason https://gist.github.com/andymason/6780828
# Convert Landsat 8 GeoTIFF images into RGB pan-sharpened JPEGs.
#
# Requirements:
# * gdal http://www.mapbox.com/tilemill/docs/guides/gdal/
# * convert (image-magick)
# * dans-gdal-scripts https://github.com/gina-alaska/dans-gdal-scripts
@pdbartsch
pdbartsch / index.md
Last active September 28, 2023 06:07
Locate, download and process Landsat 8 GeoTIFF images into RGB pan-sharpened JPEGs

Locate, download and process Landsat 8 GeoTIFF images into RGB pan-sharpened JPEGs

Start here

The following steps can get tedious. You're going to need to want it. Get in the mood by viewing some timelapse imagery.

Locate data for download

AWS gererously hosts Landsat imagery. This imagery can be easily searched and downloaded through Development Seed's Libra tool (You'll need to register for a free USGS account). It can be useful to see path & row graphically, so download shapefile or kml from here.

Naming

LXSPPPRRRYYYYDDDGSIVV ##L``X``S``PPP``RRR``YYYY``DDD``G``S``I``VV

@pdbartsch
pdbartsch / .gitignore
Last active August 29, 2015 14:20
Learning d3 again/ still
# Build and Release Folders
bin/
bin-debug/
bin-release/
# Other files and folders
.settings/
# Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties`
# should NOT be excluded as they contain compiler settings and other important
We couldn’t find that file to show.
@pdbartsch
pdbartsch / README.md
Last active August 29, 2015 14:19
UCSB Emergency Assembly Points - DRAFT
  • a working example from Morgan Herlocker got me started
  • pulling external GeoJSON using jQuery at the moment - I've got it setup in this weird way where the request for one data source is nested inside of the other...not real clean looking but it works to avoid async problem I was having
  • would like to integrate Omnivore eventually
  • water color map obviously not the best for a real tool used during an emergency but I like it for testing/learning
  • I'm excited about the posibilities with this seemingly simple filtering using Turf.js
@pdbartsch
pdbartsch / README.md
Last active July 26, 2019 05:57
Turf.js example

Working my way through some turf.js tutorials.

starting here

@pdbartsch
pdbartsch / README.md
Last active August 29, 2015 14:19
Paul's Leaflet template