Bugs in calculation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
astral |
Fix Released
|
Medium
|
Simon Kennedy |
Bug Description
I think there are some discrepances in astral 0.5:
1. Geographic Coordinates:
-------
These Coordinates will be counted officially as follows:
- from aquator to north : 0° to +90°
- from aquator to south : 0° to -90°
- from Greenwich to east : 0° to +180°
- from Greenwich to west : 0° to -180°
as shown in http://
2. Calculation for some cities rises these Problems:
-------
What is wrong there? Only the sign?
Or is the calculation off sunrise, dawn, sunset, dusk wrong too?
- Stockholm
Geographic coordinates from wikipedia:
Lat: 59° 19′ 30″ N, Long: 18° 3′ 0″ E
Lat: 59.325, Long: 18.05
Calculated with astral:
Information for Stockholm/Sweden
Timezone : Europe/Stockholm
Latitude : 59.33
Longitude: -18.05
- Berlin
Geographic coordinates from wikipedia:
52° 31′ 7″ N, 13° 24′ 29″ E
52.518611°, 13.408056°
Calculated with astral:
Information for Berlin/Germany
Timezone : Europe/Berlin
Latitude : 52.50
Longitude: -13.42
- London
Geographic coordinates from wikipedia:
51° 30′ 33.8″ N, 0° 7′ 5.95″ W
51.50939°, -0.11832°
Calculated with astral:
Information for London/England
Timezone : Europe/London
Latitude : 51.60
Longitude: 0.08
- New York City
Geographic coordinates from wikipedia:
40° 42′ 46″ N, 74° 0′ 21″ W
40.712778°, -74.005833°
Calculated with astral:
Information for New York/USA
Timezone : US/Eastern
Latitude : 40.72
Longitude: 74.00
- Brasilia
Geographic coordinates from wikipedia:
15° 48′ 0″ S, 47° 51′ 0″ W
-15.8°, -47.85°
Calculated with astral:
Information for Brasilia/Brazil
Timezone : Brazil/East
Latitude : -15.78
Longitude: 47.92
- Sydney
Geographic coordinates from wikipedia:
33° 51′ 0″ S, 151° 12′ 0″ E
-33.85°, 151.2°
Calculated with astral:
Information for Sydney/Australia
Timezone : Australia/Sydney
Latitude : -33.88
Longitude: -151.22
3. Solar_depression will not be recognized if you use city coordinates which
are not in the city-database.
-------
- Berlin , coordinates from CityDB, showes different times:
Information for Berlin/Germany
Timezone : Europe/Berlin
Latitude : 52.50
Longitude: -13.42
1. Depression: civil
-------
Dawn : 2012-03-03 06:13:27+01:00
Sunrise: 2012-03-03 06:47:38+01:00
Noon : 2012-03-03 12:18:10+01:00
Sunset : 2012-03-03 17:49:38+01:00
Dusk : 2012-03-03 18:23:48+01:00
2. Depression: nautical
-------
Dawn : 2012-03-03 05:33:59+01:00
Sunrise: 2012-03-03 06:47:38+01:00
Noon : 2012-03-03 12:18:10+01:00
Sunset : 2012-03-03 17:49:38+01:00
Dusk : 2012-03-03 19:03:16+01:00
3. Depression: astronomical
-------
Dawn : 2012-03-03 04:54:04+01:00
Sunrise: 2012-03-03 06:47:38+01:00
Noon : 2012-03-03 12:18:10+01:00
Sunset : 2012-03-03 17:49:38+01:00
Dusk : 2012-03-03 19:43:13+01:00
As you see next, the solar_depression function doesn't work for cities outside
from CityDB: All calculated times are equal.
You also see, that there must be a correct dependicy to the official
use off the geographic coordinates. Only than someone can take coordinates from
internet-sources, maps, globes etc :
- Heidelberg with hd = ("Heidelberg", "Germany", 49.412, -8.71, "Europe/Berlin")
in acordance to the meaning in astral-module:
Information for Heidelberg/Germany
Timezone : Europe/Berlin
Latitude : 49.41
Longitude: -8.71
1. Depression: civil
-------
Dawn : 2012-03-03 06:31:10+01:00
Sunrise: 2012-03-03 07:03:08+01:00
Noon : 2012-03-03 12:36:59+01:00
Sunset : 2012-03-03 18:11:41+01:00
Dusk : 2012-03-03 18:43:39+01:00
2. Depression: nautical
-------
Dawn : 2012-03-03 06:31:10+01:00
Sunrise: 2012-03-03 07:03:08+01:00
Noon : 2012-03-03 12:36:59+01:00
Sunset : 2012-03-03 18:11:41+01:00
Dusk : 2012-03-03 18:43:39+01:00
3. Depression: astronomical
-------
Dawn : 2012-03-03 06:31:10+01:00
Sunrise: 2012-03-03 07:03:08+01:00
Noon : 2012-03-03 12:36:59+01:00
Sunset : 2012-03-03 18:11:41+01:00
Dusk : 2012-03-03 18:43:39+01:00
- Heidelberg with hd = ("Heidelberg", "Germany", 49.412, 8.71, "Europe/Berlin")
in accordance to the geographic coordinates as they are used internationally:
Information for Heidelberg/Germany
Timezone : Europe/Berlin
Latitude : 49.41
Longitude: 8.71
1. Depression: civil
-------
Dawn : 2012-03-03 07:40:45+01:00
Sunrise: 2012-03-03 08:12:43+01:00
Noon : 2012-03-03 13:46:40+01:00
Sunset : 2012-03-03 19:21:27+01:00
Dusk : 2012-03-03 19:53:24+01:00
2. Depression: nautical
-------
Dawn : 2012-03-03 07:40:45+01:00
Sunrise: 2012-03-03 08:12:43+01:00
Noon : 2012-03-03 13:46:40+01:00
Sunset : 2012-03-03 19:21:27+01:00
Dusk : 2012-03-03 19:53:24+01:00
3. Depression: astronomical
-------
Dawn : 2012-03-03 07:40:45+01:00
Sunrise: 2012-03-03 08:12:43+01:00
Noon : 2012-03-03 13:46:40+01:00
Sunset : 2012-03-03 19:21:27+01:00
Dusk : 2012-03-03 19:53:24+01:00
Changed in astral: | |
assignee: | nobody → Simon Kennedy (sffjunkie) |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in astral: | |
status: | In Progress → Fix Released |