Skip to main content

calibration tool for photometric data

Project description

PhotCalib

Calibration tool for Prisitine CaHK data. For more details see Martin, Starkenburg & Yuan 2023

Installation

Before installation, make sure you have pytorch or install essential dependencies :

pip install -r requirements.txt
  • Installation from PyPI

pip install photcalib
  • Manual installation

download the repository and run the setup

python setup.py install

Getting started

cd examples

To Calibrate CaHK data using the run model trained by the main survey: .. code:

python calib_raw.py 17Am05 combined_catalogue_17Am05_sel.fits -D cpu

Substitute 17Am05 to the run you need and make sure the input data for calibration has the same format as that in the examples/data/.fits

  • D (str) is the device (default:cpu, gpu) to run pytorch. If gpu is chosen, it will use the first graphic card cuda:0 by default.

To train calibration run model: .. code:

python calib_mod.py 17Am05

Substitute 17Am05 to the run for calibration with the input file as examples/data/inputs_run.npy

Specify the device and training parameters (the followings are the default settings) .. code:

python calib_mod.py 17Am05 -D cpu -lr 1e-6 -n 400 -mom 0.9 -thr 1e-2

Citing this work

Martin, F.N., Starkenburg, E., & Yuan, Z. et al. (A&A 2024) https://www.aanda.org/articles/aa/full_html/2024/12/aa47633-23/aa47633-23.html

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

photcalib-0.4.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

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

photcalib-0.4-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file photcalib-0.4.tar.gz.

File metadata

  • Download URL: photcalib-0.4.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.2

File hashes

Hashes for photcalib-0.4.tar.gz
Algorithm Hash digest
SHA256 25543333c928a638b79e531944cc53fe49ceb18daab3a81329ae2db8b163be60
MD5 c577ab4ed0576ffda1f1f4c6f7809e61
BLAKE2b-256 a3123e58b42af1197d3d7cad238e6b314bfbbc65ef94c87f661a0ba1b2d51722

See more details on using hashes here.

File details

Details for the file photcalib-0.4-py3-none-any.whl.

File metadata

  • Download URL: photcalib-0.4-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.2

File hashes

Hashes for photcalib-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a57121843adf21c7d3225b9c2258ad0d12fe6351c487af755c4b2d71c6961165
MD5 1841e26b5011a587c5e5105a614a54a5
BLAKE2b-256 f95aa0ad22fc82aae85684171d84c3a46a009ad0ab457f7c235d2b0e52a2393d

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