Skip to content

Conversation

@mpiannucci
Copy link
Contributor

@mpiannucci mpiannucci commented Apr 29, 2022

Tiling doesnt need regridding after all... this fixes the POC for x/y/z tiles

#17

Changes image_router to tile_router and adds a few of parameters

tile_router = APIRouter()

@tile_router.get('/{parameter}/{t}/{z}/{x}/{y}', response_class=Response)
def get_image_tile(parameter: str, t: str, z: int, x: int, y: int, size: int = 256, cmap: str = None, color_range: str = None, dataset: xr.Dataset = Depends(get_dataset)):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No async io here, so remove async to make it concurrent

@mpiannucci mpiannucci marked this pull request as ready for review April 29, 2022 15:03
@mpiannucci mpiannucci merged commit 70da254 into main Apr 29, 2022
@mpiannucci mpiannucci deleted the tile-fixes branch April 29, 2022 19:45
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