|
META TOPICPARENT |
name="StewartBoogertAstronomy" |
|
|
< < |
|
> > | |
|
<noautolink> |
| Python |
|
< < | |
> > | |
| |
|
< < |
class pecData():
Class to store and manipulate a PEC Data |
> > | class pecData(): Class to store and manipulate a PEC Data |
| |
|
< < |
def __init__(self, filename):
|
> > | def __init__(self, filename): |
| |
|
< < |
def loadData(self, filename):
Load Data from File and calculate the PEC Sum
|
> > | def loadData(self, filename): Load Data from File and calculate the PEC Sum |
| |
|
< < |
def totalSegments(self):
Return the total number of segments in the PEC Data
|
> > | def totalSegments(self): Return the total number of segments in the PEC Data |
| |
|
< < |
def sumAtSegment(self, segment):
Return the current sum at segment given in the argument
|
> > | def sumAtSegment(self, segment): Return the current sum at segment given in the argument |
| |
|
< < |
def plotData(self, raw = False, clear = False, newFig = False):
Plot PEC Sum Data.
raw = True -> Plot Raw Data
clear = True -> Clear the current figure before plotting
newFig = True -> Creates new figure for plotting (overrides clear)
|
> > | def plotData(self, raw = False, clear = False, newFig = False): Plot PEC Sum Data. raw = True -> Plot Raw Data clear = True -> Clear the current figure before plotting newFig = True -> Creates new figure for plotting (overrides clear) |
|
|
|
< < |
class pecList():
Class to store several PEC Data files and process them |
> > | class pecList(): Class to store several PEC Data files and process them |
| |
|
< < |
def __init__(self):
|
> > | def __init__(self): |
| |
|
< < |
def loadPEC(self, pecname, filename):
Add PEC Data file to list
|
> > | def loadPEC(self, pecname, filename): Add PEC Data file to list |
| |
|
< < |
def removePEC(self, pecname):
Remove PEC Data file from list
|
> > | def removePEC(self, pecname): Remove PEC Data file from list |
| |
|
< < |
def update(self):
Internal, update list
|
> > | def update(self): Internal, update list |
| |
|
< < |
def verifyPEC(self):
Internal, verifies consistence in segment number across different PEC Data files
|
> > | def verifyPEC(self): Internal, verifies consistence in segment number across different PEC Data files |
| |
|
< < |
def statistics(self, plot = True, plotRaw = False, plotAll = False):
Calculates the statistics of current PEC Data files in the list if plot, plot final results
plotRaw also plot raw data and plotAll plots original points as well
|
> > | def statistics(self, plot = True, plotRaw = False, plotAll = False): Calculates the statistics of current PEC Data files in the list if plot, plot final results plotRaw also plot raw data and plotAll plots original points as well |
| |
|
< < |
def plotAvg(self, raw = False, clear = False, newFig = False):
Plot PEC Sum Data Average.
raw = True -> Plot Raw Data Average
clear = True -> Clear the current figure before plottin
newFig = True -> Creates new figure for plotting (overrides clear)
|
> > | def plotAvg(self, raw = False, clear = False, newFig = False): Plot PEC Sum Data Average. raw = True -> Plot Raw Data Average clear = True -> Clear the current figure before plottin newFig = True -> Creates new figure for plotting (overrides clear) |
|
|
|
< < |
def showLabels(data, raw = False):
Internal, creates plot labels
|
> > | def showLabels(data, raw = False): Internal, creates plot labels |
|
|