DOC: Hedy example reports a 3.35 % apogee error by comparing a MSL alt vs AGL alt (real error ~0.3 %)
Mantenedores costumam responder em até 3 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 1/5
- Tempo estimado
- Menos de uma hora
- Facilidade para iniciantes
- 92/100
- Tipo de issue
- Documentação
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- jupyter-notebook, python
- Domínio
- data-visualization, documentation
Direção de pesquisa
Comece com docs/examples/hedy_flight_sim.ipynb e execute a célula "Altitude Comparison". Verifique se o apogeu simulado é expresso acima do nível do solo, de forma consistente com o registro do altímetro, e se a porcentagem impressa reflete essa comparação. Os valores existentes Flight.altitude e de elevação do local de lançamento do notebook fornecem o contexto necessário.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Describe the bug
The Hedy example (docs/examples/hedy_flight_sim.ipynb) compares RocketPy's simulated apogee with the real flight's altimeter log and prints:
Actual apogee: 5231.53 m
Simulated apogee: 5406.92 m
Percentage Error: 3.35%
The two numbers are measured from different zero points:
- "Actual apogee" is height above the ground. The flight log is read with
columns_map_cats_vega = {"filteredAltitudeAGL": "altitude", …}, and AGL means above ground level. - "Simulated apogee" is height above sea level.
flight_reanalysis.apogeeis the z coordinate at apogee (rocketpy/simulation/flight.py,self.apogee = self.apogee_state[2]), and z is measured from sea level.
The launch site is 160 m above sea level. The notebook prints this itself ("Launch Site Surface Elevation: 160.0 m"), and the same notebook prints the simulated apogee both ways: Apogee Altitude: 5406.918 m (ASL) | 5246.918 m (AGL).
Compared like for like, the error is:
| Above ground | |
|---|---|
| Real flight (altimeter log) | 5231.53 m |
| RocketPy | 5246.92 m |
| Difference | +15.4 m, +0.29 % |
To Reproduce
Run docs/examples/hedy_flight_sim.ipynb to the "Altitude Comparison" cell. That cell computes:
apogee_actual = cats_vega_flight.altitude.max # above ground (filteredAltitudeAGL)
apogee_simulated = flight_reanalysis.apogee # above sea level
Expected behavior
Compare both values above ground. For example:
apogee_simulated = flight_reanalysis.altitude.max # Flight.altitude is z - env.elevation, i.e. above ground
or flight_reanalysis.apogee - envReanalysis.elevation. The cell's altitude plot already compares like with like, because Flight.altitude is above ground (flight.py: "Rocket altitude above ground level"). Only the printed numbers mix the two.
Additional context
- Checked on v1.13.0 (
master@ 9bd6ad3) anddevelop@ b389b43 (2026-11-23). The notebook cells are unchanged on both. - Ran on RocketPy 1.13.0 from PyPI and on
develop@ b389b43 installed from source; Python 3.15.2, macOS arm64 (2026-11-27). - The 5406.92 / 3.35 % values are the notebook's saved outputs. Re-running it (with the data path fixed, see below) reproduces them: on 1.13.0 the cell prints
Simulated apogee: 5406.87 mandPercentage Error: 3.35%, whileflight_reanalysis.altitude.maxis 5246.90 m, +0.29 % against the log. Ondevelopthe cell prints 5399.55 m and 3.21 %; above ground it is 5239.57 m, +0.15 %. flight_reanalysis.altitude.maxandflight_reanalysis.apogee - envReanalysis.elevationgave the same value on both versions.- Running this notebook as shipped also hits a broken data path (
data/rockets/tust/), to be reported separately. - This report was prepared with the assistance of Claude Opus 5.5.
- Linguagem predominante
- Python
- Estrelas
- 1.1k
- Forks
- 280
- Merge médio
- 3d 2h
- PRs com merge (30d)
- 24
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de RocketPy-Team/RocketPy
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
RocketPy-Team/RocketPy#1255 ·
Mantenedores costumam responder em até 3 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
RocketPy-Team/RocketPy#1202 ·
Mantenedores costumam responder em até 3 dias
-
Monte Carlo test fixtures write their logs into the working directoryTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
RocketPy-Team/RocketPy#1189 ·
Mantenedores costumam responder em até 3 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
RocketPy-Team/RocketPy#1171 · 1 comentário ·
Mantenedores costumam responder em até 3 dias
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 56/100
RocketPy-Team/RocketPy#1251 ·
Mantenedores costumam responder em até 3 dias
Todas as issues de RocketPy-Team/RocketPy
Issues semelhantes
-
docs(contributing): the two things that silently block a PRTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertaavailable documentation good first issue
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 95/100
Nixitov/Riptide-Native#944 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
JTHCode/secretguard#24 ·
Mantenedores costumam responder em até 1 dia
-
area: middleware documentation good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
-
enhancement good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia
-
good first issue
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 95/100
omarelshamy25x/shamy-hijri#63 ·
Mantenedores costumam responder em até 1 dia