I am trying to learn how to interface with WolframAlpha. When I try using the Mathematica interface I get nonsensical data. I don't know if this is a bug or if I'm doing it wrong.

My goal is to extract the elevation around the Austrian Province of Upper Austria. Perhaps to assert that Upper Austria is not actually the highest Austrian province, if this doesn't work I will attempt to challenge the status of Lower Austria.

My Wolfram Alpha reference query is:


My Mathematica code is:

WolframAlpha["average elevation around Upper Austria, Austria \
(state)", {{"ElevationStatistics", 1}, "ComputableData"}]

which gives

{{"average", -(27896275/24384)}, {"lowest", -(3662500/
   381)}, {"highest", 2585000/381}}

which can't be right by any measure. What's going on?

  • $\begingroup$ It works better with plain Austria. The Upper seems to mess things up. You might want to specify latitudes instead... $\endgroup$
    – Yves Klett
    Commented Oct 10, 2012 at 5:55
  • $\begingroup$ Given the proximity of this region to the ocean, I wonder if it's simply taking ocean depth into account? $\endgroup$ Commented Oct 10, 2012 at 13:19
  • $\begingroup$ @MarkMcClure the elevation profile looks about right for that (if you mean the Yemen, Austria is another thing entirely). $\endgroup$
    – Yves Klett
    Commented Oct 10, 2012 at 13:23
  • $\begingroup$ @YvesKlett Yes, exactly. I tried a few more coastal towns ("elevation around miami, fl", for example) and saw very similar behavior. $\endgroup$ Commented Oct 10, 2012 at 13:29
  • $\begingroup$ And obiously, "elevation around 48°E 14°N" does seem very familiar... $\endgroup$
    – Yves Klett
    Commented Oct 10, 2012 at 13:35

1 Answer 1


The bug is probably with Wolfram Alpha, not Mathematica, since the Mathematica query and the Wolfram Alpha website results are consistent.

(Edit: Bug is fixed as of 2012-11-26, I got a kind notification from the W|A team in response to my earlier feedback)

It looks like they swapped longitude with latitude for Upper Austria (it works with good ole Austria though). What you presumably get is a piece of the Gulf of Aden instead.

Image from the query:

Mathematica graphics

48°E 14°N:

Mathematica graphics

Anyway, I am not sure this really pertains to this site if it is a Alpha Bug?

Edit by belisarius

Aligning and animating Yves' ansatz: enter image description here

  • $\begingroup$ I think its relevent as it is correct when acessed with the Woflram Alpha Interface. $\endgroup$
    – Mikhail
    Commented Oct 10, 2012 at 6:52
  • 1
    $\begingroup$ @belisarius epic alignment! +1 if you post that as answer. I wonder where the large angle difference comes from. $\endgroup$
    – Yves Klett
    Commented Oct 10, 2012 at 8:54
  • 6
    $\begingroup$ @MarkMcClure: Would you say that if at some time a file system bug "leaks" into the Get command, then general file system questions should get on-topic here as well? $\endgroup$
    – celtschk
    Commented Oct 10, 2012 at 15:23
  • 1
    $\begingroup$ @celtschk Certainly, the process of figuring out where a bug that leaks into Mathematica should be fair game here. If the OS happened to be written in Mathematica by the makers of Mathematica, then all the more so. $\endgroup$ Commented Oct 10, 2012 at 15:30
  • 1
    $\begingroup$ @YvesKlett The angles come from me not looking at the Google Earth bearing. If you align the North, you get !Mathematica graphics $\endgroup$ Commented Oct 11, 2012 at 16:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.