Jack-knife
jackknifyis a Python-based package that jackknifes ALMA visibilities to create noise realizations from the observations.
Methodology
Jackknifing is a simple but effective tool to characterize the underlying noise distribution of any type of data set. This tool specifically is implemented for interferometric data. jackknify splits half the visibilities randomly in two subsets, then multiplies one half with -1 so that when the data is binned, any signal present in the data is averaged out. All channels of one baseline at one time stamp get the same sign, so noise that is correlated between channels (e.g. after continuum subtraction) keeps its correlation. Set flip_per_channel=True to flip every channel independently, as in versions up to 0.3.0. This creates observation-specific noise realization of the data, which can be used to for instance, sample the likelihood a false detection.
The full methodology can be found here and is also used in this work.
Installation
jackknify itself can be installed through
pip install jackknify
To also use the fast JAX imaging (Jack.gofast), install the optional dependencies with
pip install "jackknify[jax]"
or alternatively
python -m pip install git+https://github.com/Joshiwavm/jackknify
or from the source
git clone https://github.com/Joshiwavm/jackknify
cd jackknify
pip install -e .
Dependancies
jackknify uses casatask and casatools to interface with CASA measurements. casatask and casatools requires casadata to load. Sadly, this is a ~350 MB sized file making the installment a bit slow. Further, when performing line searches, we make use of the package interferopy, which is a Python-based package for common tasks used in the observational radio/mm interferometry data analysis.
Trouble shooting casatask installation (if needed)
If you want to run jackknify on a Mac with an Apple Silicon chip, run it in a Rosetta terminal. To open a Rosetta session in your terminal, run:
/usr/bin/arch -x86_64 /bin/zsh --login
Further, casadata will download and store examples sets into the folder: ~/.casa/data. However, it might not have permission from the local machine to do so. If such an error comes up. Just run:
mkdir ~/.casa/data
To make the folder. That should solve most problems.
Documentation
For your convenience, there are notebooks on how to run and use jackknify for line inference. You can find them in the docs/notebooks folder. Also, check out the documentation here.
Metadata
Release files for jackknify 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jackknify-0.4.0.tar.gz | 14.0 kB | Without provenance | Details for jackknify-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jackknify-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for jackknify-0.4.0-py3-none-any.whl |
Total release size: 27.3 kB
Release files / jackknify-0.4.0.tar.gz
| Download URL | jackknify-0.4.0.tar.gz |
|---|---|
| Size | 14.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f2f1a0a7ac8d5f42cb846d2cda4281a20e6b56a1a9b517903c11a44c078f183
|
|
BLAKE2b-256 checksum How to use checksums |
51fb4be4b85c7f1972de04afa3d4300d2017ff7e4f1333dedfce37fcb34b4188
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.4
|
Release files / jackknify-0.4.0-py3-none-any.whl
| Download URL | jackknify-0.4.0-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
020190a8ebedcee830f5733562615306f0498ba947aa445fe3ab99e51f2989b0
|
|
BLAKE2b-256 checksum How to use checksums |
984ca5a11d8ebcc6a070e4c8396938a535cd073004a7536cedc64df5d4110d3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.4
|
Security for jackknify 0.4.0
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.