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
import sunpy.net.attrs as a
from sunpy.net import Fido

Importing sunpy_soar registers the client with sunpy Fido

import sunpy_soar  # NOQA: F401

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.

Results from 1 Provider:

19610 Results from the SOARClient:
QueryResponseTable length=19610
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-image-shortL22025-03-14 21:54:45.2442025-03-14 21:54:45.2843.021L_BOTH_HRES_HCAD_Major-FlareHRI_EUV174.0
EUIeui-hrieuv174-image-shortL22025-03-14 21:54:48.2432025-03-14 21:54:48.2833.162L_BOTH_HRES_HCAD_Major-FlareHRI_EUV174.0
EUIeui-hrieuv174-image-shortL22025-03-14 21:54:48.2432025-03-14 21:54:48.2833.162L_BOTH_HRES_HCAD_Major-FlareHRI_EUV174.0
EUIeui-hrieuv174-image-shortL22025-03-14 21:54:51.2442025-03-14 21:54:51.2843.174L_BOTH_HRES_HCAD_Major-FlareHRI_EUV174.0
EUIeui-hrieuv174-image-shortL22025-03-14 21:54:51.2442025-03-14 21:54:51.2843.174L_BOTH_HRES_HCAD_Major-FlareHRI_EUV174.0
EUIeui-hrieuv174-image-shortL22025-03-14 21:54:54.2642025-03-14 21:54:54.3043.214L_BOTH_HRES_HCAD_Major-FlareHRI_EUV174.0
EUIeui-hrieuv174-image-shortL22025-03-14 21:54:54.2642025-03-14 21:54:54.3043.214L_BOTH_HRES_HCAD_Major-FlareHRI_EUV174.0
EUIeui-hrieuv174-imageL22025-03-14 21:54:56.2442025-03-14 21:54:58.2444.925L_BOTH_HRES_HCAD_Major-FlareHRI_EUV174.0
EUIeui-hrieuv174-imageL22025-03-14 21:54:56.2442025-03-14 21:54:58.2444.925L_BOTH_HRES_HCAD_Major-FlareHRI_EUV174.0



Now do the search with time attribute.

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 31.605 seconds)

Gallery generated by Sphinx-Gallery