Closed WilkAndy closed 4 years ago
@WilkAndy I have the same problem. First I hardcoded the end and test.py
started downloading some files. Now when I run it again it gives this.
Did you manage to solve it?
When running the example in the PDF I have a different problem:
ValueError: time data '1962010' does not match format '%Y%m%d'
I fixed this by removing the first space in commdat/etpolut1.dat
. I can now run this code:
# PyGTide: A Python module and wrapper for ETERNA PREDICT # to compute gravitational tides on Earth
import pygtide
import datetime as dt
# create a PyGTide object
pt = pygtide.pygtide()
# define a start date
start = dt.datetime(2017,1,1)
# calculate the gravitational tides
latitude = 49.00937
longitude = 8.40444
height = 120
start = dt.datetime(2017,1,1)
duration = 31*24
samplerate = 3600
pt.predict(latitude, longitude, height, start, duration, samplerate)
# retrieve the results as dataframe
data = pt.results()
# output
print(data)
but the test.py
is still broken with the same Fortran error.
If i run test.py two times, the second time produces an error: