Skip to content

Instantly share code, notes, and snippets.

View lewfish's full-sized avatar

Lewis Fishgold lewfish

  • Philadelphia, PA
View GitHub Profile
@lewfish
lewfish / plot_img_grid.py
Created July 23, 2019 23:14
plot a grid of images using matplotlib
import numpy as np
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
fig = plt.figure(constrained_layout=True, figsize=(12, 12))
spec = gridspec.GridSpec(ncols=5, nrows=5, figure=fig)
for i in range(25):
@lewfish
lewfish / rasterio_conversion.ipynb
Last active August 29, 2017 15:29
This Jupyter notebooks shows how to convert a point from a CRS to pixel coordinates and back again.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.