Esempio n. 1
0
def cm2nm_air(wl_cm1):
    """cm-1 to (air) nm.

    References
    ----------

    :func:`~radis.phys.air.vacuum2air'
    """
    return vacuum2air(cm2nm(wl_cm1))
Esempio n. 2
0
def cm2nm_air(wl_cm1):
    '''cm-1 to (air) nm
    
    References
    ----------
    
    :func:`~radis.phys.air.vacuum2air'
    '''
    return vacuum2air(cm2nm(wl_cm1))
Esempio n. 3
0
    def get_x(w):
        ''' w (input) is supposed to be in vacuum wavenumbers in the 
        lines database '''

        # Convert wavelength / wavenumber
        if wunit == 'cm-1':
            x = w
        elif wunit == 'nm':
            x = cm2nm(w)

            # Correct if requested medium is air
            if medium == 'air':
                x = vacuum2air(x)
            elif medium == 'vacuum':
                pass
            else:
                raise ValueError('Unknown medium: {0}'.format(medium))
        else:
            raise ValueError('Unknown wunit: {0}'.format(wunit))
        return x
Esempio n. 4
0
    def get_x(w):
        """w (input) is supposed to be in vacuum wavenumbers in the lines
        database."""

        # Convert wavelength / wavenumber
        if wunit == "cm-1":
            x = w
        elif wunit == "nm":
            x = cm2nm(w)

            # Correct if requested medium is air
            if medium == "air":
                x = vacuum2air(x)
            elif medium == "vacuum":
                pass
            else:
                raise ValueError("Unknown medium: {0}".format(medium))
        else:
            raise ValueError("Unknown wunit: {0}".format(wunit))
        return x