Skip to main content

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


Download files

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

Source Distribution

crosscorr-0.1.1.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

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

crosscorr-0.1.1-cp310-cp310-macosx_11_0_arm64.whl (985.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Hashes for crosscorr-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1187e0de323b4d0e46c0e5f2fe25b9ba467eb643130260dfd1bff9c22713da5a
MD5 aa5c03bae73d30b587027866efd93b57
BLAKE2b-256 151fcf23d3496f7008a3ab9a4c73401043915ed5e1eb3aeaa06db7dc7cdb6b9b

See more details on using hashes here.

File details

Details for the file crosscorr-0.1.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for crosscorr-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 421ef9b0d9189bf3a42a9fa21348a71fe6c2eac4286f35f96ac1f14b6f66b81c
MD5 41101e1b1131b0efea2f002b6cd01a93
BLAKE2b-256 a998655c0e54caa8766cc77a6bd30bf57806c2ca961603868e018772070baa35

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