Skip to content

Instantly share code, notes, and snippets.

View byersiiasa's full-sized avatar
🎯
Focusing

Edward Byers byersiiasa

🎯
Focusing
View GitHub Profile
@byersiiasa
byersiiasa / multiple shapes to xarray raster.py
Created August 24, 2020 07:13
Use Salem to rasterize a shapefile with multiple geometries to an xarray dataset
import datetime
import numpy as np
import os
import xarray as xr
wd = 'C:\\Users\\xxx\\'
outputs = wd+'outputs_test'
# =============================================================================
# Working version using salem