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 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

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.2.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.2-py3.10.egg (27.4 kB view details)

Uploaded Egg

photcalib-0.2-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: photcalib-0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 eee1f02010afe861a9c5ca6222cb1a4c4cdfc8925526fb0a66460a8f3073d9e5
MD5 8af6a752265b358eee525f12cd7a6b3f
BLAKE2b-256 734f8b9cd7cc1ff9e6ee2891285dd1149be4c23e36605125e4e8ad0ce0694784

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for photcalib-0.2-py3.10.egg
Algorithm Hash digest
SHA256 4bca9030ffaf86cff3149482ae5ab5a76b4dfdfcc889898ea6a95c236e9f2f79
MD5 95c3b5d8afaedda95ab94fae2a75996e
BLAKE2b-256 809afcb5c437567611c60a8c7e7830b406f99628b4d9e3fa47fe59827dbdc0b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: photcalib-0.2-py3-none-any.whl
  • Upload date:
  • Size: 13.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 83b167b9ac90fd28d607cb3f7018bf05d7e037b660e60d70c2551be4e5c63abb
MD5 219a7e51ccbd47111e3d01b5ece4e6d1
BLAKE2b-256 66ee11a33657f05a4119c20a18b51ab8489f153489a4699352e69904fc06adc8

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