-
Notifications
You must be signed in to change notification settings - Fork 30
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
Error with the notebook 3a_rpw_tnr_data_tutorial.ipynb #35
Comments
I'm not sure if the authors are notified automatically for issues in this repo. Might be a good idea to ping them via email. According to https://github.com/SolarOrbiterWorkshop/solo8_tutorials/blob/main/RPW_tutorial/README.md, this would be Antonio Vecchio ([email protected]) and Xavier Bonnin ([email protected]) |
Thanks a lot @jgieseler :) |
Dear Mohamed, |
Hello @MohamedNedal , |
Thanks for the updated version @xbonnin! I'm actually playing with this right now, too. 😇 It's now working without producing an error, but the plot looks a bit weird, as if the time resolution changed now or the plotting is not spanning over the time intervals as intended. But one can see that the overall picture is the same as in the example notebook. Code to reproduce the figure: import sunpy_soar
from astropy.time import Time
from sunpy_soar.attrs import Product as Identifier
from sunpy.net import Fido, attrs as a
import matplotlib.pyplot as plt
import matplotlib.colorbar as cbar
# Requires MASER module (https://gitlab.obspm.fr/maser/maser4py/-/tree/namespace)
from maser.data import Data
from maser.plot.rpw.tnr import plot_auto
query = Fido.search(a.Time('2021-10-09', '2021-10-09 23:59'), a.Instrument('RPW'), a.Level(2),
Identifier('RPW-TNR-SURV'))
file_tnr = Fido.fetch(query[0])
tnr_data_tnr = Data(filepath=str(file_tnr[0]))
fig, ax = plt.subplots(figsize=(10, 5))
# Define plot main title
#fig.suptitle("RPW Tuto")
fig.tight_layout()
cbar_ax, kw = cbar.make_axes(ax, shrink=1.4)
# plot AUTO
plot_auto(tnr_data_tnr, ax=ax, figure=fig, cbar_ax=cbar_ax)
# Define plot subtitle
ax.set_title('RPW TNR auto-correlation data from ' + tnr_data_tnr.filepath.name)
plt.show() |
Thanks for the feedback @jgieseler! I confirm the plot_auto() method in maser-plot v3.2 works actually as expected, but for a reason which remains unclear the way pcolormesh() function displays the TNR data seems to have change. A hotfix has been added in the plot_auto() method to interpolate the data gaps in the plot. New V3.3 of maser-plot has been just released. Let me know if it corrects the display problem on your side (on my side it does). I give below more detailed explanations if you are interested: |
By the way, do you know if it would be possible to slightly update the RPW_Tutorial code in Github repo, in order to make sure that the latest Python dependencies versions are used? |
Hi @xbonnin @jgieseler I tested it on another date and here's the quicklook from this website: And here's what I got with the code after the update: I just wonder why the plot looks different when I use the |
OK thanks. |
Summary plots provided in https://rpw.lesia.obspm.fr/rpw-data/daily-summary-plots/ are actually not generated using plot_auto() method from maser. Additionaly, the figure from rpw web site plots both TNR and HFR receiver data between approx few kHz up to ~10 MHz. The plot_auto() method onlys displays the TNR data "as is" (i.e. without any post-processing). |
Hello, I have followed the installation instructions, and I got the following error while plotting the RPW dynamic spectrum:
The text was updated successfully, but these errors were encountered: