mangadap.config.defaults module
Provides a set of functions that define and return defaults used by the MaNGA DAP, such as paths and file names.
Copyright © 2019, SDSS-IV/MaNGA Pipeline Group
- mangadap.config.defaults.dap_config(plate, ifudesign, drpver=None, dapver=None, analysis_path=None, directory_path=None)[source]
Return the full path to the DAP configuration file.
The configuration file provides the input data necessary to instantiate a
mangadap.datacube.manga.MaNGADataCube
.- Parameters
plate (
int
) – Plate numberifudesign (
int
) – IFU design numberdrpver (
str
, optional) – DRP version. Default is to usedrp_version()
.dapver (
str
, optional) – DAP version. Default is to usedap_version()
.analysis_path (
str
, optional) – Path to the root analysis directory. Default is to usedap_analysis_path()
.directory_path (
str
, optional) – Path to the directory with the DAP output files. Default is to usedap_common_path()
- Returns
Full path to the DAP par file
- Return type
str
- mangadap.config.defaults.dap_config_root()[source]
Return the root directory with the DAP config data.
- mangadap.config.defaults.dap_file_root(plate, ifudesign, mode=None)[source]
Generate the root name of the MaNGA DAP parameter and script files for a given plate/ifudesign/mode.
- Parameters
plate (
int
) – Plate numberifudesign (
int
) – IFU design numbermode (
str
, optional) – Mode of the DRP reduction; eitherRSS
orCUBE
. If None, the mode is excluded from the file root.
- Returns
Root name for the DAP file:
mangadap-[PLATE]-[IFUDESIGN]
ormangadap-[PLATE]-[IFUDESIGN]-LOG[MODE]
- Return type
str
- mangadap.config.defaults.dapall_file(drpver=None, dapver=None, analysis_path=None)[source]
Return the path to the DAPall file.
- Parameters
drpver (
str
, optional) – DRP version. Default is to usedrp_version()
.dapver (
str
, optional) – DAP version. Default is to usedap_version()
.analysis_path (
str
, optional) – Path to the root analysis directory. Default is to usedap_analysis_path()
- Returns
Full path to the DAPall fits file.
- Return type
str