编写用于分析cvs文件中日期的卫星图像的应用程序

时间:2018-04-06 12:59:52

标签: python image csv satellite

我想编写一个应用程序/软件,最好使用python,它允许我读取包含日期的csv文件,然后保存这些日期的卫星图像。

在我尝试这个之前,我想知道这是否真的可以使用来自NASA等来源的现有基于网络的API?

对于一个模糊的问题感到抱歉,但到目前为止我还没有找到任何答案,也不想开始一项不可能完成的任务,因为我对编程很新,所以对这个问题的任何建议都非常感谢。

2 个答案:

答案 0 :(得分:0)

从Python读取CSV:是的。
使用Python的基于Web的API:是的 从Python下载图像:是的。
从Python保存图像:是的。

NASA是否提供API?它是否支持想要用它做什么?这些问题你需要详细说明你曾经尝试过的以及NASA的网站显示的内容。

答案 1 :(得分:0)

试试看!以下是2017年1月伦敦河上O2竞技场的图像要求:

Dim qtTest 'As QuickTest.Test ' Declare a Test object variable
Dim qtResultsOpt 'As QuickTest.RunResultsOptions ' Declare a Run Results Options object variable For Viewing Results

Set qtTest = App.Test
Set qtResultsOpt = CreateObject("QuickTest.RunResultsOptions") ' Create the Run Results Options object
qtResultsOpt.ResultsLocation = "C:\<location>" ' Set the results location
qtTest.Run qtResultsOpt ' Run the test
qtApp.Options.Run.ViewResults = True

'Close QTP
qtTest.Close ' Close the test

'Set the options to nothing
Set qtResultsOpt = Nothing ' Release the Run Results Options object
Set qtTest = Nothing ' Release the Test object
Set qtApp = Nothing ' Release the Application object

结果如下:

curl "https://api.nasa.gov/planetary/earth/imagery/?lon=0&lat=51.5&date=2017-01-01&cloud_score=True&api_key=DEMO_KEY"

如果您将最后的网址粘贴到浏览器中,则会获得图片。

以下是其他一些内容:

相关问题