Skip to main content

Gas and Dust Python Calculator

Project description

gdpyc is a Python 2/3 package for calculating Hydrogen column density and optical extinction. gdpyc offers functionalities similar to the nh tool included in HEASoft, or on-line web services like HEASARC’s nH or IRSA’s Galactic Dust Reddening and Extinction.

This package uses HEALpix maps provided by NASA’s LAMBDA service. Please cite the original papers and authors of the surveys if you use this tool for your research (see sections Surveys and References below).

astropy DOI

Dependencies

gdpyc depends on:

  • numpy

  • astropy

  • astropy-healpix

  • regions

Certain functionalities also requiere:

  • healpix

  • matplotlib

Installation

gdpyc can be easily installed using pip:

pip install gdpyc

Example

A simple example of using gdpyc:

>>> from gdpyc import GasMap, DustMap
>>> from astropy.coordinates import SkyCoord

>>> coords = SkyCoord(34.0, -5.0, unit='deg')
>>> GasMap.nh(coords, nhmap='DL')

<Quantity 1.9278499e+20 1 / cm2>

>>> GasMap.nh(coords, nhmap='LAB')

<Quantity 1.9802036e+20 1 / cm2>

>>> DustMap.ebv(coords, dustmap='Planck13')

'0.027179038520908336'

>>> DustMap.extinction(coords, dustmap='SFD', filters='SDSS_r')

<Table length=1>
       SDSS_r
      float64
--------------------
0.049108389441137615

>>> GasMap.plot_map('HI4PI')

Surveys

gdpyc includes several HI and dust surveys with nH and E(B - V) estimations. We created low resolution HEALPix maps for all surveys (NSIDE=64 ~ 1 degree pixels) by degrading the original maps using the ud_grade tool from healpy. Only low resolution maps are included in the installation. If the user asks for high resolution maps (hires parameter, see API documentation), they are downloaded as needed and stored for future use.

HI surveys

DL: Composite all-sky map of neutral Hydrogen column density (NHI), formed from the Leiden/Dwingeloo survey data [1] and the composite NHI map of [2]. The two datasets are not matched in sensitivity or resolution; note that discontinuities exist in the constructed composite map.

DL high resolution data (oversampled), NSIDE=512 ~ 0.11 deg.

LAB: Observations of 21-cm emission from Galactic neutral Hydrogen over the entire sky, merging the Leiden/Dwingeloo Survey [1] of the sky north of -30° with the Instituto Argentino de Radioastronomia Survey [3], [4] of the sky south of -25°. [5]

LAB high resolution data (oversampled), NSIDE=512 ~ 0.11 deg. [6]

HI4PI: The HI 4-PI Survey (HI4PI) is a 21-cm all-sky survey of neutral atomic Hydrogen. It is constructed from the Effelsberg-Bonn HI Survey (EBHIS) and the Galactic All-Sky Survey (GASS). [7]

HI4PI high resolution data, NSIDE=1024 ~ 0.06 deg.

Dust surveys

SFD: All-sky map of Galactic reddening, E(B - V), from a composite 100 micron map formed from IRAS/ISSA maps calibrated using DIRBE observations. [8]

SFD high resolution data (undersampled), NSIDE=512 ~ 0.11 deg.

Planck13: All-sky map of Galactic reddening, E(B - V), using Planck-HFI and IRAS data, for extra-galactic studies. [9]

Planck13 high resolution data, NSIDE=2048 ~ 0.03 deg.

Extinction values for different filters are estimated using the E(B - V) conversion factors presented in [10], assuming an extinction to reddening ratio R=3.1 Additional factors for 2MASS, Spitzer-IRAC and WISE filters are from IRSA’s Galactic Dust Reddening and Extinction service.

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gdpyc-1.1.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

gdpyc-1.1-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file gdpyc-1.1.tar.gz.

File metadata

  • Download URL: gdpyc-1.1.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for gdpyc-1.1.tar.gz
Algorithm Hash digest
SHA256 4f1d34c2c31b1477517acda00aed93211f7178b1a8a01fe62fc807041deffb38
MD5 558a2f4507d794723201d9737c898d36
BLAKE2b-256 1af329d3c19962373cb9df602b1635ef046302db6199c6327549a63b46409124

See more details on using hashes here.

File details

Details for the file gdpyc-1.1-py3-none-any.whl.

File metadata

  • Download URL: gdpyc-1.1-py3-none-any.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for gdpyc-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d716ca9a51d57171f5f9893bee89cfbaba67c8b4b05044e788acf0e1353940d
MD5 069e6391898fb5968cb99be910f9914e
BLAKE2b-256 6d5133b91bf6519d752f24d897424479bee97735a86114555b62e3841bc03f6f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page