-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Allow specifying the figure to `TiledDataset.plot` * Update the reproject example * Add howto guide on sample data download * Fix doc build * More words * Much changelog many wow * Fix ref link * Apply suggestions from code review Co-authored-by: Drew Leonard <andy.j.leonard@gmail.com> --------- Co-authored-by: Drew Leonard <andy.j.leonard@gmail.com>
- Loading branch information
Showing
10 changed files
with
103 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add a how-to guide on redownloading the sample data with Fido / Globus. |
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 @@ | ||
Add an examples section for tutorial style self-contained examples. |
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 @@ | ||
Update the :ref:`dkist:examples:vbi-reproject` example for improvements in ``TiledDataset``. |
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 @@ | ||
Add a ``fig=`` keyword argument to `TiledDataset.plot` and make it default to the current figure. |
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,11 @@ | ||
.. _dkist:examples:index: | ||
|
||
Examples | ||
======== | ||
|
||
Each example is a self-contained tutorial working through one task. | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
reproject_vbi_mosaic |
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 |
---|---|---|
@@ -1,11 +1,13 @@ | ||
.. _dkist:howto-guides:index: | ||
.. _dkist:howto-guide:index: | ||
|
||
How-To Guides | ||
How To Guides | ||
============= | ||
|
||
These How-To Guides will guide you through a specific task. | ||
These how-to guides provide examples of how to perform specific tasks with the DKIST Python Tools and DKIST data. | ||
They are recipes that do not provide much in-depth explanation and assume you have some background knowledge. | ||
If you're starting fresh you might want to check out the :ref:`dkist:tutorial:index` first. | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:maxdepth: 1 | ||
|
||
reproject_vbi_mosaic | ||
sample_data |
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,43 @@ | ||
.. _dkist:howto-guide:sample-data: | ||
|
||
Downloading the Sample Data with Globus | ||
======================================= | ||
|
||
The Python tools provide a few different partial datasets as sample data, these are used in documentation and examples. | ||
This how to guide will show you how to download the complete data for these datasets, or let you change the dataset for a different one. | ||
|
||
|
||
Searching for and downloading the ASDF file | ||
------------------------------------------- | ||
|
||
Using the `BKPLX <https://dkist.data.nso.edu/datasetview/BKPLX>`__ dataset from the VISP we download the ASDF file and create a `dkist.Dataset` object. | ||
|
||
.. code-block:: python | ||
from sunpy.net import Fido, attrs as a | ||
import dkist | ||
import dkist.net | ||
results = Fido.search(a.dkist.Dataset("BKPLX")) | ||
asdf_file = Fido.fetch(results) | ||
ds = dkist.load_dataset(asdf_file) | ||
Downloading the FITS files with Globus | ||
-------------------------------------- | ||
|
||
Having loaded the ASDF file into a `dkist.Dataset` as this is a VISP dataset with polarimetry, we can download the Stokes I profile by indexing the first element of the first dimension: | ||
|
||
.. code-block:: python | ||
ds[0].files.download() # doctest: +SKIP | ||
This will download the Stokes I FITS files into the same directory as the ASDF file. | ||
|
||
To download the whole dataset do: | ||
|
||
.. code-block:: python | ||
ds.files.download() # doctest: +SKIP |
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