Namespace: AladinUtils

AladinUtils

Aladin Lite utils API namespace for basic functions
Source:

Namespaces

HEALPix
Sesame

Methods

(static) degreesToString Convert a number in degrees into a string
(numberDegrees)

Parameters:
Name Type Description
numberDegrees number in degrees (integer or decimal)
Source:
Returns:
a formattes string
Examples

Result in degrees

// returns "1°"
Numbers.degreesToString(1)

Result in arcminutes

// returns "6 arcmin"
Numbers.degreesToString(0.1);

Result in arcseconds

// returns "36 arcsec"
Numbers.degreesToString(0.01);

(static) radecToViewXy(ra, dec, aladin) → {Array.<number>}

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.
Deprecated:
  • Converts celestial coordinates (ra, dec) to screen coordinates (x, y) in pixels within the view. Use Aladin.world2pix instead
Source:
Returns:
xy - A 2 elements array representing the screen coordinates [X, Y] in pixels.
Type
Array.<number>