Marvin is a package intended to simply the access, exploration, and visualization of the MaNGA dataset for SDSS-IV. It provides a suite of Python tools, a web interface, and a REST-like API, under tools/, web/, and api/, respectively. Core functionality of Marvin stems from Marvin’s Brain.
marvin.
MarvinConfig
[source]¶Bases: object
Global Marvin Configuration
The global configuration of Marvin. Use the config object to globally set options for your Marvin session.
Parameters: |
|
---|
lookUpRelease
(drpver)[source]¶Retrieve the release version for a given DRP version
Parameters: | drpver (str) – The DRP version to use |
---|---|
Returns: | release (str) – The release version according to the input DRP version |
lookUpVersions
(release=None)[source]¶Retrieve the DRP and DAP versions that make up a release version.
Parameters: | release (str or None) – The release version. If None , uses the currently set
release value. |
---|---|
Returns: | drpver, dapver (tuple) – A tuple of strings of the DRP and DAP versions according to the input MPL version |
setDR
(drver)[source]¶As setRelease()
but check that the version is a DR.
setDefaultDrpAll
(drpver=None)[source]¶Tries to set the default location of drpall.
Sets the drpall attribute to the location of your DRPall file, based on the drpver. If drpver not set, it is extracted from the release attribute. It sets the location based on the MANGA_SPECTRO_REDUX environment variable
Parameters: | drpver (str) – The DRP version to set. Defaults to the version corresponding to config.release. |
---|
setMPL
(mplver)[source]¶As setRelease()
but check that the version is an MPL.
setRelease
(version)[source]¶Set the release version.
Parameters: | version (str) – The MPL/DR version to set, in form of MPL-X or DRXX. |
---|
Example
>>> config.setRelease('MPL-4')
>>> config.setRelease('DR13')
switchSasUrl
(sasmode='utah', ngrokid=None, port=5000, test=False)[source]¶Switches the SAS url config attribute
Easily switch the sasurl configuration variable between utah and local. utah sets it to the real API. Local switches to use localhost.
Parameters: |
|
---|
drpall
¶mode
¶release
¶sasurl
¶session_id
¶urlmap
¶Retrieves the URLMap the first time it is needed.
xyorig
¶