Skip to content

Reorganize hand fim image.#1108

Closed
groutr wants to merge 1 commit intoNOAA-OWP:tifrom
groutr:fim-new-layout
Closed

Reorganize hand fim image.#1108
groutr wants to merge 1 commit intoNOAA-OWP:tifrom
groutr:fim-new-layout

Conversation

@groutr
Copy link
Copy Markdown
Contributor

@groutr groutr commented Mar 12, 2025

Reorganizes the directory structure to match the latest iteration of the directory structure for an image.

@groutr groutr marked this pull request as ready for review March 17, 2025 15:00
import fsspec

from viz_classes import s3_file, database
from viz_database import VizDatabase
Copy link
Copy Markdown
Contributor Author

@groutr groutr Mar 17, 2025

Choose a reason for hiding this comment

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

The database related changes in this file do seem to rely on #1105.

@groutr groutr mentioned this pull request Mar 20, 2025
@groutr groutr closed this Mar 20, 2025
shawncrawley pushed a commit that referenced this pull request Apr 3, 2025
Summary of changes:

1. Reorganize the directory layout for easier development. Uses
deploy/code directories to simplify image building. Anything in the
deploy/ directory gets uploaded to codebuild and anything in code/
directory gets included in final image.
2. Remove the retry logic from dataset opening/reading. After
considering this code for a bit, I don't think we actually execute it in
any case short of an S3 outage.
3. Cache S3 file reads locally using fsspec. This uses the new opener
interface in rasterio 1.4. Some of the files are opened twice and this
should avoid redownloads by caching locally to a temporary directory.
4. Remove the s3_file import and checks file existence directly on S3
via fsspec.
5. Create a new terraform module for hand-fim image.
6. Edit code for better clarity.

Supersedes #1108
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