[R-sig-Geo] terra/GDAL error reading file from http inside docker container
Roozbeh Valavi
rv@|@v| @end|ng |rom @tudent@un|me|b@edu@@u
Mon May 30 08:50:54 CEST 2022
Hi all,
I try to read raster files using a URL from within a docker container.
I can easily read the same file with terra package from my system (both
Windows and Ubuntu), but when try reading the same file within a docker
container it runs to an error.
*The R code for reading the raster file hosted on a public AWS S3 bucket.*
terra::rast("
https://s3-ap-southeast-2.amazonaws.com/silo-open-data/daily/max_temp/2018/20180103.max_temp.tif
")
*Error:*
Error: [rast] cannot open file:
https://s3-ap-southeast-2.amazonaws.com/silo-open-data/daily/max_temp/2018/20180103.max_temp.tif
In addition: Warning message:
An error occurred while creating a virtual connection to the DAP
server:Error while reading the URL:
https://s3-ap-southeast-2.amazonaws.com/silo-open-data/daily/max_temp/2018/20180103.max_temp.tif.ver
.
The OPeNDAP server returned the following message:
Not Found: The data source or server could not be found.
Often this means that the OPeNDAP server is missing or needs
attention.
Please contact the server administrator. (GDAL error 1)
*System info of docker container:*
R version 4.2.0
GDAL 3.0.4
terra 1.5.21
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.4 LTS"
* libgdal-dev* is installed in the docker container.
*System info of my local system:*
R version 4.2.0
GDAL 3.3.2
terra 1.5.21
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.4 LTS"
I appreciate any help.
Kind regards,
Roozbeh
Roozbeh Valavi
The Quantitative & Applied Ecology Group <http://qaeco.com/>
School of Ecosystem and Forest Sciences,
The University of Melbourne, VIC 3010, Australia
*Mobile*: +61 423 283 238 | *Twitter*: @ValaviRoozbeh |
*Researchgate <https://www.researchgate.net/profile/Roozbeh_Valavi>*
[[alternative HTML version deleted]]
More information about the R-sig-Geo
mailing list