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.


License

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 number

  • ifudesign (int) – IFU design number

  • drpver (str, optional) – DRP version. Default is to use drp_version().

  • dapver (str, optional) – DAP version. Default is to use dap_version().

  • analysis_path (str, optional) – Path to the root analysis directory. Default is to use dap_analysis_path().

  • directory_path (str, optional) – Path to the directory with the DAP output files. Default is to use dap_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_data_root()[source]

Return the root directory with the DAP 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 number

  • ifudesign (int) – IFU design number

  • mode (str, optional) – Mode of the DRP reduction; either RSS or CUBE. If None, the mode is excluded from the file root.

Returns

Root name for the DAP file: mangadap-[PLATE]-[IFUDESIGN] or mangadap-[PLATE]-[IFUDESIGN]-LOG[MODE]

Return type

str

mangadap.config.defaults.dap_source_dir()[source]
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 use drp_version().

  • dapver (str, optional) – DAP version. Default is to use dap_version().

  • analysis_path (str, optional) – Path to the root analysis directory. Default is to use dap_analysis_path()

Returns

Full path to the DAPall fits file.

Return type

str

mangadap.config.defaults.sdss_maskbits_file()[source]

Return the path to the sdss maskbits yanny file.