Code Reference¶
SWPy Request¶
swpy.swds.request Module¶
The acquisition module provides functions for users to collect data provided by the Korea Astronomy and Space Science Institute (KASI). Through this module, users can search, download, and process data from various KASI data sources.
Classes¶
A class that implements the stack data structure. | |
A class that downloads and outputs data. |
Primary Functions¶
These functions provide a user interface and are used to search for data. You will mainly use these functions to utilize the swpy package.
Allows users to interact and search for data. |
|
|
Searches for specific data, prints the data, and returns a |
Sub Functions¶
These functions are primarily called within the data_info
and search
functions to perform various tasks.
|
Removes a specific substring from the end of a URL string. |
|
Fetch |
|
|
|
Print the list of tables from the given URL and update the URL. |
|
Print the list of data IDs from the given URL and update the URL. |
|
Print the start time from the given URL and update the URL. |
|
Print the list of data from the given URL, update the URL, and download the file. |
SWPy Dataset ¶
swpy.swds.dataset.utilities Module ¶
The utilities module builds the fundamental structure of the SWPy dataset and defines the 'Data' and 'Header' components of the dataset.
Additionally, it includes integrated data opening and plotting functionalities.
This module includes files such as base_dataset.py
,
header.py
,
all.py
,
readfile.py
, and
plot.py
,
each of which is responsible for specific functions.
base_dataset.py
Receives the path of a data file and provides a structure for storing and processing various information related to the data. |
readfile.py
The class that reads data from the database in conjunction with 'swds.request.request'. |
|
|
The function that reads data from the local. |
swpy.swds.dataset.goes Module ¶
This module provides functionality to NOAA's GOES (Geostationary Operational Environmental Satellite) data. It specifically focuses on handling data from Particle, X-ray, and Geomagnetic.
ParticleDatasetFir
,
ParticleDatasetSec
,
XrayDatasetFir
,
XrayDatasetSec
,
GeoMagDatasetFir
, and
GeoMagDatasetSec
,
are subclasses of
GOESDataset
,
which inherits from
BaseDataset
in swpy.swds.dataset.utilities.
As a result, ensuring that each parent class is well-defined will facilitate smooth data loading.
Starting from 2021, the file content changes, so the data is assigned to different classes based on the year to parse it correctly.
-
Data up to 2020: The suffix 'Fir' is added.
-
Data from 2021: The suffix 'Sec' is added.
Classes ¶
Initialize the GOESDataset with the given file array, loading and parsing its content. |
|
Represents save details of Particle Dataset before 2021. |
|
Represents save details of Particle Dataset after 2021. |
|
Represents save details of X-ray Dataset before 2021. |
|
Represents save details of X-ray Dataset after 2021. |
|
Represents save details of Geomagnetic Dataset before 2021. |
|
Represents save details of Geomagnetic Dataset after 2021. |
swpy.swds.dataset.ace Module ¶
This module provides functionality to NOAA's ACE (Advanced Composition Explorer) data. It specifically focuses on handling data from SWEPAM (Solar Wind Electron Proton Alpha Monitor), MAG (Magnetometer), and SIS (Solar Isotope Spectrometer).
SWEPAMDataset
,
MAGDataset
, and
SISDataset
are subclasses of
ACEDataset
,
which inherits from
BaseDataset
in swpy.swds.dataset.utilities.
As a result, ensuring that each parent class is well-defined will facilitate smooth data loading.
Classes ¶
Initialize the ACEDataset with the given file array, loading and parsing its content. |
|
Represents save details of SWEPAM Dataset. |
|
Represents save details of MAG Dataset. |
|
Represents save details of SIS Dataset. |