astro.extinction - EranOfek/AstroPack GitHub Wiki

Description

The astro.extinction package contains functions related to interstellar extinction

Functions

  • astro.extinction.sky_ebv - Get Galactic extinction E(B-V) for a list of coordinates
  • astro.extinction.extinction - Calculate extinction in a given band for a given E(B-V)
  • astro.extinction.extinctionGrid - Make a .mat object containing extinction (A_lam) for a given sky grid and filter (or frequency)

Selected examples:

% Given a list of galactic coordinate pairs gal_lon,gal_lat, calculate the corresponding vector of E(B-V) extinction values:
Ebv = astro.spec.sky_ebv(gal_lon,gal_lat,'g');
% Calculate A_V in the Johnson U filter at lambda = 100 nm:
A_U = astro.extinction.extinction(0.1,'Johnson','U')
% Create a .mat file containing absorption at lambda = 250 nm for a grid of sky positions 
% in Galactic coordinates read from the file 'healpix215deg.txt':
extinctionGrid('healpix215deg.txt','CooType','g','Filter',0.25);
% (the default file name in this example will be 'extinction_grid_g_0.25.mat')