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

https://github.com/zyuan-astro/PhotCalib/assets/20896020/07018137-40fb-4e04-b96f-2ba3f767fade

https://github.com/zyuan-astro/PhotCalib/assets/20896020/26806571-87b4-4624-b44c-068567b22d61

Installation

Before installtion, 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 device

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, mps, gpu) to run pytorch. mps is not faster than cpu on M1. 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

coming soon

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.0.tar.gz (12.8 kB view details)

Uploaded Source

Built Distributions

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

photcalib-0.0-py3.10.egg (25.7 kB view details)

Uploaded Egg

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for photcalib-0.0.tar.gz
Algorithm Hash digest
SHA256 bc92f4c465be36c39716242a5840aa3872e1af5f0609dcdfedded293436fc47e
MD5 4c8e7d317d3843bdbbebd81ea185037d
BLAKE2b-256 d2c6654c14b53dd01c9b4ff4d22e048ed9cb0e83ca9a76ec9c3b7c7252352b2c

See more details on using hashes here.

File details

Details for the file photcalib-0.0-py3.10.egg.

File metadata

  • Download URL: photcalib-0.0-py3.10.egg
  • Upload date:
  • Size: 25.7 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for photcalib-0.0-py3.10.egg
Algorithm Hash digest
SHA256 12abb9222a9c3b23ef8dd2db573c837fdabe6e3d518343a095b1711a8ce1b79a
MD5 f6c34cb88b6f49fbf9fb35f7da129e55
BLAKE2b-256 2687f8226156529136bb2426292789c0886949cf631f259a45fef42045b0abaf

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for photcalib-0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d8359b75adf22b6fc49ea1748b82558574391af92b53f80e784e0565404f999
MD5 1b352721a36671daaf7e78e5286d7977
BLAKE2b-256 c5e865c6c7fec1a24e89aeee18bae11d6e0efec0aba9b1e03bd7b15d87651cc5

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