mcp
v2.4.0Model Context Protocol (MCP) server exposing interstellar-tools orbital mechanics, geodesy and map projection calculations and celestial body datasets to AI…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
gravitational_parameter Gravitational parameter
Compute the standard gravitational parameter μ = G·(M + m) from masses. Use this to get μ for the other orbit tools.
| Parameter | Type | Description |
|---|---|---|
M_kg * | number | Primary mass, in kg. |
m_kg | number | Secondary mass, in kg. Omit for a test particle. |
circular_speed Circular orbit speed
Speed of a circular orbit at radius r: v = √(μ/r).
| Parameter | Type | Description |
|---|---|---|
mu_m3_s2 * | number | Standard gravitational parameter μ = G·M of the central body, in m³/s². Take it from the `mu` of the body (find_body); Earth ≈ 3.986004355e14, Sun ≈ 1.32712440041e20. |
r_m * | number | Distance from the centre of the central body, in metres (m). |
escape_speed Escape speed
Escape speed at radius r: v = √(2μ/r).
| Parameter | Type | Description |
|---|---|---|
mu_m3_s2 * | number | Standard gravitational parameter μ = G·M of the central body, in m³/s². Take it from the `mu` of the body (find_body); Earth ≈ 3.986004355e14, Sun ≈ 1.32712440041e20. |
r_m * | number | Distance from the centre of the central body, in metres (m). |
vis_viva_speed Vis-viva speed
Orbital speed at radius r on an orbit with semi-major axis a: v = √(μ(2/r − 1/a)). Use a > 0 for elliptic orbits and a < 0 for hyperbolic orbits.
| Parameter | Type | Description |
|---|---|---|
a_m * | number | Semi-major axis, in metres. Positive for elliptic, negative for hyperbolic. |
mu_m3_s2 * | number | Standard gravitational parameter μ = G·M of the central body, in m³/s². Take it from the `mu` of the body (find_body); Earth ≈ 3.986004355e14, Sun ≈ 1.32712440041e20. |
r_m * | number | Distance from the centre of the central body, in metres (m). |
kepler_period Orbital period
Orbital period of an elliptic orbit from Kepler’s third law: T = 2π√(a³/μ).
| Parameter | Type | Description |
|---|---|---|
a_m * | number | Semi-major axis, in metres. |
mu_m3_s2 * | number | Standard gravitational parameter μ = G·M of the central body, in m³/s². Take it from the `mu` of the body (find_body); Earth ≈ 3.986004355e14, Sun ≈ 1.32712440041e20. |
peri_apoapsis_radii Periapsis and apoapsis radii
Periapsis rp = a(1 − e) and apoapsis ra = a(1 + e). For hyperbolic orbits (a < 0, e > 1) ra is null.
| Parameter | Type | Description |
|---|---|---|
a_m * | number | Semi-major axis, in metres. Negative for hyperbolic orbits. |
e * | number | Eccentricity (dimensionless). |
sphere_of_influence_radius Sphere of influence
Laplace sphere-of-influence radius of a secondary body orbiting a primary: r_SOI = a·(m/M)^(2/5).
| Parameter | Type | Description |
|---|---|---|
M_kg * | number | Primary (larger) mass, in kg. |
a_m * | number | Semi-major axis of the secondary around the primary, in metres. |
m_kg * | number | Secondary (smaller) mass, in kg. |
state_to_elements State vector to orbital elements
Classical orbital elements (a, e, i, Ω, ω, ν) from a position and velocity in an inertial frame centred on the body. Works for ellipses, parabolas and hyperbolas; a_m is left out for a parabola. For a circular orbit ω is 0 and ν is measured from the node; for an equatorial one Ω is 0. Returns the periapsis radius, the specific energy, and the period if the orbit is elliptic.
| Parameter | Type | Description |
|---|---|---|
mu_m3_s2 * | number | Standard gravitational parameter μ = G·M of the central body, in m³/s². Take it from the `mu` of the body (find_body); Earth ≈ 3.986004355e14, Sun ≈ 1.32712440041e20. |
r_m * | array | Position [x, y, z], in metres. |
v_m_s * | array | Velocity [vx, vy, vz], in m/s. |
elements_to_state Orbital elements to state vector
Position and velocity in an inertial frame centred on the body, from classical orbital elements. Give the size as either a_m (a > 0 with e < 1 for an ellipse, a < 0 with e > 1 for a hyperbola) or rp_m, the periapsis radius, which a parabola (e = 1) needs.
| Parameter | Type | Description |
|---|---|---|
argp * | object | Argument of periapsis ω. |
e * | number | Eccentricity, e ≥ 0. |
i * | object | Inclination, in [0°, 180°]. |
mu_m3_s2 * | number | Standard gravitational parameter μ = G·M of the central body, in m³/s². Take it from the `mu` of the body (find_body); Earth ≈ 3.986004355e14, Sun ≈ 1.32712440041e20. |
nu * | object | True anomaly ν. |
raan * | object | Right ascension of the ascending node Ω. |
a_m | number | Semi-major axis, in metres. Positive for elliptic, negative for hyperbolic. Give this or rp_m. |
rp_m | number | Periapsis radius, in metres. Give this or a_m; a parabola needs it. |
propagate_state Propagate a state vector
Position and velocity after a time dt on a two-body orbit, from a position and velocity in an inertial frame centred on the body. Works for ellipses, parabolas and hyperbolas; a negative dt goes backwards. No perturbations (drag, J2, third bodies).
| Parameter | Type | Description |
|---|---|---|
dt_s * | number | Time to propagate by, in seconds. Negative goes back. |
mu_m3_s2 * | number | Standard gravitational parameter μ = G·M of the central body, in m³/s². Take it from the `mu` of the body (find_body); Earth ≈ 3.986004355e14, Sun ≈ 1.32712440041e20. |
r_m * | array | Position [x, y, z], in metres. |
v_m_s * | array | Velocity [vx, vy, vz], in m/s. |
hohmann_transfer Hohmann transfer
Two-impulse Hohmann transfer between coplanar circular orbits of radius r1 and r2 around the same body. Returns both burns, total Δv and transfer time.
| Parameter | Type | Description |
|---|---|---|
mu_m3_s2 * | number | Standard gravitational parameter μ = G·M of the central body, in m³/s². Take it from the `mu` of the body (find_body); Earth ≈ 3.986004355e14, Sun ≈ 1.32712440041e20. |
r1_m * | number | Initial circular orbit radius from body centre, in metres. |
r2_m * | number | Target circular orbit radius from body centre, in metres. |
rocket_delta_v Rocket equation Δv
Tsiolkovsky rocket equation from specific impulse: Δv = g0·Isp·ln(m0/mf).
| Parameter | Type | Description |
|---|---|---|
isp_s * | number | Specific impulse, in seconds. |
m0_kg * | number | Initial (wet) mass, in kg. |
mf_kg * | number | Final (dry) mass, in kg. Must be less than m0_kg. |
plane_change_delta_v Plane change Δv
Δv for a pure inclination change at constant speed: Δv = 2v·sin(Δi/2). Δi must be within [0°, 180°].
| Parameter | Type | Description |
|---|---|---|
delta_i * | object | Angle with explicit unit, e.g. { "value": 28.5, "unit": "deg" }. |
v_m_s * | number | Orbital speed at the burn point, in m/s. |
solve_lambert Lambert’s problem
Find the orbit from position r1 to position r2 in time dt (Lambert’s problem), single revolution, for ellipses and hyperbolas alike. Returns the velocities at both ends. Positions are in an inertial frame centred on the body. For the burns, subtract the velocity of the orbit you leave from v1, and v2 from the velocity of the orbit you join. Positions 0° or 180° apart are an error: the transfer plane is undefined. Feed v1 to state_to_elements for the transfer orbit.
| Parameter | Type | Description |
|---|---|---|
dt_s * | number | Time of flight, in seconds. |
mu_m3_s2 * | number | Standard gravitational parameter μ = G·M of the central body, in m³/s². Take it from the `mu` of the body (find_body); Earth ≈ 3.986004355e14, Sun ≈ 1.32712440041e20. |
r1_m * | array | Start position [x, y, z], in metres. |
r2_m * | array | End position [x, y, z], in metres. |
prograde | boolean | true (default): fly counterclockwise seen from +z. false: clockwise. |
hyperbolic_departure Hyperbolic departure or capture
The burn from a circular parking orbit of radius rp onto the hyperbola that leaves the body with excess speed v∞, made at periapsis. The same Δv captures an arriving v∞ into that circular orbit. Also returns C3 = v∞², the launch-energy figure, and the hyperbola’s eccentricity. For an interplanetary transfer, v∞ is the difference between the planet’s velocity and the transfer orbit’s (from solve_lambert).
| Parameter | Type | Description |
|---|---|---|
mu_m3_s2 * | number | Standard gravitational parameter μ = G·M of the central body, in m³/s². Take it from the `mu` of the body (find_body); Earth ≈ 3.986004355e14, Sun ≈ 1.32712440041e20. |
rp_m * | number | Periapsis radius, the parking orbit’s radius from the body’s centre, in metres. |
v_inf_m_s * | number | Hyperbolic excess speed v∞, in m/s. |
solve_kepler Solve Kepler’s equation
Solve Kepler’s equation M = E − e·sin(E) for the eccentric anomaly E, given mean anomaly M and eccentricity e (elliptic orbits). Robust up to e → 1.
| Parameter | Type | Description |
|---|---|---|
M * | object | Angle with explicit unit, e.g. { "value": 28.5, "unit": "deg" }. |
e * | number | Eccentricity of an elliptic orbit, 0 ≤ e < 1. |
convert_anomaly Convert orbital anomaly
Convert between mean, eccentric and true anomaly for an elliptic orbit. Results are normalised to [0, 2π).
| Parameter | Type | Description |
|---|---|---|
angle * | object | Angle with explicit unit, e.g. { "value": 28.5, "unit": "deg" }. |
e * | number | Eccentricity of an elliptic orbit, 0 ≤ e < 1. |
from * | string | Kind of the input anomaly. |
to * | string | Kind of anomaly to return. |
convert_time Convert time unit
Convert a duration between time units, from attoseconds to gigayears.
| Parameter | Type | Description |
|---|---|---|
from * | string | Time unit: s, ms, μs (or us), ns, ps, fs, as, zs, ys, min, h, d, yr, kyr, Myr, Gyr, or a long form such as "days" or "megayears". Years are Julian years (365.25 d). |
to * | string | Time unit: s, ms, μs (or us), ns, ps, fs, as, zs, ys, min, h, d, yr, kyr, Myr, Gyr, or a long form such as "days" or "megayears". Years are Julian years (365.25 d). |
value * | number | Duration in the `from` unit. |
convert_distance Convert distance unit
Convert a distance between units, from metres to gigaparsecs. Datasets give orbit.a in au and radius in km, while the orbit tools take metres: convert with this tool first.
| Parameter | Type | Description |
|---|---|---|
from * | string | Distance unit: m, km, au, ly, kly, Mly, Gly, pc, kpc, Mpc, Gpc, or a long form such as "kilometres", "AU" or "light-years". Light-years use the Julian year. |
to * | string | Distance unit: m, km, au, ly, kly, Mly, Gly, pc, kpc, Mpc, Gpc, or a long form such as "kilometres", "AU" or "light-years". Light-years use the Julian year. |
value * | number | Distance in the `from` unit. |
great_circle_distance Great-circle distance
Shortest distance between two points along the surface of a sphere, and the central angle between them, from their latitudes and longitudes. Uses the body’s mean radius; on an oblate body like Earth the error is up to about 0.5%.
| Parameter | Type | Description |
|---|---|---|
from_latitude * | object | Latitude of the first point, north positive, in [-90°, 90°], e.g. { "value": 18.44, "unit": "deg" }. |
from_longitude * | object | Longitude of the first point, east positive, e.g. { "value": 77.45, "unit": "deg" }. |
to_latitude * | object | Latitude of the second point, north positive, in [-90°, 90°], e.g. { "value": 18.44, "unit": "deg" }. |
to_longitude * | object | Longitude of the second point, east positive, e.g. { "value": 77.45, "unit": "deg" }. |
body | string | Body id from find_body, such as "earth", "mars" or "moon". Give this or the radius in metres, not both. |
radius_m | number | Radius of the sphere, in metres. Earth’s mean radius is 6371008.4. |
horizon_distance Distance to the horizon
How far an observer at a height above a sphere can see: the straight-line distance to the horizon, and the distance along the surface to it. No atmospheric refraction.
| Parameter | Type | Description |
|---|---|---|
height_m * | number | Height of the observer above the surface, in metres. |
body | string | Body id from find_body, such as "earth", "mars" or "moon". Give this or the radius in metres, not both. |
radius_m | number | Radius of the sphere, in metres. Earth’s mean radius is 6371008.4. |
geodetic_to_body_fixed Geodetic to body-fixed coordinates
Body-fixed Cartesian position [x, y, z] of a point given by geodetic latitude, longitude and height above an oblate ellipsoid. x points to latitude 0, longitude 0; z to the north pole. On Earth, use body "wgs84" for GPS coordinates.
| Parameter | Type | Description |
|---|---|---|
height_m * | number | Height above the ellipsoid, in metres. |
latitude * | object | Latitude (geodetic), north positive, in [-90°, 90°], e.g. { "value": 18.44, "unit": "deg" }. |
longitude * | object | Longitude, east positive, e.g. { "value": 77.45, "unit": "deg" }. |
body | string | Body id from find_body, such as "earth", "mars" or "moon", or "wgs84" for the ellipsoid GPS uses. Give this or the radius in metres, not both. |
equatorial_radius_m | number | Equatorial radius a of the ellipsoid, in metres. |
polar_radius_m | number | Polar radius c of the ellipsoid, in metres, no larger than the equatorial radius. |
body_fixed_to_geodetic Body-fixed to geodetic coordinates
Geodetic latitude, longitude and height above an oblate ellipsoid, from a body-fixed Cartesian position [x, y, z]. The inverse of geodetic_to_body_fixed. On Earth, use body "wgs84" for GPS coordinates.
| Parameter | Type | Description |
|---|---|---|
r_m * | array | Body-fixed position [x, y, z], in metres. |
body | string | Body id from find_body, such as "earth", "mars" or "moon", or "wgs84" for the ellipsoid GPS uses. Give this or the radius in metres, not both. |
equatorial_radius_m | number | Equatorial radius a of the ellipsoid, in metres. |
polar_radius_m | number | Polar radius c of the ellipsoid, in metres, no larger than the equatorial radius. |
project_point Project a point onto a map
Map coordinates x (east) and y (north), in metres on a sphere, of a latitude and longitude in one of seven projections. equirectangular: plain latitude–longitude grid, as most planetary maps use. mercator: keeps angles, for navigation and web maps; no poles. sinusoidal and mollweide: keep areas, whole-world maps. lambert_azimuthal_equal_area: keeps areas around a centre point. stereographic: keeps angles around a centre point, for polar maps. orthographic: the globe as seen from far away; only the near hemisphere.
| Parameter | Type | Description |
|---|---|---|
latitude * | object | Latitude of the point, north positive, in [-90°, 90°]. |
longitude * | object | Longitude of the point, east positive. |
projection * | string | The map projection. |
body | string | Body id from find_body, such as "earth", "mars" or "moon". Give this or the radius in metres, not both. |
center_latitude | object | Latitude of the map’s centre, for equirectangular and the azimuthal projections (lambert_azimuthal_equal_area, stereographic, orthographic); 90° gives a north polar map. Defaults to 0. |
center_longitude | object | Longitude of the map’s centre (the central meridian). Defaults to 0. |
radius_m | number | Radius of the sphere, in metres. Earth’s mean radius is 6371008.4. |
standard_parallel | object | For equirectangular only: the latitude where the map is true to scale east–west, often the latitude of the area mapped. Defaults to 0, the equator. |
unproject_point Find the latitude and longitude of a point on a map
The reverse of project_point: the latitude and longitude of a point at map coordinates x (east) and y (north), in metres, in one of the same seven projections. Give the same projection, body or radius, and centre that the map was made with. Not every projection checks that the point is on the map. An error: sinusoidal and mollweide beyond the edge meridians or past a pole, equirectangular past a pole, lambert_azimuthal_equal_area beyond 2R from the centre, orthographic beyond R (the far hemisphere). No error: equirectangular and mercator wrap an x beyond the edge meridians round to the other s…
| Parameter | Type | Description |
|---|---|---|
projection * | string | The map projection. |
x_m * | number | Distance east of the map’s origin, in metres. |
y_m * | number | Distance north of the map’s origin, in metres. |
body | string | Body id from find_body, such as "earth", "mars" or "moon". Give this or the radius in metres, not both. |
center_latitude | object | Latitude of the map’s centre, for equirectangular and the azimuthal projections (lambert_azimuthal_equal_area, stereographic, orthographic); 90° gives a north polar map. Defaults to 0. |
center_longitude | object | Longitude of the map’s centre (the central meridian). Defaults to 0. |
radius_m | number | Radius of the sphere, in metres. Earth’s mean radius is 6371008.4. |
standard_parallel | object | For equirectangular only: the latitude where the map is true to scale east–west, often the latitude of the area mapped. Defaults to 0, the equator. |
tile_for_point Find the web map tile of a point
The web map tile (XYZ scheme of OpenStreetMap and most web maps, spherical Mercator) that holds a latitude and longitude at a zoom level, and its quadkey (Bing Maps naming). x counts columns east from 180° W, y counts rows south from the top edge at about 85.05° N; both run from 0 to 2^zoom − 1. Latitudes beyond ±85.05° go to the top or bottom row. Works for any body: the scheme depends only on angles. For TMS, which counts rows from the bottom, use 2^zoom − 1 − y. Given tile_size_px, it also gives the point’s pixel_row and pixel_column in the tile’s image, fractional: whole numb…
| Parameter | Type | Description |
|---|---|---|
latitude * | object | Latitude of the point, north positive, in [-90°, 90°]. |
longitude * | object | Longitude of the point, east positive. |
zoom * | integer | Zoom level, an integer in [0, 30]: 2^zoom × 2^zoom tiles cover the map. |
tile_size_px | integer | Width and height of the tile’s image in pixels, usually 256 or 512 (at most 4096), to find the point’s pixel in it. |
tile_info Describe a web map tile
The edges of a web map tile (XYZ scheme, spherical Mercator) as north and south latitudes and west and east longitudes, with both its x, y, zoom and its quadkey. Give the tile as x, y and z, or as a quadkey, not both. Use it to convert between XYZ and quadkey, or to find the area a tile covers. Given pixel_row, pixel_column and tile_size_px, it also gives that pixel’s latitude and longitude: whole numbers are pixels’ centres, ±0.5 their edges.
| Parameter | Type | Description |
|---|---|---|
pixel_column | number | Column of a pixel in the tile’s image, from 0 at the left, fractional: in [-0.5, tile_size_px - 0.5]. |
pixel_row | number | Row of a pixel in the tile’s image, from 0 at the top, fractional: in [-0.5, tile_size_px - 0.5]. |
quadkey | string | Quadkey: one digit 0–3 per zoom level, at most 30. The empty string is the single tile at zoom 0. |
tile_size_px | integer | Width and height of the tile’s image in pixels, usually 256 or 512 (at most 4096). |
x | integer | Column, east from 180° W, in [0, 2^z). |
y | integer | Row, south from the top edge of the map, in [0, 2^z). |
z | integer | Zoom level, an integer in [0, 30]. |
camera_ground_resolution Ground resolution and swath of a camera
What a camera sees of the ground from a distance: the instantaneous field of view (IFOV) of one pixel, the ground sample distance (GSD, the ground one pixel covers, in metres) and, given the number of pixels across track, the field of view and swath width in metres. Flat ground seen straight down: looking off to the side stretches pixels by about 1/cos of the emission angle. The smallest object a camera can recognise is a few pixels across, not one.
| Parameter | Type | Description |
|---|---|---|
distance_m * | number | Distance to the ground along the line of sight, in metres: the altitude when looking straight down. |
focal_length_m * | number | Effective focal length of the camera, in metres. |
pixel_pitch_m * | number | Spacing of the detector’s pixels, in metres; 7 µm is 7e-6. |
pixels_across | integer | Number of pixels across track, for the field of view and swath width. |
illumination_geometry Sun and viewing angles on a surface
Photometric angles at a point on a surface from three directions, in any one frame (their lengths don’t matter): incidence (Sun from the surface normal; above 90° the point is in shadow), emission (observer from the normal; above 90° it can’t be seen) and phase (between Sun and observer, seen from the point; low phase hides the shadows that show relief). Also the relative brightness, 0 to 1, of a Lambertian surface (cos i, like snow or matte paint) and a Lommel–Seeliger one (dark, dusty surfaces like the Moon’s).
| Parameter | Type | Description |
|---|---|---|
normal * | array | Surface normal, pointing out of the ground, [x, y, z]; not zero. |
to_observer * | array | Direction from the point to the observer or camera, [x, y, z]; not zero. |
to_sun * | array | Direction from the point to the Sun, [x, y, z]; not zero. |
landing_stability Will a lander tip over
Static tip-over check for a lander on a slope: the tip-over angle atan(r_footprint / h_com), the total tilt (slope plus touchdown rock-up), the margin left, and whether it stays up. The slope is in [0°, 90°]. Pass the slope and footprint in the direction the lander is most likely to tip. A first screen only: touchdown speed, leg stroke, friction and sliding footpads change the real limit. For a whole elevation grid use safe_landing_map.
| Parameter | Type | Description |
|---|---|---|
h_com_m * | number | Height of the centre of mass above the ground, in metres. |
r_footprint_m * | number | Horizontal distance from the centre of mass to the edge the lander would tip over, in metres. For n legs on a circle of radius R it is R·cos(180°/n): R/√2 for four legs, R/2 for three. |
slope * | object | Slope of the ground under the lander, in [0°, 90°]. |
dynamic_tilt | object | Extra tilt from the touchdown itself, as the legs take the load (the rock-up), at least 0. Defaults to 0. |
terrain_at_cell Terrain at one cell of an elevation grid
Everything about one cell of an elevation grid (DEM, up to 32 × 32): its height; the gradient (rise per metre east and north, Horn’s method); the slope and the aspect (the compass direction downhill, clockwise from north); profile curvature (along the slope: positive convex, like a hill’s shoulder) and planform curvature (across it: positive a ridge, negative a gully) in 1/m; the terrain roughness index in metres (root-mean-square height difference to the eight neighbours; gdaldem’s default TRI is √8 times larger); and, given the Sun’s azimuth and elevation, the hillshade from 0 to…
| Parameter | Type | Description |
|---|---|---|
cell_size_m * | number | Size of a cell east–west, in metres; also north–south unless cell_size_y_m is given. The grid must be projected: cells of constant size in metres, not degrees. |
column * | integer | Column of the cell, 0 at the west edge. |
elevation_m * | array | Elevation grid (a DEM), heights in metres: an array of rows, row 0 the northernmost, each row west to east. 3 to 32 rows and columns. Heights within ±1000000 m. null marks a missing cell. |
row * | integer | Row of the cell, 0 at the north edge. |
cell_size_y_m | number | Size of a cell north–south, in metres, if not square. |
no_data | number | A height that marks a missing cell, as well as null: such as -9999, or -3.4028235e38 from a float GeoTIFF. It may lie outside the ±1e6 m limit on heights. |
sun_azimuth | object | Sun’s azimuth, clockwise from north, for hillshade. |
sun_elevation | object | Sun’s elevation above the horizon, in [-90°, 90°], for hillshade. |
terrain_layer A terrain map from an elevation grid
One quantity for every cell of an elevation grid (DEM, up to 32 × 32), as rows in the same layout, with its minimum, maximum, mean and the cells where the extremes are; these are null for aspect, which wraps at 360°, and flow_direction, whose values are codes. Layers: slope (deg); aspect (deg, the compass direction downhill, clockwise from north); hillshade (0 to 1, needs sun_azimuth and sun_elevation); profile_curvature and planform_curvature (1/m); roughness (terrain roughness index, m); flow_direction (D8: all flow to the steepest lower neighbour, 0 north, 1 north-east, … 7 north-west;…
| Parameter | Type | Description |
|---|---|---|
cell_size_m * | number | Size of a cell east–west, in metres; also north–south unless cell_size_y_m is given. The grid must be projected: cells of constant size in metres, not degrees. |
elevation_m * | array | Elevation grid (a DEM), heights in metres: an array of rows, row 0 the northernmost, each row west to east. 3 to 32 rows and columns. Heights within ±1000000 m. null marks a missing cell. |
layer * | string | The quantity to map. |
cell_size_y_m | number | Size of a cell north–south, in metres, if not square. |
no_data | number | A height that marks a missing cell, as well as null: such as -9999, or -3.4028235e38 from a float GeoTIFF. It may lie outside the ±1e6 m limit on heights. |
sun_azimuth | object | Sun’s azimuth, clockwise from north, for hillshade. |
sun_elevation | object | Sun’s elevation above the horizon, in [-90°, 90°], for hillshade. |
contour_lines Contour lines of an elevation grid
Contour lines, the lines of equal height of a topographic map, through an elevation grid (DEM, up to 32 × 32), by marching squares. Give interval_m (and optionally base_m) for every base + k × interval between the grid’s lowest and highest heights, or levels_m for chosen heights; at most 20 levels. Each line is a list of [row, column] points in grid coordinates, fractional, rounded to 0.001 of a cell: whole numbers are cells’ centres, row 0 the northernmost; multiply by the cell size for metres. A closed line, such as a ring round a hill, ends on its first point; an open one stops at the…
| Parameter | Type | Description |
|---|---|---|
cell_size_m * | number | Size of a cell east–west, in metres; also north–south unless cell_size_y_m is given. The grid must be projected: cells of constant size in metres, not degrees. |
elevation_m * | array | Elevation grid (a DEM), heights in metres: an array of rows, row 0 the northernmost, each row west to east. 3 to 32 rows and columns. Heights within ±1000000 m. null marks a missing cell. |
base_m | number | A height the contours pass through, with interval_m, in metres. Defaults to 0, sea level. |
cell_size_y_m | number | Size of a cell north–south, in metres, if not square. |
interval_m | number | Height between contours, in metres: a level at every base_m + k × interval_m between the lowest and highest heights. |
levels_m | array | The heights to trace, in metres, instead of interval_m. |
no_data | number | A height that marks a missing cell, as well as null: such as -9999, or -3.4028235e38 from a float GeoTIFF. It may lie outside the ±1e6 m limit on heights. |
safe_landing_map Where a lander can touch down on an elevation grid
Screens every cell of an elevation grid (DEM, up to 32 × 32) for a lander: 1 where it’s safe (the cell’s slope plus rock-up stays below the tip-over angle atan(r_footprint / h_com), and its terrain roughness index is at most max_roughness_m), 0 where it isn’t, null where it can’t tell (the grid’s edge and next to a missing cell). Assumes the lander faces its weakest direction downhill. Pick a cell size about the lander’s footprint: boulders smaller than a cell don’t show. The roughness index also counts the slope itself, about 0.87 × cell size × tan(slope) on a smooth plane, s…
| Parameter | Type | Description |
|---|---|---|
cell_size_m * | number | Size of a cell east–west, in metres; also north–south unless cell_size_y_m is given. The grid must be projected: cells of constant size in metres, not degrees. |
elevation_m * | array | Elevation grid (a DEM), heights in metres: an array of rows, row 0 the northernmost, each row west to east. 3 to 32 rows and columns. Heights within ±1000000 m. null marks a missing cell. |
h_com_m * | number | Height of the centre of mass above the ground, in metres. |
max_roughness_m * | number | Largest terrain roughness index the lander can take, in metres: its clearance under the body, for example. A smooth slope has a roughness of its own, about 0.87 × cell size × tan(slope): add that fo… |
r_footprint_m * | number | Horizontal distance from the centre of mass to the edge the lander would tip over, in metres. For n legs on a circle of radius R it is R·cos(180°/n): R/√2 for four legs, R/2 for three. |
cell_size_y_m | number | Size of a cell north–south, in metres, if not square. |
dynamic_tilt | object | Extra tilt from the touchdown itself, as the legs take the load (the rock-up), at least 0. Defaults to 0. |
no_data | number | A height that marks a missing cell, as well as null: such as -9999, or -3.4028235e38 from a float GeoTIFF. It may lie outside the ±1e6 m limit on heights. |
satellite_position Satellite position
Where a satellite is at a moment: the point on the ground below it, its height, its position and velocity in the TEME frame, and whether it is in Earth’s shadow. Propagates the elements with SGP4. Accurate to about a kilometre near the elements’ epoch, growing by a few kilometres a day: elements_age_d says how old they are.
| Parameter | Type | Description |
|---|---|---|
time * | string | The moment, an ISO 8601 time in UTC, e.g. "2026-11-05T15:49:00Z". A time without Z or an offset is taken as UTC too. |
omm | One Orbit Mean-elements Message record, as CelesTrak returns it with FORMAT=json, or its JSON text. | |
satellite | string | Id of a satellite in the bundled snapshot, dated 2026-11-04: iss, tiangong, hubble, starlink-32000, landsat-9, noaa-20, envisat, gps-iii-sv01, galileo-gsat0101, goes-19, meteosat-11, molniya-1-29. Sna… |
tle | array | A two-line element set: [line 1, line 2]. |
look_angles Look angles to a satellite
Where to point an antenna or a camera at a satellite from the ground at a moment: azimuth clockwise from north, elevation above the horizon, range, and range rate (negative while it approaches). Give frequency_hz for the Doppler shift of its signal. The elevation is geometric, without refraction.
| Parameter | Type | Description |
|---|---|---|
observer * | object | The observer on the ground. |
time * | string | The moment, an ISO 8601 time in UTC, e.g. "2026-11-05T15:49:00Z". A time without Z or an offset is taken as UTC too. |
frequency_hz | number | Transmitted frequency, in Hz, for the Doppler shift. |
omm | One Orbit Mean-elements Message record, as CelesTrak returns it with FORMAT=json, or its JSON text. | |
satellite | string | Id of a satellite in the bundled snapshot, dated 2026-11-04: iss, tiangong, hubble, starlink-32000, landsat-9, noaa-20, envisat, gps-iii-sv01, galileo-gsat0101, goes-19, meteosat-11, molniya-1-29. Sna… |
tle | array | A two-line element set: [line 1, line 2]. |
satellite_passes Satellite passes
When a satellite passes over an observer between two times: rise, highest point and set, with azimuths, and whether each pass can be seen with the eye (the satellite sunlit while the Sun is below -6° for the observer). Searches at most 14 days. Only whole passes are returned.
| Parameter | Type | Description |
|---|---|---|
from * | string | Start of the window, an ISO 8601 time in UTC, e.g. "2026-11-05T15:49:00Z". A time without Z or an offset is taken as UTC too. |
observer * | object | The observer on the ground. |
to * | string | End of the window, an ISO 8601 time in UTC, e.g. "2026-11-05T15:49:00Z". A time without Z or an offset is taken as UTC too. |
min_elevation | object | The elevation that counts as rising and setting: 0 by default, the horizon. 10° skips passes low behind trees and buildings. |
omm | One Orbit Mean-elements Message record, as CelesTrak returns it with FORMAT=json, or its JSON text. | |
satellite | string | Id of a satellite in the bundled snapshot, dated 2026-11-04: iss, tiangong, hubble, starlink-32000, landsat-9, noaa-20, envisat, gps-iii-sv01, galileo-gsat0101, goes-19, meteosat-11, molniya-1-29. Sna… |
tle | array | A two-line element set: [line 1, line 2]. |
probe_position Space probe position
Where a deep-space probe is at a moment, from the bundled JPL Horizons ephemerides (1 November 2026 to 31 December 2027): its distance from the Sun, the light time, and its position and velocity from the Sun’s centre in the ICRF. Outside that span, fetch an ephemeris from JPL Horizons with horizons_id.
| Parameter | Type | Description |
|---|---|---|
probe * | string | Id of the probe, e.g. "voyager-1" or "jwst". |
time * | string | The moment, an ISO 8601 time in UTC, e.g. "2026-11-05T15:49:00Z". A time without Z or an offset is taken as UTC too. |
lagrange_points Lagrange points
The five Lagrange points of two bodies circling each other, such as Sun-Earth (JWST at L2) or Sun-Jupiter (the Trojans at L4 and L5): positions in the frame turning with the bodies, from their barycentre, x from the larger body toward the smaller. Also whether L4 and L5 are stable, and the smaller body’s Hill sphere. Give each body as an id from find_body or as its mu.
| Parameter | Type | Description |
|---|---|---|
primary | string | The larger body’s id, e.g. "sun". |
primary_mu_m3_s2 | number | The larger body’s mu, in m³/s², instead of its id. |
secondary | string | The smaller body’s id, e.g. "earth". |
secondary_mu_m3_s2 | number | The smaller body’s mu, in m³/s², instead of its id. |
separation_m | number | Distance between the bodies, in metres. Defaults to the smaller body’s semi-major axis, when the datasets give it around the larger. |
find_body Find celestial body
Look up celestial bodies by name or id (case-insensitive substring) across the bundled datasets. Each body has a stable `id` and names the body, system or galaxy it is bound to in `parent`; `orbit` holds its elements around that parent. Values carry their own units ({ value, unit }); `orbit.a` is usually in au, `orbit.period` in days (always positive; `orbit.retrograde: true` marks a retrograde orbit), `radius` in km, `orbit.angle` in radians at J2000. Interstellar objects have open orbits instead: `orbit.e` above 1, a negative `orbit.a`, no `orbit.period`, the perihelion time in `orbit.periap…
| Parameter | Type | Description |
|---|---|---|
query * | string | Name, id or part of one, e.g. "mars" or "alpha-centauri". |
dataset | string | Restrict the search to one dataset. |