agn_fritz2006.py 1.54 KB
Newer Older
1
# -*- coding: utf-8 -*-
2
3
4
# Copyright (C) 2013 Centre de données Astrophysiques de Marseille
# Licensed under the CeCILL-v2 licence - see Licence_CeCILL_V2-en.txt
# Author: Yannick Roehlly <yannick.roehlly@oamp.fr>
5
6
7
8
9

import numpy as np


class AgnFritz2006(object):
Yannick Roehlly's avatar
Yannick Roehlly committed
10
    """Fritz et al. (2006) AGN dust torus emission model.
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54

    This class holds the UV-optical data associated with a Fritz et al. (2006)
    AGN model.

    """

    def __init__(self, model_nb, agn_type, r_ratio, tau, beta, gamma, theta,
                 psy, wave, luminosity):
        """Create a new AGN model

        Parameters
        ----------
        model_nb : integer
            Number identifying the AGN model.
        agn_type : integer
            Type of AGN.
        r_ratio : float
            Ratio of the maximum and minimum radii of the dust torus.
        tau : float
            Tau at 9.7µm
        beta : float
            Beta
        gamma : float
            Gamma
        theta : float
            Opening angle of the dust torus.
        psy : float
            Angle between AGN axis and line of sight.
        wave : array of float
            Wavelength grid in nm.
        luminosity : array of float
            Luminosity density at each wavelength in W/nm.

        """
        self.model_nb = model_nb
        self.agn_type = agn_type
        self.r_ratio = r_ratio
        self.tau = tau
        self.beta = beta
        self.gamma = gamma
        self.theta = theta
        self.psy = psy
        self.wave = np.array(wave)
        self.luminosity = np.array(luminosity)