A quick overview of putting things on maps
This repo contains the (myst) markdown, code and data used to produce this talk.
The presentation is part of DSE's EcoTech Series for 2024.
- Visit https://dse.berkeley.edu to learn more
- Live Site: https://schmidtdse.github.io/ecotech_map_something
- clone the repository
git clone https://github.com/SchmidtDSE/ecotech_map_something.git
cd ecotech_map_something
- fetch the data
The data can be downloaded from google-cloud-storage using the gcloud command-line tool (this takes about 1.5 minutes)
gcloud storage cp --recursive ecotech-map-something/data/ .
You can also use the web-interface, and download either as a zip-file, or file by file:
zip-file: https://storage.googleapis.com/ecotech-map-something/data.zip (takes about 3 minutes) folder: https://console.cloud.google.com/storage/browser/ecotech-map-something/data
The "data" directory should be at the root of the repo (ie .../ecotech_map_something/data
) and have structure:
data
├── raster
│ ├── cogs
│ ├── tahoe-dem.tif
│ └── tahoe-mean-s2-20210101_20210301.tif
└── vector
└── CalFires_Boundaries21
├── CalFires_Boundaries21.cpg
├── CalFires_Boundaries21.dbf
├── CalFires_Boundaries21.prj
├── CalFires_Boundaries21.shp
└── CalFires_Boundaries21.shx
- install requirements
Requirements are managed through a conda yaml file. To create/update the ENV_NAME
environment:
# create
mamba env create -f conda-env.yaml
# update
mamba env update -f conda-env.yaml --prune
- run
- notebooks
jupyter lab .
- presentation
myst start
- (optional) launch tile server
cd maptiles
uvicorn app:app --reload
- Map Rasters!
- geotiffs
- projections, crs, and affine-transforms
- xarray
- cogs
- zarr
- leafmap
- Map vectors!
- geopandas
- file-types
- leafmap
- lonboard
- GEE
- code editor
- apps
- geemap
Following PEP8. See setup.cfg for exceptions. Keeping honest with pycodestyle .
and mypy .