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.

No comments: