Showing posts with label tide computing. Show all posts
Showing posts with label tide computing. Show all posts

Thursday, July 14, 2011

Typhoon Ma-On

Typhoon Ma-On is in full force on the Mariana Islands, 95 knots of wind, gusting 115..., and still getting strength...




And the TideEngine code is now available on Google Code.

High-Low water Calculation took 118 ms
-- Oyster Point Marina --
LW Wed Jul 13 06:06:00 PDT 2011 : -1.13 feet
HW Wed Jul 13 12:52:00 PDT 2011 : +5.88 feet
LW Wed Jul 13 17:44:00 PDT 2011 : +2.87 feet
HW Wed Jul 13 23:37:00 PDT 2011 : +7.85 feet

Sample GUI implementation:



Wednesday, July 13, 2011

Tide computing

I had had that one in the back of my head for quite a while... a tide engine (in Java) you can plug anywhere.
Apparently, it did not exist. The closest I could find was JTides, which is good, but that does not provide this kind of feature outside of its own graphical user interface.
Well, now it exists, I wrote a utility to turn the tide data into two XML documents, so you can parse and use them. In java, that's a piece of cake. Surprisingly, the class that does all the job (water height or current speed at any moment) is less than 900 lines big; and it includes comments!
This will be soon published on Google Code, along with some samples.
But the cool thing is that it works as well as JTides does.
I'll post a new message when the code is available on Google.