__init__ (
self,
isprintText,
titleStr,
xLabelStr,
yLabelStr,
fullFilename,
size='small',
useAbsoluteTime=False,
startTime=None,
endTime=None,
maxNumPoints=None,
noTime=False,
noDate=False,
yMinimum=None,
yMaximum=None,
timezone=0,
)
__init__ writes a madScatter plot to a file.
Inputs:
isprintText - a string giving isprint output without headers. First of three parameters
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 - y label string
fullFilename - full path of file containing pcolor plot to be saved. Extension must
be jpeg or png, or exception thrown.
size - size of plot to save. Must be "small", "wide", or "large". Defaults to small.
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.
noDate - if True and useAbsoluteTime True, then times without dates printed on x axis.
yMinimum - set y minimum. If default=None, use data minimum
yMaximum - set y maximum. If default=None, use data maximum
timezone - The offset of the local (non-DST) timezone, in seconds west of UTC
(negative in most of Western Europe, positive in the US, zero in the UK).
Returns: void
Affects: None
Now removes all lines with missing
Exceptions
|
|
ValueError, 'No valid y data found'
ValueError, 'input text is not parseable'
ValueError, 'size must be "small", "wide", or "large", not %s' %(str( size ) )
|
|