Methods
catalogUI(catalogs, optionsopt) → {CatalogUI}
Instantiate a VisiOmatic dialog for catalog queries and catalog overlays.
Parameters
Returns
-
CatalogUIInstance of a VisiOmatic catalog interface.
Source
channelUI(optionsopt) → {ChannelUI}
Instantiate a VisiOmatic dialog for managing channels in a VisiOmatic layer.
Parameters
-
options
object<optional>
Options: see
ChannelUI
Returns
-
ChannelUIInstance of a channel mixing user interface.
Source
coords(optionsopt) → {Coords}
Instantiate a coordinate display/control .
Parameters
-
options
object<optional>
Options: see
Coords.
Returns
-
CoordsInstance of a coordinate display/control interface.
Source
docUI(urlopt, optionsopt) → {DocUI}
Instantiate a VisiOmatic dialog for the online documentation.
Parameters
-
url
string<optional>
Documentation URL.
-
options
object<optional>
Options: see
DocUI
Returns
-
DocUIInstance of a VisiOmatic documentation user interface.
Source
ellipse(latlng, optionsopt) → {Ellipse}
Instantiate an ellipse marker with a shape that scales with zooming.
Parameters
-
latlng
leaflet.LatLngWorld coordinates of the center of the marker.
-
options
object<optional>
Options: see
Ellipse.
Returns
-
EllipseInstance of an ellipse marker.
Example
...
const marker = ellipse(latLng(30.0, 24.0), {
majAxis: 4.3,
minAxis: 2.1,
posAngle: 47.3
});
Source
ellipseMarker(latlng, optionsopt) → {EllipseMarker}
Instantiate an ellipse marker.
Parameters
-
latlng
leaflet.LatLngWorld coordinates of the center of the marker.
-
options
object<optional>
Options: see
EllipseMarker.
Returns
-
EllipseMarkerInstance of an ellipse marker.
Example
...
const marker = ellipseMarker(latLng(30.0, 24.0), {
majAxis: 24.7,
minAxis: 12.1,
posAngle: 47.3
});
Source
flipSwitch(parentopt, optionsopt) → {FlipSwitch}
Instantiate a flip switch widget.
Parameters
-
parent
object<optional>
Parent element.
-
options
object<optional>
Options: see
FlipSwitch
Returns
-
FlipSwitchFlip switch widget element.
Example
...
const elem = DomUtil.create('div', 'myelement', divParent);
const flipElem = flipSwitch(elem, {checked: true});
Source
fullScreen(optionsopt) → {FullScreen}
Instantiate a full-screen control.
Parameters
-
options
object<optional>
Options: see
FullScreen.
Returns
-
FullScreenInstance of a full-screen control.
Source
imageUI(optionsopt) → {ImageUI}
Instantiate a VisiOmatic dialog for setting the rendering of a VisiOmatic layer.
Parameters
-
options
object<optional>
Options: see
ImageUI
Returns
-
ImageUIInstance of a user interface for the rendering preferences.
Source
pixelValues(optionsopt) → {PixelValues}
Instantiate a pixel value display interface.
Parameters
-
options
object<optional>
Options: see
Coords.
Returns
-
PixelValuesInstance of a pixel value display interface.
Source
preferencesUI(optionsopt) → {PreferencesUI}
Instantiate a VisiOmatic dialog for managing preferences.
Parameters
-
options
object<optional>
Options: see
PreferencesUI
Returns
-
PreferencesUIInstance of a VisiOmatic preference interface.
Source
profileUI(optionsopt) → {ProfileUI}
Instantiate a VisiOmatic dialog for plotting image profiles and spectra.
Parameters
-
options
object<optional>
Options: see
ProfileUI
Returns
-
ProfileUIInstance of a VisiOmatic profile and spectrum plotting user interface.
Source
regionUI(regionsopt, optionsopt) → {RegionUI}
Instantiate a VisiOmatic dialog for region overlays.
Parameters
-
regions
Array.<region><optional>
Regions to overlay.
-
options
object<optional>
Options.
Returns
-
RegionUIInstance of a VisiOmatic region interface.
Source
reticle() → {Reticle}
Instantiate a reticle.
Returns
-
ReticleInstance of a reticle.
Example
const ret = reticle().addTo(map);
Source
rgb(r, g, b) → {RGB}
Instantiate an RGB triplet.
Parameters
-
r
number|Array.<number>|string|RGBRed value, rgb array, hexadecimalstring representation, or RGB triplet.
-
g
numberGreen value.
-
b
numberBlue value.
Returns
-
RGBInstance of an RGB triplet.
Example
const color = rgb('#A0B8C4');
Source
scale(optionsopt) → {Scale}
Instantiate a scale bar.
Parameters
-
options
object<optional>
Options: see
Scale
Returns
-
ScaleInstance of a scale bar.
Example
const doubleScale = scale({degrees: true, pixels: true}).addTo(map);
Source
sidebar(optionsopt) → {Sidebar}
Instantiate a sidebar.
Parameters
-
options
object<optional>
Options: see
Sidebar
Returns
-
SidebarInstance of a sidebar.
Example
const sb = sidebar({position: right}).addTo(map);
Source
snapshotUI(optionsopt) → {SnapshotUI}
Instantiate a VisiOmatic dialog for taking snapshots.
Parameters
-
options
object<optional>
Options: see
SnapshotUI
Returns
-
SnapshotUIInstance of a VisiOmatic snapshot interface.
Source
spinbox(parentopt, optionsopt) → {Spinbox}
Instantiate a spinbox widget.
Parameters
-
parent
object<optional>
Parent element.
-
options
object<optional>
Options: see
Spinbox
Returns
-
SpinboxSpinbox widget element.
Example
...
const elem = DomUtil.create('div', 'myelement', divParent);
const spinElem = Spinbox(elem, {initValue: 42.0, step: 2.0});
Source
vTileLayer(url, optionsopt) → {VTileLayer}
Instantiate a VisiOmatic tile layer.
Parameters
-
url
stringURL of the tile server.
-
options
object<optional>
Options: see
VTileLayer.
Returns
-
VTileLayerVisiOmatic TileLayer instance.
Source
wcs(header, images, optionsopt) → {WCS}
Instantiate a World Coordinate System.
Parameters
-
header
objectJSON representation of the merged image header.
-
images
Array.<Image>Array of image extensions.
-
options
object<optional>
Options: see
WCS.
Returns
-
WCSWCS instance.
Source
Type Definitions
coordinate
Coordinate settings.
Properties
-
type
'world'|'pixel'Coordinate type.
-
label
stringCoordinate name.
-
units
'deg'|'HMS'|''Coordinate units.
-
celsyscode
'equatorial'|'ecliptic'|'galactic'|'supergalactic'Coordinate system.
Source
ellipseShape
Ellipse shape parameters.
Properties
-
majAxis
number<optional>
Length of the ellipse major axis in pixels.
-
minAxis
number<optional>
Length of the ellipse minor axis in pixels.
-
posAngle
number<optional>
Ellipse position angle in degrees (CCW from x axis).
Source
image
Image metadata sent in JSON by the VisiOmatic server.
Properties
-
size
Array.<number>Shape of the image (FITS convention: NAXIS1 first).
-
dataslice
Array.<Array.<number>>Start index, end index, and direction (+1 only) of the used section of the image data for each axis. The range notation follows the FITS convention (start at index 1 and include the end index).
-
detslice
Array.<Array.<number>>Start index, end index, and direction (+1 or -1) of the used section of the detector in the merged image for each axis. The range notation follows the FITS convention (start at index 1 and include the end index).
-
min_max
Array.<Array.<number>>Minimum and maximum clipping limits of the pixel values on each image plane.
-
header
objectJSON representation of the merged image header.
Source
projParam
Projection parameters. The ordering of array elements follows the Leaflet convention: latitude comes first in [latitude,longitude] pairs, while x comes first in Cartesian coordinates. However the center of the first pixel in the array has image coordinates [1.0, 1.0], conforming to the FITS convention. Private properties are set by methods. Other private properties may be added by subclass methods.
Properties
-
name
stringExtension name.
-
ctype
ObjectProjection coordinate types (
CTYPEiFITS keyword values). -
naxis
Array.<number>Image shape (
NAXISiFITS keyword values) -
crpix
Array.<number>(
CRPIXiFITS keyword values). Image coordinates of the projection center. -
crval
Array.<number>Celestial latitude and longitude of the projection center. (
CRVALiFITS keyword values). -
cd
Array.<Array.<number>>Jacobian matrix of the deprojection (
CDi_jFITS keyword values). -
natpole
Array.<number>Latitude and longitude of the native pole.
-
pv
Array.<Array.<number>>Projection distortion terms on each axis (
PVi_jFITS keyword values). -
npv
numberNumber of non-zero
-
jd
Array.<number>Julian Date for start and end of observation.
-
obslatlng
Array.<number>Latitude and longitude of observatory.
-
dataslice
Array.<Array.<number>>Start index, end index, and direction (+1 only) of the used section of the image data for each axis. The range notation follows the FITS convention (start at index 1 and include the end index).
-
detslice
Array.<Array.<number>>Start index, end index, and direction (+1 or -1) of the used section of the detector in the merged image for each axis. The range notation follows the FITS convention (start at index 1 and include the end index).
-
_cdinv
Array.<Array.<number>>Jacobian matrix of the projection (inverse of the
CDmatrix). -
_natrval
Array.<number>Native latitude and longitude of the projection center.
-
_pixelFlag
booleanTrue for a Cartesian projection.
-
celsyscode
'equatorial'|'galactic'|'ecliptic'|'supergalactic'Type of celestial system.
Source
rectangleOptions
"Rectangle" footprint options.
Properties
-
color
stringRectangle color.
-
weight
numberRectangle line weight.
-
opacity
number<optional>
1Rectangle line opacity.
-
fillOpacity
number<optional>
1Rectangle fill opacity.
-
clickable
boolean<optional>
falseIs the rectangle footprint clickable?
Source
region
Region object.
Properties
-
url
stringURL for accessing the GeoJSON data.
-
name
stringName of the region (as it will appear in the selection menu of the interface).
-
description
string<optional>
Description of the region (as it will appear in a popup marker on the overlay).
-
index
numberPosition in the selection menu.
-
color
RGB<optional>
Default color of the region (as it will appear on the overlay).
-
load
booleanIs the region loaded yet?
-
drawPoint
RegionUI~drawCallback<optional>
Callback function for custom drawing of a GeoJSON point feature.
Source
valueSettings
Pixel value settings.
Properties
-
type
'raw'|'sbmag'Value type.
-
label
stringValue name.
-
units
'ADU'|'mag.arcsec⁻²'Value units.
-
mag
booleanResult in magnitude?
-
subtract
booleanSubtract background?