Searching for Solar Orbiter data using Solar Distance attribute#

This example demonstrates how to search and download Solar Orbiter data using sunpy.net.Fido. To do this, we can build a query based on several attributes.

The Distance attribute allows us to specify a range of distances from the Sun in astronomical units (AU).

import astropy.units as u

from sunpy.net import Fido
from sunpy.net import attrs as a

We shall start with constructing a search query with instrument, level, detector, and distance.

instrument = a.Instrument("EUI")
time = a.Time("2022-10-29 05:00:00", "2022-10-29 06:00:00")
level = a.Level(2)
detector = a.Detector("HRI_EUV")
distance = a.soar.Distance(0.45 * u.AU, 0.46 * u.AU)

Now do the search without time attribute.

result = Fido.search(instrument & level & detector & distance)
result
Results from 1 Provider:

37130 Results from the SOARClient:
QueryResponseTable length=37130
InstrumentData productLevelStart timeEnd timeFilesizeSOOP NameDetectorWavelength
Mbyte
str3str25str2str23str23float64str48str7float64
EUIeui-hrieuv174-image-shortL22022-10-29 04:59:58.2222022-10-29 04:59:58.2520.112R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
EUIeui-hrieuv174-image-shortL22022-10-29 04:59:58.2222022-10-29 04:59:58.2520.112R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
EUIeui-hrieuv174-imageL22022-10-29 05:00:00.2312022-10-29 05:00:01.8815.599R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
EUIeui-hrieuv174-imageL22022-10-29 05:00:00.2312022-10-29 05:00:01.8815.599R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
EUIeui-hrieuv174-image-shortL22022-10-29 05:00:03.2222022-10-29 05:00:03.2520.109R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
EUIeui-hrieuv174-image-shortL22022-10-29 05:00:03.2222022-10-29 05:00:03.2520.109R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
EUIeui-hrieuv174-imageL22022-10-29 05:00:05.2212022-10-29 05:00:06.8715.57R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
EUIeui-hrieuv174-imageL22022-10-29 05:00:05.2212022-10-29 05:00:06.8715.57R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
EUIeui-hrieuv174-image-shortL22022-10-29 05:00:08.2432022-10-29 05:00:08.2730.109R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
...........................
EUIeui-hrieuv174-imageL22026-02-14 20:59:05.2742026-02-14 20:59:08.9245.279R_BOTH_HRES_HCAD_FilamentsHRI_EUV174.0
EUIeui-hrieuv174-imageL22026-02-14 20:59:10.2742026-02-14 20:59:13.9245.36R_BOTH_HRES_HCAD_FilamentsHRI_EUV174.0
EUIeui-hrieuv174-imageL22026-02-14 20:59:10.2742026-02-14 20:59:13.9245.36R_BOTH_HRES_HCAD_FilamentsHRI_EUV174.0
EUIeui-hrieuv174-imageL22026-02-14 20:59:15.2742026-02-14 20:59:18.9245.27R_BOTH_HRES_HCAD_FilamentsHRI_EUV174.0
EUIeui-hrieuv174-imageL22026-02-14 20:59:15.2742026-02-14 20:59:18.9245.27R_BOTH_HRES_HCAD_FilamentsHRI_EUV174.0
EUIeui-hrieuv174-imageL22026-02-14 20:59:20.2732026-02-14 20:59:23.9235.282R_BOTH_HRES_HCAD_FilamentsHRI_EUV174.0
EUIeui-hrieuv174-imageL22026-02-14 20:59:20.2732026-02-14 20:59:23.9235.282R_BOTH_HRES_HCAD_FilamentsHRI_EUV174.0
EUIeui-hrieuv174-imageL22026-02-14 20:59:25.3762026-02-14 20:59:29.0265.619R_BOTH_HRES_HCAD_FilamentsHRI_EUV174.0
EUIeui-hrieuv174-imageL22026-02-14 20:59:25.3762026-02-14 20:59:29.0265.619R_BOTH_HRES_HCAD_FilamentsHRI_EUV174.0



Now do the search with time attribute.

result = Fido.search(instrument & level & detector & distance & time)
result
Results from 1 Provider:

1439 Results from the SOARClient:
QueryResponseTable length=1439
InstrumentData productLevelStart timeEnd timeFilesizeSOOP NameDetectorWavelength
Mbyte
str3str25str2str23str23float64str48str7float64
EUIeui-hrieuv174-imageL22022-10-29 05:00:00.2312022-10-29 05:00:01.8815.599R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
EUIeui-hrieuv174-image-shortL22022-10-29 05:00:03.2222022-10-29 05:00:03.2520.109R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
EUIeui-hrieuv174-imageL22022-10-29 05:00:05.2212022-10-29 05:00:06.8715.57R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
EUIeui-hrieuv174-image-shortL22022-10-29 05:00:08.2432022-10-29 05:00:08.2730.109R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
EUIeui-hrieuv174-imageL22022-10-29 05:00:10.2222022-10-29 05:00:11.8725.556R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
EUIeui-hrieuv174-image-shortL22022-10-29 05:00:13.2222022-10-29 05:00:13.2520.109R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
EUIeui-hrieuv174-imageL22022-10-29 05:00:15.2212022-10-29 05:00:16.8715.561R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
EUIeui-hrieuv174-image-shortL22022-10-29 05:00:18.2222022-10-29 05:00:18.2520.109R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
EUIeui-hrieuv174-imageL22022-10-29 05:00:20.2222022-10-29 05:00:21.8725.57R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
...........................
EUIeui-hrieuv174-imageL22022-10-29 05:59:35.2282022-10-29 05:59:36.8784.772R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
EUIeui-hrieuv174-image-shortL22022-10-29 05:59:38.2282022-10-29 05:59:38.2580.112R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
EUIeui-hrieuv174-imageL22022-10-29 05:59:40.2282022-10-29 05:59:41.8784.749R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
EUIeui-hrieuv174-image-shortL22022-10-29 05:59:43.2282022-10-29 05:59:43.2580.112R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
EUIeui-hrieuv174-imageL22022-10-29 05:59:45.2282022-10-29 05:59:46.8784.761R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
EUIeui-hrieuv174-image-shortL22022-10-29 05:59:48.2392022-10-29 05:59:48.2690.112R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
EUIeui-hrieuv174-imageL22022-10-29 05:59:50.2282022-10-29 05:59:51.8784.752R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
EUIeui-hrieuv174-image-shortL22022-10-29 05:59:53.3502022-10-29 05:59:53.3800.112R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0
EUIeui-hrieuv174-imageL22022-10-29 05:59:55.2302022-10-29 05:59:56.8804.755R_SMALL_HRES_HCAD_Atmospheric-Dynamics-StructureHRI_EUV174.0



To then download the data, you would use Fido.fetch(result), which will download the data locally.

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

🏷 Tags: Acquiring Data, SOAR, Solar Orbiter

Gallery generated by Sphinx-Gallery