嘿,
the package nasadata
is finally officially available via CRAN. This package provides easy access to some of 美国宇航局’s open-source APIs.
可以使用此软件包评估以下API:
EONET Web服务
的 EONET Web服务 旨在提供元数据以检查自然事件(例如风暴,野火,洪水等),并通过各种来源对其进行跟踪。
# event categories: eonet_categories()[,1:2] id title 1 6 Drought 2 7 Dust 和 Haze 3 16 Earthquakes 4 9 Floods 5 14 Landslides 6 19 Manmade 7 15 Sea 和 Lake Ice 8 10 Severe Storms 9 17 Snow 10 18 Temperature Extremes 11 12 Volcanoes 12 13 Water Color 13 8 Wildfires # 数据 sources: eonet_sources()[,1:2] id title 1 BCWILDFIRE British Columbia Wildfire Service 2 CALFIRE California Department of Forestry 和 Fire Protection 3 CEMS Copernicus Emergency Management Service 4 EO Earth Observatory 5 GDACS Global Disaster Alert 和 Coordination System 6 GLIDE GLobal IDEntifier Number (GLIDE) 7 InciWeb InciWeb 8 IDC International Charter on Space 和 Major Disasters 9 MRR LANCE Rapid Response 10 美国宇航局_ESRS 美国宇航局 Earth Science 和 Remote Sensing Unit 11 ReliefWeb ReliefWeb 12 SIVolcano Smithsonian Institute Global Volcanism Program 13 UNISYS Unisys Weather 14 USGS_CMT USGS Emergency Operations Collection Management Tool 15 HDDS USGS Hazards Data Distribution System
的 EONET API can be assessed with the function earth_event()
:
# earth_event(status = "all", sources = "all", category_id = "all", # limit = 10, days = 20, LimitType = "limit", TrySimplify = TRUE) event <- earth_event(limit = 1) names(event) [1] "Events" "Sources" "Categories" "Geography" "Meta"
earth_event()
返回包含所选事件的各种元数据的列表。在这种情况下,我们刚刚选择的事件是例如ID EONET_406的EONET事件,这是2016年5月21日下午在北墨西哥发生的一场野火。
有关API(当前版本v2.1)的更多信息,请访问: EONET API文档.
Earth Imagery API
目的 Earth Imagery API 是用来访问从Landsat 8卫星中检索并存储在Google Earth Engine中的图像。该API需要一个密钥,该密钥可在以下位置免费获得 api.nasa.gov。当然,考虑到LANDSAT数据固有的属性,这更适合于跨大区域的变异分析,因为分辨率太差,无法对特定区域进行详细分析。
该软件包仍处于开发的早期阶段,如果您有兴趣跟踪最新的发展情况,可以查看GitHub软件包repo //github.com/Eflores89/nasadata.
问候,
马蒂亚斯
附注:即使使用Earth Imagery API可以访问LANDSAT图像,使用Google地球通过{dismo}仍可最好地在卫星数据上绘制空间对象(请参见 马丁’s post on dismo)或{plotKML}。
1条评论
您可以在这篇文章中发表评论。
感谢您对NASA API的精彩介绍!这对我真的很有用!
干杯
马丁 5年前
发表回复