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.1.tar.gz (12.9 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.1-py3.10.egg (27.5 kB view details)

Uploaded Egg

photcalib-0.1-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for photcalib-0.1.tar.gz
Algorithm Hash digest
SHA256 96390234ea291344595c231ecd56d619f00bdd72bcdb922b4056150131b76e9d
MD5 fd162a25160a7811b034720bd12b46ed
BLAKE2b-256 17daa9ce41f73c9d65dc0dcd5dc501fb51918bc34a1a83555a697bf52d412bbd

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for photcalib-0.1-py3.10.egg
Algorithm Hash digest
SHA256 80b1e30a7b64abbb7d593f6072f322188943ac28f61224e7d5807d5915a0837c
MD5 d934baf545e393d381a274adc512897e
BLAKE2b-256 55e07f0d8eecafed8448409d889212b865233209fd574895c9549ccc6c1d29bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: photcalib-0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a960cee3eb22c140e5ce6f32f9d7034e3dc46a06f69a9d9d0cedfa55651ffa52
MD5 c153afee7ed37792d65c81bd8723e380
BLAKE2b-256 aeb2e2a41605fcb49896ee0273cf9360cc91239ef319d1ae5ac21bc96fbab74e

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