Skip to main content

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.

Metadata

Release files for galpak 1.35.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for galpak 1.35.3
File Size Uploaded Provenance Actions
galpak-1.35.3.tar.gz 5.4 MB Without provenance Details for galpak-1.35.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for galpak 1.35.3
File Interpreter ABI Platform Actions
galpak-1.35.3-py3-none-any.whl Python 3 none any Details for galpak-1.35.3-py3-none-any.whl

Total release size: 5.5 MB

Release files / galpak-1.35.3.tar.gz

Download URL galpak-1.35.3.tar.gz
Size 5.4 MB
Tags Source
SHA-256 checksum
How to use checksums
7a36dc71d63ee9c6ad88b210bb3ce2c1dcfa116c18b607bb6016da394c098e77
BLAKE2b-256 checksum
How to use checksums
8a31b16eeafdce9026990d8eb77712ee96c16697f9c0a89ea8c7dfe374dfa0a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.12

Release files / galpak-1.35.3-py3-none-any.whl

Download URL galpak-1.35.3-py3-none-any.whl
Size 90.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be2ae285584c6f9b73da0a50a2eb39606c43e096a3599dff1cc904b92f9ef7d2
BLAKE2b-256 checksum
How to use checksums
caf08cbaa7e2c31994ada2f0dd974757bd5762ab9784e8c050e240dee5367dc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.12

Security for galpak 1.35.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page