mcp

v2.4.0
@interstellar-tools/mcp Checked 55 minutes ago Published 1 day ago

Model 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.

ParameterTypeDescription
M_kg *numberPrimary mass, in kg.
m_kgnumberSecondary mass, in kg. Omit for a test particle.

circular_speed Circular orbit speed

Speed of a circular orbit at radius r: v = √(μ/r).

ParameterTypeDescription
mu_m3_s2 *numberStandard 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 *numberDistance from the centre of the central body, in metres (m).

escape_speed Escape speed

Escape speed at radius r: v = √(2μ/r).

ParameterTypeDescription
mu_m3_s2 *numberStandard 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 *numberDistance 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.

ParameterTypeDescription
a_m *numberSemi-major axis, in metres. Positive for elliptic, negative for hyperbolic.
mu_m3_s2 *numberStandard 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 *numberDistance 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³/μ).

ParameterTypeDescription
a_m *numberSemi-major axis, in metres.
mu_m3_s2 *numberStandard 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.

ParameterTypeDescription
a_m *numberSemi-major axis, in metres. Negative for hyperbolic orbits.
e *numberEccentricity (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).

ParameterTypeDescription
M_kg *numberPrimary (larger) mass, in kg.
a_m *numberSemi-major axis of the secondary around the primary, in metres.
m_kg *numberSecondary (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.

ParameterTypeDescription
mu_m3_s2 *numberStandard 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 *arrayPosition [x, y, z], in metres.
v_m_s *arrayVelocity [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.

ParameterTypeDescription
argp *objectArgument of periapsis ω.
e *numberEccentricity, e ≥ 0.
i *objectInclination, in [0°, 180°].
mu_m3_s2 *numberStandard 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 *objectTrue anomaly ν.
raan *objectRight ascension of the ascending node Ω.
a_mnumberSemi-major axis, in metres. Positive for elliptic, negative for hyperbolic. Give this or rp_m.
rp_mnumberPeriapsis 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).

ParameterTypeDescription
dt_s *numberTime to propagate by, in seconds. Negative goes back.
mu_m3_s2 *numberStandard 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 *arrayPosition [x, y, z], in metres.
v_m_s *arrayVelocity [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.

ParameterTypeDescription
mu_m3_s2 *numberStandard 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 *numberInitial circular orbit radius from body centre, in metres.
r2_m *numberTarget 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).

ParameterTypeDescription
isp_s *numberSpecific impulse, in seconds.
m0_kg *numberInitial (wet) mass, in kg.
mf_kg *numberFinal (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°].

ParameterTypeDescription
delta_i *objectAngle with explicit unit, e.g. { "value": 28.5, "unit": "deg" }.
v_m_s *numberOrbital 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.

ParameterTypeDescription
dt_s *numberTime of flight, in seconds.
mu_m3_s2 *numberStandard 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 *arrayStart position [x, y, z], in metres.
r2_m *arrayEnd position [x, y, z], in metres.
progradebooleantrue (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).

ParameterTypeDescription
mu_m3_s2 *numberStandard 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 *numberPeriapsis radius, the parking orbit’s radius from the body’s centre, in metres.
v_inf_m_s *numberHyperbolic 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.

ParameterTypeDescription
M *objectAngle with explicit unit, e.g. { "value": 28.5, "unit": "deg" }.
e *numberEccentricity 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π).

ParameterTypeDescription
angle *objectAngle with explicit unit, e.g. { "value": 28.5, "unit": "deg" }.
e *numberEccentricity of an elliptic orbit, 0 ≤ e < 1.
from *stringKind of the input anomaly.
to *stringKind of anomaly to return.

convert_time Convert time unit

Convert a duration between time units, from attoseconds to gigayears.

ParameterTypeDescription
from *stringTime 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 *stringTime 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 *numberDuration 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.

ParameterTypeDescription
from *stringDistance 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 *stringDistance 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 *numberDistance 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%.

ParameterTypeDescription
from_latitude *objectLatitude of the first point, north positive, in [-90°, 90°], e.g. { "value": 18.44, "unit": "deg" }.
from_longitude *objectLongitude of the first point, east positive, e.g. { "value": 77.45, "unit": "deg" }.
to_latitude *objectLatitude of the second point, north positive, in [-90°, 90°], e.g. { "value": 18.44, "unit": "deg" }.
to_longitude *objectLongitude of the second point, east positive, e.g. { "value": 77.45, "unit": "deg" }.
bodystringBody id from find_body, such as "earth", "mars" or "moon". Give this or the radius in metres, not both.
radius_mnumberRadius 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.

ParameterTypeDescription
height_m *numberHeight of the observer above the surface, in metres.
bodystringBody id from find_body, such as "earth", "mars" or "moon". Give this or the radius in metres, not both.
radius_mnumberRadius 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.

ParameterTypeDescription
height_m *numberHeight above the ellipsoid, in metres.
latitude *objectLatitude (geodetic), north positive, in [-90°, 90°], e.g. { "value": 18.44, "unit": "deg" }.
longitude *objectLongitude, east positive, e.g. { "value": 77.45, "unit": "deg" }.
bodystringBody 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_mnumberEquatorial radius a of the ellipsoid, in metres.
polar_radius_mnumberPolar 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.

ParameterTypeDescription
r_m *arrayBody-fixed position [x, y, z], in metres.
bodystringBody 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_mnumberEquatorial radius a of the ellipsoid, in metres.
polar_radius_mnumberPolar 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.

ParameterTypeDescription
latitude *objectLatitude of the point, north positive, in [-90°, 90°].
longitude *objectLongitude of the point, east positive.
projection *stringThe map projection.
bodystringBody id from find_body, such as "earth", "mars" or "moon". Give this or the radius in metres, not both.
center_latitudeobjectLatitude 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_longitudeobjectLongitude of the map’s centre (the central meridian). Defaults to 0.
radius_mnumberRadius of the sphere, in metres. Earth’s mean radius is 6371008.4.
standard_parallelobjectFor 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…

ParameterTypeDescription
projection *stringThe map projection.
x_m *numberDistance east of the map’s origin, in metres.
y_m *numberDistance north of the map’s origin, in metres.
bodystringBody id from find_body, such as "earth", "mars" or "moon". Give this or the radius in metres, not both.
center_latitudeobjectLatitude 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_longitudeobjectLongitude of the map’s centre (the central meridian). Defaults to 0.
radius_mnumberRadius of the sphere, in metres. Earth’s mean radius is 6371008.4.
standard_parallelobjectFor 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…

ParameterTypeDescription
latitude *objectLatitude of the point, north positive, in [-90°, 90°].
longitude *objectLongitude of the point, east positive.
zoom *integerZoom level, an integer in [0, 30]: 2^zoom × 2^zoom tiles cover the map.
tile_size_pxintegerWidth 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.

ParameterTypeDescription
pixel_columnnumberColumn of a pixel in the tile’s image, from 0 at the left, fractional: in [-0.5, tile_size_px - 0.5].
pixel_rownumberRow of a pixel in the tile’s image, from 0 at the top, fractional: in [-0.5, tile_size_px - 0.5].
quadkeystringQuadkey: one digit 0–3 per zoom level, at most 30. The empty string is the single tile at zoom 0.
tile_size_pxintegerWidth and height of the tile’s image in pixels, usually 256 or 512 (at most 4096).
xintegerColumn, east from 180° W, in [0, 2^z).
yintegerRow, south from the top edge of the map, in [0, 2^z).
zintegerZoom 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.

ParameterTypeDescription
distance_m *numberDistance to the ground along the line of sight, in metres: the altitude when looking straight down.
focal_length_m *numberEffective focal length of the camera, in metres.
pixel_pitch_m *numberSpacing of the detector’s pixels, in metres; 7 µm is 7e-6.
pixels_acrossintegerNumber 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).

