Manipulate altitudes (height)
Prev | Chapter 4. Data Filters | Next

## Manipulate altitudes (height)

The height filter allows the correction of altitude values. At least one popular gps logger does store the ellipsoidal height (sum of the height above mean see level and the height of the geoid above the WGS84 ellipsoid) instead of the height above sea level, as it can be found on maps. The height filter allows for the correction of these altitude values. This filter supports two options: `wgs84tomsl` and `add`. At least one of these options is required, both can be combined.

Example 4.6. This option subtracts the WGS84 geoid height from every altitude. For GPS receivers like the iBlue747 the result is the height above mean see level.

`gpsbabel -i gpx -f in.gpx -x height,wgs84tomsl -o gpx -F out.gpx`

The coordinates and altitude vales must be based an the WGS84 ellipsoid for this option to produce sensible results

Example 4.7. This options adds a constant value to every altitude.

`gpsbabel -i gpx -f in.gpx -x height,add=10.2f -o gpx -F out.gpx`

You can specify negative numbers to subtract the value. If no unit is specified meters are assumed. For feet you can attach an "f" to the value.

### add option

Adds a constant value to every altitude.

Adds a constant value to every altitude. You can specify negative numbers to subtract the value.

The units may be specified by appending a suffix to the supplied number:

'm' for meters, e.g. 3.5m
'ft' or 'feet' for feet, e.g. 11.483ft
'k' or 'km' for kilometers, e.g 0.0035km
'nm' for nautical miles, e.g. 0.0018898nm
'mi' for miles, e.g. 0.0021748mi
'fa' for fathoms, e.g. 1.9138fa

If no units are specified, the units are assumed to be meters.

### wgs84tomsl option

Converts WGS84 ellipsoidal height to orthometric height (MSL).

Subtracts the WGS84 geoid height from every altitude.

For GPS receivers like the iBlue747 this corrects the logged altitudes to height above mean sea level.

Prev | Up | Next
Interpolate between trackpoints (interpolate) | Home | Manipulate track lists (track)