coincident.io.download.fetch_noaa_lpc_tiles#
- coincident.io.download.fetch_noaa_lpc_tiles(aoi, dataset_id, output_dir=None)#
Fetch NOAA DEM tile geometries as a GeoDataFrame (in EPSG:4326), optionally writing to disk as a GeoJSON.
This function processes NOAA DEM LAZ files, extracts tile geometries based on filename patterns, filters them by intersection with the provided AOI, and returns a GeoDataFrame in EPSG:4326.
NOTE: regex was necessary here for client-side spatial filtering, otherwise you’d have to make network requests to thousands of laz files
- Steps:
Estimate the appropriate UTM CRS for spatial filtering.
Query the NOAA dataset for LAZ files.
Extract easting and northing from filenames using regex.
Determine tile dimensions by analyzing neighboring tiles.
Construct tile geometries and filter by AOI intersection.
Assemble into a GeoDataFrame and reproject to EPSG:4326.
If output_dir is provided, save the GeoDataFrame as noaa_dem_tiles.geojson.