Skip to content

Local gravity

A camera + IMU solve holds the gravity magnitude fixed. Gravity is most of what an accelerometer measures, so the accelerometer scale (Da) takes up any error in it. Set the gravity where the data was recorded:

cam_imu.yaml
gravity: 9.8013 # m/s², Newark, Delaware

Or give the place instead, with site:. MVIS takes the latitude and altitude and computes WGS84 normal gravity from them, and the report then names the city: site: {latitude_deg: 39.68, altitude_m: 40, name: "Newark, Delaware"} (name is only a label). You may give both keys if they agree within 0.01 m/s². From MVIS 0.4.1 the report names the place in the comment after the gravity: value; with site: it names the site.

  • Without either key: MVIS uses 9.81 m/s² and the run log warns. The accelerometer scale then reads high by 9.81 / g. In Shenzhen g is 0.23 % below 9.81, so the scale reads 0.23 % high; at the equator 0.30 % high; in central Europe close to zero.
  • A measured value from a gravity survey also goes in gravity:.
  • site: takes coordinates, not a city name: names repeat (Córdoba, Spain and Córdoba, Argentina), and a site outside any city still has coordinates. The calculator below finds them from a city name.
  • Precision: anywhere in the right city is enough. One degree of latitude moves g by at most 0.01 %, 100 m of altitude by 0.003 %. Altitude matters only for high places (Kunming −0.06 %, Lhasa −0.11 %).

Requires MVIS 0.4.0 or later. The keys and their checks are in Configuration.

Type your city and pick it from the list: about 34,000 places, every one with more than 15,000 people, with their latitude and altitude. You don’t need the longitude, and the altitude only matters above about 300 m. Or press Use my location: your browser asks first, and the location stays on this page. You can also type the latitude and altitude yourself.

The calculator uses the same formula as MVIS (WGS84 normal gravity with the free-air correction) and runs in your browser: nothing you type is sent anywhere. It gives the gravity: line to copy, and the site: line under it if you prefer to give the place. With your own coordinates, put your label in place of “your place”.

The city list is from GeoNames (CC BY 4.0). The table under the calculator lists common recording places.

Placelatitude_degaltitude_mg [m/s²]Bias at 9.81
Singapore1.35159.7803 +0.30 %
Bangalore12.979209.7801 +0.31 %
Mexico City19.4322409.7791 +0.32 %
Hong Kong22.32109.7877 +0.23 %
Shenzhen22.54209.7879 +0.23 %
São Paulo−23.557609.7862 +0.24 %
Abu Dhabi24.4559.7892 +0.21 %
Kunming25.0418909.7837 +0.27 %
Lhasa29.6536509.7817 +0.29 %
Wuhan30.59259.7936 +0.17 %
Shanghai31.2359.7942 +0.16 %
Córdoba, Argentina−31.424009.7931 +0.17 %
Sydney−33.87209.7963 +0.14 %
Tokyo35.68409.7978 +0.12 %
Seoul37.57409.7994 +0.11 %
San Francisco37.77159.7997 +0.11 %
Washington, DC38.90209.8007 +0.10 %
Newark, Delaware39.68409.8013 +0.09 %
Denver39.7416109.7965 +0.14 %
Beijing39.90459.8015 +0.09 %
Boston42.36109.8038 +0.06 %
Zurich47.374109.8071 +0.03 %
Dübendorf (UZH-FPV)47.404409.8070 +0.03 %
Seattle47.61509.8084 +0.02 %
Munich48.145209.8074 +0.03 %
Paris48.86359.8096 0.00 %
London51.51159.8120 −0.02 %