Tide gravitational correction based on I.M. Longman's Formulas for Computing the Tidal Accelerations Due to the Moon and the Sun
Project description
tidegravity is a Python library which implements the Longman scheme for computing the tidal accelerations due to the moon and sun, as published by I.M. Longman in the Journal of Geophysical Research, Vol 64, no. 12, 1959 This can be useful for correcting survey data collected with a relative gravity meter.
Requirements
The numpy and pandas libraries are required for processing tide corrections, and importing trajectory data for correction
The matplotlib library is currently only used in the examples to give a visual representation of the data.
References
I.M. Longman “Forumlas for Computing the Tidal Accelerations Due to the Moon and the Sun” Journal of Geophysical Research, vol. 64, no. 12, 1959, pp. 2351-2355
P. Schureman “Manual of harmonic analysis and prediction of tides” U.S. Coast and Geodetic Survey, 1958
Acknowledgements
This library is based on the work of John Leeman’s LongmanTide Python implementation. LongmanTide
Examples
There are several example scripts in the examples directory illustrating how to use the longmantide solving functions.
Here is a simple demonstration of calculating a correction series for a static latitude/longitude/altitude over a specified time period, with intervals of 1 second.
from datetime import datetime
from tidegravity import solve_point_corr
# Example static data for Denver, January 1, 2018
lat = 39.7392
lon = -104.9903
alt = 1609.3
t0 = datetime(2018, 1, 1, 12, 0, 0)
# Calculate corrections for one day (60*60*24 points), with 1 second resolution
result_df = solve_point_corr(lat, lon, alt, t0, n=60*60*24, increment='S')
# Result is a pandas DataFrame, with a DatetimeIndex, and correction
# values in the 'total_corr' column i.e.
corrections = result_df['total_corr'].values
# Plot the corrections using matplotlib
from matplotlib import pyplot as plt
plt.plot(corrections)
plt.ylabel('Tidal Correction [mGals]')
plt.show()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tidegravity-0.2.0a3.tar.gz.
File metadata
- Download URL: tidegravity-0.2.0a3.tar.gz
- Upload date:
- Size: 37.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46f90663022bf0317982cf946e359ad15c2ca6665e0414d0288be6cada1ec2cd
|
|
| MD5 |
2f3c2ce0fd1a66ab3efe191d42c34862
|
|
| BLAKE2b-256 |
8adf705eb1e6c253a6c59e71b85809761a6a0d73b068bef45eb7339b78488d05
|
File details
Details for the file tidegravity-0.2.0a3-py3-none-any.whl.
File metadata
- Download URL: tidegravity-0.2.0a3-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91469a6b5428f2fdc448688d63b3e5e0c5c2f7c209873d472e5a114cbd7796a1
|
|
| MD5 |
96ad2e471ae7cba1124c604749dc9623
|
|
| BLAKE2b-256 |
98975b282cb13ac169a76cd67286d80718ae2c67df63754d61883ef05527e8a1
|