-
Notifications
You must be signed in to change notification settings - Fork 0
/
script_fluctuations.py
40 lines (32 loc) · 1.15 KB
/
script_fluctuations.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#-------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: Basilius Sauter
#
# Created: 18.05.2015
# Copyright: (c) Basilius Sauter 2015
# Licence: <your licence>
#-------------------------------------------------------------------------------
import os
import argparse
import numpy as np
from contour import Contour, AlternativeContour, NoConvergenceError
from filehandler import DatastorageFileHandler
from imagefilehandler import ImageFileHandler
from fft import FFT
from barplotanimation import BarplotAnimation
from fluctuationspectra import FluctuationSpectra
def createFluctuationSpectra(contourFilename):
contourStorage = DatastorageFileHandler.load(contourFilename)
plot = FluctuationSpectra()
for value in contourStorage:
plot.addVariance(value)
plot.plot()
contourStorage.close()
plot.show()
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Opens a given file and renders the contour fluctuations')
parser.add_argument('contourfile')
args = parser.parse_args()
createFluctuationSpectra(args.contourfile)