desk package

Subpackages

Submodules

desk.console_commands module

desk.console_commands.fit(source='/Users/sgoldman/Desktop/Dusty-Evolved-Star-Kit/desk/put_target_data_here', distance=50, grid='silicates', n=50, min_wavelength=0.01, max_wavelength=1000, multiprocessing=15, save_model_spectrum=True, testing=False)[source]

Fits the seds of sources with specified grid.

Parameters
  • source (str) – Name of target in array of strings (or one string).

  • distance (str, float) – Distance to source(s) in kiloparsecs.

  • grid (str) – Name of model grid.

  • n (str or int) – Number of times to scale the grid between the lum_min and lum_max specified in the config.py script (essentially grid density).

  • min_wavelength (float) – Minimum wavelength to fit, the other data will still be shown in the output SED.

  • max_wavelength (float) – Maximum wavelength to be fit.

  • multiprocessing (bool or int) – Uses all but one core if True, only one core if False, or uses the number of cores specified as an integer.

  • save_model_spectrum – Whether to save the model sprcetum as csv file.

  • testing (bool) – Flag for testing that uses only the first 3 rows of the mode grids.

desk.console_commands.grids()[source]

Prints the model grids available for fitting.

desk.console_commands.sed(source_path='.', source_filename='fitting_results.csv', dest_path='.', save_name='output_sed.png', flux='Wm2')[source]

Creates single SED figure of all fit SEDs using the ‘fitting_results.csv’ file.

Parameters
  • source_path (str) – Path to source.

  • source_filename (str) – fit results filename.

  • dest_path (str) – Path to save figure.

  • save_name (str) – Figure filename to be saved.

  • flux (str) – flux type (Wm2 or Jy)

Returns

SED figure with data in blue and model in black.

Return type

png

desk.console_commands.sed_indiv(source_path='.', source_filename='fitting_results.csv', dest_path='.', flux='Wm2')[source]

Creates individual SED figures for all fit SEDs using the ‘fitting_results.csv’ file.

Parameters
  • source_path (str) – Path to source.

  • source_filename (str) – fit results filename.

  • dest_path (str) – Path to save figure.

  • save_name (str) – Figure filename to be saved.

  • flux (str) – flux type (Wm2 or Jy)

Returns

SED figure with data in blue and model in black.

Return type

png

desk.console_commands.version()[source]

Returns DESK version.

desk.console_commands.vizier_sed(target_name, r=5, source_path='.')[source]

desk.main module

desk.main.main()[source]

Module contents