**Author:** Behrouz Safari<br/>
**Website:** [AstroDataScience.Net](http://astrodatascience.net/)<br/>
# baladin
*Pythonic tool to work with Aladin Lite*
## Installation
Install the latest version from [PyPI](https://pypi.org/project/baladin/):
pip install baladin
The only requirement is *pandas*.
*For more information, check these links:*<br/>
* [Build an interactive sky map with Aladin Lite](https://aladin.cds.unistra.fr/AladinLite/doc/tutorials/interactive-finding-chart/)<br/>
* [Image surveys](http://aladin.unistra.fr/hips/list)<br/>
* [REST api example](https://aladin.cds.unistra.fr/AladinLite/v3-beta/?fov=0.06&ra=151.7573568&dec=-40.4364251&baseImageLayer=CDS%2FP%2FunWISE%2Fcolor-W2-W1W2-W1&overlayImageLayer=https%3A%2F%2Falasky.cds.unistra.fr%2FJWST%2FCDS_P_JWST_Southern-Ring-Nebula_NIRCam&cooFrame=ICRS)<br/>
## Example 1 : add surveys and markers
```python
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
```python
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
```python
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](https://astrodatascience.net/)
Raw data
{
"_id": null,
"home_page": "https://github.com/behrouzz/baladin",
"name": "baladin",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "",
"author": "Behrouz Safari",
"author_email": "behrouz.safari@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/80/6e/6f1b56b95c5961fb7601fbe7df1705ba62b560764c69b04d0463cde224e7/baladin-0.0.2.tar.gz",
"platform": null,
"description": "**Author:** Behrouz Safari<br/>\r\n**Website:** [AstroDataScience.Net](http://astrodatascience.net/)<br/>\r\n\r\n# baladin\r\n*Pythonic tool to work with Aladin Lite*\r\n\r\n\r\n## Installation\r\n\r\nInstall the latest version from [PyPI](https://pypi.org/project/baladin/):\r\n\r\n pip install baladin\r\n\r\nThe only requirement is *pandas*.\r\n\r\n\r\n*For more information, check these links:*<br/>\r\n* [Build an interactive sky map with Aladin Lite](https://aladin.cds.unistra.fr/AladinLite/doc/tutorials/interactive-finding-chart/)<br/>\r\n* [Image surveys](http://aladin.unistra.fr/hips/list)<br/>\r\n* [REST api example](https://aladin.cds.unistra.fr/AladinLite/v3-beta/?fov=0.06&ra=151.7573568&dec=-40.4364251&baseImageLayer=CDS%2FP%2FunWISE%2Fcolor-W2-W1W2-W1&overlayImageLayer=https%3A%2F%2Falasky.cds.unistra.fr%2FJWST%2FCDS_P_JWST_Southern-Ring-Nebula_NIRCam&cooFrame=ICRS)<br/>\r\n\r\n\r\n## Example 1 : add surveys and markers\r\n\r\n```python\r\nfrom baladin import Aladin\r\n\r\na = Aladin(target='270.6003707 -23.0224839')\r\n\r\nbuttons = [\r\n ('P/2MASS/color', 'bs 2MASS'),\r\n ('P/GLIMPSE360', 'bs GLIMPSE 360'),\r\n ]\r\n\r\nmarkers = [\r\n (270.332621, -23.078944, 'PSR B1758-23', 'Object type: Pulsar'),\r\n (270.63206, -22.905550, 'HD 164514', 'Object type: Star in cluster'),\r\n (270.598121, -23.030819, 'HD 164492', 'Object type: Double star'),\r\n ]\r\n\r\na.add_survey_buttons(buttons)\r\na.add_markers(markers)\r\n\r\na.create()\r\na.save('index.html')\r\n```\r\n\r\n\r\n## Example 2 : add SIMBAD and VizieR layers\r\n\r\n```python\r\nfrom baladin import Aladin\r\n\r\na = Aladin(target='270.6003707 -23.0224839')\r\n\r\na.add_simbad()\r\n\r\na.add_vizier('I/239/hip_main')\r\n\r\na.create()\r\na.save('index.html')\r\n```\r\n\r\nYou can pass optional arguments *target* and *radius* to both *add_simbad* and *add_vizier* methods.\r\n\r\n\r\n## Example 3 : *Southern-Ring-Nebula* from JWST as overlay layer\r\n\r\n```python\r\nfrom baladin import Aladin\r\n\r\na = Aladin(target='151.75735684271, -40.43642515362001', fov=0.1)\r\n\r\nbuttons = [\r\n ('P/2MASS/color', '2MASS'),\r\n ('P/DSS2/color', 'DSS'),\r\n ]\r\n\r\na.add_survey_buttons(buttons)\r\n\r\nhips_id = 'CDS/P/JWST/Southern-Ring-Nebula/NIRCam'\r\nhips_name = 'Southern-Ring-Nebula'\r\nhips_base_url = 'https://alasky.cds.unistra.fr/JWST/CDS_P_JWST_Southern-Ring-Nebula_NIRCam'\r\nhips_max_ord = 14\r\n\r\na.add_image_overlayer(hips_id, hips_name, hips_base_url, hips_max_ord, slider=True)\r\n\r\na.create()\r\na.save('index.html')\r\n```\r\n\r\nSee more at [astrodatascience.net](https://astrodatascience.net/)\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Pythonic tool to work with Aladin Lite",
"version": "0.0.2",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8bf933efff833ba847e24590cc0021dd7e515f1faf8de88e5898ae98ed0c59a8",
"md5": "7b963786b214151803e6ef67831c7772",
"sha256": "092d77e0b84563bb45134887c616c7acd34e2c715160ae1ea9fa3cb0f5a8398c"
},
"downloads": -1,
"filename": "baladin-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7b963786b214151803e6ef67831c7772",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 5179,
"upload_time": "2023-01-11T03:48:00",
"upload_time_iso_8601": "2023-01-11T03:48:00.524555Z",
"url": "https://files.pythonhosted.org/packages/8b/f9/33efff833ba847e24590cc0021dd7e515f1faf8de88e5898ae98ed0c59a8/baladin-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "806e6f1b56b95c5961fb7601fbe7df1705ba62b560764c69b04d0463cde224e7",
"md5": "8c32bd19e6b0f93e7852d7f9a54b1078",
"sha256": "e25af801c438bcc19d934d4d21e5f97776f2c4dc63996dfa198391c85eb87c36"
},
"downloads": -1,
"filename": "baladin-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "8c32bd19e6b0f93e7852d7f9a54b1078",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 4812,
"upload_time": "2023-01-11T03:48:03",
"upload_time_iso_8601": "2023-01-11T03:48:03.140331Z",
"url": "https://files.pythonhosted.org/packages/80/6e/6f1b56b95c5961fb7601fbe7df1705ba62b560764c69b04d0463cde224e7/baladin-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-11 03:48:03",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "behrouzz",
"github_project": "baladin",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "baladin"
}