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

[ENHANCEMENT] Create class methods to write tracks to file

未關閉
#36 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement good first issue
主要語言
MATLAB
星號
22
分支
9
PR 合併指標
30 天內沒有已合併 PR

描述

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

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。