Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: pixel driller frontend #251

Merged
merged 1 commit into from
Feb 6, 2025
Merged

Conversation

eatyourgreens
Copy link
Contributor

@eatyourgreens eatyourgreens commented Jan 29, 2025

Show a set of tables with hazard values for all epochs and RCP values at a selected lat/long point on the map.

Screenshot of the Risks screen, showing a set of tables on the righthand side of the screen. The tables list cyclone speed (m/s) and flooding depth (m) for all available epochs and RCP values.

@eatyourgreens eatyourgreens force-pushed the pixel-driller-frontend branch 30 times, most recently from 434806c to 9d8da31 Compare February 4, 2025 15:56
@eatyourgreens eatyourgreens force-pushed the pixel-driller-frontend branch 7 times, most recently from bc7a8e1 to ddf3585 Compare February 6, 2025 15:13
@eatyourgreens eatyourgreens force-pushed the pixel-driller-frontend branch from ddf3585 to d31cedd Compare February 6, 2025 15:23
@eatyourgreens eatyourgreens marked this pull request as ready for review February 6, 2025 18:40
@eatyourgreens eatyourgreens merged commit 717aa38 into pixel-driller Feb 6, 2025
2 checks passed
@eatyourgreens eatyourgreens deleted the pixel-driller-frontend branch February 6, 2025 18:41
eatyourgreens added a commit that referenced this pull request Feb 6, 2025
* feat: pixel driller API

The pixel driller API converts many single-band raster files into one gigantic multi-band raster file with each band tagged with its initial file name.
The API will return the value for any given pixel on the `/{x}/{y}` endpoint.

The first time it is run, or anytime the source rasters are updated, the ingestion process will need to be rerun by sending a POST request to the `/reimport` endpoint with `{"code": str}` matching the `ADMIN_CODE` envvar.

* fix: volumes must be a list

* fix: docker-compose setup

* Drop reimport endpoint

* Format with black

* Rewrite pixel_driller with xarray and zarr

* Include metadata in response; change to columnar format

* Test metadata join

* Simplify reshaping

* Expand docs; dict equality

* Check query is within bounds of grids

* Tidy metadata handling

* Small fixes
- make sure `libgdal-dev` is installed during the Docker build.
- update VSCode settings.

* feat: pixel driller frontend (#251)

First pass at a frontend for the pixel-driller API. Clicking anywhere on the map opens a righthand sidebar panel with tables of hazard information for that point.

---------

Co-authored-by: Tom Russell <tom.russell@ouce.ox.ac.uk>
Co-authored-by: Fred Thomas <fred.thomas@eci.ox.ac.uk>
Co-authored-by: Jim O'Donnell <james.odonnell@dtc.ox.ac.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant