Skip to content

Instantly share code, notes, and snippets.

View shanedoolane's full-sized avatar
🐢

Shane Dolan shanedoolane

🐢
View GitHub Profile
@decrispell
decrispell / crop_geotiff.py
Last active October 16, 2024 05:18
quick and dirty geotiff crop using rasterio
import rasterio
# load the geotiff (a DSM in this case) and read the data - only one index in this case
dsm = rasterio.open(dsm_fname)
dsm_data = dsm.read()[0]
# crop the data
dsm_crop = dsm_data[min_y:min_y+height, min_x:min_x+width]
# make a copy of the geotiff metadata
@bryant988
bryant988 / zillow.js
Last active November 17, 2024 17:37
Zillow Image Downloader
/**
* NOTE: this specifically works if the house is for sale since it renders differently.
* This will download the highest resolution available per image.
*/
/**
* STEP 1: Make sure to *SCROLL* through all images so they appear on DOM.
* No need to click any images.