AladinUtils
- Description:
- Aladin Lite utils API namespace for basic functions
- Source:
Namespaces
Methods
(static) degreesToString(numberDegrees)
- Description:
- Convert a number in degrees into a string
- Convert a number in degrees into a string
- Source:
Examples
// returns "1°"
Numbers.degreesToString(1)
// returns "6 arcmin"
Numbers.degreesToString(0.1);
// returns "36 arcsec"
Numbers.degreesToString(0.01);
Parameters:
Name | Type | Description |
---|---|---|
numberDegrees |
number in degrees (integer or decimal) |
Returns:
the formatted string
(static) radecToViewXy(ra, dec, aladin) → {Array.<number>}
- Source:
- Deprecated:
- Converts celestial coordinates (ra, dec) to screen coordinates (x, y) in pixels within the view.
Use
Aladin.world2pix
instead
- Converts celestial coordinates (ra, dec) to screen coordinates (x, y) in pixels within the view.
Use
Parameters:
Name | Type | Description |
---|---|---|
ra |
number | Right Ascension (RA) coordinate in degrees. |
dec |
number | Declination (Dec) coordinate in degrees. |
aladin |
Aladin | Aladin Lite object containing the WebAssembly API. |
Returns:
A 2 elements array representing the screen coordinates [X, Y] in pixels.
- Type
- Array.<number>