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

progress bar #21

Open
VeruGHub opened this issue Jul 10, 2021 · 0 comments
Open

progress bar #21

VeruGHub opened this issue Jul 10, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@VeruGHub
Copy link
Owner

I've tried different options. I see two ways:

  • use terra::terraOptions and set progress > 0. If terra::extract makes chunks for working (and I think it does: https://rspatial.org/terra/pkg/1-introduction.html) then a progress bar should appear. But probably I'm missing something because it is not appearing even when trying to download a big amount of data.
  • divide the process via a loop or apply (or terra::sapp) and then create a progress bar with utils::txtProgressBar (https://r-coder.com/progress-bar-r/). I only achieved to do the progress bar with a loop, specifically when we use terra::extract, but the loop takes a lot more time than simply use terra::extract. So I don't think it is a good solution. But if we want something like this, it would be necessary to write a similar loop for terra::crop when the output is a raster.
    @Pakillo could you take a look to this?
    Options with other packages: https://stackoverflow.com/questions/51855528/progress-bar-for-non-loop-functions
@Pakillo Pakillo added the enhancement New feature or request label Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants