Search notes:

Python library: PyEphem

PyEphem allows to compute planet, comet, asteroid and Earth satellite positions. Apparently, the authors of PyEphem recommend to use the Skyfield python library instead, if possible.
#
# http://stackoverflow.com/questions/11169523/how-to-compute-alt-az-for-given-galactic-coordinate-glon-glat-with-pyephem
#

import ephem

def galacticToEquatorial(lon, lat):
    galactic   = ephem.Galactic(lon, lat)
    equatorial = ephem.Equatorial(galactic)

    print str(lon)+'/'+str(lat)+': RA='+str(equatorial.ra)+', dec='+str(equatorial.dec.real / 3.14156 * 180)


galacticToEquatorial(  '0:0:0',   '0:0:0')  # Galactic Center
galacticToEquatorial(  '0:0:0',  '90:0:0')  # Galactic North Pole
galacticToEquatorial(  '0:0:0', '180:0:0')  # Opposite Galactic Center
galacticToEquatorial(  '0:0:0', '270:0:0')  # Galactic South Pole
galacticToEquatorial( '90:0:0',   '0:0:0')  # Lat 90
galacticToEquatorial('270:0:0',   '0:0:0')  # Lat 270

Github repository about-python, path: /libraries/PyEphem/galactic-to-equatorial.py

See also

Stellarium
Astronomie: Orientierung an der Himmelskugel

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759392111, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Python/libraries/PyEphem(63): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78