AladinUtils

Namespace

AladinUtils

Description:
  • Aladin Lite utils API namespace for basic functions
Source:

Namespaces

HEALPix
Sesame

Methods

(static) degreesToString(numberDegrees)

Description:
  • Convert a number in degrees into a string
Source:
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);
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
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>