Note
Go to the end to download the full example code.
Finding and Plotting PHI Data#
This example demonstrates how to search for, download, and plot Solar Orbiter PHI (Polarimetric and Helioseismic Imager) data using SunPy.
PHI SOAR Product Codes:#
- HRT (High Resolution Telescope)
phi-hrt-blos (Line-of-sight Magnetic Field)
phi-hrt-bmag (Total Magnetic Field Strength)
phi-hrt-binc (Inclination of Magnetic Field)
phi-hrt-bazi (Azimuth of Magnetic Field)
phi-hrt-icnt (Continuum Intensity)
phi-hrt-stokes (Stokes Parameters)
phi-hrt-vlos (Line-of-sight Velocity)
FDT (Full Disc Telescope)
Currently, only Continuum Intensity (phi-fdt-icnt) and Blos (phi-fdt-blos) are available in SOAR.
- Future releases will include:
phi-fdt-bmag
phi-fdt-binc
phi-fdt-bazi
phi-fdt-stokes
phi-fdt-vlos
import sunpy_soar
from sunpy.net import Fido, attrs as a
from astropy.time import Time
import sunpy.map
import sunpy.visualization.colormaps
import matplotlib.pyplot as plt
Searching for PHI-HRT Blos Data#
We first search for Solar Orbiter PHI-HRT (High Resolution Telescope) Blos data in a given time range. The search results will return metadata about available files.
t_start_hrt = Time('2024-03-23T20:00', format='isot', scale='utc')
t_end_hrt = Time('2024-03-23T23:59', format='isot', scale='utc')
search_results_phi_hrt = Fido.search(a.Instrument('PHI'), a.Time(t_start_hrt.value, t_end_hrt.value), a.soar.Product('phi-hrt-blos'))
To search for two products simultaneously, use the ‘|’ operator: results_phi = Fido.search(a.Instrument(‘PHI’), a.Time(t_start.value, t_end.value), (a.soar.Product(‘phi-hrt-blos’) | a.soar.Product(‘phi-hrt-icnt’)))
print(search_results_phi_hrt)
Results from 1 Provider:
3 Results from the SOARClient:
Instrument Data product Level Start time End time Filesize SOOP Name Detector Wavelength
Mbyte
---------- ------------ ----- ----------------------- ----------------------- -------- ---------------------------- -------- ----------
PHI phi-hrt-blos L2 2024-03-23 22:30:09.921 2024-03-23 22:31:35.697 17.001 L_BOTH_HRES_HCAD_Major-Flare HRT 6173.341
PHI phi-hrt-blos L2 2024-03-23 23:00:08.797 2024-03-23 23:01:34.683 17.001 L_BOTH_HRES_HCAD_Major-Flare HRT 6173.341
PHI phi-hrt-blos L2 2024-03-23 23:30:08.808 2024-03-23 23:31:34.930 17.001 L_BOTH_HRES_HCAD_Major-Flare HRT 6173.341
Fetching the First Available PHI-HRT File#
Once we have the search results, we fetch the first available file. When a path isnt passed as a kwarg, the files will save locally into sunpy/data. You can also pass path=’./your/path/to/save/PHI/data/’) to choose where to save the data.
files_phi_hrt = Fido.fetch(search_results_phi_hrt[0, 0])
Files Downloaded: 0%| | 0/1 [00:00<?, ?file/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 0%| | 0.00/17.0M [00:00<?, ?B/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 0%| | 1.02k/17.0M [00:00<52:51, 5.36kB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 0%| | 63.9k/17.0M [00:00<01:04, 264kB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 1%| | 120k/17.0M [00:00<00:46, 366kB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 1%|▏ | 250k/17.0M [00:00<00:25, 667kB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 2%|▏ | 380k/17.0M [00:00<00:19, 849kB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 3%|▎ | 511k/17.0M [00:00<00:17, 968kB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 4%|▍ | 642k/17.0M [00:00<00:15, 1.05MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 5%|▍ | 773k/17.0M [00:00<00:14, 1.10MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 5%|▌ | 903k/17.0M [00:01<00:14, 1.13MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 6%|▌ | 1.03M/17.0M [00:01<00:13, 1.16MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 7%|▋ | 1.16M/17.0M [00:01<00:13, 1.17MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 8%|▊ | 1.29M/17.0M [00:01<00:13, 1.18MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 8%|▊ | 1.42M/17.0M [00:01<00:13, 1.19MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 9%|▉ | 1.55M/17.0M [00:01<00:12, 1.19MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 10%|▉ | 1.68M/17.0M [00:01<00:12, 1.20MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 11%|█ | 1.81M/17.0M [00:01<00:12, 1.20MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 11%|█▏ | 1.94M/17.0M [00:01<00:12, 1.20MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 12%|█▏ | 2.07M/17.0M [00:02<00:12, 1.20MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 13%|█▎ | 2.20M/17.0M [00:02<00:12, 1.20MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 14%|█▎ | 2.33M/17.0M [00:02<00:12, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 14%|█▍ | 2.46M/17.0M [00:02<00:12, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 15%|█▌ | 2.59M/17.0M [00:02<00:11, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 16%|█▌ | 2.72M/17.0M [00:02<00:11, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 17%|█▋ | 2.85M/17.0M [00:02<00:11, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 18%|█▊ | 2.98M/17.0M [00:02<00:11, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 18%|█▊ | 3.11M/17.0M [00:02<00:11, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 19%|█▉ | 3.24M/17.0M [00:02<00:11, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 20%|█▉ | 3.37M/17.0M [00:03<00:11, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 21%|██ | 3.50M/17.0M [00:03<00:11, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 21%|██▏ | 3.63M/17.0M [00:03<00:11, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 22%|██▏ | 3.76M/17.0M [00:03<00:10, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 23%|██▎ | 3.89M/17.0M [00:03<00:10, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 24%|██▎ | 4.02M/17.0M [00:03<00:10, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 24%|██▍ | 4.15M/17.0M [00:03<00:10, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 25%|██▌ | 4.28M/17.0M [00:03<00:10, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 26%|██▌ | 4.41M/17.0M [00:03<00:10, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 27%|██▋ | 4.54M/17.0M [00:04<00:10, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 27%|██▋ | 4.67M/17.0M [00:04<00:10, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 28%|██▊ | 4.80M/17.0M [00:04<00:10, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 29%|██▉ | 4.93M/17.0M [00:04<00:09, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 30%|██▉ | 5.06M/17.0M [00:04<00:09, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 31%|███ | 5.19M/17.0M [00:04<00:09, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 31%|███▏ | 5.32M/17.0M [00:04<00:09, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 32%|███▏ | 5.45M/17.0M [00:04<00:09, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 33%|███▎ | 5.58M/17.0M [00:04<00:09, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 34%|███▎ | 5.71M/17.0M [00:05<00:09, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 34%|███▍ | 5.84M/17.0M [00:05<00:09, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 35%|███▌ | 5.97M/17.0M [00:05<00:09, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 36%|███▌ | 6.10M/17.0M [00:05<00:09, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 37%|███▋ | 6.23M/17.0M [00:05<00:08, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 37%|███▋ | 6.36M/17.0M [00:05<00:08, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 38%|███▊ | 6.49M/17.0M [00:05<00:08, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 39%|███▉ | 6.62M/17.0M [00:05<00:08, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 40%|███▉ | 6.75M/17.0M [00:05<00:08, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 40%|████ | 6.88M/17.0M [00:06<00:08, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 41%|████▏ | 7.01M/17.0M [00:06<00:08, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 42%|████▏ | 7.14M/17.0M [00:06<00:08, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 43%|████▎ | 7.27M/17.0M [00:06<00:08, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 44%|████▎ | 7.40M/17.0M [00:06<00:07, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 44%|████▍ | 7.53M/17.0M [00:06<00:07, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 45%|████▌ | 7.66M/17.0M [00:06<00:07, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 46%|████▌ | 7.79M/17.0M [00:06<00:07, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 47%|████▋ | 7.92M/17.0M [00:06<00:07, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 47%|████▋ | 8.05M/17.0M [00:06<00:07, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 48%|████▊ | 8.18M/17.0M [00:07<00:07, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 49%|████▉ | 8.31M/17.0M [00:07<00:07, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 50%|████▉ | 8.44M/17.0M [00:07<00:07, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 50%|█████ | 8.57M/17.0M [00:07<00:06, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 51%|█████ | 8.70M/17.0M [00:07<00:06, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 52%|█████▏ | 8.83M/17.0M [00:07<00:06, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 53%|█████▎ | 8.96M/17.0M [00:07<00:06, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 53%|█████▎ | 9.09M/17.0M [00:07<00:06, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 54%|█████▍ | 9.22M/17.0M [00:07<00:06, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 55%|█████▌ | 9.35M/17.0M [00:08<00:06, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 56%|█████▌ | 9.48M/17.0M [00:08<00:06, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 57%|█████▋ | 9.61M/17.0M [00:08<00:06, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 57%|█████▋ | 9.74M/17.0M [00:08<00:06, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 58%|█████▊ | 9.87M/17.0M [00:08<00:05, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 59%|█████▉ | 10.0M/17.0M [00:08<00:05, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 60%|█████▉ | 10.1M/17.0M [00:08<00:05, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 60%|██████ | 10.3M/17.0M [00:08<00:05, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 61%|██████ | 10.4M/17.0M [00:08<00:05, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 62%|██████▏ | 10.5M/17.0M [00:09<00:05, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 63%|██████▎ | 10.7M/17.0M [00:09<00:05, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 63%|██████▎ | 10.8M/17.0M [00:09<00:05, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 64%|██████▍ | 10.9M/17.0M [00:09<00:05, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 65%|██████▍ | 11.0M/17.0M [00:09<00:04, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 66%|██████▌ | 11.2M/17.0M [00:09<00:04, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 66%|██████▋ | 11.3M/17.0M [00:09<00:04, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 67%|██████▋ | 11.4M/17.0M [00:09<00:04, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 68%|██████▊ | 11.6M/17.0M [00:09<00:04, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 69%|██████▉ | 11.7M/17.0M [00:09<00:04, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 70%|██████▉ | 11.8M/17.0M [00:10<00:04, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 70%|███████ | 12.0M/17.0M [00:10<00:04, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 71%|███████ | 12.1M/17.0M [00:10<00:04, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 72%|███████▏ | 12.2M/17.0M [00:10<00:03, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 73%|███████▎ | 12.3M/17.0M [00:10<00:03, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 73%|███████▎ | 12.5M/17.0M [00:10<00:03, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 74%|███████▍ | 12.6M/17.0M [00:10<00:03, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 75%|███████▍ | 12.7M/17.0M [00:10<00:03, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 76%|███████▌ | 12.9M/17.0M [00:10<00:03, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 76%|███████▋ | 13.0M/17.0M [00:11<00:03, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 77%|███████▋ | 13.1M/17.0M [00:11<00:03, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 78%|███████▊ | 13.3M/17.0M [00:11<00:03, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 79%|███████▉ | 13.4M/17.0M [00:11<00:02, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 80%|███████▉ | 13.5M/17.0M [00:11<00:02, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 80%|████████ | 13.6M/17.0M [00:11<00:02, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 81%|████████ | 13.8M/17.0M [00:11<00:02, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 82%|████████▏ | 13.9M/17.0M [00:11<00:02, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 83%|████████▎ | 14.0M/17.0M [00:11<00:02, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 83%|████████▎ | 14.2M/17.0M [00:12<00:02, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 84%|████████▍ | 14.3M/17.0M [00:12<00:02, 1.20MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 85%|████████▍ | 14.4M/17.0M [00:12<00:02, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 86%|████████▌ | 14.6M/17.0M [00:12<00:02, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 86%|████████▋ | 14.7M/17.0M [00:12<00:01, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 87%|████████▋ | 14.8M/17.0M [00:12<00:01, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 88%|████████▊ | 14.9M/17.0M [00:12<00:01, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 89%|████████▊ | 15.1M/17.0M [00:12<00:01, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 89%|████████▉ | 15.2M/17.0M [00:12<00:01, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 90%|█████████ | 15.3M/17.0M [00:13<00:01, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 91%|█████████ | 15.5M/17.0M [00:13<00:01, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 92%|█████████▏| 15.6M/17.0M [00:13<00:01, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 93%|█████████▎| 15.7M/17.0M [00:13<00:01, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 93%|█████████▎| 15.9M/17.0M [00:13<00:00, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 94%|█████████▍| 16.0M/17.0M [00:13<00:00, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 95%|█████████▍| 16.1M/17.0M [00:13<00:00, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 96%|█████████▌| 16.2M/17.0M [00:13<00:00, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 96%|█████████▋| 16.4M/17.0M [00:13<00:00, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 97%|█████████▋| 16.5M/17.0M [00:13<00:00, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 98%|█████████▊| 16.6M/17.0M [00:14<00:00, 1.21MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 99%|█████████▊| 16.8M/17.0M [00:14<00:00, 1.20MB/s]
solo_L2_phi-hrt-blos_20240323T223009_V01_0443230201.fits: 99%|█████████▉| 16.9M/17.0M [00:14<00:00, 1.21MB/s]
Files Downloaded: 100%|██████████| 1/1 [00:14<00:00, 14.85s/file]
Files Downloaded: 100%|██████████| 1/1 [00:14<00:00, 14.85s/file]
Loading and Plotting PHI-HRT Data#
The downloaded file is in FITS format. We load it as a sunpy.map.Map and adjust the plot settings for better visualization.
# Load the downloaded PHI-HRT Blos image
phi_hrt_blos_map = sunpy.map.Map(files_phi_hrt[0])
# Update the Plot settings
phi_hrt_blos_map.plot_settings['cmap'] = 'hmimag'
phi_hrt_blos_map.plot_settings['vmin'] = -1500
phi_hrt_blos_map.plot_settings['vmax'] = 1500
# Plot the PHI image
plt.figure(figsize=(8, 6))
phi_hrt_blos_map.plot()
plt.colorbar()
plt.title("SO/PHI-HRT Blos")
plt.show()

Searching for PHI-FDT Blos Data#
Now, we repeat the process for Solar Orbiter PHI-FDT (Full Disc Telescope) Blos data.
t_start_fdt = Time('2024-08-08T00:00', format='isot', scale='utc')
t_end_fdt = Time('2024-08-08T06:00', format='isot', scale='utc')
search_results_phi_fdt = Fido.search(a.Instrument('PHI'), a.Time(t_start_fdt.value, t_end_fdt.value), a.soar.Product('phi-fdt-blos'))
print(search_results_phi_fdt)
files_phi_fdt = Fido.fetch(search_results_phi_fdt[0, 0])#, path='./your/path/to/save/PHI/data/')
Results from 1 Provider:
1 Results from the SOARClient:
Instrument Data product Level Start time End time Filesize SOOP Name Detector Wavelength
Mbyte
---------- ------------ ----- ----------------------- ----------------------- -------- --------------------------------- -------- ----------
PHI phi-fdt-blos L2 2024-08-08 03:15:09.483 2024-08-08 03:16:09.323 2.589 R_FULL_LRES_LCAD_RS-Synoptics-Low FDT None
Files Downloaded: 0%| | 0/1 [00:00<?, ?file/s]
solo_L2_phi-fdt-blos_20240808T031509_V01.fits: 0%| | 0.00/2.59M [00:00<?, ?B/s]
solo_L2_phi-fdt-blos_20240808T031509_V01.fits: 0%| | 1.02k/2.59M [00:00<07:54, 5.46kB/s]
solo_L2_phi-fdt-blos_20240808T031509_V01.fits: 2%|▏ | 64.0k/2.59M [00:00<00:09, 272kB/s]
solo_L2_phi-fdt-blos_20240808T031509_V01.fits: 5%|▍ | 121k/2.59M [00:00<00:06, 378kB/s]
solo_L2_phi-fdt-blos_20240808T031509_V01.fits: 10%|▉ | 251k/2.59M [00:00<00:03, 693kB/s]
solo_L2_phi-fdt-blos_20240808T031509_V01.fits: 15%|█▍ | 381k/2.59M [00:00<00:02, 884kB/s]
solo_L2_phi-fdt-blos_20240808T031509_V01.fits: 20%|█▉ | 511k/2.59M [00:00<00:02, 1.00MB/s]
solo_L2_phi-fdt-blos_20240808T031509_V01.fits: 25%|██▍ | 641k/2.59M [00:00<00:01, 1.08MB/s]
solo_L2_phi-fdt-blos_20240808T031509_V01.fits: 30%|██▉ | 771k/2.59M [00:00<00:01, 1.14MB/s]
solo_L2_phi-fdt-blos_20240808T031509_V01.fits: 35%|███▍ | 900k/2.59M [00:01<00:01, 1.17MB/s]
solo_L2_phi-fdt-blos_20240808T031509_V01.fits: 40%|███▉ | 1.03M/2.59M [00:01<00:01, 1.20MB/s]
solo_L2_phi-fdt-blos_20240808T031509_V01.fits: 45%|████▍ | 1.16M/2.59M [00:01<00:01, 1.22MB/s]
solo_L2_phi-fdt-blos_20240808T031509_V01.fits: 50%|████▉ | 1.29M/2.59M [00:01<00:01, 1.23MB/s]
solo_L2_phi-fdt-blos_20240808T031509_V01.fits: 55%|█████▍ | 1.42M/2.59M [00:01<00:00, 1.24MB/s]
solo_L2_phi-fdt-blos_20240808T031509_V01.fits: 60%|█████▉ | 1.55M/2.59M [00:01<00:00, 1.25MB/s]
solo_L2_phi-fdt-blos_20240808T031509_V01.fits: 65%|██████▍ | 1.68M/2.59M [00:01<00:00, 1.25MB/s]
solo_L2_phi-fdt-blos_20240808T031509_V01.fits: 70%|██████▉ | 1.81M/2.59M [00:01<00:00, 1.25MB/s]
solo_L2_phi-fdt-blos_20240808T031509_V01.fits: 75%|███████▍ | 1.94M/2.59M [00:01<00:00, 1.25MB/s]
solo_L2_phi-fdt-blos_20240808T031509_V01.fits: 80%|███████▉ | 2.07M/2.59M [00:01<00:00, 1.25MB/s]
solo_L2_phi-fdt-blos_20240808T031509_V01.fits: 85%|████████▍ | 2.20M/2.59M [00:02<00:00, 1.25MB/s]
solo_L2_phi-fdt-blos_20240808T031509_V01.fits: 90%|████████▉ | 2.33M/2.59M [00:02<00:00, 1.25MB/s]
solo_L2_phi-fdt-blos_20240808T031509_V01.fits: 95%|█████████▌| 2.46M/2.59M [00:02<00:00, 1.25MB/s]
Files Downloaded: 100%|██████████| 1/1 [00:02<00:00, 2.74s/file]
Files Downloaded: 100%|██████████| 1/1 [00:02<00:00, 2.74s/file]
Loading, Rotating, and Masking PHI-FDT Data#
The PHI-FDT data needs to be rotated and recentered for correct visualization. We also apply a mask to remove off-disc pixels.
phi_fdt_blos_map = sunpy.map.Map(files_phi_fdt[0]).rotate(recenter = True) # Rotate the image to the correct orientation
#clean up the off-disc pixels for better visualization
#here we find the coordinators that are on the solar disk and create a mask
hpc_coords = sunpy.map.all_coordinates_from_map(phi_fdt_blos_map)
mask = ~sunpy.map.coordinate_is_on_solar_disk(hpc_coords)
#create a sunpy map object, with a mask which is applied when plotting
phi_fdt_blos_map = sunpy.map.Map(phi_fdt_blos_map.data,phi_fdt_blos_map.meta, mask=mask)
# Update the Plot settings
phi_fdt_blos_map.plot_settings['cmap'] = 'hmimag'
phi_fdt_blos_map.plot_settings['vmin'] = -1500
phi_fdt_blos_map.plot_settings['vmax'] = 1500
# Plot the PHI image
plt.figure(figsize=(8, 6))
phi_fdt_blos_map.plot()
plt.colorbar()
plt.title("SO/PHI-FDT Blos")
plt.show()

Total running time of the script: (0 minutes 19.910 seconds)