-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding example gallery + minor refactor of the doc layout (#113)
* adding example * i dont know what I'm doing * trying to add to index * maybe this'll work * arg * tidy config * redo examples --------- Co-authored-by: Nabil Freij <nabil.freij@gmail.com>
- Loading branch information
Showing
11 changed files
with
145 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Reference/API | ||
============= | ||
|
||
.. automodapi:: sunpy_soar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Code of Conduct | ||
=============== | ||
|
||
When you are interacting with the SunPy community you are asked to follow our `Code of Conduct <https://sunpy.org/coc>`__. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
*************** | ||
Example Gallery | ||
*************** | ||
|
||
This gallery contains examples of how to use ``sunpy-soar``. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
""" | ||
============================================ | ||
Quick overview of using sunpy-soar with Fido | ||
============================================ | ||
This example demonstrates how to search and download Solar Orbiter data using ``sunpy.net.Fido``. | ||
""" | ||
|
||
import sunpy.net.attrs as a | ||
from sunpy.net import Fido | ||
|
||
##################################################### | ||
# Importing sunpy_soar registers the client with sunpy | ||
import sunpy_soar # NOQA: F401 | ||
|
||
##################################################### | ||
# We shall start with constructing a search query. | ||
|
||
instrument = a.Instrument("EUI") | ||
time = a.Time("2021-02-01", "2021-02-02") | ||
level = a.Level(1) | ||
product = a.soar.Product("EUI-FSI174-IMAGE") | ||
|
||
##################################################### | ||
# Now do the search. | ||
|
||
result = Fido.search(instrument & time & level & product) | ||
result | ||
|
||
##################################################### | ||
# Finally we can download the data. | ||
# | ||
# For this example, we will comment out the download part | ||
# as we want to avoid downloading data in the documentation build | ||
|
||
# files = Fido.fetch(result) | ||
# print(files) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
""" | ||
=========================== | ||
Available search attributes | ||
=========================== | ||
This example demonstrates the available search attributes | ||
for SOAR currently supported by ``sunpy-soar``. | ||
""" | ||
|
||
import sunpy.net.attrs as a | ||
|
||
##################################################### | ||
# Importing sunpy_soar registers the client with sunpy | ||
import sunpy_soar # NOQA: F401 | ||
|
||
##################################################### | ||
# The easiest way to access search attributes is using | ||
# the attribute registry provided by `sunpy.net.attrs`. | ||
# | ||
# When constructing a search for SOAR ``a.Time`` must be provided. | ||
# Other search attributes can be used too - ``sunpy-soar`` recognizes the following: | ||
# | ||
# The third ``near`` argument to ``a.Time`` is not currently supported. | ||
# You will have to manually filter the results if you want to find the one closest to a given time. | ||
# | ||
# For instrument the following are supported: | ||
# | ||
# - "EPD": "Energetic Particle Detector" | ||
# - "EUI": "Extreme UV Imager" | ||
# - "MAG": "Magnetometer" | ||
# - "METIS": "Metis: Visible light and ultraviolet coronagraph" | ||
# - "PHI": "Polarimetric and Helioseismic Imager" | ||
# - "RPW": "Radio and Plasma Wave instrument" | ||
# - "SOLOHI": "Solar Orbiter Heliospheric Imager" | ||
# - "SPICE": "SPectral Investigation of the Coronal Environment" | ||
# - "STIX": "Spectrometer Telescope for Imaging X-rays" | ||
# - "SWA": "Solar Wind Analyser" | ||
# | ||
# For level the following are supported: | ||
# L0, L1, L2, L3, LL01, LL02, LL03 | ||
# | ||
# For product: | ||
|
||
a.soar.Product |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters