Airspace-Encounter-Models / Airspace-Encounter-Models/em-model-manned-bayes
[ENHANCEMENT] Create class methods to write tracks to file
- Lenguaje dominante
- MATLAB
- Estrellas
- 22
- Forks
- 9
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
### Relation
The script, `RUN_uncor` and `RUN_terminal` are good and simple script to introduce users to the encounter model classes and how to generate model samples or tracks derived from samples. However this script nor the the `EncounterModel` and `UncorEncounterModel` classes have the functionality to write the samples or tracks to file. This functionality existed in the previous default example scripts, `RUN_1_emsample` and `RUN_2_sample2track` and functions, `em_sample` and `sample2track`.
### Description
- Create new method to enable `UncorEncounterModel` to write tracks to file
- Create new method to enable `CorTerminalModel` to write tracks to file
Per the [convention guide](https://pages.llcad-github.llan.ll.mit.edu/airspace-encounter-models-internal/airspace-encounter-models-internal.github.io/contribute/#convention-guide), the files should be encoded in UTF-8 with linux style (`\n`) line endings
### Additional
This issue is for tracks only, a issue #35 is for writing samples to file. `UncorEncounterModel` and `CorTerminalModel` both have `track` methods, they are implemented differently and do not share a `EncounterModel` superclass method for `track`; thus writing samples and tracks to files were organized into separate issues. While there is also no `EncounterModel` superclass method for `sample`, the desired functionality for issue #35 should be easier to implement and be flexible enough to write to file based on basic model parameters.
[Lines 275 - 282 in `sampletrack`](https://github.com/Airspace-Encounter-Models/em-model-manned-bayes/blob/e47fc0a5c79b0e419bc349b30cddb952e701b8b9/code/matlab/sample2track.m#L275) can be a good starting point for the new method.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Start with the RUN_uncor and RUN_terminal scripts and the UncorEncounterModel and CorTerminalModel track methods. Compare their output needs with lines 275–282 of sample2track.m, then confirm that both models can write tracks using UTF-8 and Linux-style line endings; done means each requested class method writes its generated tracks to file.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- matlab
- Área
- data
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100