ParameterTypeDescription
normal *arraySurface normal, pointing out of the ground, [x, y, z]; not zero.
to_observer *arrayDirection from the point to the observer or camera, [x, y, z]; not zero.
to_sun *arrayDirection 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.

ParameterTypeDescription
h_com_m *numberHeight of the centre of mass above the ground, in metres.
r_footprint_m *numberHorizontal 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 *objectSlope of the ground under the lander, in [0°, 90°].
dynamic_tiltobjectExtra 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…

ParameterTypeDescription
cell_size_m *numberSize 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 *integerColumn of the cell, 0 at the west edge.
elevation_m *arrayElevation 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 *integerRow of the cell, 0 at the north edge.
cell_size_y_mnumberSize of a cell north–south, in metres, if not square.
no_datanumberA 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_azimuthobjectSun’s azimuth, clockwise from north, for hillshade.
sun_elevationobjectSun’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;…

ParameterTypeDescription
cell_size_m *numberSize 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 *arrayElevation 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 *stringThe quantity to map.
cell_size_y_mnumberSize of a cell north–south, in metres, if not square.
no_datanumberA 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_azimuthobjectSun’s azimuth, clockwise from north, for hillshade.
sun_elevationobjectSun’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…

ParameterTypeDescription
cell_size_m *numberSize 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 *arrayElevation 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_mnumberA height the contours pass through, with interval_m, in metres. Defaults to 0, sea level.
cell_size_y_mnumberSize of a cell north–south, in metres, if not square.
interval_mnumberHeight between contours, in metres: a level at every base_m + k × interval_m between the lowest and highest heights.
levels_marrayThe heights to trace, in metres, instead of interval_m.
no_datanumberA 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…

ParameterTypeDescription
cell_size_m *numberSize 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 *arrayElevation 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 *numberHeight of the centre of mass above the ground, in metres.
max_roughness_m *numberLargest 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 *numberHorizontal 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_mnumberSize of a cell north–south, in metres, if not square.
dynamic_tiltobjectExtra tilt from the touchdown itself, as the legs take the load (the rock-up), at least 0. Defaults to 0.
no_datanumberA 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.

ParameterTypeDescription
time *stringThe 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.
ommOne Orbit Mean-elements Message record, as CelesTrak returns it with FORMAT=json, or its JSON text.
satellitestringId 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…
tlearrayA 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.

ParameterTypeDescription
observer *objectThe observer on the ground.
time *stringThe 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_hznumberTransmitted frequency, in Hz, for the Doppler shift.
ommOne Orbit Mean-elements Message record, as CelesTrak returns it with FORMAT=json, or its JSON text.
satellitestringId 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…
tlearrayA 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.

ParameterTypeDescription
from *stringStart 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 *objectThe observer on the ground.
to *stringEnd 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_elevationobjectThe elevation that counts as rising and setting: 0 by default, the horizon. 10° skips passes low behind trees and buildings.
ommOne Orbit Mean-elements Message record, as CelesTrak returns it with FORMAT=json, or its JSON text.
satellitestringId 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…
tlearrayA 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.

ParameterTypeDescription
probe *stringId of the probe, e.g. "voyager-1" or "jwst".
time *stringThe 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.

ParameterTypeDescription
primarystringThe larger body’s id, e.g. "sun".
primary_mu_m3_s2numberThe larger body’s mu, in m³/s², instead of its id.
secondarystringThe smaller body’s id, e.g. "earth".
secondary_mu_m3_s2numberThe smaller body’s mu, in m³/s², instead of its id.
separation_mnumberDistance 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…

ParameterTypeDescription
query *stringName, id or part of one, e.g. "mars" or "alpha-centauri".
datasetstringRestrict the search to one dataset.