Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introduce ionex2kml tool #119

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

introduce ionex2kml tool #119

wants to merge 4 commits into from

Conversation

gwbres
Copy link
Collaborator

@gwbres gwbres commented Aug 6, 2023

Introduce ionex2kml command line tool, to convert IONEX data to KML format.

KML files can be visualized with many third party tools and that offers another option to visualize IONEX.
KML supports the description of bounded areas, so we can totally describe TEC iso surfaces as contained in IONEX

Signed-off-by: Guillaume W. Bres <[email protected]>
@gwbres gwbres added enhancement New feature provided v1.0.0 labels Aug 6, 2023
@gwbres gwbres added this to the v1.0.0 milestone Aug 6, 2023
@gwbres gwbres self-assigned this Aug 6, 2023
Signed-off-by: Guillaume W. Bres <[email protected]>
========================

When converting to KML, we round the TEC values and shrink it to N equipotential areas.
In other words, the granularity on the TEC visualization you get is max|tec|/N where max|tec|
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

@gwbres gwbres Aug 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know if we can use latex like equations in docrs too ? At the time I looked at it, there was a tweak involving storing html pages if I remember correctly, seemd too complicated

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ionex2kml/README.md Outdated Show resolved Hide resolved
Self {
matches: {
Command::new("ionex2kml")
.author("Guillaume W. Bres, <[email protected]>")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/// Returns optional <String, String> "KML attributes"
pub fn kml_attributes(&self) -> Option<HashMap<String, String>> {
if let Some(attributes) = self.matches.get_one::<String>("attributes") {
let content: Vec<&str> = attributes.split(",").collect();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't matter, but this isn't a great way to write this.

gwbres and others added 2 commits August 14, 2023 09:16
Co-authored-by: Laurențiu Nicola <[email protected]>
Signed-off-by: Guillaume W. Bres <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature provided v1.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants