数学的天气情况

发布于 2024-09-25 00:33:33 字数 430 浏览 7 评论 0原文

我还没有找到一个城市、位置或日期,除了 Missing[NotApplicable] 之外,还可以为我提供以下查询的答案。

WeatherData["Chicago", "Conditions", {2010, 8}]

该语法适用于“温度”、“压力”和“风向”,但不适用于“条件”。特别是,如果您希望返回“条件”的数据,则需要添加“值”关键字(如下面的响应者所述)。这是为什么?即此命令有效:

WeatherData["Chicago", "Conditions", {2010, 8}, "Value"]

但现在,不包含日期时间戳,因此我们只能猜测条件何时被记录。 (例如,对于温度,读数不是每小时一次,尽管通常是每小时一次。)

这是 Mathematica 7.0

I have yet to find a city or location or date, that gives me an answer other than Missing[NotApplicable] to the following query.

WeatherData["Chicago", "Conditions", {2010, 8}]

That syntax works for "Temperature" and "Pressure" and "WindDirection" But not "Conditions". In particular, if you want data returned for "Conditions" you need to add the "Value" keyword (as the responder below noted.) Why is that? i.e. this command works:

WeatherData["Chicago", "Conditions", {2010, 8}, "Value"]

But now, no DateTime stamps are included, so we are only left to guess when the Conditions were recorded. (On Temperature for instance, readings are not once / hour, although typically they are once per hour.)

This is Mathematica 7.0

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我一直都在从未离去 2024-10-02 00:33:33

嗯,我得到输出:

In[8]:= WeatherData["Chicago","Conditions",{2010,8, 1}, "Value"]  
Out[8]= {{},{},{},{},{},{},{Fog},{Fog},{Fog},{Fog},{Fog},{Fog},{},
         {},{},{},{},{},{},{},{},{},{},{},{},{}}

其他 WeatherData[] 语法是否为您返回数据?

Hmmm, I'm getting output:

In[8]:= WeatherData["Chicago","Conditions",{2010,8, 1}, "Value"]  
Out[8]= {{},{},{},{},{},{},{Fog},{Fog},{Fog},{Fog},{Fog},{Fog},{},
         {},{},{},{},{},{},{},{},{},{},{},{},{}}

Do other WeatherData[] syntaxes return data for you?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文