Database (sunpy.database
)¶
sunpy.database
can be used to provide a local cache of the files and
records retrieved from various remote services. For an introduction to the
database see Using the database package.
sunpy.database Package¶
Functions¶
|
A context manager to disable saving the used commands in the undo history. |
|
Queries the source database with the query string, and moves the matched entries to the destination database. |
Classes¶
|
|
|
This exception is raised if a database entry is attempted to be added to the database although it was already saved in it. |
|
This exception is raised if it is attempted to remove an entry even though it does not exist in the database. |
|
This exception is raised if a tag cannot be found in a database by its name. |
|
This exception is raised if it is attempted to remove a tag from a database entry even though it is not saved in this entry. |
|
This exception is raised if a database entry is marked as starred using |
|
This exception is raised if the star mark from a database entry is attempted to be removed although the entry is not starred. |
|
This exception is raised if a database entry cannot be found by its unique ID. |
|
This exception is raised if it is attempted to assign a tag to a database entry but the database entry already has this tag assigned. |
|
This exception is raised if the number of files returned by the downloader does not match the number expected. |
Submodules¶
sunpy.database.tables Module¶
Functions¶
|
Use a query response returned from |
|
Use the headers of a FITS file to generate an iterator of |
|
Search the given directory for FITS files and use the corresponding FITS headers to generate instances of |
|
Print a table to display the database entries. |
Classes¶
This exception is raised if a wavelength unit cannot be found in a FITS header or in a VSO query result block. |
|
|
This exception is raised if a wavelength cannot be converted to an astropy.units.Unit instance. |
|
|
|
|
|
|
|
|
|
This represents the main table of the database and each instance represents one record that can be saved in the database. |
sunpy.database.caching Module¶
Classes¶
|
BaseCache is a class that saves and operates on an OrderedDict. |
|
|
|
sunpy.database.commands Module¶
Classes¶
This exception is raised if it is attempted to pop from a command stack even though it is empty. |
|
|
This exception is raised if it is attempted to remove an entry even though it does not exist in the database. |
|
This exception is raised if it is attempted to remove a tag from a database entry even though it is not saved in this entry. |
This is the abstract main class for all database operations. |
|
|
Add a new database entry to this session. |
|
Remove the given database entry from the session. |
|
Change the properties of the database entry. |
The CommandManager saves all executed and reverted commands to act as an undo-redo-manager. |
sunpy.database.attrs Module¶
Classes¶
|
|
|
|
|
|
|
|
|