Remove inline ArcPy compression and add GDAL backfill tool#9
Remove inline ArcPy compression and add GDAL backfill tool#9erin-glen wants to merge 3 commits intopreprocessing/disturbancesfrom
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| with tempfile.NamedTemporaryFile(dir=directory, prefix=f".{base}", suffix=".tmp.tif", delete=False) as tmp: | ||
| tmp_path = tmp.name |
There was a problem hiding this comment.
Preserve permissions when overwriting rasters
When compressing with --overwrite, the raster is rewritten via NamedTemporaryFile and os.replace. Temporary files are created with mode 0o600, and os.replace brings those restrictive permissions along. Any raster that originally had broader read permissions (e.g., shared data at 0644) will become owner‑only after compression, breaking downstream access for other users or services. Consider copying the original file’s mode to the temporary output before replacing, or using shutil.copymode so that compression doesn’t silently revoke access.
Useful? React with 👍 / 👎.
Summary
Testing
https://chatgpt.com/codex/tasks/task_e_68fd10b0ab3c8320bfb3571a75ad8a88