"Navigation" panel

BASICS
This panel gives information about the current coordinates of the 3D cursor. IMPORTANT : the actual cursor position in FRELLED and the values shown in the GUI are necessarily independent and the two do not update each other automatically : the user must take explicit action to ensure the two correspond with each other.

The cursor can be placed manually by left-clicking in the 3D window. To ensure it is in the correct place in three dimensions, change the viewpoint (rotate by holding down the mouse wheel or using the buttons described below) and update its position again.

"Get sky coords" attempts to use the astropy name resolver to set the coordinates of a source specified in the associated text box. At present this will only set the sky coordinates, not the spectral coordinates. Coordinates are set in the boxes below, but the 3D cursor position is not updated automatically.

The toggle "Equatorial/Galactic" chooses which system to use for the coordinates in the following boxes. Note that the axes plotted always uses the native format of the data given in its header. Switching the toggle will change the current displayed values to the new coordinate system AT THE CURRENT CURSOR POSITION. If you want to convert the values from one system to another, be sure not to move the cursor in between changing the coordinate system !

The sexigesimal boxes show units of time for RA when using equatorial coordinates, otherwise degrees of arc for all other cases. The decimal boxes ALWAYS show decimal degrees of arc. Altering the value in either the sexigesimal or decimal boxes causes the other values to alter as well, in real time. Again, note that this does NOT alter the current cursor position. 

The "RA" and "Dec" boxes set the sky coordinates in sexigesimal format. Currently only equatorial formats are supported. Updating these values does not automatically update the cursor position.

"Velocity" sets the spectral axis coordinate using the specified convention, generally velocity in km/s but other formats are also supported. Updating this value does not automatically update the cursor position.

"Where Am I ?" updates the above coordinate GUI boxes with the values at the current cursor position. If any visible objects are selected, it will print their angular separation from the cursor (in decimal and sexigesmial degrees) in the terminal. Note this will cause a slight shift in the cursor position as it restores this using the GUI pixel coordinate boxes, which are rounded down. Call "Take Me There !" to restore its position more accurately.

"Take Me There !" moves the cursor to the coordinates specified in the coordinate GUI boxes.

"Centre cursor" is useful if the cursor gets lost, repositioning it in the centre of the cube. The GUI coordinates are not updated.

"Peak cursor" places the cursor at the peak value along a line corresponding to the nearest line-of-sight projection that has been loaded. That is, if viewing the cube face-on, it will set only the spectral coordinate of the cursor; if viewed not quite face-on, the same is true. At other angles it may set the RA or Declination instead, depending on which projections have actually been loaded.

"Ortho" toggles the display between accounting for the effects of perspective or not. Using perspective can make viewing details in the data much easier, but can be confusing when making figures.

"XY / XZ / ZY" buttons sets the viewing angle to the major projections, following the kvis naming schemes. In 2D mode this has extra functionality :
- If no or multiple regions (see "Region setup" panel) are selected, it will also set the visible slice to the centre of the cube in that projection, and centre the cursor. 
- If a single region is selected, it will go to the slice corresponding to the centre of that region. This means it easy to adjust the size of a region in 2D mode.

The numerical keypad can also be used to adjust the viewpoint :
- 1 : XY view
- 7 : XZ view
- 3 : ZY view
Cltr+number gives the reverse angle of any projection. Additionally :
4, 8 ,6, 2 : rotate view by a fixed, exact increment (15 degrees)
5 : toggle perspective


ADVANCED
Using the "Spectral coordinates" panel, the user can change the displayed spectral axes. The coordinates shown in the Navigation panel will be altered accordingly. If the user chooses to display pixel values for the spectral axis, but the cube does have a valid WCS, the navigation panel will attempt to use the optical convention for velocity in units of km/s.