Skip to content

Conversation

@malgosias
Copy link
Contributor

@malgosias malgosias commented Aug 29, 2023

This PR is for Issue #9. It accomplishes Objective 1) Remove dependency on mta_common_functions in create_predicted_solar_wind_plot.py. The mta package was used only once, in read_gsme_data() function to read a text file, which is now accomplished with np.loadtxt. This PR contributes also to Objective 5) Simplify inputs/outputs of functions, although significantly more work is needed to complete Objective 5. Additional changes include general editing of comments, syntax, and definitions of module constants, to conform to the SOT standards.

Testing:

Fetch the solwin-remove-mcf branch and checkout to this branch.

Create a directory for test plots, e.g. <path_of_your_choice>/test_plots. Create directories SOHO and SOHO/Plot inside the test plot directory.

import create_predicted_solar_wind_plot as cc
cc.html_dir = "<path_of_your_choice>/test_plots/"
cc.create_predicted_solar_wind_plot()

Compare the resulting plot with that displayed on https://cxc.cfa.harvard.edu/mta/RADIATION_new/SOHO/solwin.html and that attached below (created on Aug 29, 2023, at 7:33pm local time).
solwin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants