Skip to content

zyuan-astro/PhotCalib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

coming soon

About

Calibration tool for Prisitine CaHK data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages