Skip to content

Instantly share code, notes, and snippets.

View rbavery's full-sized avatar

Ryan Avery rbavery

View GitHub Profile
@rbavery
rbavery / gedi_to_vector.py
Last active January 16, 2023 00:17 — forked from KMarkert/gedi_to_vector.py
Python script to take GEDI level 2 data and convert variables to a geospatial vector format. This fork allows you to get whole-stand level variables such as fhd_normal and the BEAM ID (important for coverage vs power beam type). Usage `python gedi_to_vector.py <path> --variables [<var1>,<var2>,...,<varN>] --outFormat <extension> --filterBounds […
import os
import fire
import h5py
import glob
import tqdm
import numpy as np
import pandas as pd
import geopandas as gpd
# requires fire, h5py, tqdm, numpy, pandas, and geopandas