Using ISIS - Introduction¶
Setting up ISIS
To use ISIS, you will need to install it. For many functions, including importing images, you must set up the ISIS data area (or use Web SPICE).
- Installing ISIS - Our script sets up miniforge, ISIS, and the data area for you.
- Setting up the ISIS Data Area - Download the entire ISIS data area or mission-specific data
- Using Web SPICE in ISIS and ALE - Use web SPICE data via SpiceQL instead of local data
- Adding SPICE - Some ISIS apps require SPICE info to be attached to the cube.
ISIS Apps - Interactive and Non-interactive¶
ISIS has a few interactive, and many more non-interactive apps.
The main interactive app is qview,
the image viewer.
Non-interactive apps are usually run in text mode on the command-line.
They process data (usually image files) with specified parameters (settings),
and write results to a new file (output). Some examples:
lowpass,
ratio,
moc2isis.
All ISIS programs (interactive or not) are run from the command line, by typing the program name followed by any arguments.
Command-line Arguments¶
Reserved Arguments¶
Reserved arguments start with a dash - and are optional.
-helpand-webhelpshow more info about an ISIS app.-lastand-restore=<yourFilename>run an app again with previously-used settings.-guiruns a program in visual mode.
Reserved Arguments - Details
See Command Line Usage - Reserved Parameters for further info.
-webhelpLaunch a web browser showing the ISIS help page for that program. All other arguments will be ignored.-
-helpDisplay a list of the program's parameters showing their default values. For example: -
-lastRun the program using the same parameter arguments from the most recent time the program was run. This does not include any reserved arguments. -restore=filenameRun the program using the arguments from the file specified in filename.
Parameter Arguments¶
Parameter arguments are keyword-value pairs, separated by an equals sign =.
They don't start with a dash.
Parameters set the input data, processing settings, and where to save output.
lowpass from=f431a63.lev1_cln.cub to=f431a63.lev1_cln_lpf3x3.cub lines=3 samples=3
Parameter Types
-
Cube filenames
The file location of an ISIS cube, for input or output. Input cubes (oftenfrom=your.cub) must be the output from another ISIS program. Output cubes (oftento=your.cub) are the file location to save processed results to. The.cubextension will be added automatically if you don't type it.
-
Data filenames
The file location of a non-ISIS-cube. This includes input files from missions like MGS or Viking, and output files from apps likestatsorisis2std. Sometimes, a list file -
Lists
The file location of a list. Used when an app needs multiple of something, for example,findimageoverlapsneeds a list of multiple cubes.
-
Floating point numbers
Numeric values with a whole part and (optionally) a fractional part.
Can be given values like1.0,0.7823,127or0.31416E+1
-
Integers
Numbers with only a whole part.
Can be given values like0,2,-18223or255
-
Booleans (True or False)
True: you can useTrue,T,YesorY.
False: you can useFalse,F,NoorN.
Not Case-sensitive.
Boolean parameter names are usually a question, likeUSEDEM. This should be read as "Do you want to use a DEM when processing the input?"
-
Strings
A sequence of printable characters.
For example,MARS,BiLinearorThe quick brown fox.
Cube Filename Parameters - Adding Attributes
For Cube Filename Parameters, attributes like bands or output types can be specified along with the filename.
Text Mode
Append a + and your attribute to the filename to specify a cube attribute. Numbers and ranges indicate bands on input cubes; most other attributes specify output format. See Command Line Usage for more info.
stats from=yourMultibandCube.cub+2
Adding+2after the filename is a cube attribute that tells ISIS to open band 2.
+2is not literally part of the filename on disk.
Visual Mode
To specify attributes, click the
arrow to the right of the From field and choose Change
attributes... from the menu.
Text and Visual Modes¶
All command-line apps can run in:
-
Text Mode
Runs in terminal, non-interactively. (Use parameter arguments.) -
Visual Mode
Opens a window. (Use-guior run with no arguments.)
If no arguments are added, an ISIS app will open in visual mode.
If any parameter arguments are used, the program will run in text mode,
unless you add the -gui argument, which tells ISIS to read in parameter
arguments and open the program in visual mode.
Visual Mode¶
In visual mode, a window will pop up for you to set parameters, start/stop running the algorithm, and view the current status.
Running lowpass in visual mode
When run with no parameters, lowpass opens in visual mode to let you enter parameters an a form.
Forcing visual mode with -gui
Here, lowpass was run with parameters, but by using the -gui flag,
lowpass opens in graphical mode and automatically fills in values for
any parameters you passed it on the command line.
As you can see the parameter arguments on the command line were used to
set the values for the lowpass application, and the -gui reserved
argument caused the program to run in graphical mode instead of in text
mode.
Text Mode¶
In text mode, ISIS apps read parameters from the command line, process data, and then exit. They may or may not output status/results to the terminal.
Errors are output to the terminal, and may cause the app may exit before completion.
Running lowpass in text mode
Run lowpass, passing all the parameters on the command line.
Oops! "samples" was spelled wrong, but lowpass gives us a handy
error message to let us know what the problem was. Try again with:
When run correctly, it displays its status while running, and exits to the command prompt when finished.
Using qview to View Cubes¶
Cubes
Images in the native ISIS format are called cubes.
qview
is the image viewer for ISIS.
It has tools to zoom in/out, adjust contrast, choose color combinations,
compare images, etc.
-
Type
qviewin the command line and run it.
The qview window will open. -
From the
Filemenu, selectOpen...and browse for a cube.
You may open more than one cube at a time. -
Your image(s) will appear in the qview window.
Load and Display a Multi-Band Cube in qview
qview will load an entire multi-band cube into memory.

Displaying a Single Band in Black and White¶
Each band can be selected to view.

Displaying a Red, Green, Blue Color Composite¶
Using the ISIS Application Manuals¶
The ISIS Application manuals detail parameters for each app, and have examples for many.
Looking at the stats manual page
- Open the alphabetical list of ISIS apps
- Press +
F(orCtrl+F) to find - Search for
stats. - Click on stats to open its manual.
- Click the
Parameterstab and click on each parameter to investigate.fromandtoare often required.- Any parameter with a Default listed can be left out, and the default will be used.
- Click each
Exampletab.Example 1shows a simple run with an input cube and an output log.Example 2has a+3after the cube name - this is a cube attribute that specifies the band 3. The+3is not part of the filename on disk.Example 3has a more complex cube attribute, specifying multiple bands.
Running Non-interactive ISIS Apps¶
Now that you know the basics, download intro2isis.cub as your input cube, and run a few ISIS apps (try both visual and text modes).
Running stats
Computes stats (average, mode, minimum, maximum, etc.) for pixels in a cube.
stats manual page
Group = Results
From = intro2isis.cub
Band = 1
Average = 61.770642254011
StandardDeviation = 8.0295403784653
Variance = 64.473518689404
Median = 62.0
Mode = 66.0
Skew = -0.085692730285373
Minimum = 2.0
Maximum = 252.0
Sum = 76029592.0
TotalPixels = 1271424
ValidPixels = 1230837
OverValidMaximumPixels = 0
UnderValidMinimumPixels = 0
NullPixels = 40587
LisPixels = 0
LrsPixels = 0
HisPixels = 0
HrsPixels = 0
End_Group
stats prints results to the terminal, but not every ISIS app does this.
In stats, add to=myStats.log to save the output to a log file.
Use the ISIS Application manuals
for stats and other apps to find parameters and examples if you aren't sure how to run them.
Running hist
Creates a tabular representation of the histogram of a cube.
hist manual page
After you run hist, try creating a bar chart in excel to visualize the histogram.
Running mirror
Flips a cube from left to right (making an output cube that looks like the mirror-image of the input cube).
mirror manual page
Make sure your output to= filename is different than your input from= filename!
After running mirror, open both the input cube
and output cube in qview to see the results.



