Skip to main content

Pythonic tool to work with Aladin Lite

Project description

Author: Behrouz Safari
Website: AstroDataScience.Net

baladin

Pythonic tool to work with Aladin Lite

Installation

Install the latest version from PyPI:

pip install baladin

The only requirement is pandas.

For more information, check these links:

Example 1 : add surveys and markers

from baladin 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')

Example 2 : add SIMBAD and VizieR layers

from baladin 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.

Example 3 : Southern-Ring-Nebula from JWST as overlay layer

from baladin 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

baladin-0.0.2.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

baladin-0.0.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file baladin-0.0.2.tar.gz.

File metadata

  • Download URL: baladin-0.0.2.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for baladin-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e25af801c438bcc19d934d4d21e5f97776f2c4dc63996dfa198391c85eb87c36
MD5 8c32bd19e6b0f93e7852d7f9a54b1078
BLAKE2b-256 806e6f1b56b95c5961fb7601fbe7df1705ba62b560764c69b04d0463cde224e7

See more details on using hashes here.

File details

Details for the file baladin-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: baladin-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for baladin-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 092d77e0b84563bb45134887c616c7acd34e2c715160ae1ea9fa3cb0f5a8398c
MD5 7b963786b214151803e6ef67831c7772
BLAKE2b-256 8bf933efff833ba847e24590cc0021dd7e515f1faf8de88e5898ae98ed0c59a8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page