1 / 39

A Planetarium on the Web

A Planetarium on the Web. Pretesh Mistry. What is it?. Why?. Overcome cloudy sky Accessibility Light pollution in urban areas Location independent. Project Overview. Web application Designed for any casual web-user Allows users to create images of the sky based on a : Given location

eternity
Download Presentation

A Planetarium on the Web

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. A Planetarium on the Web Pretesh Mistry

  2. What is it?

  3. Why? • Overcome cloudy sky • Accessibility • Light pollution in urban areas • Location independent

  4. Project Overview • Web application • Designed for any casual web-user • Allows users to create images of the sky based on a : • Given location • Given time

  5. Technology • Requirements: • Internet Browser • No plug-ins required • Programming languages: • PHP – integrates well with database & HTML • PostgreSQL – previous experience • HTML - compatibility

  6. Technology cont. • Supporting Technologies • Portable Network Graphics (PNG) • Cascading Style Sheets (CSS) • GD graphics module • Typical Web-Application Setup: User requests Interface & Image DB Queries PHP Scripts

  7. Background Astronomy & Astrometry

  8. Time Systems • Julian Date (JD) • Universal Time(UT)/Greenwich Mean Time (GMT) • Sidereal Time

  9. Julian Date • Overcomes existing system, by representing any time and day in a single unit • E.g. 2.00pm 14th June 2005 • As JD -> 2453536.08333 • Represents number of decimal days since a given date (midday 1st Jan 4713BC)

  10. Universal Time/GMT • Based on the sun motion • Calculated from local civilian by adding or subtracting time zone correction • Advantage: • One time is valid for all locations on Earth

  11. Sidereal Time (ST) • Based on motion of the stars, not the Sun • Sidereal days shorter than solar days • After 24hrs in UT, stars do not return to same position, however after 24hrs ST they would

  12. Coordinate Systems • Horizontal Coordinates • Equatorial Coordinates • Ecliptic Coordinates

  13. Horizontal • Based around observer’s horizon • Positions identified by altitude (a) and azimuth (A)

  14. Equatorial • Earth’s equator, plane of reference • Positions identified by right ascension () and declination ()

  15. Ecliptic • Based around ecliptic (Sun’s orbit path) • Positions identified by ecliptic latitude and longitudes

  16. Coordinate Conversion • Equatorial -> Horizon

  17. Coordinate Conversion cont. • Ecliptic -> Equatorial

  18. Stars • Many Star Catalogues • E.g. Bright Star Catalogue, Tycho-1/-2, Hipparucus, SAO • Contain: • Identifier/name, positions, magnitude, spectral type, motions.

  19. Solar System Objects • Follows an elliptical orbit • Squashing determined by eccentricity

  20. The Sun • Position calculated by assumption of Sun orbiting Earth • Initially assume circular orbit • Calculate position in this fictional orbit by: • Apply correction for true elliptical path

  21. The Sun cont. • Finally ecliptic coordinates found by

  22. The Planets • Positions calculated similar as Sun, except Sun at centre. • However planetary orbits inclined to Earth’s orbit, therefore further corrections required. • Projected onto Sun apparent orbit • Finally position recalculated in reference to the Earth

  23. The Moon • Position difficult to calculate due to orbit: • Extra complications due to gravitational effects of Earth and Sun.

  24. Additions since report • Corrections for Perturbations made • Parallax errors compensated • Especially for the Moon

  25. Zenith Projection • Ideal for drawing a view of sky • Turns horizontal coordinate pair into an (x,y) pair • Real life zenith always at centre of image

  26. Zenith Projection cont. • Advantage: • Direct mapping of visible sky • Disadvantage: • Highly distorted image towards edges of image • Zenith Vs Uniform Zenith

  27. Demonstration …….

  28. System Implementation

  29. Database • SQL database stores star catalogue with desired attributes • Planetary orbit constants • Constellation data • Simple schema • Why SQL then?

  30. Client-Side • Interface constructed by HTML, dynamically generated by PHP scripts • Designed to collect minimum set of data from the user • Makes a request to server-side for desired image

  31. Server-Side • Responsible for producing images by using GD graphics library • Maintains state between requests by using PHP Sessions • Constructs and executes appropriate queries on database

  32. Server-Side cont.

  33. GD – Graphics Library • Constructs an instance of an image file • Allows manipulation of image by: • Drawing lines • Drawing basic shapes • Placing pixels • Rescaling & merging of images

  34. Zooming • Increases the width of the Sun, Moon, and planets accordingly • Stars however do not increase much in size

  35. Panning • Panning controls adjust a virtual latitude and longitude to simulate movement of zenith along image

  36. Panning cont. • Re-centring by mouse clicks: • Achieved by performing inverse of drawing functions • Obtains a equatorial position for that point • Calculate apparent latitude and longitude under newly defined zenith • Redraw projection with new ‘virtual’ latitude and longitude

  37. Future Work • Database optimisations • Phases of Moon and planet • Indicating bright and dark sides • Inclusion of other planets’ moons • E.g. Jupiter’s and Saturn’s • Lunar eclipses

  38. Conclusion • Gained much insight into astronomy • Applied the background material into technical solution • Problems Encountered: • Conversion of methods to code • Applying ambiguity corrections to inverse trigonometry functions • Minimising response times

  39. THE END …questions?

More Related