__init__ (
self,
isprintText,
titleStr,
xLabelStr,
yLabelStr,
fullFilename,
useAbsoluteTime=False,
startTime=None,
endTime=None,
maxNumPoints=None,
yMin=None,
yMax=None,
)
__init__ writes a madScatter plot to a file.
Inputs:
isprintText - a string giving isprint output without headers. First parameter
must be UTH or UT1, depending on whether time scale should be relative
to the experiment beginning (UTH) or absolute (UT1).
The second must be the parameter to be plotted. Any
missing data should be written as "missing" or other string that
cannot be converted to a float.
titleStr - plot title (string) - should describe parameter being plotted
xLabelStr - x label string
yLabelStr - ylabel string
fullFilename - full path of file containing pcolor plot to be saved. Extension must
be jpeg or png, or exception thrown.
useAbsoluteTime - if true, print time as YYYY-MM-DD HH:MM:SS. If false (default), print time as hour
since beginning of experiment (UTH). If useAbsoluteTime is true, first
parameter in isprintText must be UT1, if false, it must be UTH.
startTime - start plot at given time. If useAbsoluteTime == True, then startTime must be
in units of seconds since 1/1/1950. If useAbsoluteTime == False, then
startTime must be in units of UTH (hours since midnight UT of first day of
experiment). Default is None, which means start at lowest time found.
endTime - end plot at given time. If useAbsoluteTime == True, then endTime must be
in units of seconds since 1/1/1950. If useAbsoluteTime == False, then
endTime must be in units of UTH (hours since midnight UT of first day of
experiment). Default is None, which means end at largest time found.
maxNumPoints - maximum number of points to plot. If not None, truncate isprintText if
needed to have at most maxNumPoints lines.
Returns: void
Affects: None
Exceptions
|
|
ValueError, 'No valid y data found'
ValueError, 'input text is not parseable'
|
|