通过 Astrox WebAPI 的 POST /Propagator/SimpleAscent 计算火箭主动上升段轨迹,输出 CzmlPositionOut(CZML结构的位置序列)。当用户需要主动上升段、火箭上升、发射轨迹计算时使用。
Earth 中心天体。Start < Stop{BASE_URL}/Propagator/SimpleAscent 发送 POST,Content-Type: application/json。POST /Propagator/SimpleAscent
| 参数名 | 类型 |
|---|
| 必须 |
|---|
| 说明 |
|---|
Start | string | 是 | 分析开始时刻 (UTCG) ("yyyy-MM-ddTHH:mm:ssZ") |
Stop | string | 是 | 分析结束时刻 (UTCG) ("yyyy-MM-ddTHH:mm:ssZ") |
Step | number | 否 | 积分步长(s),默认 5 |
CentralBody | string | 否 | 缺省 "Earth" |
LaunchLatitude | number | 是 | 发射点纬度 (deg) |
LaunchLongitude | number | 是 | 发射点经度 (deg) |
LaunchAltitude | number | 是 | 发射点高度 (m) |
BurnoutVelocity | number | 是 | 关机点速度 (m/s) |
BurnoutLatitude | number | 是 | 关机点纬度 (deg) |
BurnoutLongitude | number | 是 | 关机点经度 (deg) |
BurnoutAltitude | number | 是 | 关机点高度 (m) |
详见 shared-docs/api-schemas/CzmlPositionOut.md
Start < StopCentralBodyIsSuccessIsSuccess = false 时优先返回 Message场景:从肯尼迪航天中心(约 28.6°N, 80.6°W)发射,关机高度 300km,关机速度 7725.84 m/s,飞行 10 分钟。
export BASE_URL=http://astrox.cn:8765
curl "${BASE_URL}/Propagator/SimpleAscent" \
--request POST \
--header 'Content-Type: application/json' \
--data '{
"Start": "2022-05-23T04:00:00.000Z",
"Stop": "2022-05-23T04:10:00.000Z",
"Step": 5.0,
"LaunchLatitude": 28.6084,
"LaunchLongitude": -80.6042,
"LaunchAltitude": 0.0,
"BurnoutVelocity": 7725.84,
"BurnoutLatitude": 25.051,
"BurnoutLongitude": -51.326,
"BurnoutAltitude": 300000
}'
用 fixture 可避免 PowerShell 下行内 JSON 转义问题:
export BASE_URL=http://astrox.cn:8765
curl "${BASE_URL}/Propagator/SimpleAscent" \
--request POST \
--header 'Content-Type: application/json' \
--data-binary "@propagator-simple-ascent/fixtures/simple-ascent-earth-min.json"
| 文件 | 用途简述 |
|---|---|
propagator-simple-ascent/fixtures/simple-ascent-earth-min.json | 地球主动上升段,10 分钟窗口 |
propagator-simple-ascent/fixtures/simple-ascent-mars.json | 火星主动上升段 |
说明:部分 fixture 使用服务可接受的非 Z 结尾时间字符串;若接口校验只认 ISO8601,请改为 yyyy-MM-ddTHH:mm:ssZ 格式后再测。
从响应中取末时刻位置速度:按 shared-docs/api-schemas/CzmlPositionOut.md 中 cartesianVelocity 平铺格式,取最后一组 [t, X, Y, Z, Vx, Vy, Vz]。