Skip to content

Instantly share code, notes, and snippets.

View bzgeo's full-sized avatar

Belize GEO bzgeo

View GitHub Profile
@bzgeo
bzgeo / icesat2_shp.py
Last active January 16, 2023 00:18 — forked from KMarkert/gedi_to_vector.py
Python script to convert from ICESat-2 ATL08 HDF data to shapefile. Usage: 'python icesat2_shp.py <path> --variables [<var1>,<var2>,...,<varN>] --outFormat <extension> --filterBounds [<W>,<S>,<E>,<N>] --verbose'
# based on Kel Markert's GEDI HDF to shapefile conversion script
# https://gist.github.com/KMarkert/c68ccf53260d7b775b836bf2e11e2ec3
import os
import fire
import h5py
import glob
import tqdm
import numpy as np
import pandas as pd