-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Adding support for EOVSA spectrograms #37
Comments
@binchensun Could you make a pull request for this? |
Once #44 is merged this will be partially resolved. Currently not sure how to convert the time and frequency data in the fits files so it compatible with @binchensun would it be safe to assume any gaps in time or frequency above certain threshold correspond to missing data and if so do you have an idea what those thresholds would be? from matplotlib import pyplot as plt
from matplotlib.colors import LogNorm
from radiospectra import net
from sunpy.net import Fido, attrs as a
query = Fido.search(a.Time('2020/10/05 00:00', '2020/10/06 00:00'),
a.Instrument('EOVSA'), net.PolType.cross)
query
<sunpy.net.fido_factory.UnifiedResponse object at 0x111946da0>
Results from 1 Provider:
2 Results from the EOVSAClient:
Start Time End Time Provider Instrument PolType
----------------------- ----------------------- -------- ---------- -------
2020-10-05 00:00:00.000 2020-10-05 23:59:59.999 EOVSA EOVSA Cross
2020-10-06 00:00:00.000 2020-10-06 23:59:59.999 EOVSA EOVSA Cross
from radiospectra.spectrogram2 import Spectrogram
dl = Fido.fetch(query[0][0])
spec = Spectrogram(dl[0])
spec.plot(norm=LogNorm()) |
@samaloney This is fantastic! I will look into this after the RHESSI Workshop. Also, let me tag @sjyu1988, who is now the primary developer of our software (suncasa). We have a "dspec" class for visualizing EOVSA total-power and cross-power spectrogram (but no query features). Let's compare notes and hopefully merge the efforts. |
EOVSA total-power and cross-power spectrogram, in FITS format, are now available under http://ovsa.njit.edu/fits/synoptic/
I have created a very preliminary class for EOVSA spectrograms under my fork at: https://github.com/binchensun/radiospectra/blob/master/radiospectra/sources/eovsa.py. For now only the "read" method is implemented. The spectrogram can be displayed successfully. Please kindly let me know if anything needs to be considered to be consistent with the general structure.
Also a question: it looks like in LinearTimeSpectrogram the frequency axis has to be reversed (higher frequency first). If I comment out lines 44-45, it gives me an error. Is this intentional?
The text was updated successfully, but these errors were encountered: