数学的天气情况
我还没有找到一个城市、位置或日期,除了 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯,我得到输出:
其他
WeatherData[]
语法是否为您返回数据?Hmmm, I'm getting output:
Do other
WeatherData[]
syntaxes return data for you?