Skip to content

jrleeman/LongmanTide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Longman Tide

This is a module and tool that implements the tidal scheme of Longman 1959.

Useage

An example use case of computing the tide over a 7 day period for State College, PA.

import longmantide as tide
from datetime import datetime

model = tide.TideModel() # Make a model object
model.increment = 60*10 # Run every 10 minutes [seconds]
model.latitude = 40.7914 # Station Latitude
model.longitude = 282.1414 # Station Longitude
model.altitude = 370. # Station Altitude [meters]
model.start_time = datetime(2015,4,23,0,0,0)
model.duration = 7 # Model run duration [days]
model.run_model() # Do the run
model.write('output.txt') # Save results to text file
model.plot() # Make a quick-dirty-plot

Should you want to compute gravity at a specific time (say for correction of field data), that can be done as:

import longmantide as tide
from datetime import datetime

lat = 40.7914 # Station Latitude
lon = 282.1414 # Station Longitude
alt = 370. # Station Altitude [meters]
model = tide.TideModel() # Make a model object
time = datetime(2015,4,23,0,0,0) # When we want the tide
gm,gs,g = model.solve_longman(lat,lon,alt,time)
print gm,gs,g # Lunar, Solar, and Total

About

Gravitational tide computation based on Longman 1959

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages