Skip to main content

A tool to extract the intrinsic (i.e. deconvolved) Galaxy Parameters and Kinematics from any 3-Dimensional data.

Project description

WHAT IS IT

GalPaK 3D is a tool to extract Galaxy Parameters and Kinematics from 3-Dimensional data, using reverse deconvolution with Bayesian analysis Markov chain Monte Carlo. (random walk)

See the documentation for more details about the API on the web site.

INSTALL

pip install galpak

PYTHON DEPENDENCIES

The galpak module has been developed for Python 2.7 and has been tested with Python 3.5 & 3.7

The following are mandatory python modules that galpak depends upon :

    numpy>=1.14
    scipy
    astropy>=2.0
    matplotlib>=2.0

The following optional python modules improve galpak performances :

    pyfftw : https://pypi.python.org/pypi/pyFFTW
    bottleneck : https://pypi.python.org/pypi/Bottleneck/

The following optional python modules improve galpak functionalities :

    corner : https://pypi.python.org/pypi/corner
    emcee : https://pypi.org/project/emcee/
    mpdaf : http://mpdaf.readthedocs.io/en/latest/

MPDAF PACKAGES

Optional.

GalPaK provides a MUSELineSpreadFunction class that depends on mpdaf.MUSE.LSF. Follow MPDAF install instructions.

GalPaK also accepts MPDAF's Cubes as input.

I FOUND A BUG!

THERE WILL BE BUGS. If you have found a bug in GalPaK3D please report it on the galpak forum/mailing list. Can you reproduce it ? Provide the code and input cube(s). You cannot reproduce it ? just describe what you're doing when it happens.

Also, we encourage everyone to give us feedback and participate in discussions. We can use the galpak3d mailing list as well.

Email the above at nicolas.bouche@univ-lyon1.fr and/or add them as test-case in the test suite.

HOW TO TEST

untar and do

python -m pytest 

HOW TO DOCUMENT

Install sphinx :

$ sudo apt-get install python-sphinx

or

$ pip install --user sphinx

Make your changes into the doc/source files.

Once its done, you can either :

$ cd doc
$ make html

or :

$ doit doc

FITS Sanitizer

python fits_sanitizer.py [-h] [--prefix PREFIX] FILE [FILE ...]

Sanitize specified FITS files. By default, this will overwrite the FITS files. To create another file(s), you can specify a prefix using the --prefix option.

What this actually does : - Lowercase 'DEG' unit - that's all ! (it did some other things in the past)

positional arguments: FILE A FITS file to sanitize

optional arguments: -h, --help show this help message and exit --prefix PREFIX A prefix to prepend to the filename(s), to create new files

Tip : you can sanitize a whole folder using the * wildcard : python fits_sanitizer.py /myfits/*.fits

Note that this will be superseded by the HyperspectralCube class sanitize method.

ACRONYMS

Real men never define acronyms. They understand them genetically.

FFT Fast Fourier Transform FITS Flexible Image Transport System FWHM Full Width at Half Maximum HDU Header Data Unit LSF Line Spread Function Wavelength spread due to the dispersion of light in the atmosphere MCMC Markov Chain Monte Carlo MPDAF MUSE Python Data Analysis Framework MUSE Multi Unit Spectroscopic Explorer NFM Narrow Field Mode PA Position Angle PC ParseC PSF Point Spread Function Spatial spread caused by the atmosphere SNR Signal Noise Ratio The relative intensity of the signal from the noise Should be > 1, or the data is useless WFM Wide Field Mode WSC World Coordinates System

BLACKBOARD

It would be smart to use a MCMC module : - pymc3.

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

galpak-1.35.2.tar.gz (4.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

galpak-1.35.2-py3-none-any.whl (90.4 kB view details)

Uploaded Python 3

File details

Details for the file galpak-1.35.2.tar.gz.

File metadata

  • Download URL: galpak-1.35.2.tar.gz
  • Upload date:
  • Size: 4.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for galpak-1.35.2.tar.gz
Algorithm Hash digest
SHA256 b2d5923015f4b5b6fa29f10fa6a726b73a782036bd425193628364ddefdccd97
MD5 325a4c6bf0b7ee3c4d3f524205dbb477
BLAKE2b-256 1f86e18152055bfb1de200fd44bcd3a4f7d325062149ebcc1988d59b2c2aafb8

See more details on using hashes here.

File details

Details for the file galpak-1.35.2-py3-none-any.whl.

File metadata

  • Download URL: galpak-1.35.2-py3-none-any.whl
  • Upload date:
  • Size: 90.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for galpak-1.35.2-py3-none-any.whl
Algorithm Hash digest
SHA256 142ab242d936d86d32af042f89e7ac4c5c1fd88e45e7eaa40ab745394f1a58d8
MD5 de891e4cab3d9560e06f7fdee43f120a
BLAKE2b-256 994bcc24fb59835dec70dc8810097974ac7b777cc8f0f0765880a2d2c303268a

See more details on using hashes here.

Supported by

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