Notes N9SSA's Miles Per Watt Calculator

http://www.hoffswell.com/n9ssa/mpwcalc.html

Popularized by my friends at:

QRP Amateur Radio Club International
QST, June 2000 issue, Page 31
The Grid Locator and Field Hunting newsgroup


Usage -

Note: This webpage uses JavaScript. Your browser must have JavaScript enabled to run this calculator.

Enter the longitude and latitude of two points in the standard +- format. For example: Chicago is Latitude: 41.880833, Longitude: -87.62785. Optionally, you can enter the gridsquare (2, 4 or 6 characters) and the calculator will automatically convert to Latitude and Longitude. Values for South and West are to be negative. Enter your power out in watts, and press the button!

You may also click Yes to have the calculator remember your FROM qth for the next time you visit.

If you want to see a map of your two points, press the Show Map button.

You can get coordinates for any site on earth through maps.google.com or coordinates of a callsign via BuckMaster. These, and other useful links are in the Tools section of the calculator. For ease of use with the calculator, I suggest you open tools with a RIGHT mouse-click, and "Open in New window", that way you can copy and paste back to the calculator window.

If you are really desperate to find a location, try: NIMA They have a database of tons of towns across the whole world.


Notes on Great Circle Distances -

The problem of determining the great circle distance on a sphere has been around for hundreds of years, as have both the Law of Cosines solution (not recommended) and the Haversine Formula:

Haversine Formula (from R.W. Sinnott, "Virtues of the Haversine", Sky and Telescope, vol. 68, no. 2, 1984, p. 159):

R = 6367000
dlon = lon2 - lon1
dlat = lat2 - lat1
a = (sin(dlat/2))^2 + cos(lat1) * cos(lat2) * (sin(dlon/2))^2
c = 2 * atan2( sqrt(a), sqrt(1-a) )
d = R * c

Where R is the radius of the earth. I used earthradius=6367000 meters. The earth actually varies from 6336 km to 6399 km.
This will give mathematically and computationally exact results. The intermediate result c is the great circle distance in radians. The great circle distance d will be in meters.

I based my distance calculator on the above formula. While not exact, it should give you results that will be within a couple of miles.

For further discussion, refer to http://www.census.gov/cgi-bin/geo/gisfaq?Q5.1.


Notes on Gridsquare Conversion -

This program will break down a gridsquare entry and convert it to Latitude and Longtitude. You can enter 2, 4 or 6 characters, and the calculator will select the center point of the grid (two chars), subgrid (4 chars), or sub-sub grid (6 characters).

Note that this program will takes lat/lon input literally. That is 52 degrees, 20 minutes is 52.3334. 52.3333 will resolve a different gridsquare than 52.3334. (No biggie). To experment, try 52.3333lat by 5lon and 52.3334lat by 5lon. Note how they come up with J022mh and J022mi respectively.

For further information on this, check out:
http://www.arrl.org/locate/gridinfo.html


Maps -

In November of 2005 I rewrote the Map Button to call a mapping program I wrote based on the Google Maps EZ interface to Google Maps.

While this is a fun map, the line drawn may not be representative any actual radio path. Propagation is fun. Google maps don't always draw shortest or longest path (Case in point Holland Michigan to Perth Australia line, and Intermediate points on a great circle on a flat map. But, it's enough to get a picture.


Version History -


2.2 - Repaired mapgen.php
2.1 - Added Cookie to save home QTH location for repeat visitors
2.0 - Wrote companion program, mapgen.php, to display short path on Google Map with the Google Maps EZ interface to Google Maps
1.5 - Moved hosting from qsl.net to hoffswell.com
1.3 - Fixed remote broken links, including parc.xerox.com mapping
1.2 - Added input error checking, clean up code.
1.1 - Added tool bar. Added Lat/Long to gridsquare converstion.
1.0 - Original release, including gridsquare to lat/lon conversion, MPW calculation, and map button.

A special note of thanks...


Thanks to all my ham buddies that helped out with ideas, code, comments, suggestions and testing: Darrell Kindred of Indio, W2IOL, N0IT, WB0JNR, W8EL, N4EUK, W9IP, N1BWT and NT7S.

Please direct comments to pete@hoffswell.com.
Last update 16.Nov.05

N9SSA