# Altitude of Polaris in Mathematica 10 and W|A

**URL:** <https://community.wolfram.com/t/altitude-of-polaris-in-mathematica-10-and-w-a/2830>\
**Category:** Questions\
**Tags:** astronomy, mathematica, wolfram-alpha, curated-data\
**Created:** [July 31, 2014, 9:26pm UTC](https://community.wolfram.com/t/altitude-of-polaris-in-mathematica-10-and-w-a/2830 "2014-07-31T21:26:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![hansmilton](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/hansmilton/32/8656_2.png) [@hansmilton](https://community.wolfram.com/u/hansmilton)\
**Post date:** [July 31, 2014, 9:26pm UTC](https://community.wolfram.com/t/altitude-of-polaris-in-mathematica-10-and-w-a/2830/1 "2014-07-31T21:26:34Z")

</div>

For horizontal coordinates of stars, I have noted that StarData in Mathematica 10 returns values I don’t expect.  
Taking a simple example, the altitude of Polaris. Regardless of date or time of day it will be close to the observers latitude. My home is near the 64th parallel. For latitude 64N, v9 gives a reasonable value:

 ![v9.jpg](https://global.discourse-cdn.com/wolfram/original/2X/a/a04192cd4046f4f90daf1cb93ef06404fcc86e98.jpeg)

But not so in v10:

 ![v10.jpg](https://global.discourse-cdn.com/wolfram/original/3X/6/2/622771ffe862c5fe0a53da25e431d340018eef5e.jpeg)

And a query directly in W|A gives the same, wrong, answer:

 ![WA.jpg](https://global.discourse-cdn.com/wolfram/original/3X/8/c/8c9b461a9a1582d34f3f64bee026108c3dedbb1e.jpeg)

Changing $GeoLocation has no effect

---

<div class="post-metadata">

**Author:** ![jeffb](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/jeffb/32/36128_2.png) [@jeffb](https://community.wolfram.com/u/jeffb)\
**Post date:** [July 31, 2014, 10:41pm UTC](https://community.wolfram.com/t/altitude-of-polaris-in-mathematica-10-and-w-a/2830/2 "2014-07-31T22:41:23Z")

</div>

`AstronomicalData[]` used `$GeoLocation` to determine your location. Wolfram|Alpha as well as `StarData[]`, etc. don’t use `$GeoLocation`, they make use of what the Alpha server thinks your location is based on GeoIP.

It would be useful to know what you get when you go to Alpha and enter “where am I” to see what latitude/longitude it thinks you are at.

Your input for StarData has an extra set of curly brackets so the location qualifier is being ignored as a result. It should be part of the list that contains the “Date”, so {“Date” → , “Location” → } instead of {“Date” → }, {“Location” → }

however, even when using the correct form, this results in an unknown Qualifier message that is being investigated.

---

<div class="post-metadata">

**Author:** ![hansmilton](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/hansmilton/32/8656_2.png) [@hansmilton](https://community.wolfram.com/u/hansmilton)\
**Post date:** [August 1, 2014, 9:05am UTC](https://community.wolfram.com/t/altitude-of-polaris-in-mathematica-10-and-w-a/2830/3 "2014-08-01T09:05:35Z")

</div>

This is what I get from “where am I” on my home PC:

 ![geoIP.jpg](https://global.discourse-cdn.com/wolfram/original/2X/e/e36e0b635198c4b95b8b0285002a40e8cc7ee1ae.jpeg)

My internet provider is registered in Stockholm, but I live 500 km more to the North.  
If I make the “where am I” query on my PC at work, I get the IP address only. Nothing else.

On both PC’s, the Polaris altitude W|A query gives values close to the latitude of Stockholm.

In Mathematica: FindGeoLocation[] returns {63.83, 20.25} on my home PC. And that is about right.  
But on my PC at work I get {62, 15} from FindGeoLocation[].

---

<div class="post-metadata">

**Author:** ![jeffb](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/jeffb/32/36128_2.png) [@jeffb](https://community.wolfram.com/u/jeffb)\
**Post date:** [August 1, 2014, 4:10pm UTC](https://community.wolfram.com/t/altitude-of-polaris-in-mathematica-10-and-w-a/2830/4 "2014-08-01T16:10:07Z")

</div>

If you want to get your Alpha query to support a different observation location than where it thinks you are, you need to modify the input string to include a hard coded date and location such as here:

> **[altitude polaris on July 31 2014 22:30 from lat 64 long 20 - Wolfram|Alpha](https://www.wolframalpha.com/input/?i=altitude+polaris+on+July+31+2014+22%3A30+from+lat+64+long+20)**
>
> Wolfram|Alpha brings expert-level knowledge and capabilities to the broadest possible range of people—spanning all professions and education levels.

time zone isn’t specified so it should default to your time zone.

As for getting the StarData query to work with the “Location” qualifier, it’s being looked into.

---

<div class="post-metadata">

**Author:** ![hansmilton](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/hansmilton/32/8656_2.png) [@hansmilton](https://community.wolfram.com/u/hansmilton)\
**Post date:** [August 1, 2014, 5:08pm UTC](https://community.wolfram.com/t/altitude-of-polaris-in-mathematica-10-and-w-a/2830/5 "2014-08-01T17:08:02Z")

</div>

Jeff, thanks a lot for quick answers.

My interest is in applications of Mathematica. Not W|A as such. So for for the moment I will use v9’s AstronomicalData. When I need a stars horizontal coordinates. Practically, it works just fine.

But to me this appears as a regression. From v9 to v10.

Horizontal coordinates are referenced to a particular position on the globe. So its meaningless to ask for the coordinates. If you are not able to clearly specify your location.

---

<div class="post-metadata">

**Author:** ![jeffb](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/jeffb/32/36128_2.png) [@jeffb](https://community.wolfram.com/u/jeffb)\
**Post date:** [August 1, 2014, 5:10pm UTC](https://community.wolfram.com/t/altitude-of-polaris-in-mathematica-10-and-w-a/2830/6 "2014-08-01T17:10:59Z")

</div>

It is a regression. Its being investigated.

---

<div class="post-metadata">

**Author:** ![jeffb](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/jeffb/32/36128_2.png) [@jeffb](https://community.wolfram.com/u/jeffb)\
**Post date:** [August 14, 2014, 9:26pm UTC](https://community.wolfram.com/t/altitude-of-polaris-in-mathematica-10-and-w-a/2830/7 "2014-08-14T21:26:40Z")

</div>

With this week’s push to production, these inputs should now work with the “Location” qualifier specified:

```
StarData["Polaris", 
 EntityProperty["Star", 
  "Altitude", {"Date" -> DateObject[{2014, 7, 31, 22, 30, 0}], 
   "Location" -> GeoPosition[{64, 20}]}]]

PlanetData["Mars", 
 EntityProperty["Planet", 
  "Altitude", {"Location" -> 
    Entity["City", {"NewYork", "NewYork", "UnitedStates"}]}]]

```

---

<div class="post-metadata">

**Author:** ![hansmilton](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/hansmilton/32/8656_2.png) [@hansmilton](https://community.wolfram.com/u/hansmilton)\
**Post date:** [August 15, 2014, 5:26pm UTC](https://community.wolfram.com/t/altitude-of-polaris-in-mathematica-10-and-w-a/2830/8 "2014-08-15T17:26:07Z")

</div>

Yes, it works now. Thanks.
