stella.jview
Class JTrackingFrequencies
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
jview.JNormalizedCanvas
jview.JViewportCanvas
jview.JFrameCanvas
jview.JBoxedCanvas
jview.JDataCanvas
stella.jview.JTrackingFrequencies
- All Implemented Interfaces:
- ImageObserver, MenuContainer, Serializable, DataCanvasProviding, NormalizedCoordinates, NormalizedShapes, UserCoordinates, Zoomable, Initializable, ResourceAware, ResourceComposed, Savable
public class JTrackingFrequencies
- extends JDataCanvas
A class that uses a data canvas to show an FFT of guider offsets.
- See Also:
- Serialized Form
|
Nested Class Summary |
static class |
JTrackingFrequencies.GuiderFile
A class to read the tracking data from the very specific format-file
produced by the stella guider. |
|
Field Summary |
static String |
ALTITUDE
Name of azimuth axis. |
static String |
AZIMUTH
Name of azimuth axis. |
private static String |
DEFDRAWINGSETS
Per default we display the telescope axis power and a seeing. |
private static String |
DEFPOLYGONSHAPE
The default shapes. |
private static double |
DEFSEEINGFACTOR
Converts guider seeing to true seeing. |
private static double |
DEFTELESCOPE
The size of the telescope in meter. |
private static double |
DEFWINDFACTOR
Converts max winds during an observation to atmosphere column wind. |
private long |
exposuretime
The exposure time on the guider camer in ms. |
static String |
KEY_SEEINGFACTOR
Converts guider seeing to true seeing. |
static String |
KEY_TELESCOPE
The size of the telescope in meter. |
static String |
KEY_WINDFACTOR
Converts max winds during an observation to atmosphere column wind. |
private double |
seeing
The seeing estimate, deduced from guider seeing plus KEY_SEEINGFACTOR. |
static String |
SEEING
Name of seeing. |
private long |
timegap
The time-gap between the measurements in ms. |
private double |
wind
The column wind speed estimate from ground maximum wind. |
| Fields inherited from class jview.JDataCanvas |
DATALOSSPROPERTY, DEFXUSERSPACEMIN, DEFYUSERSPACEMIN, KEY_CONNECT, KEY_DATALAST, KEY_EQUALSCALE, KEY_EQUALSTART, KEY_ERRORALWAYSRED, KEY_ERRORCOLOR, KEY_ERRORHAT, KEY_ERRORHATLENGTH, KEY_ERRORINCLUDE, KEY_ERRORSHOW, KEY_FLIPXAXIS, KEY_FLIPYAXIS, KEY_HIGHLIGHTSHAPE, KEY_JOINDATA, KEY_LABELFONT, KEY_LEGEND, KEY_LEGENDGAP, KEY_LEGENDLENGTH, KEY_LEGENDLIST, KEY_LEGENDMAP, KEY_LEGENDY, KEY_POINTS, KEY_POLYGONSHAPE, KEY_RETAINSIZE, KEY_SAVESETS, KEY_SHAPESIZE, KEY_XAXISDISTANCE, KEY_XAXISLABEL, KEY_XERRORINDEX, KEY_XERRORSHAPE, KEY_XINDEX, KEY_XSHRINK, KEY_XUSERSPACEMIN, KEY_YAXISDISTANCE, KEY_YAXISLABEL, KEY_YERRORINDEX, KEY_YERRORSHAPE, KEY_YINDEX, KEY_YSHRINK, KEY_YUSERSPACEMIN, KEY_ZEROXAXIS, KEY_ZEROYAXIS, RESCALEPROPERTY, SAVEDATA |
| Fields inherited from class jview.JBoxedCanvas |
AUTODATE, BOTTOM, KEY_FONT, KEY_GRIDCOLOR, KEY_IGNOREFORMAT, KEY_LABELAT, KEY_LABELCOLOR, KEY_LABELXANGLE, KEY_LABELXAUTO, KEY_LABELXEND, KEY_LABELXEXTRA, KEY_LABELXFORMAT, KEY_LABELXINSIDE, KEY_LABELXSTART, KEY_LABELXSTEP, KEY_LABELYANGLE, KEY_LABELYAUTO, KEY_LABELYEND, KEY_LABELYEXTRA, KEY_LABELYFORMAT, KEY_LABELYINSIDE, KEY_LABELYSTART, KEY_LABELYSTEP, KEY_MAXLABELS, KEY_MAXTICKS, KEY_TICKAT, KEY_TICKCOLOR, KEY_TICKSTRETCH, KEY_TICKXAUTO, KEY_TICKXEND, KEY_TICKXGRID, KEY_TICKXINSIDE, KEY_TICKXSIZE, KEY_TICKXSTART, KEY_TICKXSTEP, KEY_TICKYAUTO, KEY_TICKYEND, KEY_TICKYGRID, KEY_TICKYINSIDE, KEY_TICKYSIZE, KEY_TICKYSTART, KEY_TICKYSTEP, KEY_XISDATE, KEY_XLOGARITHMIC, KEY_YISDATE, KEY_YLOGARITHMIC, LEFT, RIGHT, TOP |
| Fields inherited from class jview.JFrameCanvas |
KEY_ABSOLUTEHEIGHT, KEY_ABSOLUTEWIDTH, KEY_DRAWBOX, KEY_RELATIVEHEIGHT, KEY_RELATIVEWIDTH, KEY_TITLECOLOR, KEY_TITLEFONT, KEY_TITLEJUSTIFY, KEY_TITLEOFFSET, KEY_TITLETEXT, KEY_TOPCOLOR, KEY_TOPFONT, KEY_TOPJUSTIFY, KEY_TOPOFFSET, KEY_TOPSEPARATOR, KEY_TOPTEXT, KEY_XFRAME, KEY_XINSETABSOLUTE, KEY_XINSETRELATIVE, KEY_YFRAME, KEY_YINSETABSOLUTE, KEY_YINSETRELATIVE |
| Fields inherited from class jview.JNormalizedCanvas |
BACKGROUNDIMAGEPROPERTY, EXPORTACTION, GENERIC, inverse, KEY_BACKGROUND, KEY_CANVASNAME, KEY_CANVASTIP, KEY_CURSORCLASSES, KEY_CURSORPROPS, KEY_DRAWINGSETS, KEY_FOREGROUND, KEY_MAXIMUMHEIGHT, KEY_MAXIMUMWIDTH, KEY_MINIMUMHEIGHT, KEY_MINIMUMWIDTH, KEY_PREFERREDHEIGHT, KEY_PREFERREDWIDTH, KEY_PRINTFONT, KEY_PRINTFONTSCALE, KEY_PRINTSHAPESCALE, KEY_RESTORESHAPES, KEY_XFLIPIMAGE, KEY_YFLIPIMAGE, PRINTACTION, SAVEACTION, transform |
| Methods inherited from class jview.JDataCanvas |
addDataObserver, addDelete, addDrawingInfo, addJoint, addMeasure, addMeasure, addZoom, clearData, deleteClosest, deleteInside, drawShapes, extractKeys, extractKeys, getActions, getAnimationInfo, getClosestData, getClosestData, getClosestDataShape, getClosestShape, getComposingCanvases, getDefaultProperties, getInsideData, getInsideShapes, getMainCanvas, getMaximumPoints, getMeasuredData, getShapeForSet, getSpanX, getSpanY, getUserData, init, isEmpty, notifyClear, notifyNew, notifyOnAdd, notifyOnRemove, prepareCanvas, putMeasuredSet, putMeasuredSet, putMeasuredSets, rebuildOneDataSet, redeemList, removeDataObserver, removeJoint, revertDeleted, setShapeForSet, setUserData |
| Methods inherited from class jview.JBoxedCanvas |
getBestDateFormat, getDefaultFormatX, getDefaultFormatY, getUserTransformation, getUserTransformation, printComponent, setUserTransformation, setUserTransformation, silentlySelectViewport, xIsDate, yIsDate |
| Methods inherited from class jview.JViewportCanvas |
addAttachedViewport, addZoom, getViewport, getViewportImage, isMaximalViewport, isNormalizedOnScreen, removeAttachedViewport, resetViewport, selectArea, selectViewport, setViewportImage, transferView |
| Methods inherited from class jview.JNormalizedCanvas |
addCrossCursor, addDrawable, addDrawable, addDrawable, addLink, addLink, addPoint, addPoint, addText, addText, allInside, applyDrawingInfo, assignCursorLabel, clearAllDrawable, clearAllText, clearDrawable, clearText, createCanvasCursor, disabledCanvas, drawPoints, drawPointsMap, drawShapesMap, drawText, drawTextMap, firePropertyChange, getAllCanvasCursors, getBackground, getBackgroundImage, getCanvasCursor, getClosest, getClosest, getClosest, getComposedProperties, getFromName, getImageOperation, getInside, getInverseTransform, getLink, getLinkedTo, getMaximumSize, getMinimumSize, getNormalized, getNormalizedRect, getPreferredSize, getSaveBuffer, getScreen, getScreenRect, getShapeTransform, isFlipX, isFlipY, paintComponent, paintPointsList, paintShapesList, paintTextList, removeDrawable, removeDrawable, removeLink, removeText, removeText, repaintLater, repaintNow, setBackgroundImage, setBounds, setComplete, setCursor, setCursor, setDrawable, setImageOperation, setLink, setPrepare, startAnimation, stopAnimation |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
AZIMUTH
public static final String AZIMUTH
- Name of azimuth axis.
- See Also:
- Constant Field Values
ALTITUDE
public static final String ALTITUDE
- Name of azimuth axis.
- See Also:
- Constant Field Values
SEEING
public static final String SEEING
- Name of seeing.
- See Also:
- Constant Field Values
KEY_WINDFACTOR
public static final String KEY_WINDFACTOR
- Converts max winds during an observation to atmosphere column wind.
- See Also:
- Constant Field Values
KEY_SEEINGFACTOR
public static final String KEY_SEEINGFACTOR
- Converts guider seeing to true seeing.
- See Also:
- Constant Field Values
KEY_TELESCOPE
public static final String KEY_TELESCOPE
- The size of the telescope in meter.
- See Also:
- Constant Field Values
DEFDRAWINGSETS
private static final String DEFDRAWINGSETS
- Per default we display the telescope axis power and a seeing.
- See Also:
- Constant Field Values
DEFPOLYGONSHAPE
private static final String DEFPOLYGONSHAPE
- The default shapes.
- See Also:
- Constant Field Values
DEFWINDFACTOR
private static final double DEFWINDFACTOR
- Converts max winds during an observation to atmosphere column wind.
- See Also:
- Constant Field Values
DEFSEEINGFACTOR
private static final double DEFSEEINGFACTOR
- Converts guider seeing to true seeing.
- See Also:
- Constant Field Values
DEFTELESCOPE
private static final double DEFTELESCOPE
- The size of the telescope in meter.
- See Also:
- Constant Field Values
timegap
private long timegap
- The time-gap between the measurements in ms.
exposuretime
private long exposuretime
- The exposure time on the guider camer in ms.
seeing
private double seeing
- The seeing estimate, deduced from guider seeing plus KEY_SEEINGFACTOR.
wind
private double wind
- The column wind speed estimate from ground maximum wind.
JTrackingFrequencies
public JTrackingFrequencies(ResourceSupplying prop)
- Constructs a new data canvas that goes into listening state on
JDataCanvas.init().
setComposedProperties
public void setComposedProperties(ResourceSupplying prop)
- Defaults the repository name and the sensors to monitor.
- Specified by:
setComposedProperties in interface ResourceAware- Overrides:
setComposedProperties in class JDataCanvas
setTimeGap
public void setTimeGap(long ms)
- Sets the time intervall in which the data points were taken.
setExposureTime
public void setExposureTime(long ms)
- Sets the exposure time on the guider system in ms. The time is needed for
the seeing power spectrum.
setSeeing
public void setSeeing(double arcsec)
- Sets the seeing estimate as deduced from the guider system. This seeing
measure is adjusted to a 'true' seeing by multiplication with
KEY_SEEINGFACTOR.
setWind
public void setWind(double mpers)
- Sets the measured maximum wind speed. For the seeing power spectrum, the
average wind speed in the atmosphere column is needed. This can only be
estimated via a multiplication of the wind speed with
KEY_WINDFACTOR.
setOffsetMeasures
public List setOffsetMeasures(String name,
VectorG data)
- Sets the data set. Each pointin the provided
VectorG should
correspond to an arcsec offset in either the azimuth or the altitude
axis.
addSeeingToPlot
public void addSeeingToPlot(int length)
- Adds the seeing data to the plot.
getPower
private static VectorG getPower(VectorG data)
- Zero-pads the data to both sides if necessary and does a simple power
spectrum on it. Returns the power spectrum as an
VectorG of half
the size of the zero-padded data, lowest frequency at index zero. Uses a
PowerSpectrum#WelchWindow.
convertToPlot
private List<VectorG> convertToPlot(VectorG power)
- Adds a power-vector to this graph, on-the-fly transforming index in the
vector to frequency in Hertz.
- Returns:
- A list of
Vector2D, x is frequency, y is power.