Calculate Binary Cross Correlation Functions
Project description
crosscorr
Easily calculate Cross Correlation Functions (CCFs) from different high resolution spectra. Includes masks from HARPS, ESPRESSO, and HPF. Uses Fortran for speed. The fortran code used here is originally derived from ceres. The notebooks/ directory shows an example on how to calculate CCFs with HPF spectra.
Installation instructions
To install, run the following commands:
git clone https://github.com/TeHanHunter/crosscorr.git
cd crosscorr
python3 setup.py install
This should build the fortran code as well.
More detailed installation instructions
Normally the setup.py should fully take care of the installation (including the fotran compilation), but listing instructions to build the fotran code in python just in case.
Fortran installation instructions
In case the fortran code does not build, run the following commands:
Linux
cd crosscorr/
f2py -c -m CCF_1d CCF_1d.f
f2py -c -m CCF_3d CCF_3d.f
f2py -c -m CCF_pix CCF_pix.f
Mac
On mac you might need to try sudo (verified that this works on my mac).
cd crosscorr/
sudo f2py -c -m CCF_1d CCF_1d.f
sudo f2py -c -m CCF_3d CCF_3d.f
sudo f2py -c -m CCF_pix CCF_pix.f
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crosscorr-0.1.1.tar.gz.
File metadata
- Download URL: crosscorr-0.1.1.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1187e0de323b4d0e46c0e5f2fe25b9ba467eb643130260dfd1bff9c22713da5a
|
|
| MD5 |
aa5c03bae73d30b587027866efd93b57
|
|
| BLAKE2b-256 |
151fcf23d3496f7008a3ab9a4c73401043915ed5e1eb3aeaa06db7dc7cdb6b9b
|
File details
Details for the file crosscorr-0.1.1-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: crosscorr-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 985.9 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
421ef9b0d9189bf3a42a9fa21348a71fe6c2eac4286f35f96ac1f14b6f66b81c
|
|
| MD5 |
41101e1b1131b0efea2f002b6cd01a93
|
|
| BLAKE2b-256 |
a998655c0e54caa8766cc77a6bd30bf57806c2ca961603868e018772070baa35
|