Skip to content

Zarr + Redis + TileServer = fast custom geospatial maps

Notifications You must be signed in to change notification settings

darothen/angle_grinder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angle_grinder

this project is in ALPHA, beware!

Quick Start

Spin up redis locally, you could do:

$ docker run --rm -n redis -d -p 6739:6379 redis

Install deps

$ python -m venv ./env_angle_grinder
$ source env_angle_grinder/bin/activate
$ pip install -r requirements.txt

Start the server by running:

 uvicorn main:app --reload

Load your dataset into a zarr store using the api directly! Configure redis host and port using envvars REDIS_HOST and REDIS_PORT to load data run the following replacing the contrived names with actual names you want curl -X POST -F netcdf_file=@PATH_TO_FILE.nc http:https://localhost:8000/TEST_DATA_NAME/load_netcdf

hit the endpoints with your web browser or curl! e.g.

go to http:https://localhost:8000/docs for full api reference documentation. go to http:https://localhost:8000/my_test_data/variables to get a list of variables go to http:https://localhost:8000/my_test_data/var_name/4/3/1.png for a z,x,y tile on your data and var... or visit http:https://localhost:8000/my_test_data/var_name/4/3/1.json for corresponding metadata to colorize add a query param my_test_data/var_name/4/3/1.png?colorize=COLOR_MAP_NAME per the available color schemes in "colormap.py"

About

Zarr + Redis + TileServer = fast custom geospatial maps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 89.1%
  • HTML 10.9%