Skip to content

Instantly share code, notes, and snippets.

@fdbesanto2
fdbesanto2 / icesat2_shp.py
Created May 6, 2020 19:09 — forked from BzGEO/icesat2_shp.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