Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
472 views
in Technique[技术] by (71.8m points)

amazon-s3 - 栅格数据包不会从Amazon ec2实例上的RStudio中的URL中读取文件(Raster package wont read file from URL in RStudio on Amazon ec2 instance)

I am moving a model from laptop to cloud to increase compute power and storage.

(我正在将模型从笔记本电脑转移到云计算,以增加计算能力和存储量。)

Loaded an AMI with Rstudio in an ec2 instance that works like a charm, except when attempting to raster() or stack() tif files direct from a url.

(在ec2实例中 ,将Rstudio加载到AMI中,该实例的工作原理类似于超级按钮 ,但尝试直接从URL进行raster()或stack()tif文件时除外。)

download.file() works, so there isn't an outright block on access, which leads me to believe (along with some reading ) that the raster package use of gdal is involved somehow.

(download.file()可以正常工作,因此访问没有任何障碍,这使我相信(连同一些阅读资料 )gdal的栅格数据包使用涉及某种方式。)

x <- stack("http://download.osgeo.org/geotiff/samples/gdal_eg/cea.tif")

Runs perfect on a local machine, but gives the following error when run from the ec2 instance:

(在本地计算机上完美运行,但是从ec2实例运行时出现以下错误:)

Error in .local(.Object, ...) : 
  An error occurred while creating a virtual connection to the DAP server:
Error while reading the URL: http://download.osgeo.org/geotiff/samples/gdal_eg/cea.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.

Error in .rasterObjectFromFile(x, objecttype = "RasterBrick", ...) : 
  Cannot create a RasterLayer object from this file. (file does not exist)

Having never come across OPeNDAP, or knowing the inside out of raster, how can this be fixed?

(从来没有遇到过OPeNDAP,或者从光栅中了解了内部,该如何解决?)

  ask by waywordbird translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...