本文介绍了RasterFrames 提取位置信息问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法使用 RasterFrames 从 tif 文件中提取/查询纬度、经度和高程数据(http://rasterframes.io/)?

Is there a way to extract/query latitude, longitude and elevation data from a tif file using RasterFrames (http://rasterframes.io/)?

按照文档,我从以下站点加载了一个 tif 文件:https://visibleearth.nasa.gov/view.php?id=73934,但是我只能看到一般信息,不知道使用哪个 RasterFunction 来提取位置和高程或任何其他相关信息.我确实尝试了所有可以在 API 中找到的内容.

Following the documentation, I did loadRF a tif file from the following site: https://visibleearth.nasa.gov/view.php?id=73934, however all I can see is generic information and don't know which RasterFunction to use in order to extract position and elevation or any other relevant information. I did try everything I can find in the API.

我也尝试使用以下来源提取温度信息:http://worldclim.org/version2

I did also try to extract temperature information using the following source as well: http://worldclim.org/version2

我得到的只是带有 DoubleUserDefinedNoDataArrayTile 和边界(扩展或 crs)的平铺列.

All I get is tile column with DoubleUserDefinedNoDataArrayTile and boundary (extend or crs).

R 中的 RasterStack 可以根据此博客提取此信息:https://www.benjaminbell.co.uk/2018/01/extracting-data-and-making-climate-maps.html

RasterStack in R can extract this information according to this blog: https://www.benjaminbell.co.uk/2018/01/extracting-data-and-making-climate-maps.html

我需要一个更细粒度的数据帧,例如纬度、经度、温度(或嵌入到 tif 文件中的任何数据).

I need a more granular DataFrame such as lat,lon,temperature(or whatever data is embedded into the tif file).

这是否可以使用 RasterFrames 或 GeoTrellis?

Is this possible with RasterFrames or GeoTrellis?

推荐答案

长话短说 - 是的,这是可能的(至少对于 GeoTrellis).我想 RasterFrames 也是可能的,但需要一些时间来弄清楚如何提取这些数据.我无法回答更详细的问题,因为我需要更多地了解数据集以及您要执行和应用的管道.

The long story short - yes, it is possible (at least with GeoTrellis). It is also possible with RasterFrames, I suppose, but will require some time to figure out how to extract this data. I can't answer more detailed since I need to know more about the dataset and about the pipeline you want to perform and apply.

这篇关于RasterFrames 提取位置信息问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-12 21:11