-
Notifications
You must be signed in to change notification settings - Fork 5
GTC-3375 Add "copy_solo_tiles" option to optimize creation of int-dist alerts raster #710
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
Conversation
…t alerts When we merge integrated alerts and dist alerts rasters, much of the globe has only dist alerts. So, we want to optimize the process by copying the dist alerts tiles directly when to the final raster if there is no corresponding integrated alerts tile. We provide the copy_solo_tiles option to do this, which runs the "copy_solo_tiles.sh" script after the main raster is created with "union_bands = False". The script also correctly updates extent.geojson and tiles.geojson.
| "tiles.geojson file on S3 or a folder (prefix) on S3 or GCS. " | ||
| "Features in tiles.geojson must have path starting with either /vsis3/ or /vsigs/", | ||
| "Features in tiles.geojson must have path starting with either /vsis3/ or /vsigs/" | ||
| "auxiliary_assets is ignored if source_uri is set (for creating new versions)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would of course be better to raise an error immediately, rather than just ignoring it. I know that's not in scope for this PR, but since you're already adding the doc could you add a TODO to enforce this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I add an extra asset right below this. Feel free to comment on that - the tests pass, so at least no test request triggered that validation error.
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #710 +/- ##
===========================================
- Coverage 76.29% 76.26% -0.03%
===========================================
Files 143 143
Lines 6740 6749 +9
===========================================
+ Hits 5142 5147 +5
- Misses 1598 1602 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I think this is a good idea, but I'm not crazy about how special-case the implementation is. I also know you're trying to get this done quickly, so feel bad suggesting generalizing it a little (for example, taking unique tiles from each source for any number of sources), particularly with my impression of how advanced some of that shell scripting already is. I felt SO bad, in fact, that I wrote some suggested code for a Python script to do the work that your shell script does, but is a little more general. I hope I'm not being presumptuous, and I apologize if I am. I humbly offer this (untested, but almost complete) Python code if you want to use it: |
|
Below is my filled-in version of Daniel's suggested |
…t alerts raster (#710) * GTC-3375 Add "copy_solo_tiles" option to optimize creation of int-dist alerts When we merge integrated alerts and dist alerts rasters, much of the globe has only dist alerts. So, we want to optimize the process by copying the dist alerts tiles directly when to the final raster if there is no corresponding integrated alerts tile. We provide the copy_solo_tiles option to do this, which runs the "copy_solo_tiles.sh" script after the main raster is created with "union_bands = False". The script also correctly updates extent.geojson and tiles.geojson. * Validate that auxiliary_asset is not provided if source_uri is provided.
GTC-3375 Add "copy_solo_tiles" option to optimize creation of int-dist alerts raster
When we merge integrated alerts and dist alerts rasters, much of the globe has only dist alerts. So, we want to optimize the process by copying the dist alerts tiles directly when to the final raster if there is no corresponding integrated alerts tile. We provide the copy_solo_tiles option to do this, which runs the "copy_solo_tiles.sh" script after the main raster is created with "union_bands = False". The script also correctly updates extent.geojson and tiles.geojson.
This is a fairly specialized option, but we have a similar specialized option with unify_projections.