Author: Behrouz Safari
Website: AstroDataScience.Net
Check these links:
from aladin import Aladin
a = Aladin(target='270.6003707 -23.0224839')
buttons = [
('P/2MASS/color', 'bs 2MASS'),
('P/GLIMPSE360', 'bs GLIMPSE 360'),
]
markers = [
(270.332621, -23.078944, 'PSR B1758-23', 'Object type: Pulsar'),
(270.63206, -22.905550, 'HD 164514', 'Object type: Star in cluster'),
(270.598121, -23.030819, 'HD 164492', 'Object type: Double star'),
]
a.add_survey_buttons(buttons)
a.add_markers(markers)
a.create()
a.save('index.html')
from aladin import Aladin
a = Aladin(target='270.6003707 -23.0224839')
a.add_simbad()
a.add_vizier('I/239/hip_main')
a.create()
a.save('index.html')
You can pass optional arguments target and radius to both add_simbad and add_vizier methods.
from aladin import Aladin
a = Aladin(target='151.75735684271, -40.43642515362001', fov=0.1)
buttons = [
('P/2MASS/color', '2MASS'),
('P/DSS2/color', 'DSS'),
]
a.add_survey_buttons(buttons)
hips_id = 'CDS/P/JWST/Southern-Ring-Nebula/NIRCam'
hips_name = 'Southern-Ring-Nebula'
hips_base_url = 'https://alasky.cds.unistra.fr/JWST/CDS_P_JWST_Southern-Ring-Nebula_NIRCam'
hips_max_ord = 14
a.add_image_overlayer(hips_id, hips_name, hips_base_url, hips_max_ord, slider=True)
a.create()
a.save('index.html')
See more at astrodatascience.net