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

NASADEM missing data #403

Open
ADiamondra opened this issue Mar 5, 2025 · 3 comments
Open

NASADEM missing data #403

ADiamondra opened this issue Mar 5, 2025 · 3 comments

Comments

@ADiamondra
Copy link

Hello, thank you for this amazing package, it really facilitates the computing of big datasets.

Currently the dataset from nasadem is not available. If you run this code:

aoi_path <- system.file("extdata", "gfw_sample.gpkg", package = "mapme.biodiversity")
aoi <- st_read(aoi_path, quiet = TRUE)

dir.create("data/mapme")
mapme_options(outdir = "data/mapme")
tic()
with_progress({
  aoi <- aoi %>% 
    get_resources(get_nasa_srtm())
})
toc() 
list.files("data/mapme/nasa_srtm")

The result will be: character(0)

Furhtermore, we should change the function name from get_nasa_srtm to get_nasa_dem as it is the source of the datasets used.

@svenb78
Copy link
Collaborator

svenb78 commented Mar 6, 2025

Hej @ADiamondra ,

thanks for your request. Can you please give some infos about the environment you are using, especially R-version, operating system, GDAL version?

Best, Sven

@ADiamondra
Copy link
Author

Hello @svenb78,

Here are the details of my environment:

  • R version : 4.4.2 (2024-10-31)
  • Platform : Onyxia, an SSP Cloud Datalab (RStudio Server, running online)
  • Operation system : Linux, Debian 6.1.124- 1
  • GDAL version : 3.4.1

I am using R in an online environment via Onyxia. Please let me know if you need any further details,
Best, Diamondra

@zivankaraman
Copy link
Collaborator

Hello @ADiamondra,
I tried running your code and it works most of the time, but sometimes it fails with different error messages that all seem to be related to network or server API related issues. Perhaps the server gets too busy, or the network is overloaded, etc. Please check for any warnings or error messages, and retry later.
Best, Zivan

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

No branches or pull requests

3 participants