Skip to content

SchmidtDSE/ecotech_map_something

Repository files navigation

Map Something

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.


INSTALL

  1. clone the repository
git clone https://github.com/SchmidtDSE/ecotech_map_something.git
cd ecotech_map_something
  1. 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
  1. 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
  1. run
  • notebooks
jupyter lab .
  • presentation
myst start
  • (optional) launch tile server
cd maptiles
uvicorn app:app --reload

OUTLINE

  1. Map Rasters!
    • geotiffs
    • projections, crs, and affine-transforms
    • xarray
    • cogs
    • zarr
    • leafmap
  2. Map vectors!
    • geopandas
    • file-types
    • leafmap
    • lonboard
  3. GEE
    • code editor
    • apps
    • geemap

STYLE-GUIDE

Following PEP8. See setup.cfg for exceptions. Keeping honest with pycodestyle . and mypy .

Releases

No releases published

Packages

No packages published