Showing posts with label Projections. Show all posts
Showing posts with label Projections. Show all posts

Saturday, August 28, 2010

Mercator Scale


There are two schools - at least - to plot a line of position with enough details.
Mercator templates are one, plotting sheets are another one.
The plotting sheets rely on the Mercator scale, available at the bottom right corner of the document above. It gives graphically the ratio between one degree of latitude and one degree of longitude.
The Mercator projection relies on the concept of "Increasing Latitude", that gives the value of the latitude, in degrees of longitude...
The increasing latitude λ, for a latitude φ is given by the following formula:

λ(φ) = ln(tan(π/4 + φ/2))

The Mercator scale gives the the ratio between one degree of latitude and one degree of increasing latitude at the given latitude. In consequence, its formula is


ratio = (φ - (φ - 1)) / (λ(φ) - λ(φ - 1))
simplified as
ratio = 1 / (λ(φ) - λ(φ - 1))
also written
ratio = (λ(φ) - λ(φ - 1))-1

That's it!
The main difference I can see between the two methods is that the Mercator templates can be reused, just like a chart, and the plotting sheets are just a draft, to be dropped after used. That's just my opinion. Whoever has a better - or other - one is welcome to speak up.

Tuesday, April 27, 2010

Moving to Google Code

I'll be moving the code to the Subversion repository of Google Code.
We will have at least the following projects:
- javanmeaparser
- coreutilities
- chartcomponents
- weatherwizard
- fullnmeaconsole
This way, the code will be safe. I am using Oracle's JDeveloper and its Subversion extension, that works like a charm. The Weather Wizard is using a Swing graphical interface. This is not managed nicely by an IDE like Eclipse.
The last project is this NMEA Console I have been working on.


Thursday, September 27, 2007

More Google stuff


Still playing with projections and images...
Google Earth and Google Maps can superimpose images on the charts. The problem is that they recalculate the coordinates of the document - an image - based on an Anaximandre (square) projection. The NOAA faxes are available as Mercator projection; so I had this interesting Java exercise to turn an image representing a Mercator projection into an image representing the same data, but using an Anaximandre one. Interesting, indeed. The same operation is probably available for the other projections, we'll see that later.
The Google Earth one is pretty interesting, as you can use it in conjunction with other overlays, like clouds, winds, etc, from different origins. It's quite snappy.

If you have Google Earth installed on your computer, download this kmz file, and try for yourself, it's for the North Pacific. And if you don't have it, you should get it, it's free.
The cloud layer in the picture above can be reached through http://www.barnabu.co.uk/live-global-clouds-for-google-earth.