Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

etpolutl.bin problem #7

Closed
WilkAndy opened this issue Aug 21, 2019 · 2 comments
Closed

etpolutl.bin problem #7

WilkAndy opened this issue Aug 21, 2019 · 2 comments

Comments

@WilkAndy
Copy link

If i run test.py two times, the second time produces an error:

ETERNA PREDICT v3.4 (10/02/2013) is calculating, please wait ...
At line 3121 of file etpred.f90 (unit = 31, file = 'commdat/etpolut1.bin')
Fortran runtime error: Record number must be positive
@Jollyfant
Copy link

@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?

@Jollyfant
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants