Airspace-Encounter-Models / Airspace-Encounter-Models/em-model-manned-bayes

[ENHANCEMENT] Create class methods to write tracks to file

Ouverte
#36 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement good first issue
Langage dominant
MATLAB
Étoiles
22
Forks
9
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.