MOC

MOC

new MOC(options)

Description:
  • Represents a Multi-Order-Coverage with configurable options for display and interaction.
Source:
Parameters:
Name Type Description
options MOCOptions Configuration options for the MOC

Methods

contains(ra, dec) → {boolean}

Description:
  • Tests whether a given (ra, dec) point on the sky is within the current MOC object
Source:
Parameters:
Name Type Description
ra number Right-Ascension of the location in degrees and ICRS frame
dec number Declination of the location in degrees and ICRS frame
Returns:
True if the point is contained, false otherwise
Type
boolean

hide()

Description:
  • Hide the MOC object
Source:

serialize(formatopt)

Description:
  • Serialize a MOC into different format
Source:
Parameters:
Name Type Attributes Default Description
format string <optional>
'json' The output format. Only `json` is currently supported but `fits` could be added.

show()

Description:
  • Show the MOC object
Source:

skyFraction() → {number}

Description:
  • Return a value between 0 and 1 denoting the fraction of the sky covered by the MOC
Source:
Returns:
The sky fraction covered by the MOC
Type
number