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

Fix tiling #23

Merged
merged 3 commits into from
Apr 29, 2022
Merged

Fix tiling #23

merged 3 commits into from
Apr 29, 2022

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