Skip to content

Allow arbitrary units in Spectrum methods #57

@erwanp

Description

@erwanp

SpectrumFactory can read arbitrary astropy.units inputs after #55

We need to do the same thing for the Spectrum post-processing methods, for instance rescale_path_length, crop, etc. See all the methods there: https://radis.readthedocs.io/en/latest/spectrum/spectrum.html

Most of the work will be in the spectrum.py file.

Edit: Here are all the Spectrum methods:

  • apply_slit
  • compare_with
  • copy
  • crop
  • get
  • get_conditions
  • get_integral
  • get_name
  • get_populations
  • get_power
  • get_quantities
  • get_radiance
  • get_radiance_noslit
  • get_rovib_levels
  • get_slit
  • get_vars
  • get_vib_levels
  • get_wavelength
  • get_wavenumber
  • get_waveunit
  • is_at_equilibrium
  • is_optically_thin
  • line_survey
  • offset
  • plot
  • plot_populations
  • plot_slit
  • print_conditions
  • resample
  • rescale_mole_fraction
  • rescale_path_length
  • save
  • savetxt
  • store
  • update

Edit :

Could also be done in sPlanck to combine the use of wavelength or wavenumber, and also allow the use of Frequency (in Hz)

  • once done, could answer with a RADIS example on this StackOverflow post that requires Planck blackbody calculation with frequency (in Hz)

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersinterfacenot related to the physics of the codepost-processRelated to the post-processing (ex: methods of Spectrum objects)😎.Easy (good to start with!)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions