diff --git a/make_release.py b/make_release.py index 709e9ef..1b656ec 100755 --- a/make_release.py +++ b/make_release.py @@ -26,7 +26,7 @@ def create_zipfile(upload_dir, zip_name): if __name__ == '__main__': run_doxygen('doxygen_config_user.txt') create_zipfile('/tmp/pyCloudy_Manual/html', '$HOME/Dropbox/Python/pyCloudy/dist/pyCloudy_{0}_documentation'.format(pyCloudy.__version__)) - run("mv /tmp/pyCloudy_Manual/html pyCloudy/docs") + #run("mv /tmp/pyCloudy_Manual/html pyCloudy/docs") #make_latex('/tmp/pyCloudy_Manual/latex/', 'dist/PyCloudy_{0}_documentation.pdf'.format(pyCloudy.__version__)) #run_doxygen('doxygen_config_devel.txt') diff --git a/pyCloudy/docs/html/annotated.html b/pyCloudy/docs/html/annotated.html deleted file mode 100644 index d52f5cd..0000000 --- a/pyCloudy/docs/html/annotated.html +++ /dev/null @@ -1,161 +0,0 @@ - - -
- - - -
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
▼NpyCloudy | |
▼Nc1d | |
▼Ncloudy_model | |
CCloudyInput | |
CCloudyModel | |
▼Nc3d | |
▼Nmodel_3d | |
CC3D | |
CCubCoord | |
▼Ndb | |
▼NMdB | |
CMdB | |
CMdB_subproc | |
▼Nuse3MdB | |
CGenetic | |
Cmanage3MdB | |
CObsfromMdB | |
CrunCloudy | |
CrunCloudyByThread | |
CwritePending | |
CwriteTab | |
▼Nutils | |
▼NConfig | |
C_Config | |
▼Nlogging | |
Cmy_logging | Logging tool |
CPyCloudyError | |
▼Nmisc | |
CImportFromFile | |
▼Nphysics | |
CCST | |
▼Nred_corr | |
CRedCorr |
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
This is the complete list of members for CloudyInput, including all inherited members.
-__init__ | CloudyInput | |
calling | CloudyInput | |
cloudy_version | CloudyInput | |
import_file | CloudyInput | |
init_all(self) | CloudyInput | |
line_file_absolute | CloudyInput | |
log_ | CloudyInput | |
model_name | CloudyInput | |
print_input | CloudyInput | |
print_make_file | CloudyInput | |
read_emis_file(self, emis_file) | CloudyInput | |
run_cloudy | CloudyInput | |
save_list | CloudyInput | |
save_str | CloudyInput | |
set_abund | CloudyInput | |
set_BB | CloudyInput | |
set_C3D_comment | CloudyInput | |
set_comment | CloudyInput | |
set_cste_density | CloudyInput | |
set_distance | CloudyInput | |
set_dlaw | CloudyInput | |
set_emis_tab | CloudyInput | |
set_fudge | CloudyInput | |
set_grains | CloudyInput | |
set_heat_cooling | CloudyInput | |
set_iterate | CloudyInput | |
set_line_file | CloudyInput | |
set_other | CloudyInput | |
set_radius | CloudyInput | |
set_save_str | CloudyInput | |
set_sphere | CloudyInput | |
set_star | CloudyInput | |
set_stop | CloudyInput | |
set_theta_phi | CloudyInput |
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
Inherits object.
--Public Member Functions | |
def | __init__ |
CloudyInput object. More... | |
def | init_all (self) |
def | set_save_str |
def | set_radius |
def | set_BB |
def | set_star |
def | set_cste_density |
def | set_dlaw |
def | set_fudge |
def | set_sphere |
def | set_iterate |
def | set_grains |
def | set_stop |
def | read_emis_file (self, emis_file) |
def | set_emis_tab |
def | import_file |
def | set_line_file |
def | set_theta_phi |
def | set_abund |
define the abundances More... | |
def | set_other |
def | set_comment |
def | set_C3D_comment |
def | set_distance |
def | set_heat_cooling |
def | print_input |
def | run_cloudy |
def | print_make_file |
-Public Attributes | |
log_ | |
calling | |
model_name | |
save_list | |
cloudy_version | |
save_str | |
line_file_absolute | |
Object used to create and write input file for Cloudy code.
-def __init__ | -( | -- | self, | -
- | - | - | model_name = None |
-
- | ) | -- |
CloudyInput object.
-- model_name : name of the model. Used to name the input file and all the output files. -The other parameters of the model are set using the methods --
def import_file | -( | -- | self, | -
- | - | - | file_ = None |
-
- | ) | -- |
Import a file that will be append to the input file. --
def init_all | -( | -- | self | ) | -- |
def print_input | -( | -- | self, | -
- | - | - | to_file = True , |
-
- | - | - | verbose = False |
-
- | ) | -- |
This is the method to print the input file. -Parameters: - - to_file: Boolean. If True (default), print to the file defined as model_name + '.in' - - verbose: Boolean. If True (not default), print to the standart output --
def print_make_file | -( | -- | self, | -
- | - | - | dir_ = None |
-
- | ) | -- |
Call pc.print_make_file. -Parameter: - dir_: if None, extract the string before the last / in the model_name. -Otherwise, use the value --
def read_emis_file | -( | -- | self, | -
- | - | - | emis_file | -
- | ) | -- |
Define the name of the file containing the labels for the list of emissivities to output - in the .emis file --
def run_cloudy | -( | -- | self, | -
- | - | - | dir_ = None , |
-
- | - | - | n_proc = 1 , |
-
- | - | - | use_make = False , |
-
- | - | - | model_name = None , |
-
- | - | - | precom = "" |
-
- | ) | -- |
Method to run cloudy. -Parameters: - - dir_: Directory where the model input files are - - n_proc: number of CPUs to run (default=1) - - use_make: if True (default), make is used. Otherwise Cloudy is run on one single model, -assuming that model_name.in exists - - model_name: if None, the models of this object is run, -if not None, used by: make name="model_name" or cloudy < model_name.in - - precom: a string to put before Cloudy (e.g. "\nice 10") --
def set_abund | -( | -- | self, | -
- | - | - | predef = None , |
-
- | - | - | elem = None , |
-
- | - | - | value = None , |
-
- | - | - | nograins = True , |
-
- | - | - | ab_dict = None , |
-
- | - | - | metals = None , |
-
- | - | - | metalsgrains = None |
-
- | ) | -- |
define the abundances
-Defines the abundances. -Parameters: - - predef : one of the Cloudy predefined abundances (e.g. "ism", "hii region") - - elem and value: used to set one abundance, e.g, elem = 'O', value = -4.5 - - nograins: Boolean value - - ab_dict: dictionnary of elem and values. - - metals: value by which all the metals are multiplied --
def set_BB | -( | -- | self, | -
- | - | - | Teff = None , |
-
- | - | - | lumi_unit = None , |
-
- | - | - | lumi_value = None |
-
- | ) | -- |
Add a Black Body as SED. -Parameters: - - Teff: Effective temeprature, in K. - - lumi_unit: a Cloudy unit for the luminosity (e.g 'q(H)', 'total luminosity', 'logU') - - lumi_value: the value of the luminosity --
def set_C3D_comment | -( | -- | self, | -
- | - | - | comment = None |
-
- | ) | -- |
Add special comment that will be added in the input file in the form of: C3D comment - Parameter: - - comment: if None, reset the list, otherwise, append its value to the list-
def set_comment | -( | -- | self, | -
- | - | - | comment = None |
-
- | ) | -- |
Add special comment that will be added in the input file in the form of: C ** comment - Parameter: - - comment: if None, reset the list, otherwise, append its value to the list-
def set_cste_density | -( | -- | self, | -
- | - | - | dens = None , |
-
- | - | - | ff = None |
-
- | ) | -- |
Set the density of the model to a constant value -Parameters: - - dens: the density (in log(cm-3)) - - ff: filling factor (unused if None, default value) --
def set_distance | -( | -- | self, | -
- | - | - | dist = None , |
-
- | - | - | unit = 'kpc' , |
-
- | - | - | linear = True |
-
- | ) | -- |
Set the distance to the object. -Parameters: - - dist = float - - unit = ('kpc', 'Mpc', 'parsecs', 'cm') - - linear = boolean --
def set_dlaw | -( | -- | self, | -
- | - | - | dlaw_params, | -
- | - | - | ff = None |
-
- | ) | -- |
Define the user-define density law. -Parameters: - - dlaw_params may beof type: 1.4, '1.4, 5.6, 7e45' or (1, 2, 4.5) - - ff: filling factor --
def set_emis_tab | -( | -- | self, | -
- | - | - | emis_tab_str = None |
-
- | ) | -- |
Accept a list of line labels that will be used as: - -save last lines emissivity ".emis" - *** enumeration of the elements of the list *** -end of lines-
def set_fudge | -( | -- | self, | -
- | - | - | fudge_params = None |
-
- | ) | -- |
Define a user-defined fudge parameter. - -Parameter: - - fudge_params: may be: 1.4, '1.4, 5.6, 7e45' or (1, 2, 4.5) --
def set_grains | -( | -- | self, | -
- | - | - | grains = None |
-
- | ) | -- |
Append grains to the list. -Parameter: - - grains: if None, reset the grains list, otherwise append the value of the parameter to the list. --
def set_heat_cooling | -( | -- | self, | -
- | - | - | cextra = None , |
-
- | - | - | hextra = None |
-
- | ) | -- |
def set_iterate | -( | -- | self, | -
- | - | - | n_iter = None , |
-
- | - | - | to_convergence = False |
-
- | ) | -- |
Set the iterate parameter. -Parameter: - - n_iter: If None, set the iterate parameter to "iterate" in the Cloudy input file, -if ==0, unset the iterate (nothing will be printed), otherwise set iterate to the -value of n_iter. - - to_convergence [False]: If True, iterate to convergence is printed out. -n_iter without effect then --
def set_line_file | -( | -- | self, | -
- | - | - | line_file = None , |
-
- | - | - | absolute = False |
-
- | ) | -- |
Set a file name containing a list of lines. -Is used in the input file as: -save last linelist ".lin" "***line_file***" --
def set_other | -( | -- | self, | -
- | - | - | other_str = None |
-
- | ) | -- |
Define any other command line to be added to the Cloudy input file -Parameter: - - other_str: if None, reset the list, otherwise, append its value to the list --
def set_radius | -( | -- | self, | -
- | - | - | r_in = None , |
-
- | - | - | r_out = None |
-
- | ) | -- |
param: - r_in [float] (log cm) -optional: - r_out [float] (log cm) --
def set_save_str | -( | -- | self, | -
- | - | - | save = 'save' |
-
- | ) | -- |
This determine if "save" (default) or "punch" is used in the input file -Parameter: - - save: "save" (default) or "punch". If another value is sent, "save" is used. --
def set_sphere | -( | -- | self, | -
- | - | - | sphere = True |
-
- | ) | -- |
Set the sphere parameter if True, unset it otherwise. --
def set_star | -( | -- | self, | -
- | - | - | SED = None , |
-
- | - | - | SED_params = None , |
-
- | - | - | lumi_unit = None , |
-
- | - | - | lumi_value = None |
-
- | ) | -- |
Add a table to the SED. -Parameters: - - SED: The SED description, like "table Rauch" - - SED_params: parameter(s) for the SED. May be a list or a tuple, of strings or floats - or a simple string with everything in it. --
def set_stop | -( | -- | self, | -
- | - | - | stop_criter = None |
-
- | ) | -- |
Append a stopping criterium to the list. -Parameters: - - stop: if None, the list is reset, otherwise the value of the parameter is append to the list -may be a list or a tuple of criteria. --
def set_theta_phi | -( | -- | self, | -
- | - | - | theta = None , |
-
- | - | - | phi = None |
-
- | ) | -- |
Set the values of the theta and phi angles for the 3D models --
calling | -
cloudy_version | -
line_file_absolute | -
log_ | -
model_name | -
save_list | -
save_str | -
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
This is the complete list of members for CloudyModel, including all inherited members.
-__init__ | CloudyModel | |
__repr__(self) | CloudyModel | |
__str__(self) | CloudyModel | |
aborted | CloudyModel | |
abund | CloudyModel | |
C3D_comments | CloudyModel | |
calling | CloudyModel | |
cautions | CloudyModel | |
cloudy_version | CloudyModel | |
cloudy_version_major | CloudyModel | |
comments | CloudyModel | |
cool(self) | CloudyModel | |
cool_full | CloudyModel | |
date_model | CloudyModel | |
depth(self) | CloudyModel | |
depth_full | CloudyModel | |
distance | CloudyModel | |
dr(self) | CloudyModel | |
dr_full | CloudyModel | |
drff(self) | CloudyModel | |
dv(self) | CloudyModel | |
dv_full | CloudyModel | |
dvff(self) | CloudyModel | |
emis_from_pyneb | CloudyModel | |
emis_full | CloudyModel | |
emis_is_log | CloudyModel | |
emis_labels | CloudyModel | |
empty_model | CloudyModel | |
ff(self) | CloudyModel | |
ff_full | CloudyModel | |
gabund(self) | CloudyModel | |
gabund_full | CloudyModel | |
gabund_labels | CloudyModel | |
gas_mass_per_H | CloudyModel | |
gasize | CloudyModel | |
gdgrat(self) | CloudyModel | |
gdgrat_full | CloudyModel | |
gdgrat_labels | CloudyModel | |
gdsize | CloudyModel | |
get_ab_ion_rad | CloudyModel | |
get_ab_ion_rad_ne | CloudyModel | |
get_ab_ion_vol | CloudyModel | |
get_ab_ion_vol_ne | CloudyModel | |
get_cont_x | CloudyModel | |
get_cont_y | CloudyModel | |
get_emis(self, ref) | CloudyModel | |
get_emis_rad(self, ref) | CloudyModel | |
get_emis_vol | CloudyModel | |
get_G0 | CloudyModel | |
get_Ha_EW(self) | CloudyModel | |
get_Hb_EW(self) | CloudyModel | |
get_Hb_SB(self) | CloudyModel | |
get_ionic(self, elem, ion) | CloudyModel | |
get_line(self, ref) | CloudyModel | |
get_ne_emis(self, ref) | CloudyModel | |
get_ne_ion_rad_ne | CloudyModel | |
get_ne_ion_vol_ne | CloudyModel | |
get_T0_emis(self, ref) | CloudyModel | |
get_T0_emis_rad(self, ref) | CloudyModel | |
get_T0_ion_rad | CloudyModel | |
get_T0_ion_rad_ne | CloudyModel | |
get_T0_ion_vol | CloudyModel | |
get_T0_ion_vol_ne | CloudyModel | |
get_t2_emis(self, ref) | CloudyModel | |
get_t2_ion_rad_ne | CloudyModel | |
get_t2_ion_vol_ne | CloudyModel | |
gsize | CloudyModel | |
gtemp(self) | CloudyModel | |
gtemp_full | CloudyModel | |
gtemp_labels | CloudyModel | |
H0_mass(self) | CloudyModel | |
H_mass(self) | CloudyModel | |
H_mass_cut | CloudyModel | static |
H_mass_full | CloudyModel | |
Hbeta(self) | CloudyModel | |
Hbeta_cut | CloudyModel | static |
Hbeta_full | CloudyModel | |
heat(self) | CloudyModel | |
heat_full | CloudyModel | |
Hp_mass(self) | CloudyModel | |
info | CloudyModel | |
intens | CloudyModel | |
ionic_full | CloudyModel | |
ionic_names | CloudyModel | |
is_valid_ion(self, elem, ion) | CloudyModel | |
line_is_log | CloudyModel | |
line_labels | CloudyModel | |
lines | CloudyModel | |
liste_elem | CloudyModel | |
log_ | CloudyModel | |
log_U(self) | CloudyModel | |
log_U_mean(self) | CloudyModel | |
log_U_mean_ne(self) | CloudyModel | |
model_name | CloudyModel | |
model_name_s | CloudyModel | |
n_elements | CloudyModel | |
n_emis | CloudyModel | |
n_gabund | CloudyModel | |
n_gdgrat | CloudyModel | |
n_gtemp | CloudyModel | |
n_ions | CloudyModel | |
n_lines | CloudyModel | |
n_zones(self) | CloudyModel | |
n_zones_full | CloudyModel | |
ne(self) | CloudyModel | |
ne_full | CloudyModel | |
nenH(self) | CloudyModel | |
nenH_full | CloudyModel | |
nenHff2_full | CloudyModel | |
nH(self) | CloudyModel | |
nH_full | CloudyModel | |
nH_mean(self) | CloudyModel | |
nHff_full | CloudyModel | |
opd_absorp | CloudyModel | |
opd_energy | CloudyModel | |
opd_scat | CloudyModel | |
opd_total | CloudyModel | |
out | CloudyModel | |
out_exists | CloudyModel | |
phi | CloudyModel | |
Phi | CloudyModel | |
Phi0 | CloudyModel | |
plan_par | CloudyModel | |
plot_spectrum(self, xunit='eV', cont='ntrans', yunit='es', ax=None, xlog=True, ylog=True, kargv) | CloudyModel | |
print_lines | CloudyModel | |
print_stats(self) | CloudyModel | |
Q | CloudyModel | |
Q0 | CloudyModel | |
r_in | CloudyModel | |
r_in_cut | CloudyModel | static |
r_out | CloudyModel | |
r_out_cut | CloudyModel | static |
r_range(self) | CloudyModel | |
rad_integ(self, a) | CloudyModel | |
rad_mean | CloudyModel | |
radius(self) | CloudyModel | |
radius_full | CloudyModel | |
read_outputs(self, extension, delimiter='\t', comments=';', names=True, kwargs) | CloudyModel | |
rlines | CloudyModel | |
slines | CloudyModel | |
T0(self) | CloudyModel | |
t2(self) | CloudyModel | |
te(self) | CloudyModel | |
te_full | CloudyModel | |
Teff | CloudyModel | |
tenenH(self) | CloudyModel | |
tenenH_full | CloudyModel | |
theta | CloudyModel | |
thickness(self) | CloudyModel | |
thickness_full | CloudyModel | |
vol_integ(self, a) | CloudyModel | |
vol_mean | CloudyModel | |
warnings | CloudyModel | |
zones(self) | CloudyModel | |
zones_full | CloudyModel |
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
Inherits object.
--Public Member Functions | |
def | __init__ |
Cloudy model object. More... | |
def | read_outputs (self, extension, delimiter='\t', comments=';', names=True, kwargs) |
def | zones (self) |
array of zones [int array] More... | |
def | n_zones (self) |
number of zones [int] More... | |
def | depth (self) |
depth [float array] (cm) More... | |
def | thickness (self) |
thickness [float array] (cm) More... | |
def | radius (self) |
radius [float array] (cm) More... | |
def | dr (self) |
size of each zone [float array] (cm) More... | |
def | drff (self) |
size of each zone taking into account filling factor [float array] (cm) More... | |
def | dv (self) |
volume of each zone [float array] (cm^3) More... | |
def | dvff (self) |
volume of each zone taking into account filling factor [float array] (cm^3) More... | |
def | ne (self) |
electron density [float array] (cm^-3) More... | |
def | nH (self) |
Hydrogen density [float array] (cm^-3) More... | |
def | nenH (self) |
ne.nH [float array] (cm^-6) More... | |
def | te (self) |
Electron temperature [float array] (K) More... | |
def | tenenH (self) |
te.ne.nH float array More... | |
def | ff (self) |
filling factor [float array] More... | |
def | cool (self) |
cooling [float array] More... | |
def | heat (self) |
heating [float array] More... | |
def | rad_integ (self, a) |
rad_integ(a) = ![]() | |
def | vol_integ (self, a) |
vol_integ(a) = ![]() | |
def | vol_mean |
vol_mean(a, b) = ![]() | |
def | rad_mean |
rad_mean(a, b) = ![]() | |
def | log_U (self) |
log(U) in each zone [float array], with U(r) = ![]() | |
def | log_U_mean (self) |
log_U_mean = ![]() | |
def | log_U_mean_ne (self) |
log_U_mean_ne = ![]() | |
def | get_ionic (self, elem, ion) |
def | gtemp (self) |
def | gabund (self) |
def | gdgrat (self) |
def | get_T0_ion_vol |
get_T0_ion_vol(X, i) = ![]() | |
def | get_T0_ion_rad |
get_T0_ion_rad(X, i) = ![]() | |
def | get_ab_ion_vol |
get_ab_ion_vol(X, i) = ![]() | |
def | get_ab_ion_rad |
get_ab_ion_rad(X, i) = ![]() | |
def | get_ne_ion_vol_ne |
get_ne_ion_vol_ne(X, i) = ![]() | |
def | get_T0_ion_vol_ne |
get_T0_ion_vol_ne(X, i) = ![]() | |
def | get_T0_ion_rad_ne |
get_T0_ion_rad_ne(X, i) = ![]() | |
def | get_ne_ion_rad_ne |
get_ne_ion_rad_ne(X, i) = ![]() | |
def | get_ab_ion_vol_ne |
get_ab_ion_vol_ne(X, i) = ![]() | |
def | get_ab_ion_rad_ne |
get_ab_ion_rad_ne(X, i) = ![]() | |
def | get_t2_ion_vol_ne |
get_t2_ion_vol_ne(X, i) = ![]() | |
def | get_t2_ion_rad_ne |
get_t2_ion_vol_ne(X, i) = ![]() | |
def | get_line (self, ref) |
def | get_emis (self, ref) |
return the emissivities(radius) of the given line array float More... | |
def | get_emis_vol |
get_emis_vol(ref, [at_earth]) = ![]() | |
def | get_emis_rad (self, ref) |
get_emis_rad(ref) = ![]() | |
def | get_T0_emis (self, ref) |
get_T0_emis(ref) = ![]() | |
def | get_T0_emis_rad (self, ref) |
get_T0_emis_rad(ref) = ![]() | |
def | get_ne_emis (self, ref) |
get_ne_emis(ref) = ![]() | |
def | nH_mean (self) |
def | get_t2_emis (self, ref) |
get_t2_emis(ref) = ![]() | |
def | get_cont_x |
Return the wavelength/energy/frequency array. More... | |
def | get_cont_y |
def | get_G0 |
get_G0 = integral(f_lambda . More... | |
def | r_range (self) |
Boolean array defining the range used for the radial parameters (such as ne, ionic, integrals, etc) Defined by r_in_cut and r_out_cut. More... | |
def | Hp_mass (self) |
Hp_mass = ![]() | |
def | H0_mass (self) |
H0_mass = ![]() | |
def | H_mass (self) |
H0_mass = ![]() | |
def | Hbeta (self) |
Hbeta = ![]() | |
def | T0 (self) |
Mean Temperature ![]() | |
def | t2 (self) |
t2 a la Peimbert ![]() | |
def | get_Hb_SB (self) |
Hb_SB = I$_ / (Rout^2 * pi * 206265. More... | |
def | get_Hb_EW (self) |
Hb_EW = -$$ x I$_^{line}$ / $.F_^{cont}$. More... | |
def | get_Ha_EW (self) |
Ha_EW = -$$ x I$_^{line}$ / $.F_^{cont}$. More... | |
def | is_valid_ion (self, elem, ion) |
is_valid_ion(elem, ion) return True if elem, ion is available in get_ionic. More... | |
def | emis_from_pyneb |
def | plot_spectrum (self, xunit='eV', cont='ntrans', yunit='es', ax=None, xlog=True, ylog=True, kargv) |
def | print_lines |
def | print_stats (self) |
def | __repr__ (self) |
def | __str__ (self) |
-Public Attributes | |
log_ | |
logging tool [my_logging object] More... | |
model_name | |
name of the model [str] More... | |
info | |
calling | |
model_name_s | |
line_is_log | |
emis_is_log | |
distance | |
distance to the object (kpc) More... | |
empty_model | |
liste_elem | |
n_ions | |
ionic_full | |
ionic_names | |
n_zones_full | |
total number of zones, r_range unused [int] More... | |
zones_full | |
arrays of zones, r_range unused [int array] More... | |
depth_full | |
array of depths, r_range unused [float array] (cm) More... | |
radius_full | |
array of radius, r_range unused [float array] (cm) More... | |
dv_full | |
array of volume element of each zone, r_range unused float array More... | |
dr_full | |
array of thickness element of each zone, r_range unused [float array] (cm) More... | |
r_in | |
Initial radius [float] (cm) More... | |
r_out | |
Final radius [float] (cm) More... | |
thickness_full | |
total thickness of the nebula, r_range not used [float] (cm) More... | |
ne_full | |
array of electron density, r_range unused [float] (cm^-3) More... | |
nH_full | |
array of Hydrogen density, r_range unused [float] (cm^-3) More... | |
te_full | |
array of electron temperature, r_range unused [float] (K) More... | |
nenH_full | |
array of ne.nH, r_range unused [float] (cm^-6) More... | |
tenenH_full | |
array of te.ne.nH, r_range unused float More... | |
n_lines | |
lines | |
intens | |
slines | |
rlines | |
heat_full | |
cool_full | |
emis_full | |
opd_energy | |
opd_total | |
opd_absorp | |
opd_scat | |
n_gtemp | |
gtemp_full | |
gsize | |
gtemp_labels | |
n_gabund | |
gabund_full | |
gasize | |
gabund_labels | |
n_gdgrat | |
gdgrat_full | |
gdsize | |
gdgrat_labels | |
plan_par | |
Hbeta_full | |
Phi0 | |
Phi | |
ff_full | |
array of filling factor, r_range unused [float] More... | |
nenHff2_full | |
nHff_full | |
H_mass_full | |
line_labels | |
emis_labels | |
n_emis | |
n_elements | |
out | |
C3D_comments | |
comments | |
warnings | |
cautions | |
out_exists | |
date_model | |
cloudy_version | |
cloudy_version_major | |
Teff | |
theta | |
phi | |
Q | |
Q0 | |
abund | |
gas_mass_per_H | |
aborted | |
-Properties | |
r_out_cut = property(_get_r_out_cut, _set_r_out_cut, None, _r_out_cut_doc) | |
User defined outer radius of the nebula [float] (cm). More... | |
r_in_cut = property(_get_r_in_cut, _set_r_in_cut, None, 'User defined inner radius of the nebula.') | |
User defined inner radius of the nebula [float] (cm) More... | |
H_mass_cut = property(_get_H_mass_cut, _set_H_mass_cut, None, None) | |
Hbeta_cut = property(_get_Hbeta_cut, _set_Hbeta_cut, None, None) | |
Read the outputs of Cloudy into variables of the object. Also perform some computations like T0, t2 for all the ions and lines. Provides methods to access some outputs (e.g. continuum in various units)
-The Cloudy model must have been run with the following punch or save in the input file:
-set punch prefix "MODEL" (can be changed) punch last radius ".rad" punch last continuum ".cont" punch last physical conditions ".phy" punch last overview ".ovr" punch last grain temperature ".gtemp_full" punch last element hydrogen ".ele_H" punch last element helium ".ele_He" punch last element carbon ".ele_C" punch last element nitrogen ".ele_N" punch last element oxygen ".ele_O" punch last element argon ".ele_Ar" punch last element neon ".ele_Ne" punch last element sulphur ".ele_S" punch last element chlorin ".ele_Cl" punch last element iron ".ele_Fe" punch last element silicon ".ele_Si" punch last linelist ".lin" "liste_of_lines.dat" punch last lines emissivity ".emis" ... liste of lines ... No need to be the same as liste_of_lines.dat end of lines in case of version >= 10: save last grain abundances ".gabund_full"' save last grain D/G ratio ".gdgrat_full"'
-usage: m1 = CloudyModel('MODEL') plot(m1.radius,m1.get_emis('Fe_3__5271A')) plot m1.depth,m1.te
-y = 'e("TOTL__4363A")/e("O__3__5007A")' e = lambda line: m1.get_emis(line) plot m1.te,eval(y)
-self.n_zones : number of zones Cloudy used. self.depth : depth in cm, ndarray(n_zones) self.radius : radius in cm, ndarray(n_zones) self.r_in and r_out : minimum and maximum of self.radius self.ne and nH : electron and H-densities in cm-3, ndarray(n_zones) self.te : electron temperature in K, ndarray(n_zones) self.nenH and tenenH : some products of the previous. self.T0 and self.t2: mean T and t2 for H+
-self.n_lines : number of emission lines in the .lin file self.line_labels : lines names, ndarray(n_lines,dtype='S20') self.get_line : line intensities
-some lines can appear more than one time in the list of lines, they then have a _N at the end of the label. the following deal with this: self.slines : array of uniq values for lines (single lines) self.n_slines : number of self.rlines : array of reduced labels : for duplicate lines, removing the trailing _N
-dev comments:
-GPL Chris .Mor isset @Gma il.co m
-def __init__ | -( | -- | self, | -
- | - | - | model_name, | -
- | - | - | verbose = None , |
-
- | - | - | read_all_ext = True , |
-
- | - | - | read_rad = True , |
-
- | - | - | read_phy = True , |
-
- | - | - | read_emis = True , |
-
- | - | - | read_grains = False , |
-
- | - | - | read_cont = True , |
-
- | - | - | read_heatcool = False , |
-
- | - | - | read_lin = False , |
-
- | - | - | read_opd = False , |
-
- | - | - | list_elem = LIST_ELEM , |
-
- | - | - | distance = None , |
-
- | - | - | line_is_log = False , |
-
- | - | - | emis_is_log = True , |
-
- | - | - | ionic_str_key = 'ele_' |
-
- | ) | -- |
Cloudy model object.
-param: - - model_name [str] The name of the model to be read. - - verbose [int] level of verbosity as defined by pyCloudy.my_logging. - - read_all_ext [boolean] if True, all the extensions are read, if False no extension (empty object). - - read_emis [boolean] if True, emissivities .emis file_ is read and interpreted. - - read_grains [boolean] if True, grains .gtemp, .gdgrat and .gabund files are read and interpreted. - - read_cont [boolean] if True, continuum .cont file_ is read and interpreted. - - list_elem [list of str] list of elements X for which ionic abundance .ele_X file_ is read. - - distance [float] distance to the nebula in kpc - - line_is_log [boolean] if True, intensities in .lin file_ are in log, if False are in linear - - emis_is_log [boolean] if True, intensities in .emis file_ are in log, if False are in linear --
def __repr__ | -( | -- | self | ) | -- |
def __str__ | -( | -- | self | ) | -- |
def cool | -( | -- | self | ) | -- |
cooling [float array]
-array of colling (on r_range)-
def depth | -( | -- | self | ) | -- |
depth [float array] (cm)
-array of depth (on r_range)-
def dr | -( | -- | self | ) | -- |
size of each zone [float array] (cm)
-array of dr (on r_range)-
def drff | -( | -- | self | ) | -- |
size of each zone taking into account filling factor [float array] (cm)
-array of dr (on r_range)-
def dv | -( | -- | self | ) | -- |
volume of each zone [float array] (cm^3)
-array of volume element (on r_range)-
def dvff | -( | -- | self | ) | -- |
volume of each zone taking into account filling factor [float array] (cm^3)
-array of volume element (on r_range)-
def emis_from_pyneb | -( | -- | self, | -
- | - | - | emis_labels = None , |
-
- | - | - | atoms = None |
-
- | ) | -- |
change the emissivities using PyNeb. -emis_labels: list of line to be changed. If unset, all the lines will be changed. You may generate emis_lables - this way (here to select only S lines): S_labels = [emis for emis in CloudyModel.emis_labels if emis[0:2] == 'S_'] -atoms: dictionary of pyneb.Atom objects to be used. If unset, all the atoms will be build - using pyneb. This allows the user to mix atomic dataset by creating atoms outside CloudyModel. Keys - of the dictionnary pointing to None instaed of an Atom will not change the corresponding emissivities. --
def ff | -( | -- | self | ) | -- |
filling factor [float array]
-array of filling factor (on r_range)-
def gabund | -( | -- | self | ) | -- |
def gdgrat | -( | -- | self | ) | -- |
def get_ab_ion_rad | -( | -- | self, | -
- | - | - | elem = None , |
-
- | - | - | ion = None |
-
- | ) | -- |
get_ab_ion_rad(X, i) =
param: - elem [str] element - ion [str or int] ionic state of ion -return: - Ionic fraction integrated on the radius weighted by nH --
def get_ab_ion_rad_ne | -( | -- | self, | -
- | - | - | elem = None , |
-
- | - | - | ion = None |
-
- | ) | -- |
get_ab_ion_rad_ne(X, i) =
param: - elem [str] element - ion [str or int] ionic state of ion -return: - ionic fraction integrated on the radius weighted by ne.nH --
def get_ab_ion_vol | -( | -- | self, | -
- | - | - | elem = None , |
-
- | - | - | ion = None |
-
- | ) | -- |
get_ab_ion_vol(X, i) =
param: - elem [str] element - ion [str or int] ionic state of ion -return: - Ionic fraction integrated on the volume weighted by hydrogen density --
def get_ab_ion_vol_ne | -( | -- | self, | -
- | - | - | elem = None , |
-
- | - | - | ion = None |
-
- | ) | -- |
get_ab_ion_vol_ne(X, i) =
param: - elem [str] element - ion [str or int] ionic state of ion -return: - ionic fraction integrated on the volume weighted by ne.nH --
def get_cont_x | -( | -- | self, | -
- | - | - | unit = 'Ryd' |
-
- | ) | -- |
Return the wavelength/energy/frequency array.
-param: - unit : one of ['Ryd','eV','Ang','mu','cm-1','Hz'] -return: - continuum X: wavelength, energys, wv number, or frequency --
def get_cont_y | -( | -- | self, | -
- | - | - | cont = 'incid' , |
-
- | - | - | unit = 'es' , |
-
- | - | - | dist_norm = 'at_earth' |
-
- | ) | -- |
param: - cont : one of ['incid','trans','diffout','ntrans','reflec'] - unit : one of ['esc', 'ec3','es','esA','esAc','esHzc','Jy','Q', 'Wcmu', 'phs'] - dist_norm : one of ['at_earth', 'r_out', a float for a distance in cm] -return: - continuum flux or intensity -
First define which of the 5 continua will be return-
def get_emis | -( | -- | self, | -
- | - | - | ref | -
- | ) | -- |
return the emissivities(radius) of the given line array float
-Return emissivity. -param: - ref can be a label or a number (starting at 0 with the first line) --
def get_emis_rad | -( | -- | self, | -
- | - | - | ref | -
- | ) | -- |
get_emis_rad(ref) =
Return integration of the emissivity on the radius -param: - ref can be a label or a number (starting at 0 with the first line) --
def get_emis_vol | -( | -- | self, | -
- | - | - | ref, | -
- | - | - | at_earth = False |
-
- | ) | -- |
get_emis_vol(ref, [at_earth]) =
Return integration of the emissivity on the volume (should be the line intensity if r_out_cut>=r_out) -param: - ref can be a label or a number (starting at 0 with the first line) --
def get_G0 | -( | -- | self, | -
- | - | - | lam_min = 913 , |
-
- | - | - | lam_max = 1e8 , |
-
- | - | - | dist_norm = 'r_out' , |
-
- | - | - | norm = 1.6e-6 , |
-
- | - | - | unit = 'Wm' |
-
- | ) | -- |
get_G0 = integral(f_lambda .
-dlambda) Between lam_min and lam_max (Ang), normalized by norm, in unit of W.m-2 or erg.cm-3
- -def get_Ha_EW | -( | -- | self | ) | -- |
Ha_EW = -$$ x I$_^{line}$ / $.F_^{cont}$.
-Halpha Equivalent Width: -Returns -6563 * I(H__1__6563A) / continuum(6563) -where continuum(6563) is estimated by looking for the minimum of the net transmited continuum between - 6260 and 6560 on one side, and 6560 and 6860 on the other side, and meaning them. --
def get_Hb_EW | -( | -- | self | ) | -- |
Hb_EW = -$$ x I$_^{line}$ / $.F_^{cont}$.
-Hbeta Equivalent Width: -Returns -4861 * I(H__1__4861A) / continuum(4860) -where continuum(4860) is estimated by looking for the minimum of the net transmited continuum between - 4560 and 4860 on one side, and 4860 and 5160 on the other side, and meaning them. --
def get_Hb_SB | -( | -- | self | ) | -- |
Hb_SB = I$_ / (Rout^2 * pi * 206265.
-^2)$
Hbeta surface brightness: -Returns Ibeta / (Rout**2 * pi * 206265.**2) --
def get_ionic | -( | -- | self, | -
- | - | - | elem, | -
- | - | - | ion | -
- | ) | -- |
param - elem [str] element - ion [str or int] ionic state of ion -return: - ionic fraction of (elem, ion). --
def get_line | -( | -- | self, | -
- | - | - | ref | -
- | ) | -- |
Return line intensity. -ref can be a label or a number (starting at 0 with the first line) --
def get_ne_emis | -( | -- | self, | -
- | - | - | ref | -
- | ) | -- |
get_ne_emis(ref) =
integral of the electron density on the volume, weighted by emissivity of a given line -param: - ref [int or str] line reference -return: - [float] --
def get_ne_ion_rad_ne | -( | -- | self, | -
- | - | - | elem = None , |
-
- | - | - | ion = None |
-
- | ) | -- |
get_ne_ion_rad_ne(X, i) =
param: - elem [str] element - ion [str or int] ionic state of ion -return: - electron density integrated on the radius weighted by ne.nH.Xi/X --
def get_ne_ion_vol_ne | -( | -- | self, | -
- | - | - | elem = None , |
-
- | - | - | ion = None |
-
- | ) | -- |
get_ne_ion_vol_ne(X, i) =
param: - elem [str] element - ion [str or int] ionic state of ion -return: - electron density integrated on the volume weighted by ne.nH.Xi/X --
def get_T0_emis | -( | -- | self, | -
- | - | - | ref | -
- | ) | -- |
get_T0_emis(ref) =
integral of the electron temperature on the volume, weighted by emissivity of a given line -param: - ref [int or str] line reference -return: - [float] --
def get_T0_emis_rad | -( | -- | self, | -
- | - | - | ref | -
- | ) | -- |
get_T0_emis_rad(ref) =
integral of the electron temperature on the radius, weighted by emissivity of a given line -param: - ref [int or str] line reference -return: - [float] --
def get_T0_ion_rad | -( | -- | self, | -
- | - | - | elem = None , |
-
- | - | - | ion = None |
-
- | ) | -- |
get_T0_ion_rad(X, i) =
param: - elem [str] element - ion [str or int] ionic state of ion -return: - Electron temperature integrated on the radius weighted by ionic abundance --
def get_T0_ion_rad_ne | -( | -- | self, | -
- | - | - | elem = None , |
-
- | - | - | ion = None |
-
- | ) | -- |
get_T0_ion_rad_ne(X, i) =
param: - elem [str] element - ion [str or int] ionic state of ion -return: - electron temperature integrated on the radius weighted by ne.nH.Xi/X --
def get_T0_ion_vol | -( | -- | self, | -
- | - | - | elem = None , |
-
- | - | - | ion = None |
-
- | ) | -- |
get_T0_ion_vol(X, i) =
param: - elem [str] element - ion [str or int] ionic state of ion -return: - Electron temperature integrated on the volume weighted by ionic abundance --
def get_T0_ion_vol_ne | -( | -- | self, | -
- | - | - | elem = None , |
-
- | - | - | ion = None |
-
- | ) | -- |
get_T0_ion_vol_ne(X, i) =
param: - elem [str] element - ion [str or int] ionic state of ion -return: - electron temperature integrated on the volume weighted by ne.nH.Xi/X --
def get_t2_emis | -( | -- | self, | -
- | - | - | ref | -
- | ) | -- |
get_t2_emis(ref) =
t2(emissivity) integrated on the volume, weigthed by the emissivity -param: - ref [int or str] line reference -return: - [float] --
def get_t2_ion_rad_ne | -( | -- | self, | -
- | - | - | elem = None , |
-
- | - | - | ion = None |
-
- | ) | -- |
get_t2_ion_vol_ne(X, i) =
param: - elem [str] element - ion [str or int] ionic state of ion -return: - t2 integrated on the radius weighted by ne.nH.X^i/X --
def get_t2_ion_vol_ne | -( | -- | self, | -
- | - | - | elem = None , |
-
- | - | - | ion = None |
-
- | ) | -- |
get_t2_ion_vol_ne(X, i) =
param: - elem [str] element - ion [str or int] ionic state of ion -return: - t2 integrated on the volume weighted by ne.nH.X^i/X --
def gtemp | -( | -- | self | ) | -- |
def H0_mass | -( | -- | self | ) | -- |
H0_mass = [solar mass].
Return the H0 mass of the nebula in solar mass-
def H_mass | -( | -- | self | ) | -- |
H0_mass = [solar mass].
Return the H mass of the nebula in solar mass-
def Hbeta | -( | -- | self | ) | -- |
Hbeta = [solar mass].
Return the intensity of Hbeta-
def heat | -( | -- | self | ) | -- |
heating [float array]
-array of heating (on r_range)-
def Hp_mass | -( | -- | self | ) | -- |
Hp_mass = [solar mass].
Return the H+ mass of the nebula in solar mass-
def is_valid_ion | -( | -- | self, | -
- | - | - | elem, | -
- | - | - | ion | -
- | ) | -- |
is_valid_ion(elem, ion) return True if elem, ion is available in get_ionic.
-param: - elem [str] element - ion [str or int] ionic state of ion -return: - [boolean] True if elem,ion has value for get_ionic(elem, ion) --
def log_U | -( | -- | self | ) | -- |
log(U) in each zone [float array], with U(r) =
U = Phi0 * (r_in/rarius) / (nH c)-
def log_U_mean | -( | -- | self | ) | -- |
log_U_mean = [float]
log of mean value of U on the volume-
def log_U_mean_ne | -( | -- | self | ) | -- |
log_U_mean_ne = [float]
log of mean value of U on the volume weighted by ne.nH-
def n_zones | -( | -- | self | ) | -- |
number of zones [int]
- -def ne | -( | -- | self | ) | -- |
electron density [float array] (cm^-3)
-array of electron density (on r_range)-
def nenH | -( | -- | self | ) | -- |
ne.nH [float array] (cm^-6)
-array of ne.nH (on r_range)-
def nH | -( | -- | self | ) | -- |
Hydrogen density [float array] (cm^-3)
-array of Hydrogen density (on r_range)-
def nH_mean | -( | -- | self | ) | -- |
mean of the Hydrogen density over the volume -return: - [float] --
def plot_spectrum | -( | -- | self, | -
- | - | - | xunit = 'eV' , |
-
- | - | - | cont = 'ntrans' , |
-
- | - | - | yunit = 'es' , |
-
- | - | - | ax = None , |
-
- | - | - | xlog = True , |
-
- | - | - | ylog = True , |
-
- | - | - | kargv | -
- | ) | -- |
plot the spectrum of the model. -parameters: - - xunit ['eV'] - - cont ['ntrans'] - - yunit ['es'] - - ax - - xlog [True] - - ylog [True] - - **kargv passed to the plot. --
def print_lines | -( | -- | self, | -
- | - | - | ref = None , |
-
- | - | - | norm = None , |
-
- | - | - | at_earth = False , |
-
- | - | - | use_emis = True |
-
- | ) | -- |
Print line intensities -param: - at_earth [boolean] if True, divide the intensity by 4.pi.distance^2 - ref [int or str] reference of a line (if None, all lines are printed) - norm [int or str] reference of a line to normalize the intensities --
def print_stats | -( | -- | self | ) | -- |
def r_range | -( | -- | self | ) | -- |
Boolean array defining the range used for the radial parameters (such as ne, ionic, integrals, etc) Defined by r_in_cut and r_out_cut.
-boolean array. True for r_in_cut < radius < r_out_cut, False elsewhere. -Used in most of the parameter calls such as te, get_emis, get_ionic, etc-
def rad_integ | -( | -- | self, | -
- | - | - | a | -
- | ) | -- |
rad_integ(a) =
integral of a on the radius-
def rad_mean | -( | -- | self, | -
- | - | - | a, | -
- | - | - | b = 1. |
-
- | ) | -- |
rad_mean(a, b) =
Return the mean value of a weighted by b on the radius-
def radius | -( | -- | self | ) | -- |
radius [float array] (cm)
-array of radius (on r_range)-
def read_outputs | -( | -- | self, | -
- | - | - | extension, | -
- | - | - | delimiter = '\t' , |
-
- | - | - | comments = ';' , |
-
- | - | - | names = True , |
-
- | - | - | kwargs | -
- | ) | -- |
def T0 | -( | -- | self | ) | -- |
Mean Temperature .
def t2 | -( | -- | self | ) | -- |
t2 a la Peimbert
def te | -( | -- | self | ) | -- |
Electron temperature [float array] (K)
-array of electron temperature (on r_range)-
def tenenH | -( | -- | self | ) | -- |
te.ne.nH float array
-array of Te.ne.nH (on r_range)-
def thickness | -( | -- | self | ) | -- |
thickness [float array] (cm)
-array of thickness (on r_range)-
def vol_integ | -( | -- | self, | -
- | - | - | a | -
- | ) | -- |
vol_integ(a) =
integral of a on the volume-
def vol_mean | -( | -- | self, | -
- | - | - | a, | -
- | - | - | b = 1. |
-
- | ) | -- |
vol_mean(a, b) =
Return the mean value of a weighted by b on the volume-
def zones | -( | -- | self | ) | -- |
array of zones [int array]
- -aborted | -
abund | -
C3D_comments | -
calling | -
cautions | -
cloudy_version | -
cloudy_version_major | -
comments | -
cool_full | -
date_model | -
depth_full | -
array of depths, r_range unused [float array] (cm)
- -distance | -
distance to the object (kpc)
- -dr_full | -
array of thickness element of each zone, r_range unused [float array] (cm)
- -dv_full | -
array of volume element of each zone, r_range unused float array
- -emis_full | -
emis_is_log | -
emis_labels | -
empty_model | -
ff_full | -
array of filling factor, r_range unused [float]
- -gabund_full | -
gabund_labels | -
gas_mass_per_H | -
gasize | -
gdgrat_full | -
gdgrat_labels | -
gdsize | -
gsize | -
gtemp_full | -
gtemp_labels | -
H_mass_full | -
Hbeta_full | -
heat_full | -
info | -
intens | -
ionic_full | -
ionic_names | -
line_is_log | -
line_labels | -
lines | -
liste_elem | -
log_ | -
logging tool [my_logging object]
- -model_name | -
name of the model [str]
- -model_name_s | -
n_elements | -
n_emis | -
n_gabund | -
n_gdgrat | -
n_gtemp | -
n_ions | -
n_lines | -
n_zones_full | -
total number of zones, r_range unused [int]
- -ne_full | -
array of electron density, r_range unused [float] (cm^-3)
- -nenH_full | -
array of ne.nH, r_range unused [float] (cm^-6)
- -nenHff2_full | -
nH_full | -
array of Hydrogen density, r_range unused [float] (cm^-3)
- -nHff_full | -
opd_absorp | -
opd_energy | -
opd_scat | -
opd_total | -
out | -
out_exists | -
Phi | -
phi | -
Phi0 | -
plan_par | -
Q | -
Q0 | -
r_in | -
Initial radius [float] (cm)
- -r_out | -
Final radius [float] (cm)
- -radius_full | -
array of radius, r_range unused [float array] (cm)
- -rlines | -
slines | -
te_full | -
array of electron temperature, r_range unused [float] (K)
- -Teff | -
tenenH_full | -
array of te.ne.nH, r_range unused float
- -theta | -
thickness_full | -
total thickness of the nebula, r_range not used [float] (cm)
- -warnings | -
zones_full | -
arrays of zones, r_range unused [int array]
- -
-
|
- -static | -
-
|
- -static | -
-
|
- -static | -
User defined inner radius of the nebula [float] (cm)
- -
-
|
- -static | -
User defined outer radius of the nebula [float] (cm).
-For example: r_out_cut = m.radius[m.zones[m.ionic['H'][1] < 0.2][0]]. It is used to define r_range and thus all the radial properties of the nebula
- -
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
This is the complete list of members for C3D, including all inherited members.
-__init__ | C3D | |
angles | C3D | static |
calling | C3D | |
center | C3D | |
config_profile | C3D | |
cub_coord | C3D | |
del_emis(self, ref) | C3D | |
del_ionic(self, elem, ion) | C3D | |
del_profile | C3D | |
dims | C3D | |
emis_labels | C3D | |
ff(self) | C3D | |
file_coeffs | C3D | |
get_ab_ion_vol | C3D | |
get_ab_ion_vol_ne | C3D | |
get_emis(self, ref) | C3D | |
get_emis_list | C3D | |
get_emis_vol | C3D | |
get_ionic(self, elem, ion) | C3D | |
get_ionic_list(self) | C3D | |
get_profile | C3D | |
get_profile_list(self) | C3D | |
get_RGB | C3D | |
get_T0_emis(self, ref) | C3D | |
get_T0_ion_vol(self, elem, ion) | C3D | |
get_T0_ion_vol_ne(self, elem, ion) | C3D | |
get_t2_emis(self, ref) | C3D | |
get_t2_ion_vol(self, elem, ion) | C3D | |
get_t2_ion_vol_ne(self, elem, ion) | C3D | |
get_vel_emis(self, ref) | C3D | |
get_vel_ionic(self, elem, ion) | C3D | |
H0_mass(self) | C3D | |
H_mass(self) | C3D | |
Hp_mass(self) | C3D | |
im_B | C3D | |
im_G | C3D | |
im_R | C3D | |
interp_method | C3D | |
log_ | C3D | |
m | C3D | |
n_dim | C3D | |
ne(self) | C3D | |
nH(self) | C3D | |
phi_tab | C3D | |
plan_sym | C3D | |
plot_profiles | C3D | |
print_all_emis_vol | C3D | |
profile_function | C3D | static |
r_interp_method | C3D | |
r_max | C3D | |
relative_depth | C3D | |
save_coeffs(self, file_coeffs) | C3D | |
set_velocity(self, args, kwargs) | C3D | |
size_spectrum | C3D | static |
sqpi | C3D | static |
te(self) | C3D | |
theta_tab | C3D | |
v_turb | C3D | static |
vel_max | C3D | static |
vel_tab | C3D | |
vol_integ(self, a) | C3D | |
vol_mean(self, a, b) | C3D | |
x_unit | C3D |
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
Inherits object.
--Public Member Functions | |
def | __init__ |
def | save_coeffs (self, file_coeffs) |
def | nH (self) |
def | ne (self) |
def | te (self) |
def | ff (self) |
def | get_emis (self, ref) |
def | get_emis_list |
def | del_emis (self, ref) |
def | get_emis_vol |
def | Hp_mass (self) |
Hp_mass = ![]() | |
def | H0_mass (self) |
H0_mass = ![]() | |
def | H_mass (self) |
H_mass = ![]() | |
def | get_ionic (self, elem, ion) |
def | get_ionic_list (self) |
def | del_ionic (self, elem, ion) |
def | print_all_emis_vol |
def | vol_integ (self, a) |
def | vol_mean (self, a, b) |
def | get_T0_emis (self, ref) |
def | get_t2_emis (self, ref) |
def | get_T0_ion_vol (self, elem, ion) |
def | get_t2_ion_vol (self, elem, ion) |
def | get_T0_ion_vol_ne (self, elem, ion) |
def | get_t2_ion_vol_ne (self, elem, ion) |
def | get_ab_ion_vol |
def | get_ab_ion_vol_ne |
def | get_vel_ionic (self, elem, ion) |
def | get_vel_emis (self, ref) |
def | set_velocity (self, args, kwargs) |
def | config_profile |
def | get_profile |
def | get_profile_list (self) |
def | del_profile |
def | plot_profiles |
def | get_RGB |
-Public Attributes | |
log_ | |
calling | |
interp_method | |
r_interp_method | |
n_dim | |
dims | |
center | |
plan_sym | |
r_max | |
m | |
file_coeffs | |
theta_tab | |
phi_tab | |
emis_labels | |
x_unit | |
cub_coord | |
relative_depth | |
vel_tab | |
im_R | |
im_G | |
im_B | |
-Static Public Attributes | |
tuple | sqpi = np.sqrt(np.pi) |
-Properties | |
angles = property(_get_angles, _set_angles, None, None) | |
v_turb = property(_get_v_turb, _set_v_turb, None, 'Turbulent velocity (km/s)') | |
size_spectrum = property(_get_size_spectrum, _set_size_spectrum, None, "size of the array to compute line profile (pixels)") | |
vel_max = property(_get_vel_max, _set_vel_max, None, "Line profiles computed between -vel_max and +vel_max") | |
profile_function = property(_get_pf, _set_pf, None, 'Profile function for the line profile f(x, zeta_0)') | |
def __init__ | -( | -- | self, | -
- | - | - | list_of_models, | -
- | - | - | dims = 51 , |
-
- | - | - | center = True , |
-
- | - | - | angles = None , |
-
- | - | - | n_dim = 2 , |
-
- | - | - | file_coeffs = None , |
-
- | - | - | interp_method = None , |
-
- | - | - | plan_sym = False , |
-
- | - | - | r_max = None , |
-
- | - | - | r_interp_method = 'numpy' |
-
- | ) | -- |
Object to create and manage pseudo-3D models. -param: - - list_of_models [list of pyCloudy.CloudyModel] list of models, as obtained e.g. by pyCloudy.load_models - - dims [int 1- or 3-elements array-list] dimension of the cube. May be different. One may be 1. - - center [boolean] if True, the coordinate-center is in the center of the cube, otherwise it's in the corner. - - angles [3-elements array-list] (degrees) rotation angles - - n_dims [int] - - file_coeffs [str] file_ to store the coeffs (not used yet) - - interp_method [str] method used for the interpolation of theta and phi - - plan_sym [Boolean] If True, the theta angles are only from 0 to 90, negative values are obtained by -mirror symmetry on the equatorial plane - - r_max [float] (cm) Geometrical size of the cube - - r_interp_method [str] method used for the radial interpolation (numpy or scipy) --
def config_profile | -( | -- | self, | -
- | - | - | size_spectrum = 21 , |
-
- | - | - | vel_max = 20. , |
-
- | - | - | v_turb = 5. , |
-
- | - | - | profile_function = 'gaussian' |
-
- | ) | -- |
param: - - size_spectrum [int] size of the array to compute emission line profiles - - vel_max [float] (km/s) the line profiles are computed on the [-vel_max, vel_max] array - - v_turb [float] (km/s) turbulent velocity - - profile_function ['gaussian' or a function] shape of the profile. If not 'gaussian', a user defined -function must be provide, taking x and zeta_0 as arguments. --
def del_emis | -( | -- | self, | -
- | - | - | ref | -
- | ) | -- |
Delete the emissivity cube associated to the reference --
def del_ionic | -( | -- | self, | -
- | - | - | elem, | -
- | - | - | ion | -
- | ) | -- |
Delete a ionic fraction cube --
def del_profile | -( | -- | self, | -
- | - | - | ref = None , |
-
- | - | - | axis = 'x' |
-
- | ) | -- |
Delete a line profile cube. --
def ff | -( | -- | self | ) | -- |
def get_ab_ion_vol | -( | -- | self, | -
- | - | - | elem = None , |
-
- | - | - | ion = None |
-
- | ) | -- |
Return Integ(Xi/X.nH / Integ(nH) --
def get_ab_ion_vol_ne | -( | -- | self, | -
- | - | - | elem = None , |
-
- | - | - | ion = None |
-
- | ) | -- |
Return Integ(Xi/X.ne.nH / Integ(ne.nH) --
def get_emis | -( | -- | self, | -
- | - | - | ref | -
- | ) | -- |
Interpolate the emissivity of the referred line on the 3D cube -param: - ref [int or str] line reference -return: - 3D cube of emissivities (erg/s/cm3) --
def get_emis_list | -( | -- | self, | -
- | - | - | available = False |
-
- | ) | -- |
Return the list of labels for the line emissivities --
def get_emis_vol | -( | -- | self, | -
- | - | - | ref, | -
- | - | - | at_earth = False |
-
- | ) | -- |
Compute the intensity of a line. -Parameters: - - ref [int or str]: line reference - - at_earth: if True (not default): the result is divided by 4.pi.D2 -return: - integral of the emissivity of the referred line on the volume of cube (erg/s) --
def get_ionic | -( | -- | self, | -
- | - | - | elem, | -
- | - | - | ion | -
- | ) | -- |
Return the 3D cube of ionic fraction corresponding to elem, ion --
def get_ionic_list | -( | -- | self | ) | -- |
Return the labels of the computed ionic fraction cubes --
def get_profile | -( | -- | self, | -
- | - | - | ref, | -
- | - | - | axis = 'x' |
-
- | ) | -- |
return: - the emission line profiles as a 3D spectral data of shape (size_spectrum, dim1, dim2), - where dim1 and dim2 are the dimensions in the directions not being the axis. -param: - ref [int or str] line reference - axis [one of 'x', 'y', 'z', 0, 1, 2] projection axis for the line profile --
def get_profile_list | -( | -- | self | ) | -- |
Return the labels of the computed line profiles --
def get_RGB | -( | -- | self, | -
- | - | - | list_emis = [0 , |
-
- | - | - | axes = 1 |
-
- | ) | -- |
Return a 3-colored imaged. - -Parameters: - - list_emis: list of indices of the line to be used. Default = [0, 1, 2], associated to R, G, B. -Elements of the list are integers or line references. - - axes: on which the projection is done. - -Usage: - plt.imshow(m3d.get_RGB(['N__2__6548A', 'O__3__5007A', 'H__1__4861A'])) --
def get_T0_emis | -( | -- | self, | -
- | - | - | ref | -
- | ) | -- |
Return Integ(Te.Emiss(ref)) / Integ(Emiss(ref)) --
def get_T0_ion_vol | -( | -- | self, | -
- | - | - | elem, | -
- | - | - | ion | -
- | ) | -- |
Return Integ(Te.nH.Xi/X) / Integ(nH.Xi/X) --
def get_T0_ion_vol_ne | -( | -- | self, | -
- | - | - | elem, | -
- | - | - | ion | -
- | ) | -- |
Return Integ(Te.ne.nH.Xi/X) / Integ(ne.nH.Xi/X) --
def get_t2_emis | -( | -- | self, | -
- | - | - | ref | -
- | ) | -- |
Return Integ((Te-T0)**2.Emiss(ref)) / Integ(Emiss(ref)) / T0**2 --
def get_t2_ion_vol | -( | -- | self, | -
- | - | - | elem, | -
- | - | - | ion | -
- | ) | -- |
Return Integ((Te-T0)**2.nH.Xi/X) / Integ(nH.Xi/X) / T0**2 --
def get_t2_ion_vol_ne | -( | -- | self, | -
- | - | - | elem, | -
- | - | - | ion | -
- | ) | -- |
Return Integ((Te-T0)**2.ne.nH.Xi/X) / Integ(ne.nH.Xi/X) / T0**2 --
def get_vel_emis | -( | -- | self, | -
- | - | - | ref | -
- | ) | -- |
return the velocity weigthed by the line emissivity -param: - ref [int or str] a line reference --
def get_vel_ionic | -( | -- | self, | -
- | - | - | elem, | -
- | - | - | ion | -
- | ) | -- |
return the velocity weigthed by the ionic fraction -param: - elem [str] element - ion [int] ionic stage-
def H0_mass | -( | -- | self | ) | -- |
H0_mass = [solar mass].
Return the H0 mass of the nebula in solar mass-
def H_mass | -( | -- | self | ) | -- |
H_mass = [solar mass].
Return the H mass of the nebula in solar mass-
def Hp_mass | -( | -- | self | ) | -- |
Hp_mass = [solar mass].
Return the H+ mass of the nebula in solar mass-
def ne | -( | -- | self | ) | -- |
def nH | -( | -- | self | ) | -- |
def plot_profiles | -( | -- | self, | -
- | - | - | Nx = 10 , |
-
- | - | - | Ny = 10 , |
-
- | - | - | ref = None , |
-
- | - | - | axis = 'x' , |
-
- | - | - | normalized = True , |
-
- | - | - | i_fig = None , |
-
- | - | - | transp = True , |
-
- | - | - | color = 'yellow' , |
-
- | - | - | pos_x0 = 0. , |
-
- | - | - | pos_y0 = 0. , |
-
- | - | - | pos_dx = 1.0 , |
-
- | - | - | pos_dy = 1.0 |
-
- | ) | -- |
Still experimental. Some problem with the size and shape of the axes. --
def print_all_emis_vol | -( | -- | self, | -
- | - | - | norm = None |
-
- | ) | -- |
Print the intensities of all the lines -Parameter: - - norm [str or int]: line ref to nromalize the intnesities --
def save_coeffs | -( | -- | self, | -
- | - | - | file_coeffs | -
- | ) | -- |
def set_velocity | -( | -- | self, | -
- | - | - | args, | -
- | - | - | kwargs | -
- | ) | -- |
Call cub_coord.set_velocity with the same parameters and reset profiles. --
def te | -( | -- | self | ) | -- |
def vol_integ | -( | -- | self, | -
- | - | - | a | -
- | ) | -- |
Volume integrator --
def vol_mean | -( | -- | self, | -
- | - | - | a, | -
- | - | - | b | -
- | ) | -- |
Volume weighted integrator. -Return Integ(a*b) / Integ(b) -Parameters: - - a: to be integrated - - b: the weigth --
calling | -
center | -
cub_coord | -
dims | -
emis_labels | -
file_coeffs | -
im_B | -
im_G | -
im_R | -
interp_method | -
log_ | -
m | -
n_dim | -
phi_tab | -
plan_sym | -
r_interp_method | -
r_max | -
relative_depth | -
-
|
- -static | -
theta_tab | -
vel_tab | -
x_unit | -
-
|
- -static | -
-
|
- -static | -
-
|
- -static | -
-
|
- -static | -
-
|
- -static | -
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
This is the complete list of members for CubCoord, including all inherited members.
-__init__ | CubCoord | |
angles | CubCoord | static |
calling | CubCoord | |
cell_size(self) | CubCoord | |
coeff_x | CubCoord | |
coeff_y | CubCoord | |
coeff_z | CubCoord | |
delta_x(self) | CubCoord | |
delta_y(self) | CubCoord | |
delta_z(self) | CubCoord | |
dim_x | CubCoord | |
dim_y | CubCoord | |
dim_z | CubCoord | |
log_ | CubCoord | |
N | CubCoord | |
phi(self) | CubCoord | |
r | CubCoord | |
r(self) | CubCoord | |
set_velocity | CubCoord | |
shift_x | CubCoord | |
shift_y | CubCoord | |
shift_z | CubCoord | |
theta(self) | CubCoord | |
vel | CubCoord | |
vel_defined | CubCoord | |
vel_z | CubCoord | |
x(self) | CubCoord | |
x_vec | CubCoord | |
y(self) | CubCoord | |
y_vec | CubCoord | |
z(self) | CubCoord | |
z_vec | CubCoord |
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
Inherits object.
--Public Member Functions | |
def | __init__ |
def | x (self) |
x is the cube of y 1rst cartesian coordinates More... | |
def | y (self) |
y is the cube of y 2nd cartesian coordinates More... | |
def | z (self) |
z is the cube of y 3rd cartesian coordinates More... | |
def | r (self) |
r = ![]() | |
def | theta (self) |
theta ![]() | |
def | phi (self) |
phi ![]() | |
def | delta_x (self) |
delta_x = (x[-1,0,0]-x[0,0,0])/(dim_x -1) More... | |
def | delta_y (self) |
delta_y = (x[-1,0,0]-x[0,0,0])/(dim_x -1) More... | |
def | delta_z (self) |
delta_x = (x[-1,0,0]-x[0,0,0])/(dim_x -1) More... | |
def | cell_size (self) |
cell_size = delta_x * delta_y * delta_z More... | |
def | set_velocity |
-Public Attributes | |
log_ | |
calling | |
dim_x | |
dim_y | |
dim_z | |
N | |
coeff_x | |
coeff_y | |
coeff_z | |
shift_x | |
shift_y | |
shift_z | |
x_vec | |
y_vec | |
z_vec | |
vel_defined | |
r | |
vel_z | |
vel | |
-Properties | |
angles = property(_get_angles, _set_angles, None, "Angles must be a 3-elements list or array. Unit: Degrees") | |
angles are in degrees. More... | |
Object to generate and manage cube of coordinates
-def __init__ | -( | -- | self, | -
- | - | - | dims, | -
- | - | - | center = True , |
-
- | - | - | coeffs = 1. , |
-
- | - | - | shift = 0. , |
-
- | - | - | unit = 'deg' , |
-
- | - | - | angles = None |
-
- | ) | -- |
params: - - dims [int 1- or 3-elements array-list] dimension of the cube. May be different. One may be 1. - - center [boolean] if True, the coordinate-center is in the center of the cube, otherwise it's in the corner. - - coeffs [int 1- or 3-elements array-list] multiplicative coefficients to apply to cartesian coordinates. - - shift [int 1- or 3-elements array-list] shift applied to the cartesian coordinates, before rotation - - unit ['deg' or 'rad'] unit for the theta and phi angles. Default is deg. - - angles [3-elements array-list] (degrees) rotation angles --
def cell_size | -( | -- | self | ) | -- |
cell_size = delta_x * delta_y * delta_z
- -def delta_x | -( | -- | self | ) | -- |
delta_x = (x[-1,0,0]-x[0,0,0])/(dim_x -1)
- -def delta_y | -( | -- | self | ) | -- |
delta_y = (x[-1,0,0]-x[0,0,0])/(dim_x -1)
- -def delta_z | -( | -- | self | ) | -- |
delta_x = (x[-1,0,0]-x[0,0,0])/(dim_x -1)
- -def phi | -( | -- | self | ) | -- |
phi
def r | -( | -- | self | ) | -- |
r =
def set_velocity | -( | -- | self, | -
- | - | - | velocity_law = 'poly' , |
-
- | - | - | params = [1. , |
-
- | - | - | user_function = None |
-
- | ) | -- |
Set a velocity field. -param: - - velocity_law [str] one of ['poly','user']. - - params [list] parameters passed to the velocity function - - user_function [function] if velocity_law is 'user', this function is used. Must return vel_x, vel_y, vel_z --
def theta | -( | -- | self | ) | -- |
theta
def x | -( | -- | self | ) | -- |
x is the cube of y 1rst cartesian coordinates
- -def y | -( | -- | self | ) | -- |
y is the cube of y 2nd cartesian coordinates
- -def z | -( | -- | self | ) | -- |
z is the cube of y 3rd cartesian coordinates
- -calling | -
coeff_x | -
coeff_y | -
coeff_z | -
dim_x | -
dim_y | -
dim_z | -
log_ | -
N | -
r | -
shift_x | -
shift_y | -
shift_z | -
vel | -
vel_defined | -
vel_z | -
x_vec | -
y_vec | -
z_vec | -
-
|
- -static | -
angles are in degrees.
-Changing value of angles updates the rotation matrix.
- -
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
This is the complete list of members for MdB, including all inherited members.
-__del__(self) | MdB | |
__init__ | MdB | |
__repr__(self) | MdB | |
base_name | MdB | |
calling | MdB | |
close_dB(self) | MdB | |
connect_dB(self) | MdB | |
connected | MdB | |
count_dB | MdB | |
exec_dB | MdB | |
get_cols | MdB | |
get_dtype | MdB | |
get_fields | MdB | |
host | MdB | |
log_ | MdB | |
MdBlog_ | MdB | static |
OVN_dic | MdB | |
port | MdB | |
select_dB | MdB | |
share_dB_cursor(self, m) | MdB | |
show_tables(self) | MdB | |
SQLdb | MdB | |
table | MdB | |
tmp_base_name | MdB | |
unix_socket | MdB | |
use_dB | MdB | |
use_dB_tmp | MdB | |
user_name | MdB | |
user_passwd | MdB |
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
Inherits object.
--Public Member Functions | |
def | __init__ |
def | __del__ (self) |
def | connect_dB (self) |
def | use_dB |
def | use_dB_tmp |
def | show_tables (self) |
def | share_dB_cursor (self, m) |
def | close_dB (self) |
def | exec_dB |
def | select_dB |
def | count_dB |
def | get_fields |
def | get_cols |
def | get_dtype |
def | __repr__ (self) |
-Public Attributes | |
log_ | |
calling | |
SQLdb | |
OVN_dic | |
base_name | |
tmp_base_name | |
user_name | |
user_passwd | |
port | |
host | |
unix_socket | |
table | |
connected | |
-Static Public Attributes | |
tuple | MdBlog_ = my_logging() |
def __init__ | -( | -- | self, | -
- | - | - | OVN_dic = None , |
-
- | - | - | base_name = 'OVN' , |
-
- | - | - | tmp_base_name = 'OVN_tmp' , |
-
- | - | - | user_name = 'OVN_user' , |
-
- | - | - | user_passwd = 'getenv' , |
-
- | - | - | host = 'localhost' , |
-
- | - | - | unix_socket = '/var/mysql/mysql.sock' , |
-
- | - | - | port = 3306 , |
-
- | - | - | connect = True , |
-
- | - | - | master_table = 'tab' |
-
- | ) | -- |
This is the package to deal with MySQL OVN database. -You must have MySQL or PyMySQL library installed. The latest is easier to get working, as it comes with its own -mysql client. - -Latter, we will also use the ODBC connector. Install the connector from MySQl: http://dev.mysql.com/downloads/connector/odbc/ -and then use pyodbc with: -cnxn = pyodbc.connect('DRIVER={MySQL ODBC 5.2 Driver};SERVER=127.0.0.1;DATABASE=OVN;UID=OVN_user;PWD=oiii5007;SOCKET=/var/mysql/mysql.sock')-
def __del__ | -( | -- | self | ) | -- |
def __repr__ | -( | -- | self | ) | -- |
def close_dB | -( | -- | self | ) | -- |
def connect_dB | -( | -- | self | ) | -- |
def count_dB | -( | -- | self, | -
- | - | - | from_ = None , |
-
- | - | - | where_ = None , |
-
- | - | - | commit = False |
-
- | ) | -- |
def exec_dB | -( | -- | self, | -
- | - | - | command, | -
- | - | - | format_ = 'dict' , |
-
- | - | - | return_descr = False , |
-
- | - | - | commit = False |
-
- | ) | -- |
def get_cols | -( | -- | self, | -
- | - | - | select_ = '*' , |
-
- | - | - | from_ = None |
-
- | ) | -- |
def get_dtype | -( | -- | self, | -
- | - | - | select_ = '*' , |
-
- | - | - | from_ = None |
-
- | ) | -- |
def get_fields | -( | -- | self, | -
- | - | - | from_ = None |
-
- | ) | -- |
def select_dB | -( | -- | self, | -
- | - | - | select_ = '*' , |
-
- | - | - | from_ = None , |
-
- | - | - | where_ = None , |
-
- | - | - | order_ = None , |
-
- | - | - | group_ = None , |
-
- | - | - | limit_ = 1 , |
-
- | - | - | format_ = 'dict' , |
-
- | - | - | dtype_ = None , |
-
- | - | - | commit = False |
-
- | ) | -- |
Usage: - dd, n = mdb.select_dB(select_ = 'L_1, L_26, L_21', from_='tab', - where_ = 'ref like "DIG12HR_"', - limit_ = 100000, - format_='numpy') - loglog(dd['L_26']/dd['L_1'], dd['L_21']/dd['L_1'], 'r+') --
def share_dB_cursor | -( | -- | self, | -
- | - | - | m | -
- | ) | -- |
def show_tables | -( | -- | self | ) | -- |
def use_dB | -( | -- | self, | -
- | - | - | base_name = None |
-
- | ) | -- |
def use_dB_tmp | -( | -- | self, | -
- | - | - | tmp_base_name = None |
-
- | ) | -- |
base_name | -
calling | -
connected | -
host | -
log_ | -
-
|
- -static | -
OVN_dic | -
port | -
SQLdb | -
table | -
tmp_base_name | -
unix_socket | -
user_name | -
user_passwd | -
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
This is the complete list of members for MdB_subproc, including all inherited members.
-__init__ | MdB_subproc | |
base_name | MdB_subproc | |
calling | MdB_subproc | |
close_dB(self) | MdB_subproc | |
connect_dB(self) | MdB_subproc | |
connected | MdB_subproc | |
exec_dB | MdB_subproc | |
host | MdB_subproc | |
log_ | MdB_subproc | |
MdBlog_ | MdB_subproc | static |
port | MdB_subproc | |
select_dB | MdB_subproc | |
table | MdB_subproc | |
tmp_base_name | MdB_subproc | |
unix_socket | MdB_subproc | |
user_name | MdB_subproc | |
user_passwd | MdB_subproc |
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
Inherits object.
--Public Member Functions | |
def | __init__ |
def | connect_dB (self) |
def | close_dB (self) |
def | exec_dB |
def | select_dB |
-Public Attributes | |
log_ | |
calling | |
base_name | |
tmp_base_name | |
user_name | |
user_passwd | |
port | |
host | |
unix_socket | |
table | |
connected | |
-Static Public Attributes | |
tuple | MdBlog_ = my_logging() |
Alternative way, when MySQLdb not available. Still in development. -
def __init__ | -( | -- | self, | -
- | - | - | OVN_dic = None , |
-
- | - | - | base_name = 'OVN' , |
-
- | - | - | tmp_base_name = 'OVN_tmp' , |
-
- | - | - | user_name = 'OVN_user' , |
-
- | - | - | user_passwd = 'getenv' , |
-
- | - | - | host = 'localhost' , |
-
- | - | - | unix_socket = '/var/mysql/mysql.sock' , |
-
- | - | - | port = 3306 , |
-
- | - | - | connect = True , |
-
- | - | - | master_table = None |
-
- | ) | -- |
def close_dB | -( | -- | self | ) | -- |
def connect_dB | -( | -- | self | ) | -- |
def exec_dB | -( | -- | self, | -
- | - | - | command, | -
- | - | - | outfile = None |
-
- | ) | -- |
def select_dB | -( | -- | self, | -
- | - | - | select_ = '*' , |
-
- | - | - | from_ = None , |
-
- | - | - | where_ = None , |
-
- | - | - | order_ = None , |
-
- | - | - | group_ = None , |
-
- | - | - | limit_ = 1 , |
-
- | - | - | format_ = 'dict2' , |
-
- | - | - | dtype_ = None , |
-
- | - | - | outfile = None |
-
- | ) | -- |
Usage: - dd, n = mdb.select_dB(select_ = 'L_1, L_26, L_21', from_='tab,' - where_ = 'ref like "DIG12HR_"', - limit_ = 100000, - format_='numpy') - loglog(dd['L_26']/dd['L_1'], dd['L_21']/dd['L_1'], 'r+') --
base_name | -
calling | -
connected | -
host | -
log_ | -
-
|
- -static | -
port | -
table | -
tmp_base_name | -
unix_socket | -
user_name | -
user_passwd | -
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
This is the complete list of members for Genetic, including all inherited members.
-__init__ | Genetic | |
initPending(self) | Genetic | |
log_ | Genetic | |
MdB | Genetic | |
model | Genetic | |
N | Genetic | |
OVN_dic | Genetic | |
randomcoeff | Genetic | |
readModel | Genetic | |
setGeneration(self, generation) | Genetic | |
shake | Genetic | |
shift | Genetic | |
wP | Genetic |
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
Inherits object.
--Public Member Functions | |
def | __init__ |
def | readModel |
def | initPending (self) |
def | setGeneration (self, generation) |
def | shake |
def | shift |
-Public Attributes | |
log_ | |
OVN_dic | |
MdB | |
N | |
model | |
wP | |
randomcoeff | |
def __init__ | -( | -- | self, | -
- | - | - | MdB = None , |
-
- | - | - | OVN_dic = None , |
-
- | - | - | N = None |
-
- | ) | -- |
def initPending | -( | -- | self | ) | -- |
def readModel | -( | -- | self, | -
- | - | - | N = None |
-
- | ) | -- |
def setGeneration | -( | -- | self, | -
- | - | - | generation | -
- | ) | -- |
def shake | -( | -- | self, | -
- | - | - | key, | -
- | - | - | sigma, | -
- | - | - | addit = True , |
-
- | - | - | lowlim = None , |
-
- | - | - | highlim = None |
-
- | ) | -- |
def shift | -( | -- | self, | -
- | - | - | key, | -
- | - | - | delta, | -
- | - | - | addit = True , |
-
- | - | - | lowlim = None , |
-
- | - | - | highlim = None , |
-
- | - | - | sigma = 0 |
-
- | ) | -- |
log_ | -
MdB | -
model | -
N | -
OVN_dic | -
randomcoeff | -
wP | -
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
This is the complete list of members for ObsfromMdB, including all inherited members.
-__init__ | ObsfromMdB | |
init_obs(self) | ObsfromMdB | |
log_ | ObsfromMdB | |
MdB | ObsfromMdB | |
models | ObsfromMdB | |
N | ObsfromMdB | |
obs | ObsfromMdB | |
OVN_dic | ObsfromMdB | |
readModel | ObsfromMdB |
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
Inherits object.
--Public Member Functions | |
def | __init__ |
def | init_obs (self) |
def | readModel |
-Public Attributes | |
log_ | |
OVN_dic | |
MdB | |
N | |
obs | |
models | |
def __init__ | -( | -- | self, | -
- | - | - | MdB = None , |
-
- | - | - | OVN_dic = None , |
-
- | - | - | N = None |
-
- | ) | -- |
def init_obs | -( | -- | self | ) | -- |
def readModel | -( | -- | self, | -
- | - | - | select_ = '*' , |
-
- | - | - | from_ = None , |
-
- | - | - | N = None , |
-
- | - | - | where_ = None , |
-
- | - | - | order_ = None , |
-
- | - | - | limit_ = None |
-
- | ) | -- |
log_ | -
MdB | -
models | -
N | -
obs | -
OVN_dic | -
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
This is the complete list of members for manage3MdB, including all inherited members.
-__init__ | manage3MdB | |
all_threads | manage3MdB | |
models_dir | manage3MdB | |
Nprocs | manage3MdB | |
OVN_dic | manage3MdB | |
start | manage3MdB | |
stop(self) | manage3MdB |
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
Inherits object.
--Public Member Functions | |
def | __init__ |
def | start |
def | stop (self) |
-Public Attributes | |
OVN_dic | |
models_dir | |
Nprocs | |
all_threads | |
def __init__ | -( | -- | self, | -
- | - | - | OVN_dic, | -
- | - | - | models_dir = '/DATA/MdB' , |
-
- | - | - | Nprocs = pn.config.Nprocs |
-
- | ) | -- |
def start | -( | -- | self, | -
- | - | - | norun = False , |
-
- | - | - | noinput = False |
-
- | ) | -- |
def stop | -( | -- | self | ) | -- |
all_threads | -
models_dir | -
Nprocs | -
OVN_dic | -
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
This is the complete list of members for runCloudy, including all inherited members.
-__init__ | runCloudy | |
calling | runCloudy | |
CloudyInput | runCloudy | |
do_update_status | runCloudy | |
emis_tab | runCloudy | |
fill_CloudyInput | runCloudy | |
get_emis_table(self) | runCloudy | |
get_ID(self) | runCloudy | |
init_CloudyInput(self) | runCloudy | |
log_ | runCloudy | |
MdB | runCloudy | |
models_dir | runCloudy | |
OVN_dic | runCloudy | |
pending | runCloudy | |
pending_table | runCloudy | |
proc_name | runCloudy | |
procID | runCloudy | |
read_pending | runCloudy | |
select_pending(self) | runCloudy | |
selectedN | runCloudy | |
table | runCloudy | |
update_status(self, status) | runCloudy |
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
Inherits object.
--Public Member Functions | |
def | __init__ |
def | get_emis_table (self) |
def | init_CloudyInput (self) |
def | get_ID (self) |
def | select_pending (self) |
def | update_status (self, status) |
def | read_pending |
def | fill_CloudyInput |
-Public Attributes | |
log_ | |
calling | |
OVN_dic | |
MdB | |
table | |
pending_table | |
proc_name | |
models_dir | |
do_update_status | |
CloudyInput | |
emis_tab | |
procID | |
selectedN | |
pending | |
def __init__ | -( | -- | self, | -
- | - | - | MdB = None , |
-
- | - | - | OVN_dic = None , |
-
- | - | - | proc_name = None , |
-
- | - | - | models_dir = './' , |
-
- | - | - | do_update_status = True , |
-
- | - | - | register = True |
-
- | ) | -- |
def fill_CloudyInput | -( | -- | self, | -
- | - | - | N_pending = None , |
-
- | - | - | noinput = False , |
-
- | - | - | dir = None , |
-
- | - | - | parameters = None |
-
- | ) | -- |
Method that print out a Cloudy input file -keywords: - - N_pending : value of the N from the pending table where to find the parameters of the model. -if set to None (default), the value of runCloudy.selectedN is used - - noinput (False): is set to True, no input file is written - - dir: if not set to None (default), set the directory where to write the file - - parameters: if not set to None (default), is a dictionnary of parameters to substitute the -ones from the pending table --
def get_emis_table | -( | -- | self | ) | -- |
def get_ID | -( | -- | self | ) | -- |
def init_CloudyInput | -( | -- | self | ) | -- |
def read_pending | -( | -- | self, | -
- | - | - | N_pending = None |
-
- | ) | -- |
def select_pending | -( | -- | self | ) | -- |
def update_status | -( | -- | self, | -
- | - | - | status | -
- | ) | -- |
calling | -
CloudyInput | -
do_update_status | -
emis_tab | -
log_ | -
MdB | -
models_dir | -
OVN_dic | -
pending | -
pending_table | -
proc_name | -
procID | -
selectedN | -
table | -
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
This is the complete list of members for runCloudyByThread, including all inherited members.
-__init__ | runCloudyByThread | |
calling | runCloudyByThread | |
clear(self) | runCloudyByThread | |
log_ | runCloudyByThread | |
MdB | runCloudyByThread | |
models_dir | runCloudyByThread | |
noinput | runCloudyByThread | |
norun | runCloudyByThread | |
OVN_dic | runCloudyByThread | |
run(self) | runCloudyByThread | |
selectedN | runCloudyByThread | |
sleep_time | runCloudyByThread | |
stop(self) | runCloudyByThread | |
stopped(self) | runCloudyByThread |
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
Inherits Thread.
--Public Member Functions | |
def | __init__ |
def | run (self) |
def | stop (self) |
def | stopped (self) |
def | clear (self) |
-Public Attributes | |
log_ | |
models_dir | |
norun | |
noinput | |
MdB | |
sleep_time | |
OVN_dic | |
calling | |
selectedN | |
def __init__ | -( | -- | self, | -
- | - | - | OVN_dic, | -
- | - | - | models_dir, | -
- | - | - | norun = False , |
-
- | - | - | noinput = False |
-
- | ) | -- |
def clear | -( | -- | self | ) | -- |
def run | -( | -- | self | ) | -- |
def stop | -( | -- | self | ) | -- |
def stopped | -( | -- | self | ) | -- |
calling | -
log_ | -
MdB | -
models_dir | -
noinput | -
norun | -
OVN_dic | -
selectedN | -
sleep_time | -
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
This is the complete list of members for writePending, including all inherited members.
-__init__ | writePending | |
calling | writePending | |
fields | writePending | |
init_all(self) | writePending | |
insert_in_dic(self, key, value) | writePending | |
insert_model | writePending | |
last_N | writePending | |
log_ | writePending | |
MdB | writePending | |
OVN_dic | writePending | |
set_abund | writePending | |
set_C_version | writePending | |
set_cloudy_others | writePending | |
set_comments | writePending | |
set_cste_density | writePending | |
set_dir | writePending | |
set_distance | writePending | |
set_dlaw | writePending | |
set_dust | writePending | |
set_ff | writePending | |
set_file | writePending | |
set_geometry | writePending | |
set_GuessMassFrac | writePending | |
set_iterate | writePending | |
set_N_Hb_cut | writePending | |
set_N_Mass_cut | writePending | |
set_priority | writePending | |
set_radius | writePending | |
set_ref | writePending | |
set_star | writePending | |
set_status | writePending | |
set_stop | writePending | |
set_user | writePending | |
table | writePending |
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
Inherits object.
--Public Member Functions | |
def | __init__ |
def | init_all (self) |
def | insert_in_dic (self, key, value) |
def | set_ref |
def | set_dir |
def | set_user |
def | set_radius |
def | set_star |
def | set_cste_density |
def | set_ff |
def | set_dlaw |
def | set_abund |
def | set_dust |
def | set_iterate |
def | set_stop |
def | set_distance |
def | set_file |
def | set_status |
def | set_priority |
def | set_geometry |
def | set_cloudy_others |
def | set_N_Mass_cut |
def | set_N_Hb_cut |
def | set_GuessMassFrac |
def | set_comments |
def | set_C_version |
def | insert_model |
-Public Attributes | |
log_ | |
MdB | |
OVN_dic | |
table | |
fields | |
calling | |
last_N | |
def __init__ | -( | -- | self, | -
- | - | - | MdB = None , |
-
- | - | - | OVN_dic = None |
-
- | ) | -- |
def init_all | -( | -- | self | ) | -- |
def insert_in_dic | -( | -- | self, | -
- | - | - | key, | -
- | - | - | value | -
- | ) | -- |
def insert_model | -( | -- | self, | -
- | - | - | verbose_only = False , |
-
- | - | - | status = None |
-
- | ) | -- |
def set_abund | -( | -- | self, | -
- | - | - | predef = None , |
-
- | - | - | elem = None , |
-
- | - | - | value = None , |
-
- | - | - | nograins = True , |
-
- | - | - | ab_dict = None |
-
- | ) | -- |
Define the elemental abundance(s) - -Usage: - set_abund(ab_dict = {'He' : -0.92, 'C' : -4.65} - -Parameters: - ab_dict: dictionary of abundances. Keys are element symbols, values are abundances in log --
def set_C_version | -( | -- | self, | -
- | - | - | version = None |
-
- | ) | -- |
def set_cloudy_others | -( | -- | self, | -
- | - | - | others = None , |
-
- | - | - | i_other = 0 |
-
- | ) | -- |
def set_comments | -( | -- | self, | -
- | - | - | comments = None , |
-
- | - | - | i_com = 0 |
-
- | ) | -- |
def set_cste_density | -( | -- | self, | -
- | - | - | dens = None , |
-
- | - | - | ff = None |
-
- | ) | -- |
def set_dir | -( | -- | self, | -
- | - | - | dir_ = '.' |
-
- | ) | -- |
def set_distance | -( | -- | self, | -
- | - | - | distance = None |
-
- | ) | -- |
distance in kpc --
def set_dlaw | -( | -- | self, | -
- | - | - | dlaw_params = None , |
-
- | - | - | i_param = 0 |
-
- | ) | -- |
Define the user-define density law. -Parameters: - - dlaw_params may be of type: 1.4, (1, 2, 4.5) or [1,2,3] - - i_param: indice of the parameter to set (from 0 to 8). -Unused if dlaw_params is a list or a tuple --
def set_dust | -( | -- | self, | -
- | - | - | dust_type = None , |
-
- | - | - | dust_value = None , |
-
- | - | - | i_dust = 0 |
-
- | ) | -- |
def set_ff | -( | -- | self, | -
- | - | - | ff = None |
-
- | ) | -- |
def set_file | -( | -- | self, | -
- | - | - | name = None |
-
- | ) | -- |
def set_geometry | -( | -- | self, | -
- | - | - | geometry = None |
-
- | ) | -- |
def set_GuessMassFrac | -( | -- | self, | -
- | - | - | massFrac = None |
-
- | ) | -- |
def set_iterate | -( | -- | self, | -
- | - | - | n_iter = None |
-
- | ) | -- |
def set_N_Hb_cut | -( | -- | self, | -
- | - | - | N = None |
-
- | ) | -- |
def set_N_Mass_cut | -( | -- | self, | -
- | - | - | N = None |
-
- | ) | -- |
def set_priority | -( | -- | self, | -
- | - | - | priority = 10 |
-
- | ) | -- |
def set_radius | -( | -- | self, | -
- | - | - | r_in = None |
-
- | ) | -- |
param: - r_in [float] (log cm) --
def set_ref | -( | -- | self, | -
- | - | - | ref = None |
-
- | ) | -- |
param: - ref [string] --
def set_star | -( | -- | self, | -
- | - | - | SED_shape = None , |
-
- | - | - | atm1 = None , |
-
- | - | - | atm2 = None , |
-
- | - | - | atm3 = None , |
-
- | - | - | lumi_unit = None , |
-
- | - | - | lumi_value = None , |
-
- | - | - | i_star = 0 , |
-
- | - | - | atm_file = None |
-
- | ) | -- |
def set_status | -( | -- | self, | -
- | - | - | status = 0 |
-
- | ) | -- |
def set_stop | -( | -- | self, | -
- | - | - | stopping_crit = None , |
-
- | - | - | i_stop = 0 |
-
- | ) | -- |
def set_user | -( | -- | self, | -
- | - | - | user = None |
-
- | ) | -- |
param: - user [string] --
calling | -
fields | -
last_N | -
log_ | -
MdB | -
OVN_dic | -
table | -
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
This is the complete list of members for writeTab, including all inherited members.
-__init__ | writeTab | |
clean_files(self) | writeTab | |
CloudyModel | writeTab | |
do_update_status | writeTab | |
fields | writeTab | |
insert_in_dic(self, key, value) | writeTab | |
insert_model | writeTab | |
last_N | writeTab | |
lines2dic(self) | writeTab | |
log_ | writeTab | |
MdB | writeTab | |
model2dic(self) | writeTab | |
models_dir | writeTab | |
OVN_dic | writeTab | |
pending | writeTab | |
pending2dic(self) | writeTab | |
pending_fields | writeTab | |
pending_table | writeTab | |
read_model | writeTab | |
read_pending(self, N_pending) | writeTab | |
selectedN | writeTab | |
table | writeTab | |
update_status(self, status) | writeTab |
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
Inherits object.
--Public Member Functions | |
def | __init__ |
def | insert_in_dic (self, key, value) |
def | update_status (self, status) |
def | read_pending (self, N_pending) |
def | read_model |
def | pending2dic (self) |
def | model2dic (self) |
def | lines2dic (self) |
def | insert_model |
def | clean_files (self) |
-Public Attributes | |
log_ | |
MdB | |
OVN_dic | |
table | |
pending_table | |
models_dir | |
fields | |
pending_fields | |
selectedN | |
do_update_status | |
pending | |
CloudyModel | |
last_N | |
def __init__ | -( | -- | self, | -
- | - | - | MdB = None , |
-
- | - | - | OVN_dic = None , |
-
- | - | - | models_dir = './' , |
-
- | - | - | do_update_status = True |
-
- | ) | -- |
def clean_files | -( | -- | self | ) | -- |
def insert_in_dic | -( | -- | self, | -
- | - | - | key, | -
- | - | - | value | -
- | ) | -- |
def insert_model | -( | -- | self, | -
- | - | - | add2dic = None |
-
- | ) | -- |
def lines2dic | -( | -- | self | ) | -- |
def model2dic | -( | -- | self | ) | -- |
def pending2dic | -( | -- | self | ) | -- |
def read_model | -( | -- | self, | -
- | - | - | name = None |
-
- | ) | -- |
def read_pending | -( | -- | self, | -
- | - | - | N_pending | -
- | ) | -- |
def update_status | -( | -- | self, | -
- | - | - | status | -
- | ) | -- |
CloudyModel | -
do_update_status | -
fields | -
last_N | -
log_ | -
MdB | -
models_dir | -
OVN_dic | -
pending | -
pending_fields | -
pending_table | -
selectedN | -
table | -
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
This is the complete list of members for _Config, including all inherited members.
-__init__(self) | _Config | |
cloudy_dict | _Config | |
cloudy_exe | _Config | static |
db_connector | _Config | static |
INSTALLED | _Config | |
log_ | _Config | static |
Nprocs | _Config | |
SAVE_LIST | _Config | |
SAVE_LIST_ELEMS | _Config | |
SAVE_LIST_GRAINS | _Config |
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
Inherits object.
--Public Member Functions | |
def | __init__ (self) |
-Public Attributes | |
cloudy_dict | |
INSTALLED | |
Nprocs | |
SAVE_LIST | |
SAVE_LIST_GRAINS | |
SAVE_LIST_ELEMS | |
-Static Public Attributes | |
tuple | log_ = my_logging() |
-Properties | |
cloudy_exe = property(_get_cloudy_exe, _set_cloudy_exe, None, None) | |
db_connector = property(_get_db_coonector, _set_db_coonector, None, None) | |
This is where to put stuf that all the modules may need to know or use. A kind of COMMON. -
def __init__ | -( | -- | self | ) | -- |
cloudy_dict | -
INSTALLED | -
-
|
- -static | -
Nprocs | -
SAVE_LIST | -
SAVE_LIST_ELEMS | -
SAVE_LIST_GRAINS | -
-
|
- -static | -
-
|
- -static | -
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
This is the complete list of members for PyCloudyError, including all inherited members.
-__init__(self, value) | PyCloudyError | |
__str__(self) | PyCloudyError | |
value | PyCloudyError |
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
Inherits Exception.
--Public Member Functions | |
def | __init__ (self, value) |
def | __str__ (self) |
-Public Attributes | |
value | |
def __init__ | -( | -- | self, | -
- | - | - | value | -
- | ) | -- |
def __str__ | -( | -- | self | ) | -- |
value | -
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
This is the complete list of members for my_logging, including all inherited members.
-__init__ | my_logging | |
caller_max_size | my_logging | |
calling | my_logging | |
clean_log(self) | my_logging | |
close_file(self) | my_logging | |
debug | my_logging | |
error | my_logging | |
level | my_logging | |
log_ | my_logging | |
message | my_logging | |
no_exit | my_logging | |
open_file(self, file_) | my_logging | |
print_errors(self) | my_logging | |
print_messages(self) | my_logging | |
print_time | my_logging | |
print_timer(self) | my_logging | |
print_warnings(self) | my_logging | |
timer | my_logging | |
warn | my_logging |
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
Logging tool. - More...
- -Inherits object.
--Public Member Functions | |
def | __init__ |
def | clean_log (self) |
def | debug |
def | message |
def | warn |
def | error |
def | timer |
def | print_messages (self) |
def | print_warnings (self) |
def | print_errors (self) |
def | print_timer (self) |
def | open_file (self, file_) |
def | close_file (self) |
-Public Attributes | |
log_ | |
caller_max_size | |
level | |
calling | |
print_time | |
no_exit | |
Logging tool.
-Logging object that can log events with 3 different types (messages, warnings and error). -Date and time are save as well as the calling procedure. -events are printed in the standard output depending on the verbosity level. -level : -1: Quiet and no log into log_ variable - 0: Quiet - 1: Only Errors - 2: Errors and Warnings - 3: very verbose, print Errors, Warnings and Messages - 4: debug
def __init__ | -( | -- | self, | -
- | - | - | level = None , |
-
- | - | - | calling = None , |
-
- | - | - | file_ = None , |
-
- | - | - | print_time = False , |
-
- | - | - | no_exit = True |
-
- | ) | -- |
Parameters: - - level [int] 0, 1, 2, 3, or 4 - - calling [str] description of the calling module - - file_ [str] file to store the events (default is None). - - print_time [boolean] if True, the event is printed with date-time (Default is False).-
def clean_log | -( | -- | self | ) | -- |
def close_file | -( | -- | self | ) | -- |
Close the output file and avoid printing to it. --
def debug | -( | -- | self, | -
- | - | - | message, | -
- | - | - | calling = None |
-
- | ) | -- |
method to add a debug message to the log -param: - message [str] string to log --
def error | -( | -- | self, | -
- | - | - | message, | -
- | - | - | calling = None , |
-
- | - | - | exception = None |
-
- | ) | -- |
method to add an error to the log -param: - message [str] string to log --
def message | -( | -- | self, | -
- | - | - | message, | -
- | - | - | calling = None |
-
- | ) | -- |
method to add a message to the log -param: - message [str] string to log --
def open_file | -( | -- | self, | -
- | - | - | file_ | -
- | ) | -- |
Open the file for the output and allow printing to it. -param: - file_ [str] file to save the log events. --
def print_errors | -( | -- | self | ) | -- |
print all the errors. --
def print_messages | -( | -- | self | ) | -- |
print all the messages. --
def print_timer | -( | -- | self | ) | -- |
print the timer messages. --
def print_warnings | -( | -- | self | ) | -- |
print all the warnings. --
def timer | -( | -- | self, | -
- | - | - | message, | -
- | - | - | quiet = False , |
-
- | - | - | calling = None |
-
- | ) | -- |
method to add a timer to the log. Print the time elapsed since last call of timer (or instanciation -of the object if first call). -param: - message [str] string to log - quiet [boolean] if True, no message printed (but timer reset) --
def warn | -( | -- | self, | -
- | - | - | message, | -
- | - | - | calling = None |
-
- | ) | -- |
method to add a warning to the log -param: - message [str] string to log --
caller_max_size | -
calling | -
level | -
log_ | -
no_exit | -
print_time | -
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
This is the complete list of members for ImportFromFile, including all inherited members.
-__init__(self, file_to_import) | ImportFromFile |
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
Inherits object.
--Public Member Functions | |
def | __init__ (self, file_to_import) |
Create an object with parameters as defined in the file_to_import (which is a python-style file) -
def __init__ | -( | -- | self, | -
- | - | - | file_to_import | -
- | ) | -- |
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
This is the complete list of members for CST, including all inherited members.
-ALPHA_B | CST | static |
BOLTZMANN | CST | static |
BOLTZMANN_ANGK | CST | static |
CLIGHT | CST | static |
ECHARGE | CST | static |
EMASS | CST | static |
HMASS | CST | static |
HPLANCK | CST | static |
K | CST | static |
KPC | CST | static |
PC | CST | static |
PI | CST | static |
PMASS | CST | static |
RYD | CST | static |
RYD_ANG | CST | static |
RYD_EV | CST | static |
SIGMA | CST | static |
SUN_MASS | CST | static |
SUN_RADIUS | CST | static |
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
Inherits object.
--Static Public Attributes | |
float | BOLTZMANN = 1.3806488e-16 |
Boltzmann constant (erg/K) - NIST 2010. More... | |
K = BOLTZMANN | |
float | CLIGHT = 2.99792458e10 |
Light velocity in vacuum (cm/s) - NIST 2010. More... | |
float | HPLANCK = 6.62606957e-27 |
Planck constant (erg.s) NIST 2010. More... | |
float | EMASS = 9.10938291e-28 |
Electron mass (g) NIST 2010. More... | |
float | PMASS = 1.67262158e-24 |
Proton mass (g) More... | |
float | HMASS = 1.660538921e-24 |
Hydrogen atom mass (g) More... | |
float | ECHARGE = 1.602176565e-19 |
Electron charge (C) NIST 2010. More... | |
float | PI = 3.141592653589793238462643 |
int | BOLTZMANN_ANGK = BOLTZMANN/HPLANCK/CLIGHT/1 |
Boltzmann constant ((angstrom.K)^-1)) More... | |
float | RYD = 109737.31568539 |
Rydberg constant (cm^-1) More... | |
int | RYD_EV = HPLANCK*CLIGHT*RYD*1 |
Infinite mass Rydberg (eV) More... | |
int | RYD_ANG = 1 |
Infinite mass Rydberg (Angstrom) More... | |
float | PC = 3.0856780e18 |
Parsec (cm) More... | |
float | KPC = 3.0856780e21 |
Kiloparsec (cm) More... | |
float | ALPHA_B = 2.6e-13 |
float | SUN_MASS = 1.9891e33 |
float | SUN_RADIUS = 6.955e10 |
int | SIGMA = 2 |
-
|
- -static | -
-
|
- -static | -
Boltzmann constant (erg/K) - NIST 2010.
- -Boltzmann constant ((angstrom.K)^-1))
- -
-
|
- -static | -
Light velocity in vacuum (cm/s) - NIST 2010.
- -
-
|
- -static | -
Electron charge (C) NIST 2010.
- -
-
|
- -static | -
Electron mass (g) NIST 2010.
- -
-
|
- -static | -
Hydrogen atom mass (g)
- -
-
|
- -static | -
Planck constant (erg.s) NIST 2010.
- -
-
|
- -static | -
-
|
- -static | -
Kiloparsec (cm)
- -
-
|
- -static | -
Parsec (cm)
- -
-
|
- -static | -
-
|
- -static | -
Proton mass (g)
- -
-
|
- -static | -
Rydberg constant (cm^-1)
- -
-
|
- -static | -
Infinite mass Rydberg (Angstrom)
- -Infinite mass Rydberg (eV)
- -
-
|
- -static | -
-
|
- -static | -
-
|
- -static | -
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
This is the complete list of members for RedCorr, including all inherited members.
-__init__ | RedCorr | |
calling | RedCorr | |
cHbeta | RedCorr | static |
cHbetaFromEBV(self, ebv) | RedCorr | |
E_BV | RedCorr | static |
EBVFromCHbeta(self, cHbeta) | RedCorr | |
getCorr(self, wave) | RedCorr | |
getCorr2(self, wave1, wave2) | RedCorr | |
getCorrHb(self, wave) | RedCorr | |
getLaws(self) | RedCorr | |
law | RedCorr | static |
log_ | RedCorr | |
plot(self, w_inf=1000., w_sup=10000., laws=None, kwargs) | RedCorr | |
printLaws(self) | RedCorr | |
R_V | RedCorr | static |
setCorr(self, obs_over_theo, wave1, wave2) | RedCorr | |
user_function | RedCorr | static |
user_params | RedCorr | |
X | RedCorr |
- pyCloudy
- 0.8.53b
-
- 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 | -
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
▼CException | |
CPyCloudyError | |
▼Cobject | |
CCloudyInput | |
CCloudyModel | |
CC3D | |
CCubCoord | |
CMdB | |
CMdB_subproc | |
CGenetic | |
Cmanage3MdB | |
CObsfromMdB | |
CrunCloudy | |
CwritePending | |
CwriteTab | |
C_Config | |
Cmy_logging | Logging tool |
CImportFromFile | |
CCST | |
CRedCorr | |
▼CThread | |
CrunCloudyByThread |
- pyCloudy
- 0.8.53b
-
- manage Cloudy photoionization code
- |
-
t |