-
Notifications
You must be signed in to change notification settings - Fork 36
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
Avoid downloading files that exist with byTileAOP? #61
Comments
@mbjoseph Looking at your code, if I'm understanding right, I think there's an easy solution, and I just need to improve the documentation. But let me know if I've misunderstood! |
Oh -- nice! Nevermind then. I didn't realize you could pass a vector of
coordinates.
…On Sun, Oct 20, 2019, 11:56 AM Claire Lunch ***@***.***> wrote:
@mbjoseph <https://github.com/mbjoseph> Looking at your code, if I'm
understanding right, I think there's an easy solution, and I just need to
improve the documentation. byTileAOP can take vector inputs for easting
and northing. It will assume the vectors line up (ie, easting[1] and
northing[1] are a desired pair of coordinates), but that should be
accurate. So you can just skip the for loop, and the function will come up
with the set of tiles that contain all the input coordinates.
But let me know if I've misunderstood!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#61?email_source=notifications&email_token=AAUKQ5GGRAWXE7LEDOJYUKDQPSSWTA5CNFSM4JCVOWT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBYRDWQ#issuecomment-544281050>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAUKQ5ESQ54FH4ECFUJHPK3QPSSWTANCNFSM4JCVOWTQ>
.
|
No problem, glad to hear this solves this issue! |
Is your feature request related to a problem? Please describe.
Currently
byTileAOP
, downloads files that exist already. It might be nice to add anoverwrite
argument that defaults to the current behavior (overwrite = TRUE
), but allows users to skip downloads for files that already exist usingoverwrite = FALSE
.Describe the solution you'd like
I'd propose adding an
overwrite
argument tobyTileAOP
.Describe alternatives you've considered
Currently, it's up to the users to avoid redundant downloads. My use case is trying to get canopy height model rasters at locations of ground plots. But, in some cases, multiple plots fall within the same tile, resulting in redundant downloads. As a user, I could do something like:
Additional context
Here's an example of what I'm doing -- essentially I'm computing one coordinate for each ground plot, then I want to get the CHM data for each one, which results in redundant downloads:
Maybe there's a better way to handle the possibility of redundant downloads in this case, but this seems like a potentially general solution for similar use cases.
The text was updated successfully, but these errors were encountered: