diff --git a/SydneyTide-python.py b/SydneyTide-python.py index 90ac486..c1ff4b9 100644 --- a/SydneyTide-python.py +++ b/SydneyTide-python.py @@ -25,237 +25,240 @@ from pylab import * # # the harmonics included below in the python code were provided directly to WRL from BOM. +harm = {} +speed = 0 +amp = 1 +lag = 2 -harm={} -speed=0 -amp=1 -lag=2 def readlinenocomm(F): - l=F.readline() - while l[0]=='#': - l=F.readline() - return l + l = F.readline() + while l[0] == '#': + l = F.readline() + return l + # -H=open("HARMONIC","r") -l=readlinenocomm(H) -numconstits=int(l) +H = open("HARMONIC", "r") +l = readlinenocomm(H) +numconstits = int(l) -print("Number of Constituents = ",numconstits) +print("Number of Constituents = ", numconstits) # Read in the constituent speeds -constitspeed={} -i=0 -while i