CUBEVIEW(1)
π CUBEVIEW(1) β the Yorick era β¨
okay bestie, sit down, hydrate, because we're about to look at some 3D FITS files and it's gonna be adorable π«Ά (this one lives in the Yorick manual, section 1, iykyk)
π NAME π
cubeview β literally just: view 3D FITS files π
β¨ SYNOPSIS β¨
cubeview [--pixel[=0/1]] [--stand-alone[=0/1]] [--ui=ui] [file]
or yorick -i cubeview.i [options] [file]
or from within yorick(1): cubeview,options or cv_gtk[,options].
π DESCRIPTION π
Cubeview is a 3D data viewer that is specialized in spectro-imaging β main character energy only β and it's implemented using the Yorick interpreted language (go read yorick(1), bestie). So what even is a 3D data cube here? It's a three-dimensional array of numbers, and usually those numbers are chilling inside a FITS file. Simple as that. π
It can do its thing two ways:
- as a stand-alone viewer for viewing 3D FITS files β in which case you don't need to know much about Yorick to use it, no gatekeeping here π
- as a Yorick package, in which case it's possible to view Yorick arrays directly π
And here's the fun part: Cubeview can be customized and enhanced through "hooks" which can automatically perform custom actions while the cube is being viewed. For instance, it is possible to overplot some complex contour map over the slice view each time it is refreshed. Obsessed, honestly. For more details about the cubeview API in Yorick, read cubeview.i. π
Also, when cubeview is launched from a terminal window, it is possible to type Yorick commands in that window almost at any time. And in the following, this manpage assumes the reader is not a regular Yorick user β so if that's you, welcome, you're safe here π«Ά
Since Cubeview is specialized in spectro-imaging, it assumes the first two dimensions of the cube are of spatial nature while the third is spectral. Cubeview is able to correclty interpret the FITS headers of data produced with the decommissioned BEAR instrument which used to be operated at CFHT and SINFONI currently operated at ESO VLT. Other data may be interpreted if they follow the same conventions. But listen β if the FITS header cannot be interpreted, the axes in the plots cannot be trusted π, though you can still explore the 3D cube. So like, vibe check the axes, fr fr.
Cubeview uses three windows: a toolbox, a slice image window and a spectrum plot window. The toolbox allows one to open a new FITS file, save the currently selected sub-cube (determined both by the spectrum and slice being viewed), set various display parameters, and perform various actions β most notably selecting a new spectrum or a new slice. And if file is set in the calling sequence, then all three windows open at once, else only the toolbox appears at first, allowing the user to select a file to read. β¨
π MAIN PAGE π
The Main page in the toolbox offers reasonably self-explanatory buttons to perform various actions. (Reasonably!! we're being honest here π)
To select a new slice, click on Slice in the Select frame, then drag the mouse pointer over the region of interest in the spectrum window. Conversely, a new sepctrum is selected by first clicking Spectrum and then using the mouse in the slice window.
Now, how you use the mouse for selecting a spectrum depends on the Aperture type selected in the Spectrum property page:
- Circular β left button: click to select new center; right button: drag from new center to new edge;
- Square β left button: click to select new center; right button: drag from new center to new edge;
- Rectangular β drag from one corner to the opposite.
π§ SPECTRUM PAGE π§
The Spectrum property page allows one to select the Aperture type mentioned above. In addition, if the FITS header has been interpreted correctly, it is possible to switch the spectral axis between:
- Wavelength
- Frequency
- Channels (raw indices in the cube β the only meaningful value if the header was not interpreted correctly π)
- Velocity relative to a Reference wavelength which can also be set on this page
And Smoothing FWHM controls whether the displayed spectrum should be Gaussian-smoothed to increase the apparent signal-to-noise. Glow-up via math, we love to see it π
πΈ SLICE PAGE πΈ
The slice can be displayed in two modes.
The most usual one (named Normal (palette) in Cubeview) is palette-based. The corresponding Color palette can be selected among the standard Yorick ones. π¨
Alternatively, Cubeview can produce three-color images using virtual, overlapping red, green and blue filters. The slice can then be displayed either at 8 or 24 bit color-depth. 24 bit color depth is usually better, but 8 bit is useful to save to some image formats, which you can do from the Yorick command line. And Smoothing FWHM and Oversampling control two means of smoothing the displayed image for eye candy. β¨
π OPTIONS π
--pixel[=(false|true)]β Control whether the slice window axes are in pixels (true) or in world coordinates as indicated by theCDELT,CRPIXandCRVALFITS cards.--pixelis equivalent to--pixel=true. The default istrue. π--stand-alone[=(false|true)]β Control whether closing the toolbox window exits Yorick.--stand-aloneis equivalent to--stand-alone=true. This is the default for he first form of invocation. If set tofalse, it is necessary to type"quit"at the Yorick prompt to completely quit the application. πͺ--ui=(gtk|tws|text)β Control the look-and-feel of the toolbox. The default toolbox uses the GTK toolkit, and requires several software components in addition to Yorick (python,pygtkandlibglade). An alternative toolbox coded entirely in Yorick is also available. It uses the"TWS"package to draw buttons and other widgets. It is uglier, but more portable, than the GTK-based toolbox. Finally, it is possible to completely control cubeview from the Yorick prompt, in"text"mode. Type"cv_library"for a list of available commands. ποΈ
π₯ SEE ALSO π₯
yorick(1), cubeview.i
π AUTHORS π
Thibaut Paumard <paumard@users.sourceforge.net>
okay and that's the whole thing, bestie!! this page is from the Yorick manual β CUBEVIEW(1) β dated 2008-01-03, and it ate, no crumbs left. go view those cubes, you're the main character now πππ¦
π¦ where this page comes from
- debian bookworm: yorick-cubeview 2.2-2.2 Β· GPL-2.0-or-later
- debian trixie: yorick-cubeview 2.2-3 Β· GPL-2.0-or-later
- ubuntu jammy: yorick-cubeview 2.2-2.2 Β· GPL-2.0-or-later
- ubuntu noble: yorick-cubeview 2.2-2.2 Β· GPL-2.0-or-later
- ubuntu questing: yorick-cubeview 2.2-3
- ubuntu resolute: yorick-cubeview 2.2-3build1 Β· GPL-2.0-or-later
- ubuntu stonking: yorick-cubeview 2.2-3build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms