Home | Trees | Indices | Help |
---|
|
Extinction models of Arenou, Drimmel and Marschall
Uniformly rewritten by K. Smolders
|
|||
Top level wrapper | |||
---|---|---|---|
float |
|
||
Arenou 3D extinction model | |||
float |
|
||
|
|||
Marshall 3D extinction model | |||
|
|||
float |
|
||
Drimmel 3D extinction model presented in Drimmel et al. in | |||
float |
|
||
|
|||
|
|||
|
|||
|
|||
ndarray |
|
||
|
|||
|
|||
|
|||
|
|||
ndarray
(Note: The default coordinate system for pixels is ecliptic.) |
|
||
|
|||
Schlegel 3D extinction model presented in Schlegel et al. | |||
|
|||
|
|||
ndarray |
|
||
|
|
|||
logger = logging.getLogger("SED.EXT")
|
|||
__package__ =
|
|||
Drimmel 3D extinction model presented in Drimmel et al. in | |||
---|---|---|---|
fn_base =
|
|||
avdisk = array([[[ 1.4955765 , 1.51041055, 1.52583313, ..
|
|||
avloc = array([[[ 0.51059103, 0.50907248, 0.50760478, ...,
|
|||
avspir = array([[[ 0.03569764, 0.03420052, 0.03268857, ...,
|
|||
avdloc = array([[[ 0.25433207, 0.24842149, 0.24276738, ...,
|
|||
avori = array([[[ 1.37120429e-02, 1.63412001e-02, 1.94005
|
|||
coordinates = FITS_rec([(1.0, 118.8959, 6.4741001), (32.0, 133
|
|||
avgrid = array([[[ 1.53127408, 1.5446111 , 1.55852175, ..
|
|||
avori2 = array([[[ 6.74924115e-04, 7.81801646e-04, 8.8650
|
|||
rf_allsky = FITS_rec([(12.537686, 312.5304, 1.0, 218453.0, 0.8
|
|||
glat = array([ 12.53768635, 12.59496021, 12.6505003 , ...,
|
|||
glng = array([ 312.53039551, 312.15927124, 311.79577637, ...
|
|||
ncomp = array([ 1., 1., 1., ..., 1., 1., 1.], dtype=float32)
|
|||
pnum = array([ 218453., 218452., 218449., ..., 43694., 4
|
|||
rfac = array([ 0.88002169, 0.92727238, 1.00623751, ..., 1.0
|
|||
g2e = array([[ -5.48824860e-02, -9.93821033e-01, -9.64762490
|
|
Get the "model" extinction at a certain longitude and latitude. Find the predicted V-band extinction (Av) based on three dimensional models of the galactic interstellar extinction. The user can choose between different models by setting the model keyword: 1) "arenou": model from Arenou et al. (1992). 2) "schlegel": model from Schlegel et al. (1998) 3) "drimmel": model from Drimmel et al. (2003) 4) "marshall": model from Marshall et al. (2006) example useage:
REMARKS: a) Schlegel actually returns E(B-V), this value is then converted to Av (the desired value for Rv can be set as a keyword; standard sets Rv=3.1) b) Schlegel is very dubious for latitudes between -5 and 5 degrees c) Marschall actually returns Ak, this value is then converted to Av (the reddening law and Rv can be set as keyword; standard sets Rv=3.1, redlaw='cardelli1989') d) Marschall is only available for certain longitudes and latitudes: 0 < lng < 100 or 260 < lng < 360 and -10 < lat < 10
|
Find the predicted V-band extinction (Av) according to the 3D model for galactic extinction of Arenou et al, "Modelling the Galactic interstellar extinction distribution in three dimensions", Arenou et al, "A tridimensional model of the galactic interstellar extinction" published in Astronomy and Astrophysics (ISSN 0004-6361), vol. 258, no. 1, p. 104-111, 1992 Example usage:
|
Input: galactic coordinates Output: Arenou 1992 alpha, beta, gamma, rr0, saa
|
Read in the Marshall data This function is memoized.
|
Find the V-band extinction according to the reddening model of Marshall et al. (2006) published in Astronomy and Astrophysics, Volume 453, Issue 2, July II 2006, pp.635-651 The band in which the extinction is calculated is actually optional,
and given with the keyword Example usage:
>>> lng = 10.2 >>> lat = 59.0 >>> ak = findext_marshall(lng, lat, norm='Ak') >>> print(ak) None
|
Procedure to retrieve the absorption in V from three-dimensional grids, based on the Galactic dust distribution of Drimmel & Spergel. Example usage:
|
_pix2xy creates a raster image (sky cube or face) given a pixelindex and a resolution The data array can be either a vector or two-dimensional array. In the latter case, the data for each raster image can be stored in either the columns or rows. The procedure also returns the x and y raster coordinates of each pixel. Only right oriented, ecliptic coordinate images are built. SMOLDERS SEAL OF APPROVAL |
This function takes an n-element pixel array and generates an n by 3 element array containing the corresponding face, column, and row number (the latter two within the face). SMOLDERS SEAL OF APPROVAL |
Convert longitude, latitude to unit vectors SMOLDERS SEAL OF APPROVAL
|
Routine returns pixel number given unit vector pointing to center of pixel resolution of the cube. SMOLDERS SEAL OF APPROVAL |
_ll2pix is a python function to convert galactic coordinates to DIRBE pixels (coorconv([lng,lat], infmt='L', outfmt='P', inco='G', outco='R9')) Input
|
|
Converts coordinates in lattitude and longitude to coordinates in x and y pixel coordinates. The x and y coordinates you find with these formulas are not the coordinates you can read in ds9, but 1 smaller. Hence (x+1, y+1) are the coordinates you find in DS9. Input
|
Get the "Schlegel" extinction at certain longitude and latitude This function returns the E(B-V) maps of Schlegel et al. (1998), depending on wether the distance is given or not, the E(B-V) value is corrected. If distance is set we use the distance-corrected values: E(B-V) = E(B-V)_maps * (1 - exp(-10 * r * sin(|b|))) where E(B-V) is the value to be used and E(B-V)_maps the value as found with the Schlegel dust maps Then we convert the E(B-V) to Av. Standard we use Av = E(B-V)*Rv with Rv=3.1, but the value of Rv can be given as a keyword. ! WARNING: the schlegel maps are not usefull when |b| < 5 degrees ! |
|
avdisk
|
avloc
|
avspir
|
avdloc
|
avori
|
coordinates
|
avgrid
|
avori2
|
rf_allsky
|
glat
|
glng
|
pnum
|
rfac
|
g2e
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Nov 7 18:01:55 2016 | http://epydoc.sourceforge.net |