malaria-atlas-project / malariaAtlas

An R interface to open-access malaria data, hosted by the Malaria Atlas Project.
https://malariajournal.biomedcentral.com/articles/10.1186/s12936-018-2500-5
Other
42 stars 21 forks source link

New friction surfaces don't work #58

Open timcdlucas opened 2 years ago

timcdlucas commented 2 years ago

Hi all,

Some of the new friction surfaces don't seem to work.

USA_shp <- getShp(ISO = "USA", admin_level = "admin0")
USA_moto_19 <- getRaster(surface = 'Global friction surface enumerating land-based travel speed with access to motorized transport for a nominal year 2019', shp = USA_shp)
Downloading list of available rasters...
The following surfaces have been incorrectly specified, use listRaster to confirm spelling of raster 'title':
  - Global friction surface enumerating land-based travel speed with access to motorized transport for a nominal year 2019

The old accessibility surfaces seem to work though. So guess it's just a naming issue.

geryan commented 1 year ago

+1 on this issue - can't get either the above or below surfaces, with the following issue.

>library(malariaAtlas)
> travel <- getRaster("A global friction surface enumerating land-based travel speed for a nominal year 2015")
Downloading list of available rasters...
All specified surfaces are available to download.
Checking if the following Surface-Year combinations are available to download:

    RASTER CODE  YEAR 
  - A global friction surface enumerating land-based travel speed for a nominal year 2015:  DEFAULT 

Downloading list of available rasters...
Raster download error - check 2015_friction_surface_v1_Decompressed surface is available for specified extent at malariaatlas.org/explorer.
https://malariaatlas.org/geoserver/Explorer/ows?service=WCS&version=2.0.1&request=GetCoverage&format=image/geotiff&coverageid=2015_friction_surface_v1_Decompressed
1 Raster download error(s). Details have been returned.
Error in .rasterObjectFromFile(x, band = band, objecttype = "RasterLayer",  : 
  Cannot create a RasterLayer object from this file. (file does not exist)
In addition: Warning message:
/var/folders/52/wcfrp5q96hs368kt8wc6sz8mmbjjv2/T//RtmpwhgMeC/getRaster/character(0): No such file or directory (GDAL error 4)