Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pirtleshell/aladinlite
an SSL-enabled fork of CDS's AladinLite, an astronomy data viewer
https://github.com/pirtleshell/aladinlite
astronomy astrophysics space ssl
Last synced: 13 days ago
JSON representation
an SSL-enabled fork of CDS's AladinLite, an astronomy data viewer
- Host: GitHub
- URL: https://github.com/pirtleshell/aladinlite
- Owner: pirtleshell
- License: gpl-3.0
- Created: 2017-01-06T01:54:04.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-06T23:11:32.000Z (almost 8 years ago)
- Last Synced: 2024-10-22T10:30:25.596Z (2 months ago)
- Topics: astronomy, astrophysics, space, ssl
- Language: JavaScript
- Homepage:
- Size: 333 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# AladinLite
> an SSL-enabled fork of [CDS](http://cds.u-strasbg.fr/)'s [AladinLite](http://aladin.u-strasbg.fr/AladinLite)
## About
This is a copy of AladinLite, a totally awesome telescope imagery viewer developed by the [Centre de Données astronomiques de Strasbourg](http://cds.u-strasbg.fr/) (CDS). I corresponded with them about serving the images over an https protocol, and although they plan on implementing it in the near future, currently, the easy, plug-and-play AladinLite viewer is only available over http. However, they did provide me with links to https images ([JSON](http://alasky.unistra.fr/MocServer/query?hips_service_url*=https*&fields=ID,obs_collection,hips_service_url*&fmt=json) & [human-readable](http://alasky.unistra.fr/MocServer/query?hips_service_url*=https*&fields=ID,obs_collection,hips_service_url*)), so I have implemented an SSL version here.
## Usage
It works just like the original. The CSS and JS files can be found in the `/dist` directory, so either host them yourself, or use rawgit CDN. The CSS hasn't been modified, so feel free to use [the original](http://aladin.u-strasbg.fr/AladinLite/api/v2/latest/aladin.min.css).
Modified from the [original documentation](http://aladin.u-strasbg.fr/AladinLite/doc/):
```html
var aladin = A.aladin('#aladin-lite-div', {survey: "P/DSS2/color", fov:60});
```
## Building
### With gulp
Clone this repository and install the node dependencies for building:
```
git clone https://github.com/PirtleShell/AladinLite.git
cd AladinLite
npm install
```Now you can build it by running `gulp build`. To live update and compile on changes, just run `gulp`.
### With original build script
Compiling the js and css files requires that you have [uglifyjs2](https://github.com/mishoo/UglifyJS2) and [less](https://github.com/less/less.js). These can be installed with `npm`:
```sh
npm i -g uglify-js less
```Then run `./build.sh`. The new files will be replace those in `/dist`.
## License
This and the original are licensed under [GNU GPLv3](http://choosealicense.com/licenses/gpl-3.0/). The original license file can be found [here](https://github.com/PirtleShell/AladinLite/blob/master/COPYING) and [here is the original source code](http://aladin.u-strasbg.fr/AladinLite/doc/#source-code). It is copyrighted by the CDS.
---
## Currently needed Shims
- [X] `Sesame.resolve`. Original uses [this url](http://cds.u-strasbg.fr/cgi-bin/nph-sesame.jsonp?). New live SSL mirror available [here](https://laniakean.com/api/v1/resolveNames/?) through the [Laniakean API](https://laniakean.com/api#resolve-names-api).
- [X] `nph-aladin.pl` which retrieves available surveys. [The original list](http://aladin.u-strasbg.fr/java/nph-aladin.pl?frame=aladinLiteDic). A live SSL version is available [here](https://laniakean.com/data/nph-aladin.json).
- [X] default surveys in `HpxImageSurvey.js`
- [X] logging? [Current logging endpoint](http://alasky.u-strasbg.fr/cgi/AladinLiteLogger/log.py). I think it's available over SSL [here](https://alaskybis.unistra.fr/cgi/AladinLiteLogger/log.py). Need to confirm.