Members
dataPaths
Stores path to datafile that will be used later
- Source:
Methods
changeLinesGroup(newGroupIndex)
Changes list of spectral lines displayed in table next to the spectrum.
Only a few lines are displayed at a time to avoid list becoming too long.
Parameters:
Name | Type | Description |
---|---|---|
newGroupIndex |
int | index of displayed lines group |
- Source:
cmToK(energy_in_cm)
Converts cm-1 in K (for energy values)
Parameters:
Name | Type | Description |
---|---|---|
energy_in_cm |
* |
compute(Hnot, OmegaM, z) → {object}
Returns an object containing the distant in Mpc, the scale in kpc,
the luminosity distance in Mpc and the z value in Gyr
Parameters:
Name | Type | Description |
---|---|---|
Hnot |
* | |
OmegaM |
* | |
z |
* |
Returns:
- Type
- object
dcmt() → {float}
Returns tangential comoving distance
Returns:
- Type
- float
deleteFeature(evt)
Removes the selected box on the summedslice viewer when user push X key on keyboard
Parameters:
Name | Type | Description |
---|---|---|
evt |
Event |
- Source:
DMS2DecDeg(value)
Converts a declination D:M:S into decimal degrees
Parameters:
Name | Type | Description |
---|---|---|
value |
* |
Returns:
result in degrees
getAverageSpectrumTitle() → {Element}
Returns the title of the average spectrum
Returns:
- Type
- Element
getCalculatedIndex(value) → {float}
Returns the channel corresponding to the given input value (frequency or velocity)
Parameters:
Name | Type | Description |
---|---|---|
value |
number | (float) |
Returns:
- Type
- float
getConfiguration() → {object}
Returns the color selected in the color palette
Returns:
values for ittName, lutName, vmName
- Type
- object
getDefaultLUTIndex() → {Element}
Returns the field containing the default value for LUT select
Returns:
- Type
- Element
getFitsFilePath() → {Element}
Returns the field containing the path of the currently opened FITS file
Returns:
- Type
- Element
getHeader() → {Element}
Returns the field containing the FITS file header
Returns:
- Type
- Element
getLoading()
Returns the loading image
Returns:
getLpLine(sline, nu_obs, dl, z)
Returns value of L'_Line in K.km/s.pc2, then Mgas is a function of L'_Line
Parameters:
Name | Type | Description |
---|---|---|
sline |
* | surface selected in summed pixel spectrum in Jy.km/s |
nu_obs |
* | line observed frequency in GHz |
dl |
* | distance in Mpc (from NED) |
z |
* | redshift |
Returns:
getProduct() → {Element}
Returns the field containing the name of the product whose data are displayed
Returns:
- Type
- Element
getProjection(type) → {Projection}
Returns a Projection object according to the type passed in parameter
Parameters:
Name | Type | Description |
---|---|---|
type |
string |
Returns:
- Type
- Projection
getRadiusInDegrees()
Compute the search radius in degrees from coordinates
to get matching sources in NED
if radius_value is FOV : Returns the max value between abs(RAmax-RAmin) and abs(Decmax-Decmin)
else : return radius_value
radius_value : radius in arcmin or "fov"
fits_header : FITS_HEADER object
getRedshiftField() → {Element}
Returns the redshift input field
Returns:
- Type
- Element
getSampConnectionStatus() → {Element}
Returns the field containing the status of the SAMP connection
The status is written in text and must be parsed before use.
Returns:
- Type
- Element
getSingleSliceMousePosition() → {Element}
Returns element displaying the position of the mouse on the single slice
Returns:
- Type
- Element
getSpectroServerUrl() → {Element}
Returns the field containing the url of the spectroscopy server
Returns:
- Type
- Element
getSummedSliceMousePosition() → {Element}
Returns element displaying the position of the mouse on the summed slice
Returns:
- Type
- Element
getUrlRoot() → {Element}
Returns the field containing the root url of the service
Returns:
- Type
- Element
getVelocityField() → {Element}
Returns the velocity input field
Returns:
- Type
- Element
getViewLinker(radecRange, spectroUI, sourceTable, markerList) → {ViewLinker}
Returns a ViewLinker object that provides an interface to manipulate Spectrums and Slices
Parameters:
Name | Type | Description |
---|---|---|
radecRange |
array | RA/DEC ranges corresponding to opened fits file |
spectroUI |
SpectroUI | spectroscopy interface control object |
sourceTable |
SourceTable | NED interface object |
markerList |
MarkerList | list of markers |
Returns:
- Type
- ViewLinker
hashCode(s)
Generates a random string
(from https://stackoverflow.com/questions/7616461/generate-a-hash-from-string-in-javascript)
Parameters:
Name | Type | Description |
---|---|---|
s |
* |
Returns:
HMS2DecDeg(value)
Converts a H:M:S value into decimal degrees
Parameters:
Name | Type | Description |
---|---|---|
value |
* |
Returns:
KToCm(energy_in_K)
Converts K in cm-1 (for energy values)
Parameters:
Name | Type | Description |
---|---|---|
energy_in_K |
* |
SAMPPublisher(connector, dataPaths)
Manages connection to samp hub
Parameters:
Name | Type | Description |
---|---|---|
connector |
* | samp hub connector |
dataPaths |
* | paths to data file |
separation(RA1, DEC1, RA2, DEC2)
Returns separation in arcsec ( for lisibility )
Parameters:
Name | Type | Description |
---|---|---|
RA1 |
* | in degrees |
DEC1 |
* | in degrees |
RA2 |
* | in degrees |
DEC2 |
* | in degrees |
setFluxDensity(fluxDensity, sliceIndex)
Public method to register the fluxDensity value passed as a parameter
and update the popup content accordingly.
Parameters:
Name | Type | Description |
---|---|---|
fluxDensity |
number | flux density (float) |
sliceIndex |
number | index of displayed slice in cube (int) |
setOnHubAvailability(viewers)
Enable or disable SAMP from a list of viewers
Parameters:
Name | Type | Description |
---|---|---|
viewers |
* |
setOnHubAvailability2D()
Enable or disable SAMP in 2D slice
setPositionAndFluxDensity(data)
Public method to register the values to be displayed
in the popup and update its content.
Parameters:
Name | Type | Description |
---|---|---|
data |
object | an object containing displayed information |
shift(lines, value, type)
calculate the shifted value of all the lines in the given array
returns a deep-copy of the array with shifted line values
Parameters:
Name | Type | Description |
---|---|---|
lines |
* | array of lines |
value |
* | value used to calculate shift |
type |
* | redshift or velocity |
showLoaderAction(isVisible)
Toggles the loading image
Parameters:
Name | Type | Description |
---|---|---|
isVisible |
boolean |
str2FloatArray(s, range) → {Array.<number>|undefined}
Utility.
A function which parses a string into an array of floats. The string is expected
to be a comma separated list of textual representation of decimal numbers.
A range [min, max[ can be provided, then the values are considered valif if and only if they lie in that range.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
s |
string | a comma separated list of textual numbers representations | |
range |
false |
Returns:
an array of float numbers or undefined.
- Type
- Array.<number> | undefined
unshift(frequency, value, type)
get the rest value for a frequency according to a redshift or a velocity
returns a deep-copy of the array with shifted line values
Parameters:
Name | Type | Description |
---|---|---|
frequency |
* | |
value |
* | value used to calculate shift |
type |
* | redshift or velocity |
Type Definitions
AxesFactory
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
numeridians |
number | number of visible meridians (int) |
nparallels |
number | number of visible parallels (int) |
cdelt1 |
number | cdelt1 in radians (header is in degrees) (float) |
cdelt2 |
number | cdelt2 in radians (header is in degrees) (float) |
axisStyle |
object | styling options for axis |
BoundingRect
Bounding rectangle.
Properties:
Name | Type | Description |
---|---|---|
|
||
unit |
string | The unit in which are expressed x, y, w and h. Must be "pixels" |
ContourMeasurement
Statistics on the area delimited by a contour.
Properties:
Name | Type | Description |
---|---|---|
min |
PhysMeas | the minimum over the pixels values |
max |
PhysMeas | the maximum over the pixel values |
mean |
PhysMeas | the average of the pixel values |
stdev |
PhysMeas | the standard deviation of the pixel values |
numpix |
number | the number of pixels |
"percentage |
PhysMeas | of total number of pixels" - self explanatory ( note that unit in that case is "%" ) |
boundingRect |
BoundingRect | self explanatory |
ContoursLevelsPostParams
When contours are calculated from their levels values.
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
iFreq |
number | the index of the RA/DEC plane of interest. |
levels |
Array.<number> | the array of levels numerical values. |
ContoursOptParams
Union of ContoursLevelsPostParams and ContoursQuantilesPostParams
Type:
ContoursPostParams
How is structured the parameter sent to the contours lines calculator.
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
relFITSFilePath |
string | the path to the FITS file of interest |
optParams |
string | JSON representation of a ContoursOptParams |
ContoursQuantilesPostParams
When contours are calculated from their quantiles values.
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
iFreq |
number | the index of the RA/DEC plane of interest. |
quantiles |
Array.<number> | the array of quantiles numerical values. |
defaults
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
value |
string | Array | Initial value of the compontent |
placeholder |
string | The default instruction text on the element |
onchange |
requestCallback | Method to be execute after any changes on the element |
onclose |
requestCallback | Method to be execute when the element is closed |
defaults
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
value |
string | Array | Initial value of the compontent |
limit |
number | Max number of tags inside the element |
search |
string | The URL for suggestions |
placeholder |
string | The default instruction text on the element |
validation |
validation | Method to validate the tags |
onbeforechange |
requestCallback | Method to be execute before any changes on the element |
onchange |
requestCallback | Method to be execute after any changes on the element |
onfocus |
requestCallback | Method to be execute when on focus |
onblur |
requestCallback | Method to be execute when on blur |
onload |
requestCallback | Method to be execute when the element is loaded |
defaults
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
value |
string | Array | Initial value of the compontent |
placeholder |
string | The default instruction text on the element |
onchange |
requestCallback | Method to be execute after any changes on the element |
onclose |
requestCallback | Method to be execute when the element is closed |
FitsHeader
Class representing a FITS header.
Type:
- Object
ImgControlBuilder
A class creating buttons appearing on a an open layer map
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
_buttonInnerHTML |
string | HTML code in the button element |
_buttonCss |
string | button style |
_topPosition |
number | vertical position of the button in the map (0 is on top) |
_title |
string | title displayed as a tooltiptext |
LastClickMarker
An object to mark informations related to a position
in a popup bow located close to the position passed
as a parameter.
Type:
- Object
LinePlotter
Object plotting lines on a spectrum
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
linesCount |
number | number of lines currently displayed (int) |
transitions |
array | complete list of spectral lines in the searched band |
targets |
array | spectra graphs where lines will be plotted |
spectroUI |
SpectroscopyUI | |
transitionGroups |
array | gorups of lines |
shiftedLineIdPrefix |
string | prefix used when setting the id of a shifted line in the DOM |
lineColor |
string | hexadecimal code defining the color of a line |
obsFreqMin |
number | minimum frequency (float) |
obsFreqMax |
number | maximum frequency (float) |
LineStringFeature
What is a contour as expected by importYAFITSContours.
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
type |
string | Must be equal to "LineString" |
coordinates |
Array.<Array.<number>> | an array of 2D coordinates |
properties |
LineStringProperties | its properties |
LineStringProperties
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
level |
PhysMeas | the level of the contour |
PhysMeas
Physical measure are defined by a numerical value and a physical unit
Properties:
Name | Type | Description |
---|---|---|
value |
number | the numerical value |
unit |
string | the physical unit |
Slice
Base class for Slice display
Type:
- Object
SpectroscopyFormatter
An object providing methods to format spectroscopic data display
Type:
- Object
SpectroscopyUI
Object managing interaction with the spectroscopy user interface
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
toggler |
object | checkbox to enable/disable the UI |
spectroscopyForm |
object | the whole form |
redshiftElement |
object | redshift input |
dlElement |
object | luminosity distance input |
databaseElement |
object | database choice checkboxes |
energyUpElement |
object | energy up input |
energyUpUnitElement |
object | energy up unit select |
intensityRangeElement |
object | intensity range |
intensityElement |
object | intensity value display |
atomCountMinElement |
object | minimum number of atoms |
atomCountMaxElement |
object | maximum number of atoms |
autoCompleteElement |
object | species choice with autocompletion |
selectedSpeciesElement |
object | list of selected species |
linesTable |
object | html table of displayed lines |
linesTableBody |
object | html table tbody |
linesTableContainer |
object | html table div |
currentGroupDisplay |
object | id of currently displayed group |
lastGroupDisplay |
object | id of last displayable group |
surfaceInSummedSpectrum |
object | display surface of selected area in spectrum |
lineLuminosityElement |
object | display value of line luminosity |
referenceLineElement |
object | reference line used for luminosity calculation |
groupsInfos |
array | list of tuples of min/max energy value for each lines group |
currentGroup |
number | index of currently displayed group (int) |
referenceFreq |
number | reference frequency value for luminosity calculation (float) |
ViewLinker
Class creating link between slices and spectra
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
spectrumViewer |
SpectrumViewer | |
summedPixelsSpectrumViewer |
SummedPixelsSpectrumViewer | |
extent |
array | |
raLabelFormatter |
RaLabelFormatter | |
decLabelFormatter |
SpectruDecLabelFormattermViewer | |
singleSliceImage |
SliceViewer | |
summedSlicesImage |
SummedSliceViewer | |
coordsProjection |
Projection | |
spectroUI |
SpectroscopyUI |