HiRISE

HiRISE.HiColor
Class JitPlot

java.lang.Object
  extended by HiRISE.HiColor.JitPlot

public class JitPlot
extends Object

Builds the jitter plots for a particular observation. Includes a command-line interface to write a plot to a PNG file.

Author:
Guy McArthur and Michael Wendell

Field Summary
static int DEFAULT_RANGE_PX
          The initial range limit (offset axis), will be increased as needed
static String ID
          CVS ID
static int PLOT_DOT_SIZE
          Size of the points in pixels
 
Constructor Summary
JitPlot()
          Create a new instance using the default configuration.
JitPlot(JitParser jitParser)
          Create a new instance a pre-configured parser.
JitPlot(String config)
          Create a new instance with a particular configuration.
 
Method Summary
 JFreeChart getPlot(Observation observation)
          Create the plot for a particular observation, parsing all the data.
 JFreeChart getPlot(Observation observation, Map<CCD,JitData> map)
          Create the plot for a particular observation, using collected data.
 XYPlot getSubPlot(String name, JitData data, int maxRange)
          Create the subplot for a particular CCD.
static void main(String[] args)
          Command-line JitPlot, writes plot to a bitmap image file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
CVS ID

See Also:
Constant Field Values

PLOT_DOT_SIZE

public static final int PLOT_DOT_SIZE
Size of the points in pixels

See Also:
Constant Field Values

DEFAULT_RANGE_PX

public static final int DEFAULT_RANGE_PX
The initial range limit (offset axis), will be increased as needed

See Also:
Constant Field Values
Constructor Detail

JitPlot

public JitPlot()
        throws Exception
Create a new instance using the default configuration.

Throws:
Exception - Invalid config file

JitPlot

public JitPlot(String config)
        throws Exception
Create a new instance with a particular configuration.

Parameters:
config - Path to HiJitReg config
Throws:
Exception - Invalid config file

JitPlot

public JitPlot(JitParser jitParser)
Create a new instance a pre-configured parser.

Parameters:
jitParser - The parser instance
Method Detail

getPlot

public JFreeChart getPlot(Observation observation)
                   throws Invalid_Argument_Exception,
                          IOException
Create the plot for a particular observation, parsing all the data.

Parameters:
observation - The observation to plot
Returns:
The chart
Throws:
Invalid_Argument_Exception - Bad IDs
IOException - Files could not be read

getPlot

public JFreeChart getPlot(Observation observation,
                          Map<CCD,JitData> map)
                   throws Invalid_Argument_Exception,
                          IOException
Create the plot for a particular observation, using collected data.

Parameters:
observation - The observation to plot
map - Collected data for each available CCD
Returns:
The chart
Throws:
Invalid_Argument_Exception - Bad IDs
IOException - Files could not be read

getSubPlot

public XYPlot getSubPlot(String name,
                         JitData data,
                         int maxRange)
Create the subplot for a particular CCD.

Parameters:
name - The name of the CCD
data - The data collected for this CCD
maxRange - The range (horizontal axis) limit
Returns:
Plot instance

main

public static void main(String[] args)
Command-line JitPlot, writes plot to a bitmap image file.

Parameters:
args - Command-line interface for pipelines, etc.

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona