National Imagery and Mapping Agency
NIMA has developed a global coordinate system (datum), the World Geodetic System 1984 (WGS 84), upon which to base all Mapping, Charting, and Geodetic (MC&G) products. This program transforms between local geodetic datums and WGS 84 (from the local datum to WGS 84 and vice versa). Coordinates may be input in any of three standard formats: geodetic position (GP), Universal Transverse Mercator grid (UTM), or Military Grid Reference System (MGRS). Coordinate conversion will be done if possible on both the input point and the transformed point, so that each will be displayed in all three formats. This program is designed for coordinates scaled from maps and charts.
The program will run more quickly if it is copied to and run from the hard disk.
The files "ellips.dat" and "datum.dat" should be in the same directory
as "madtran.exe" after the expansion.
If you are familiar with datum transformation standard coordinate formats you should be able to begin experimenting with the program
The two initial screens are informational. They also provide access to the Help and Configuration Management information for MADTRAN. To access this information, press the "F1" function key.
Choose from:
The Video Only choice displays results only on the screen, so any values you wish to save must be hand recorded.
When Text File is the Output Device choice, output will be written to a text file named by the user in the same directory as the executable.
If you leave it open, you can switch back to TEXT FILE again later and append more results onto the file.
CAUTION! If you do close it and you switch back to text file again, choose a different file name if you don't want to overwrite the first set of results.
The current file can also be closed by returning to Output File to select a new file name.
By default, output will be written to a file called "results.txt" in the same directory as the executable.
If the Text File is chosen, a box prompting you to pick your own name, path, and directory for the file will appear.
Requesting text file creation to a:
will cause program termination.
Choose whether geodetic positions will be input and displayed in:
If you have chosen GP as your Input Type, GP format will determine how you must enter the "from point."
It also determines how the GP version of the "to point" will be displayed.
The number of decimal places indicated above give an input precision no worse than 3 meters.
Choose the direction of the transformation:
Choose whether you will input the coordinates of the original point (the "from point") in:
A list of local datums will appear.
Select the desired datum by name and country/area.
All parameters needed to do a transformation with this local datum will automatically be chosen. If the desired datum is not in the list, choose the "User-Specified" item in the Datums list, prompts for the following will appear:
Then pick the ellipsoid from the list
If the desired ellipsoid is not in the Ellipsoids list, choose the "User-Specified" , prompts for the following will appear:
Entering values for a User-Specified datum or ellipsoid does not permanently update either of the lists.
However, during the current run of the program, the name(s) you entered will be displayed in place of "User-Defined in the list(s), and the parameters you entered will be used in the transformations.
You can change to a different user-defined datum and ellipsoid by entering new values in place of the old ones (you can not have more than one user-defined datum or ellipsoid in the lists at any one time).
The entry screen will be tailored to the GP Format chosen:
In all formats, select the hemisphere.
Input the northing and easting up to the nearest meter, and the grid zone between 1 and 60.
Choose the north or south hemisphere.
Under Grid Zone Designation, enter the zone, between 1 and 60, into the first field.
Enter a single letter designating the latitude band into the second field (see the NIMA TM's for valid letters).
Under 100,000-meter Square, enter two letters.
Again, see the NIMA TM's for valid values.
Enter numeric values for the northing and easting.
Coordinate letters may be input in upper or lower case. Input must be at least the 100,000 meter square.
Numeric parts may be from 10,000 to one-meter square.
The program responds to invalid values entered into the Point Entry fields in several ways.
A character of the wrong type, e.g., a letter in a field that requires numbers, will be ignored.
So will extra characters, like a third digit to the left of the decimal point in a latitude field.
Where possible, input is checked for range validity--a BEEP will sound if a distance or angle is not in the proper range, and input will be requested again.
Some invalid entries are not caught until coordinate conversion or transformation is attempted.
In this case, one of the following error messages is displayed on the results screen, along with any partial results generated:
For a full explanation of these errors, see the NIMA TM's listed under References.
Both the "from" and "to" points are displayed in all three coordinate types if possible.
If an error has occurred, a message will be displayed where the MGRS value is usually given.
See Error Trapping. The "Error" field gives the uncertainty of the transformation calculation.
Note that it does NOT indicate a program error.
The "Translations" fields are local datum parameters which give the shifts between ellipsoid centers from the input to the output datum.
Any key returns to the Point Entry screen for input of a point for the next transformation.
All Setup selections, including the local datum, will remain the same.
"Esc" allows selection of a new datum. See also KNOWN BUGS.
Trying to write the output file to a write-protected disk freezes up your system (sooner or later).
Datum transformation method is standard Molodensky formulas, NIMA Technical Report 8350.2.
Conversion between GP, UTM and MGRS is in NIMA Technical Manual 8358.2.
The source code furnished is in Powerbasic.The grid conversion modules were designed and coded by Bradford Drew, and the user interface is based on the MADTRAN program written by Robert Zeigler (retired), both of the National Imagery and Mapping Agency Systems Center.
MADTRAN NIMA edition 1 (version 4.2) is a software program for datum transformation and coordinate conversions. You can download madtran.zip or it can ordered via e-mail or phone on a 3.5 inch diskette for IBM-compatible PC's (request MADTRAN stock number: MADTRANIBMPC).
A directory of internally documented source code (Powerbasic) is included for system developer use. The program allows input from geodetic, UTM, or the Military Grid Reference System coordinates. Over 100 datums are available for transformation to or from WGS 84. Output is automatically presented as geodetic, UTM, and Military Grid Reference System coordinates. Geodetic coordinates can be computed in degrees, minutes, and/or seconds.
Available to the public.
[NIMA Home] [NIMA Geospatial] [G&G Home] [Publications Page]