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.2.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.2-cp310-cp310-macosx_11_0_arm64.whl (985.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file crosscorr-0.1.2.tar.gz.

File metadata

  • Download URL: crosscorr-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 68a9d33b3f2dd243685359f624039f58745aa4afabc4fc6b0408e6d93d164dda
MD5 4958f1c1690424c3666f8666d5f60665
BLAKE2b-256 c32a97c86d18bc5b8465f699a6ee7a123aaa13726cacbaa44d3e6986ee8ca0a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for crosscorr-0.1.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fff9b5c69a9bf541f7a25e599acc46ddde78d95b36b28d52ddad8112caef5da7
MD5 b4959f3873984378a16a87a659f8a5da
BLAKE2b-256 06937ea22399818aa196a04431aac110e313fcefd2a209db1d6f76ff92f9a724

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