hydrogeoscience / pygtide Goto Github PK
View Code? Open in Web Editor NEWA Python module and wrapper for ETERNA PREDICT to compute gravitational tides on Earth
License: Mozilla Public License 2.0
A Python module and wrapper for ETERNA PREDICT to compute gravitational tides on Earth
License: Mozilla Public License 2.0
I'm interested in using pygtide
in one of my projects. Thanks for this work, this seems very promising.
Would it be possible to push the modified ETERNA PREDICT Fortran source code on the project repository so that it would be possible to build the etpred
Python extension for Python 3.7 and using the 64-bit compilers from Mingw-64
?
Also, I can provide some help, if needed, for the creation of a setup.py
file, so that the extension can be built more easily on different Python environments and platforms. I can also help with the creation of pip wheels and conda packages to make the package even easier to install.
Hi,
first things first: I appreciate your worke since I was looking for a "Python version" of ETERNA/Predict for a longer time. Thanks!
However, I just encountered the following problem/bug when running the test after installing pygtide 0.7.1 via pip:
pygtide.test(msg=True)
ETERNA PREDICT v3.4 (10/02/2013) is calculating, please wait ...
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/home/hellerschmied/pyProjects/pygtide-test/env/lib/python3.9/site-packages/pygtide/tests.py", line 11, in test
pt.results()
File "/home/hellerschmied/pyProjects/pygtide-test/env/lib/python3.9/site-packages/pygtide/core.py", line 403, in results
etdata[cols[2:]] = np.around(etpred_data[:, 2:], digits)
File "/home/hellerschmied/pyProjects/pygtide-test/env/lib/python3.9/site-packages/pandas/core/frame.py", line 3946, in __setitem__
self._setitem_frame(key, value)
File "/home/hellerschmied/pyProjects/pygtide-test/env/lib/python3.9/site-packages/pandas/core/frame.py", line 4058, in _setitem_frame
raise ValueError("Array conditional must be same shape as self")
ValueError: Array conditional must be same shape as self
I think, I found the problem in core.py line 388: cols = np.char.strip(etpred.inout.header.astype('str'))
:
etpred.inout.header.astype('str')
returns a 6x25 array, although it should only be a one-dimensional array containing the 6 header names for the predict output. This array is used to create the DataFrame with more than 100 columns instead of 6 to store the predict results. In line 403 the program crashes when assigning 4 rows with results to the incorrectly initialized DataFrame.
pygtide.predict_series()
seems to work fine as the results()
method is not used.
I can reproduce this error with the gfortran compiler on Ubuntu 22.04 and CentOS 8 with Python3.9 and Python3.8. I don'T know if this issues depends on the gfortran compiler, or other parameters.
Does anyone encounter similar problems?
Best regards,
Andreas
Hi. I was wondering if this shown here on the plot is an artefact or am I doing something wrong...
I calculated displacement with:
pt.predict(lat, lon, startdate, duration, samprate, tidalpoten, tidalcompo=3, statazimut=0)
As you can see, there is a horizontal line at around -35, +35.
Thanks for the info!
Thanks for this initiative! I can imagine it took a fair amount of effort to modify the original code.
I just tried it out but it somehow failed to properly initialize the module
Python 3.8.11 (default, Aug 5 2021, 09:13:46)
[GCC 11.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygtide
>>> pt=pygtide.pygtide()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/roelof/UTwente/Soft/pygtide/pygtide.py", line 135, in __init__
self.etpolut1_end = dt.datetime.strptime(str(etpred.inout.etpol_end), "%Y%m%d")
File "/usr/lib/python3.8/_strptime.py", line 568, in _strptime_datetime
tt, fraction, gmtoff_fraction = _strptime(data_string, format)
File "/usr/lib/python3.8/_strptime.py", line 349, in _strptime
raise ValueError("time data %r does not match format %r" %
ValueError: time data '0' does not match format '%Y%m%d'
>>>
I suspect it's because etpred.inout.etpol_end
is zero and is not properly initiated from the fortran part of the module?
Furthermore, I'm aware of issue #3 and can therefore understand that it's unclear whether you're allowed to share your modified code. Nevertheless, things would definitely be easier when access to the fortran code was there. So maybe we should gather some voices and make a plead to release eterna under a clearer license?
Thanks again,
Roelof
Hi,
I am trying to run pygtide but import of the module fails:
Traceback (most recent call last):
File "test.py", line 2, in <module>
import pygtide
File "/home/heimann/Temp/pygtide/pygtide/__init__.py", line 1, in <module>
from .pygtide import pygtide
File "/home/heimann/Temp/pygtide/pygtide/pygtide.py", line 96, in <module>
from etpred import etpred
File "/home/heimann/Temp/pygtide/etpred/__init__.py", line 1, in <module>
from . import etpred
ImportError: libgfortran.so.3: cannot open shared object file: No such file or directory
Apparently there are some compiled objects in the repos. Are these there on purpose? Is there a way to compile them for myself on my machine?
Thanks
Sebastian Heimann
The total number of calculated records is shorter than should be according to requested duration and sampling rate
The parameter "height" in pygtide.pygtide() should be >= -500 m. I wonder if I can use this package to calculate the volume strain in deeper depth.
Could be related to #7 .
To get pygtide to run, i must change this line
self.etpolut1_end = dt.datetime.strptime(str(etpred.inout.etpol_end), "%Y%m%d")
to hardcode the end date. Eg
self.etpolut1_end = dt.datetime.strptime(str(20190821), \"%Y%m%d\")
This is because str(etpred.inout.etpol_end) = '0'
Hi,
isn't there any possibility to provide tidal parameters (amplitude factor and phase shift) like in ETERNA's PREDICT for the calculation of synthetic Earth tides?
In PREDICT (also in TSoft, etc.) amplitude factors and phase shifts can be provided for phase groups that are specified by an upper and a lower frequency, e.g.:
TIDALPARAM= .000146 .003426 1.000000 .000000 SA #ANALYZE wave group
TIDALPARAM= .004709 .010952 1.000000 .000000 SSA #ANALYZE wave group
TIDALPARAM= .025811 .031745 1.000000 .000000 MSM #ANALYZE wave group
TIDALPARAM= .033406 .044653 1.000000 .000000 MM #ANALYZE wave group
TIDALPARAM= .060131 .068640 1.000000 .000000 MSF #ANALYZE wave group
TIDALPARAM= .069845 .080798 1.000000 .000000 MF #ANALYZE wave group
...
Such parameters can be estimated from actual observations or modeled.
Is there any other possibility in PyGTide to provide amplitude factors and/or phase shifts, or is there something hardcoded?
Thanks and best regards,
Andreas
Hi, I had a problem with different results between ETERNA and this. When running the software it seems that the wave groups all have amplitude 1 and 0 phase. This is maybe related to the broken etpolut1.bin
and etpolut1.dat
.
Wave groups and observed tidal parameters
no. from to ampl.fac. phase lead ampl. WD body
[deg] [ nm/s**2 ]
1 1 3 1.0000 0.0000 DC 35.5811 1.2165
2 4 20 1.0000 0.0000 long 0.0001 1.0728
3 21 213 1.0000 0.0000 SA 3.1589 1.2165
4 247 499 1.0000 0.0000 SSA 3.4928 1.2165
5 623 828 1.0000 0.0000 MSM 0.7610 1.2165
6 868 1313 1.0000 0.0000 MM 4.5043 1.0728
7 1398 1645 1.0000 0.0000 MSF 0.6600 1.2165
8 1664 2098 1.0000 0.0000 MF 7.5327 1.2165
9 2184 2435 1.0000 0.0000 MSTM 0.2739 1.2165
10 2460 2830 1.0000 0.0000 MTM 1.4422 1.2165
11 2893 3228 1.0000 0.0000 MSQM 0.2303 1.2165
12 3249 4149 1.0000 0.0000 MQM 0.1908 1.2165
13 4489 5557 1.0000 0.0000 SGQ1 2.2200 1.1550
14 5672 5980 1.0000 0.0000 2Q1 7.6138 1.1550
15 6006 6365 1.0000 0.0000 SGM1 9.1884 1.1549
16 6490 6954 1.0000 0.0000 Q1 57.5379 1.1548
17 7013 7354 1.0000 0.0000 RO1 10.9286 1.1548
18 7469 7939 1.0000 0.0000 O1 300.5193 1.1546
19 7994 8380 1.0000 0.0000 TAU1 3.9251 1.1546
20 8513 8949 1.0000 0.0000 NO1 23.6343 1.1540
21 9021 9305 1.0000 0.0000 CHI1 4.5200 1.1539
22 9507 9916 1.0000 0.0000 P1 139.9121 1.1491
23 9998 10952 1.0000 0.0000 S1K1 422.6650 1.1336
24 11135 11365 1.0000 0.0000 TET1 4.5199 1.1569
25 11422 11939 1.0000 0.0000 J1 23.6339 1.1567
26 12124 12401 1.0000 0.0000 SO1 3.9251 1.1560
27 12437 12976 1.0000 0.0000 OO1 12.9311 1.1559
28 13151 15621 1.0000 0.0000 NU1 2.4758 1.1557
29 16304 17474 1.0000 0.0000 EPS2 3.4744 1.1586
30 17572 18263 1.0000 0.0000 2N2 14.3800 1.1586
31 18385 19214 1.0000 0.0000 N2 90.0485 1.1586
32 19347 20143 1.0000 0.0000 M2 470.3240 1.1586
33 20246 20346 1.0000 0.0000 LAM2 3.4684 1.1586
34 20395 20882 1.0000 0.0000 L2 13.2952 1.1586
35 21039 21459 1.0000 0.0000 S2 218.8214 1.1586
36 21543 22278 1.0000 0.0000 K2 59.4836 1.1586
37 22528 23121 1.0000 0.0000 ETA2 3.3254 1.1586
38 23265 25611 1.0000 0.0000 2K2 0.8708 1.1586
39 26500 27914 1.0000 0.0000 M3 7.3140 1.0709
40 28390 28754 1.0000 0.0000 M4 0.1056 1.0355
41 28755 28806 1.0000 0.0000 M5M6 0.0015 1.0000
Hello, I am trying to install pytgtide in a Windows 10 x64 bits machine, in a new conda environment with python 3.6, but it is being very difficult.
I have installed MinGW64 compilers and connect them to the path by editting the windows variables, as well as MSVC compilers. I also have installed numpy
, requests
and git
in my conda environment throughtout conda channel (what is supposed to be the correct way for numpy to be succesfully built, and not using pip).
Then I have installed pygtide by the Windows way indicated in the readme file:
pip install --global-option build_ext --global-option --compiler=mingw32 --global-option --fcompiler=gnu95 pygtide
Nevertheless, the same error appears constantly:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
It seems to be looking for the BLAS and LAPACK libraries on the current env and in the base one, but cannot find them. These are all the libraries NOT supposed to be AVAILABLE:
mkl_rt blis openblas tatlas satlas ptf77blas ptcblas atlas f77blas cblas atlas
However, those libraries are supposed to be automatically installed in conda by default -indeed, mkl
and libblas
are already installed. I have also tried to install openblas
library, but the error persists.
Even more, the long script (show as follows) ends with a ValuError:
ValueError: Version 14,0 of MSVCRT not supported yet
I wonder if it is a compiler error or a pygtide
error related. Any help is welcome!
WARNING: Implying --no-binary=:all: due to the presence of --build-option / --global-option.
Collecting pygtide
Using cached pygtide-0.7.1.tar.gz (3.1 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in c:\users\miguelgj\miniconda3\envs\pygtide\lib\site-packages (from pygtide) (1.21.6)
Collecting pandas (from pygtide)
Using cached pandas-1.3.5.tar.gz (4.7 MB)
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [782 lines of output]
Collecting setuptools>=51.0.0
Using cached setuptools-68.0.0-py3-none-any.whl
Collecting wheel
Using cached wheel-0.40.0-py3-none-any.whl
Collecting Cython<3,>=0.29.24
Using cached Cython-0.29.35.tar.gz (2.1 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting oldest-supported-numpy>=0.10
Using cached oldest_supported_numpy-2022.11.19-py3-none-any.whl
Collecting numpy==1.14.5 (from oldest-supported-numpy>=0.10)
Using cached numpy-1.14.5.zip (4.9 MB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: Cython, numpy
Building wheel for Cython (setup.py): started
Building wheel for Cython (setup.py): finished with status 'error'
error: subprocess-exited-with-error
python setup.py bdist_wheel did not run successfully.
exit code: 1
[357 lines of output]
Unable to find pgen, not compiling formal grammar.
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-37
copying cython.py -> build\lib.win-amd64-cpython-37
creating build\lib.win-amd64-cpython-37\Cython
# Multiples lines copyn cython package for building and creating
creating build\temp.win-amd64-cpython-37\Release\users\miguelgj\appdata\local\temp\pip-install-872fvs5p\cython_09fc5e63d3b344cc9d0223fdc630a510
creating build\temp.win-amd64-cpython-37\Release\users\miguelgj\appdata\local\temp\pip-install-872fvs5p\cython_09fc5e63d3b344cc9d0223fdc630a510\cython
creating build\temp.win-amd64-cpython-37\Release\users\miguelgj\appdata\local\temp\pip-install-872fvs5p\cython_09fc5e63d3b344cc9d0223fdc630a510\cython\plex
gcc -mdll -O -Wall -DMS_WIN64=1 -IC:\Users\MiguelGJ\miniconda3\envs\pygtide\include -IC:\Users\MiguelGJ\miniconda3\envs\pygtide\Include -c C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\cython_09fc5e63d3b344cc9d0223fdc630a510\Cython\Plex\Scanners.c -o build\temp.win-amd64-cpython-37\Release\users\miguelgj\appdata\local\temp\pip-install-872fvs5p\cython_09fc5e63d3b344cc9d0223fdc630a510\cython\plex\scanners.o
C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\cython_09fc5e63d3b344cc9d0223fdc630a510\Cython\Plex\Scanners.c: In function '__Pyx_ImportType_0_29_35':
C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\cython_09fc5e63d3b344cc9d0223fdc630a510\Cython\Plex\Scanners.c:9437:13: warning: unknown conversion type character 'z' in format [-Wformat=]
9437 | "%s.%s size changed, may indicate binary incompatibility. "
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\cython_09fc5e63d3b344cc9d0223fdc630a510\Cython\Plex\Scanners.c:9438:24: note: format string is defined here
9438 | "Expected %zd from C header, got %zd from PyObject",
| ^
C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\cython_09fc5e63d3b344cc9d0223fdc630a510\Cython\Plex\Scanners.c:9437:13: warning: unknown conversion type character 'z' in format [-Wformat=]
9437 | "%s.%s size changed, may indicate binary incompatibility. "
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\cython_09fc5e63d3b344cc9d0223fdc630a510\Cython\Plex\Scanners.c:9438:47: note: format string is defined here
9438 | "Expected %zd from C header, got %zd from PyObject",
| ^
C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\cython_09fc5e63d3b344cc9d0223fdc630a510\Cython\Plex\Scanners.c:9437:13: warning: too many arguments for format [-Wformat-extra-args]
9437 | "%s.%s size changed, may indicate binary incompatibility. "
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
writing build\temp.win-amd64-cpython-37\Release\users\miguelgj\appdata\local\temp\pip-install-872fvs5p\cython_09fc5e63d3b344cc9d0223fdc630a510\cython\plex\Scanners.cp37-win_amd64.def
error: [Errno 2] No such file or directory: 'build\\temp.win-amd64-cpython-37\\Release\\users\\miguelgj\\appdata\\local\\temp\\pip-install-872fvs5p\\cython_09fc5e63d3b344cc9d0223fdc630a510\\cython\\plex\\Scanners.cp37-win_amd64.def'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for Cython
Running setup.py clean for Cython
Building wheel for numpy (setup.py): started
Building wheel for numpy (setup.py): finished with status 'error'
error: subprocess-exited-with-error
python setup.py bdist_wheel did not run successfully.
exit code: 1
[362 lines of output]
Running from numpy source directory.
blas_opt_info:
blas_mkl_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries mkl_rt not found in ['C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\lib', 'C:\\', 'C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\libs', 'C:\\Users\\MiguelGJ\\miniconda3\\Library\\lib']
NOT AVAILABLE
blis_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries blis not found in ['C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\lib', 'C:\\', 'C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\libs', 'C:\\Users\\MiguelGJ\\miniconda3\\Library\\lib']
NOT AVAILABLE
openblas_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries openblas not found in ['C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\lib', 'C:\\', 'C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\libs', 'C:\\Users\\MiguelGJ\\miniconda3\\Library\\lib']
get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']'
customize GnuFCompiler
Could not locate executable g77
Could not locate executable f77
customize IntelVisualFCompiler
Could not locate executable ifort
Could not locate executable ifl
customize AbsoftFCompiler
Could not locate executable f90
customize CompaqVisualFCompiler
Found executable C:\Users\MiguelGJ\miniconda3\envs\pygtide\Library\usr\bin\DF.exe
customize IntelItaniumVisualFCompiler
Could not locate executable efl
customize Gnu95FCompiler
Found executable C:\Program Files\mingw64\bin\gfortran.exe
NOT AVAILABLE
atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries tatlas not found in ['C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\lib', 'C:\\', 'C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\libs', 'C:\\Users\\MiguelGJ\\miniconda3\\Library\\lib']
NOT AVAILABLE
atlas_3_10_blas_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries satlas not found in ['C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\lib', 'C:\\', 'C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\libs', 'C:\\Users\\MiguelGJ\\miniconda3\\Library\\lib']
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries ptf77blas,ptcblas,atlas not found in ['C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\lib', 'C:\\', 'C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\libs', 'C:\\Users\\MiguelGJ\\miniconda3\\Library\\lib']
NOT AVAILABLE
atlas_blas_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries f77blas,cblas,atlas not found in ['C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\lib', 'C:\\', 'C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\libs', 'C:\\Users\\MiguelGJ\\miniconda3\\Library\\lib']
NOT AVAILABLE
C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\system_info.py:624: UserWarning:
Atlas (http://math-atlas.sourceforge.net/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [atlas]) or by setting
the ATLAS environment variable.
self.calc_info()
blas_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries blas not found in ['C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\lib', 'C:\\', 'C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\libs', 'C:\\Users\\MiguelGJ\\miniconda3\\Library\\lib']
NOT AVAILABLE
C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\system_info.py:624: UserWarning:
Blas (http://www.netlib.org/blas/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [blas]) or by setting
the BLAS environment variable.
self.calc_info()
blas_src_info:
NOT AVAILABLE
C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\system_info.py:624: UserWarning:
Blas (http://www.netlib.org/blas/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [blas_src]) or by setting
the BLAS_SRC environment variable.
self.calc_info()
NOT AVAILABLE
"svnversion" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
non-existing path in 'numpy\\distutils': 'site.cfg'
"svnversion" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
F2PY Version 2
lapack_opt_info:
lapack_mkl_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries mkl_rt not found in ['C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\lib', 'C:\\', 'C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\libs', 'C:\\Users\\MiguelGJ\\miniconda3\\Library\\lib']
NOT AVAILABLE
openblas_lapack_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries openblas not found in ['C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\lib', 'C:\\', 'C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\libs', 'C:\\Users\\MiguelGJ\\miniconda3\\Library\\lib']
get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']'
customize GnuFCompiler
customize IntelVisualFCompiler
customize AbsoftFCompiler
customize CompaqVisualFCompiler
customize IntelItaniumVisualFCompiler
customize Gnu95FCompiler
NOT AVAILABLE
openblas_clapack_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries openblas,lapack not found in ['C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\lib', 'C:\\', 'C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\libs', 'C:\\Users\\MiguelGJ\\miniconda3\\Library\\lib']
get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']'
customize GnuFCompiler
customize IntelVisualFCompiler
customize AbsoftFCompiler
customize CompaqVisualFCompiler
customize IntelItaniumVisualFCompiler
customize Gnu95FCompiler
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries tatlas,tatlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries tatlas,tatlas not found in C:\
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries tatlas,tatlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\libs
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\libs
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries tatlas,tatlas not found in C:\Users\MiguelGJ\miniconda3\Library\lib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\Users\MiguelGJ\miniconda3\Library\lib
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE
atlas_3_10_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries satlas,satlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries satlas,satlas not found in C:\
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries satlas,satlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\libs
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\libs
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries satlas,satlas not found in C:\Users\MiguelGJ\miniconda3\Library\lib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\Users\MiguelGJ\miniconda3\Library\lib
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries ptf77blas,ptcblas,atlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries ptf77blas,ptcblas,atlas not found in C:\
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries ptf77blas,ptcblas,atlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\libs
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\libs
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries ptf77blas,ptcblas,atlas not found in C:\Users\MiguelGJ\miniconda3\Library\lib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\Users\MiguelGJ\miniconda3\Library\lib
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries f77blas,cblas,atlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries f77blas,cblas,atlas not found in C:\
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries f77blas,cblas,atlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\libs
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\Users\MiguelGJ\miniconda3\envs\pygtide\libs
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries f77blas,cblas,atlas not found in C:\Users\MiguelGJ\miniconda3\Library\lib
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack_atlas not found in C:\Users\MiguelGJ\miniconda3\Library\lib
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
lapack_info:
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
customize MSVCCompiler
libraries lapack not found in ['C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\lib', 'C:\\', 'C:\\Users\\MiguelGJ\\miniconda3\\envs\\pygtide\\libs', 'C:\\Users\\MiguelGJ\\miniconda3\\Library\\lib']
NOT AVAILABLE
C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\system_info.py:624: UserWarning:
Lapack (http://www.netlib.org/lapack/) libraries not found.
Directories to search for the libraries can be specified in the
numpy/distutils/site.cfg file (section [lapack]) or by setting
the LAPACK environment variable.
self.calc_info()
lapack_src_info:
NOT AVAILABLE
C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\system_info.py:624: UserWarning:
Lapack (http://www.netlib.org/lapack/) sources not found.
Directories to search for the sources can be specified in the
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
the LAPACK_SRC environment variable.
self.calc_info()
NOT AVAILABLE
C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\_distutils\dist.py:265: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
running bdist_wheel
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building py_modules sources
creating build
creating build\src.win-amd64-3.7
creating build\src.win-amd64-3.7\numpy
creating build\src.win-amd64-3.7\numpy\distutils
building library "npymath" sources
get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']'
customize GnuFCompiler
customize IntelVisualFCompiler
customize AbsoftFCompiler
customize CompaqVisualFCompiler
customize IntelItaniumVisualFCompiler
customize Gnu95FCompiler
customize Gnu95FCompiler
customize Gnu95FCompiler using config
Traceback (most recent call last):
File "C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\mingw32ccompiler.py", line 566, in msvc_manifest_xml
fullver = _MSVCRVER_TO_FULLVER[str(maj * 10 + min)]
KeyError: '140'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 36, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\setup.py", line 394, in <module>
setup_package()
File "C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\setup.py", line 386, in setup_package
setup(**metadata)
File "C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\core.py", line 169, in setup
return old_setup(**new_attr)
File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\__init__.py", line 107, in setup
return distutils.core.setup(**attrs)
File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
return run_commands(dist)
File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\dist.py", line 1234, in run_command
super().run_command(command)
File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\wheel\bdist_wheel.py", line 343, in run
self.run_command("build")
File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\dist.py", line 1234, in run_command
super().run_command(command)
File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\command\build.py", line 47, in run
old_build.run(self)
File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\_distutils\command\build.py", line 131, in run
self.run_command(cmd_name)
File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\dist.py", line 1234, in run_command
super().run_command(command)
File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\command\build_src.py", line 148, in run
self.build_sources()
File "C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\command\build_src.py", line 159, in build_sources
self.build_library_sources(*libname_info)
File "C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\command\build_src.py", line 294, in build_library_sources
sources = self.generate_sources(sources, (lib_name, build_info))
File "C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\command\build_src.py", line 377, in generate_sources
source = func(extension, build_dir)
File "numpy\core\setup.py", line 673, in get_mathlib_info
st = config_cmd.try_link('int main(void) { return 0;}')
File "C:\Users\MiguelGJ\miniconda3\envs\pygtide\lib\site-packages\setuptools\_distutils\command\config.py", line 249, in try_link
self._link(body, headers, include_dirs, libraries, library_dirs, lang)
File "C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\command\config.py", line 152, in _link
generate_manifest(self)
File "C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\mingw32ccompiler.py", line 653, in generate_manifest
manxml = msvc_manifest_xml(ma, mi)
File "C:\Users\MiguelGJ\AppData\Local\Temp\pip-install-872fvs5p\numpy_7e85437ff7c9499d8a8bafae80d515fc\numpy\distutils\mingw32ccompiler.py", line 569, in msvc_manifest_xml
(maj, min))
ValueError: Version 14,0 of MSVCRT not supported yet
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for numpy
Running setup.py clean for numpy
error: subprocess-exited-with-error
python setup.py clean did not run successfully.
exit code: 1
[10 lines of output]
Running from numpy source directory.
`setup.py clean` is not supported, use one of the following instead:
- `git clean -xdf` (cleans all files)
- `git clean -Xdf` (cleans all versioned files, doesn't touch
files that aren't checked into the git repo)
Add `--force` to your command to use it anyway if you must (unsupported).
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed cleaning build dir for numpy
Failed to build Cython numpy
ERROR: Could not build wheels for Cython, numpy, which is required to install pyproject.toml-based projects
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
```
Hey
Maybe this is a problem for me because I'm a noobie. But when I try to run the program I get this error:
File ~.spyder-py3\pygtide-master\pygtide.py:97 in
import etpred
ModuleNotFoundError: No module named 'etpred'
From what I understood, this module is in the other files, but when I try to run it, it doesn't recognize it. Any idea on how to solve this?
@hydrogeoscience I think the two binary files in the commdat directory should be removed again and should not be tracked by git. These are created automatically by the Fortran routines.
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
Hi, when creating etpolut1.dat and running test.py
there is a problem:
ValueError: time data '1962010' does not match format '%Y%m%d'
This file uses upstream pandas to_string
function and there is a problem with a leading space: pandas-dev/pandas#28538 since version 0.25.
A manual fix is to remove the leading white space in the created file.
Hi
Unfortunately, I get a similar error as #13. I am using anaconda 3.7 and after running test.py I get the following error: "ImportError: DLL load failed: The specified module could not be found". (see output below). Do you have any explanation for this error?
Thanks a lot for your reply
runfile('C:/Users/hugmarc/Desktop/pygtide3/test.py', wdir='C:/Users/hugmarc/Desktop/pygtide3')
Traceback (most recent call last):
File "", line 1, in
runfile('C:/Users/hugmarc/Desktop/pygtide3/test.py', wdir='C:/Users/hugmarc/Desktop/pygtide3')
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
execfile(filename, namespace)
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/hugmarc/Desktop/pygtide3/test.py", line 2, in
import pygtide
File "C:\Users\hugmarc\Desktop\pygtide3\pygtide_init_.py", line 1, in
from .pygtide import pygtide
File "C:\Users\hugmarc\Desktop\pygtide3\pygtide\pygtide.py", line 96, in
from etpred import etpred
File "C:\ProgramData\Anaconda3\lib\site-packages\etpred_init_.py", line 1, in
from . import etpred
I'm trying with Python v3.8.1 (Windows 10) and I'm getting a "circular import" error (see below).
I then tried with Anaconda with v3.6 and got the same "missing DLL" error as described in other issues. Any ideas to solve this?
python test.py
Traceback (most recent call last):
File "test.py", line 2, in <module>
import pygtide
File "C:\Shared Software\pygtide-master\pygtide\__init__.py", line 1, in <module>
from .pygtide import pygtide
File "C:\Shared Software\pygtide-master\pygtide\pygtide.py", line 96, in <module>
from etpred import etpred
File "C:\Shared Software\pygtide-master\etpred\__init__.py", line 1, in <module>
from . import etpred
ImportError: cannot import name 'etpred' from partially initialized module 'etpred' (most likely due to a circular import) (C:\pygtide-master\etpred\__init__.py)```
Change Fortran to mute the legacy terminal outputs
Hi Gabriel. After installation by 'pip install pygtide' in Ubuntu 20.04. I tested pygtide then prompted error message.
Traceback (most recent call last):
File "", line 1, in
File "/mnt/j/Vols/pygtide/pygtide/init.py", line 5, in
from pygtide.update_etpred_data import update
File "/mnt/j/Vols/pygtide/pygtide/update_etpred_data.py", line 7, in
import pygtide.etpred as etpred
ModuleNotFoundError: No module named 'pygtide.etpred'
I found that we can not update the data in the file etpolut1.dat before 1962. we thus can not calculate the tides before 1962. How to solve this problem. Thanks for your help.
Hi is there any reason why this does not run on anaconda 3 python 3.7.
I downloaded pygtide and ran the following:
import os
os.chdir("C:\Users\Downloads\pygtide-master\pygtide-master")
import pygtide
to get the following:
ImportError Traceback (most recent call last)
in
3 import os
4 os.chdir("C:\Users\Downloads\pygtide-master\pygtide-master")
----> 5 import pygtide
~\Downloads\pygtide-master\pygtide-master\pygtide_init_.py in
----> 1 from .pygtide import pygtide
~\Downloads\pygtide-master\pygtide-master\pygtide\pygtide.py in
94 import pandas as pd
95 import datetime as dt
---> 96 from etpred import etpred
97 import os
98 from sys import path
~\Downloads\pygtide-master\pygtide-master\etpred_init_.py in
----> 1 from . import etpred
ImportError: DLL load failed: The specified module could not be found.
When i run test.py i get some output. Yippee :-) But how do i know it's correct? I suggest including an "expected_output" file.
I get this warning:
Prediction timeframe exceeds the end of the available time database (2017-01-01 00:00:00) plus 1 year. For best accuracy, please consider updating 'etddt.dat'
I attempted to update etddt.dat but the newly-downloaded file appeared to be the same as the one in the repo, so i must have done something wrong.
Perhaps the version in the repo could be updated?
Hello,
I am trying to run pygtide on python built from anaconda on ubuntu linux, and every time that a new etpolut1.dat file is pulled, it cannot be read by the included eterna, I believe because it has a space between the beginning of the line and the date. The error produced is as follows (from iPython):
ValueError Traceback (most recent call last)
~/projects/pygtide/test.py in
7
8 # create a PyGTide object
----> 9 pt = pygtide.pygtide()
10
11 # update the pole coordinates and UT1 time database
~/projects/pygtide/pygtide/pygtide.py in init(self, msg)
138 self.etpolut1_dat_file = str(etpred.params.etpolutdat, 'UTF-8').strip()
139 self.etpolut1_bin_file = str(etpred.params.etpolutbin, 'UTF-8').strip()
--> 140 self.etpolut1_start = dt.datetime.strptime(str(etpred.inout.etpol_start), "%Y%m%d")
141 self.etpolut1_end = dt.datetime.strptime(str(etpred.inout.etpol_end), "%Y%m%d")
142
~/.conda/envs/obspy/lib/python3.6/_strptime.py in _strptime_datetime(cls, data_string, format)
563 """Return a class cls instance based on the input string and the
564 format string."""
--> 565 tt, fraction = _strptime(data_string, format)
566 tzname, gmtoff = tt[-2:]
567 args = tt[:6] + (fraction,)
~/.conda/envs/obspy/lib/python3.6/_strptime.py in _strptime(data_string, format)
360 if not found:
361 raise ValueError("time data %r does not match format %r" %
--> 362 (data_string, format))
363 if len(data_string) != found.end():
364 raise ValueError("unconverted data remains: %s" %
ValueError: time data '1962010' does not match format '%Y%m%d'
The corresponding initial section of the etpolut1.dat file is as follows:
Date Time MJD x y UT1-UTC TAI-UT1
["] ["] [sec] [sec]
C****************************************************************
19620101 000000 37665.000 -0.01270 0.21300 0.032634 9.967366
19620102 000000 37666.000 -0.01590 0.21410 0.032055 9.967945
19620103 000000 37667.000 -0.01900 0.21520 0.031553 9.968447
Some jimmying with the file has produced a working run, but every update returns to this.
Robert
The LOD tide shows unsteadiness. This results from the code interpolating data from etpolut1.dat and then differentiating it.
Is there a solution that makes the results steady?
Change installation file such that there are pre-compiled DLLs for most Python versions to help Windows users avoid a compile.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.