Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
CIGALE
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
12
Issues
12
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cigale
CIGALE
Commits
97e690ca
Commit
97e690ca
authored
Jul 03, 2014
by
BURGARELLA Denis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correction of a bug in the attenuation law
parent
4d305c18
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
pcigale/creation_modules/dustatt_calzleit.py
pcigale/creation_modules/dustatt_calzleit.py
+1
-1
pcigale/creation_modules/dustatt_powerlaw.py
pcigale/creation_modules/dustatt_powerlaw.py
+9
-4
No files found.
pcigale/creation_modules/dustatt_calzleit.py
View file @
97e690ca
...
...
@@ -260,7 +260,7 @@ class CalzLeit(CreationModule):
ebvs
[
'young'
]
=
float
(
self
.
parameters
[
"E_BVs_young"
])
ebvs
[
'old'
]
=
float
(
self
.
parameters
[
"E_BVs_old_factor"
])
*
ebvs
[
'young'
]
uv_bump_wavelength
=
float
(
self
.
parameters
[
"uv_bump_wavelength"
])
uv_bump_width
=
float
(
self
.
parameters
[
"uv_bump_w
aveleng
th"
])
uv_bump_width
=
float
(
self
.
parameters
[
"uv_bump_w
id
th"
])
uv_bump_amplitude
=
float
(
self
.
parameters
[
"uv_bump_amplitude"
])
powerlaw_slope
=
float
(
self
.
parameters
[
"powerlaw_slope"
])
filters
=
self
.
filters
...
...
pcigale/creation_modules/dustatt_powerlaw.py
View file @
97e690ca
...
...
@@ -185,7 +185,7 @@ class PowerLawAtt(CreationModule):
av
[
'young'
]
=
float
(
self
.
parameters
[
"Av_young"
])
av
[
'old'
]
=
float
(
self
.
parameters
[
"Av_old_factor"
]
*
av
[
'young'
])
uv_bump_wavelength
=
float
(
self
.
parameters
[
"uv_bump_wavelength"
])
uv_bump_width
=
float
(
self
.
parameters
[
"uv_bump_w
aveleng
th"
])
uv_bump_width
=
float
(
self
.
parameters
[
"uv_bump_w
id
th"
])
uv_bump_amplitude
=
float
(
self
.
parameters
[
"uv_bump_amplitude"
])
powerlaw_slope
=
float
(
self
.
parameters
[
"powerlaw_slope"
])
filters
=
self
.
filters
...
...
@@ -202,7 +202,6 @@ class PowerLawAtt(CreationModule):
self
.
sel_attenuation
=
alambda_av
(
wavelength
,
powerlaw_slope
,
uv_bump_wavelength
,
uv_bump_width
,
uv_bump_amplitude
)
attenuation_total
=
0.
for
contrib
in
list
(
sed
.
contribution_names
):
age
=
contrib
.
split
(
'.'
)[
-
1
].
split
(
'_'
)[
-
1
]
...
...
@@ -216,11 +215,17 @@ class PowerLawAtt(CreationModule):
attenuation_total
+=
attenuation
sed
.
add_module
(
self
.
name
,
self
.
parameters
)
sed
.
add_info
(
"attenuation.Av."
+
contrib
,
av
[
age
])
sed
.
add_info
(
"attenuation."
+
contrib
,
attenuation
,
True
)
sed
.
add_info
(
"attenuation.Av.stellar"
+
contrib
[
contrib
.
find
(
'_'
):],
av
[
age
])
sed
.
add_info
(
"attenuation.stellar"
+
contrib
[
contrib
.
find
(
'_'
):],
attenuation
,
True
)
sed
.
add_contribution
(
"attenuation."
+
contrib
,
wavelength
,
attenuation_spectrum
)
# Bump and slope of the dust attenuation
sed
.
add_info
(
"attenuation.uv_bump_amplitude"
,
uv_bump_amplitude
,
True
)
sed
.
add_info
(
"attenuation.powerlaw_slope"
,
powerlaw_slope
,
True
)
# Total attenuation
sed
.
add_info
(
"dust.luminosity"
,
attenuation_total
,
True
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment