coincident.io.download.fetch_neon_lpc_tiles#
- coincident.io.download.fetch_neon_lpc_tiles(aoi, datetime_str, site_id, output_dir=None)#
Fetch NEON LPC tile bboxes as a GeoDataFrame (in EPSG:4326), optionally writing to disk as a GeoJSON. This function uses regex and assumes a tile size of 1km for all NEON tiles given the necessity for client-side spatial filtering and no PDAL
- Steps:
Convert the datetime string to YYYY-MM for the API query.
Determine the appropriate UTM CRS for spatial filtering.
Query the NEON API for LPC files.
Filter files whose 1km tile intersects the AOI in UTM.
Parse each filename for its lower left UTM corner, build a 1km box.
Assemble into a GeoDataFrame and reproject to EPSG:4326.
If output_dir is provided, save the GeoDataFrame as lpc_tiles.geojson.
- Parameters:
- Returns:
Tile extent polygons in lon/lat.
- Return type:
gpd.GeoDataFrame