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.0.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.0-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.0.tar.gz.

File metadata

  • Download URL: crosscorr-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 32bd52c26560271ed69ff3bb854a06f96adda1603a674e6cedb8c033cddae92b
MD5 a0529064153b2e8f05e0f2b8f4cc7767
BLAKE2b-256 10bb9e330110e8a137096b12fa07a82e25c9d7db75bca945cbde4fb5ad3e8d7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for crosscorr-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8c000be9fc2e8bc495b612cbc01f954ca51f3c39ba71167a0a724f7062e5cd7b
MD5 5a09b22eff271211af071d6dbc3f4647
BLAKE2b-256 59211beaa46f6a5bce72127a4683be6fe3c6ca5666955aa42a4422c9164d9cba

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