Skip to content

StanfordGeospatialCenter/mortalitree_testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mortalitree_testing

Coding experiments to support the mortalitree project. Workflows for generating XYZ tile service URLs from Google Earth Engine, downloading tile imagery, and creating tile boundary grids for analysis.

Repository Structure

mortalitree_testing/
├── data/              # Input AOI files and tile service lookups
├── images/            # (placeholder for screenshots/figures)
├── notebooks/         # Jupyter notebooks — the main workflows
├── output/            # Generated outputs (GeoJSON grids, URL lists)
└── tilesets/          # Downloaded tile imagery (z/x/y folder structure)

Notebooks

Notebook Description
Step_01_get_tile_urls.ipynb Uses Google Earth Engine to mosaic NAIP imagery for each available year over an AOI, then generates XYZ tile service URLs (RGB and IR) and exports them to CSV. (5 sections)
Step_02_get_tiles.ipynb Reads a CSV of tile service URLs and a GeoJSON AOI, computes the set of XYZ tiles at a given zoom level, then downloads tile images in parallel with retry logic, saving them as .jpg in a z/x/y folder structure. (12 sections)
Step_03_tile_grid_generator.ipynb Generates a grid of Web Mercator tile boundary polygons at a specified zoom level that intersect an AOI. Exports tile metadata (ZXY values, centroids, corners) as GeoJSON or CSV (WKT). Includes an interactive leafmap preview of random tiles. (9 sections)

Data

File Description
CZU_Fire_Perimeter_*.geojson CZU Lightning Complex fire perimeter boundary.
DINS_2025_TCU*.geojson TCU September Lightning Complex damage inspection data.
mortalitree_czu_download_bbox.geojson Bounding box AOI for the CZU fire area tile downloads.
stanford_campus.geojson Stanford campus boundary (sample AOI).
SantaClara_TattooParlors_2134.geojson Santa Clara County tattoo parlor locations (point-feature sample AOI).
tile_services.csv Lookup table of named XYZ tile services (OSM, Stamen, GEE NAIP).
gee_tiles.csv 20 Google Earth Engine NAIP tile service URLs (RGB + IR, 2003–2022).

Output

File Description
tile_urls.csv Generated GEE NAIP tile service URLs (RGB + IR, 2003–2022) for use by downstream notebooks.
Z17_CZU_tile_boundary_grid.geojson Zoom-17 tile boundary grid clipped to the CZU fire perimeter.

Key Libraries

License

See LICENSE for details.

About

Coding experiments to support the mortalitree project. Mostly accessing tiles and working with them.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors