trendview

Plots multiple spectra from a cube overlaying fitted trends and mask

Description:

This displays whole or part of a spectral cube in a multiple line plot graphic of data values versus spectral co-ordinates via KAPPA:CLINPLOT. In addition to the raw data, fitted trends and masks generated by KAPPA:MFITTREND are overlaid in different colours for comparison and quality assessment. There is an option to also draw the residuals. The raw data appear in yellow, the fitted trends in darkgreen, the mask in red, and the residuals in blue.

The lower-left plot has annotated axes of data value against spectral co-ordinates.

For ease of use the baseline and mask files have defined names given by the name argument and suffix arguments. See the Notes.

Usage:

trendview [-d device] [-i filename] [-o offset] [-r] [-s suffix]

          [-y ytop[,ybot]]

Command-line Arguments

Examples:

trendview -i ac9_trim -y 8
Plots the spectra in NDFs ac9_trim, ac9_trim_bsl, and ac9_trim_msk between data values 0.4 and 8.
trendview -i ac9_trim"(2 10,4 8,)" -y 0.5,10
As before but the plot range is 0.5 to 10, and display only displays a 10-by-8 spatial pixel region.
trendview -i ac9_trim"(2 10,4 8,-200:200)" -y 0.5,10
As the previous example but now only a part (200 to 200) of the spectral range appears in each plot.
trendview -i ac9_trim -o _o4 -o 7
Plots the spectra in NDFs ac9_trim, ac9_trim_bsl_o4, and ac9_trim_msk_o4 between data values derived automatically percentiles in ac9_trim, with the mask line drawn at value 7.
trendview -i ac9_trim"(2 10,4 8,)" -r -y -3,8
As the second example but now the residuals are also plotted. The lower data-value limit on the plots is 3 to accommodate negative residuals.

Notes:

Output

A composite CLINPLOT plot showing the raw data, and the baseline fit and mask from MFITTREND.

Prior Requirements