The Moon's gravity at a point (reference: pyshtools 4.14.1)
gravity_at[Reference and validated] reference: pyshtools 4.14.1, unmodified, run in the reference image. Every answer ends with a provenance block that names the class, the library and data file hashes and the build; say which class produced each number you repeat. The Moon's gravitational acceleration at one point, from the GRGM1200B spherical harmonic model summed by SHTOOLS. radial_m_s2 is positive away from the center of the Moon, so the pull of gravity reads negative; north_m_s2 and east_m_s2 are along local north and east. Gravitation only: the term from the Moon's rotation is not included, and no terrain is read, so radius_km is the caller's. The model is given in the principal axis frame. A point in MOON_ME, the frame of lunar maps and the default, is rotated into MOON_PA by the fixed rotation of NAIF's lunar frame kernel before the sum; pa_lon_deg and pa_lat_deg say where it was evaluated, and north and east are those of the frame asked for. The sum stops at lmax or, above the 1,738.0 km reference sphere, at the last degree n whose (R/r)^n is over 1e-12; degree_summed says where it stopped. A point inside the reference sphere is answered and flagged below_reference_sphere.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"body": "<body>",
"lon_deg": "<lon_deg>",
"lat_deg": "<lat_deg>",
"radius_km": "<radius_km>"
},
"name": "gravity_at"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The body. Only "luna" has a gravity model here. | |
| lmax | No | Highest degree summed; no more than the degree of the model, 1200 for GRGM1200B. | |
| frame | No | The frame the longitude and latitude are in and north and east are answered in. MOON_ME is mean Earth and polar axis, the frame of lunar maps; MOON_PA is the principal axis frame the model is given in. A MOON_ME point is rotated into MOON_PA before the sum, up to about 0.9 km on the ground. | MOON_ME |
| model | No | The gravity model: GRGM1200B, the GRAIL degree 1200 lunar field from NASA PDS Geosciences. | GRGM1200B |
| lat_deg | Yes | Latitude, degrees north. | |
| lon_deg | Yes | Longitude, degrees east. | |
| radius_km | Yes | Distance from the center of the Moon, kilometers. The mean radius is 1,737.4 km and the reference sphere of the model 1,738.0 km. Below 1,738.0 km see below_reference_sphere. |