2 from opals
import Histo, Import
4 imp=Import.Import(inFile=
"fullwave.fwf").run()
6 his.commons.screenLogLevel = opals.Types.LogLevel.error
7 his.inFile = [
"fullwave.odm"]
8 his.probabilities = [0.01,0.05,0.10,0.90,0.95,0.99]
9 his.sampleRange=[280,320]
13 stats = his.histogram[0]
14 print(
"Selected height statistics of dataset: {}".format(his.inFile[0]))
15 print(
"Min : {:0.2f}".format(stats.getMin()))
16 print(
"Median: {:0.2f}".format(stats.getMedian()))
17 print(
"Max : {:0.2f}".format(stats.getMax()))
18 print(
"q0.95 : {:0.2f}".format(stats.getQuantiles()[4][1]))
19 print(
"\nHistogram: lower height bound [m] - abs. #samples : rel. #samples [%]")
20 bAbs, bRel = stats.getAbsBins(),stats.getBins()
21 for i
in range(len(bAbs)):
22 print(
" {:0.1f} - {:d}: {:0.2f}".format(bAbs[i][0], bAbs[i][1], bRel[i][1]*100.))