pyCloudy
0.8.54
manage Cloudy photoionization code
|
Inherits object.
Public Member Functions | |
def | __init__ |
def | cHbetaFromEBV (self, ebv) |
def | EBVFromCHbeta (self, cHbeta) |
def | getLaws (self) |
def | printLaws (self) |
def | getCorr (self, wave) |
def | getCorrHb (self, wave) |
def | getCorr2 (self, wave1, wave2) |
def | setCorr (self, obs_over_theo, wave1, wave2) |
def | plot (self, w_inf=1000., w_sup=10000., laws=None, kwargs) |
Public Attributes | |
log_ | |
calling | |
user_params | |
X | |
Properties | |
E_BV = property(_get_e_bv, _set_e_bv, None, None) | |
R_V = property(_get_r_v, _set_r_v, None, None) | |
law = property(_get_law, _set_law, None, None) | |
cHbeta = property(_get_cHbeta, _set_cHbeta, None, None) | |
user_function = property(_get_uf, _set_uf, None, None) | |
Reddening correction RC = RedCorr()
def __init__ | ( | self, | |
E_BV = 0. , |
|||
R_V = 3.1 , |
|||
law = 'No correction' , |
|||
cHbeta = None , |
|||
user_function = None |
|||
) |
Reddening correction tool. params: - E_BV [float] : differential extinction between bands B and V - R_V = AV/E_BV - law [str] : one of the defined laws (available with RedCorr.getLaws()) - cHbeta : logarithmic extinction a Hbeta (prevalence on E_BV) - user_function X(wave, param): A user-defined function that accept 2 parameters : wavelength(s) in Angstrom and an optional parameter and return X(lambda) = A(lambda)/E_BV = R.A(lambda)/AV. The correction is : 10**(0.4*E_bv*X) example: RC = RedCorr(E_BV = 1.) RC.plot(laws = 'all')
def cHbetaFromEBV | ( | self, | |
ebv | |||
) |
def EBVFromCHbeta | ( | self, | |
cHbeta | |||
) |
def getCorr | ( | self, | |
wave | |||
) |
def getCorr2 | ( | self, | |
wave1, | |||
wave2 | |||
) |
def getCorrHb | ( | self, | |
wave | |||
) |
def getLaws | ( | self | ) |
def plot | ( | self, | |
w_inf = 1000. , |
|||
w_sup = 10000. , |
|||
laws = None , |
|||
kwargs | |||
) |
plot extinction laws param: - w_inf [float] lower limit of plot - w_sup [float] upper limit of plot - laws [list of strings] list of extinction law labels. If set to 'all', all the laws are plotted - **kwargs arguments to plot
def printLaws | ( | self | ) |
def setCorr | ( | self, | |
obs_over_theo, | |||
wave1, | |||
wave2 | |||
) |
calling |
log_ |
user_params |
X |
|
static |
|
static |
|
static |
|
static |
|
static |