Giter Site home page Giter Site logo

phot_bh73's Introduction

Scripts

als_compare

Compares the magnitudes of two als files.

apass_compare

Reads a given photometry file (.als, .mag, .obs, .dat) and compares it with the photometry obtained from APASS. Creates the apass_compare.png image.

daom_obs_prep

Checks the star density in each .mag file output by DAOMASTER, and generates the daom.obs file by adding the airmass columns to the daom.raw file selected. Creates the daomaster_wt_X.png images.

final_phot

Takes the daom.obs and fit_coeffs.dat files and generates the calibrated photometry using the values obtained with Python. It creates the BH73_phot.dat final photometry and the final_phot.png image.

phot_compare

Compares the final photometry obtained with IRAF using the invertfit task, with the Python photometry generated by the above script. It creates the phot_compare.png file.

psf_compare

Compares the (aperture corrected) magnitudes in a als file (IRAF) with the magnitudes obtained with the Python scripts.

Photometry steps

  1. The standard transformation coefficients were obtained using the Python scripts: fitstats, align_crop, id_standards, aperphot_standards, fit_standard. I also used the usual IRAF tasks in the folder 1_TRANSF_COEFFS. Both methods seem to match pretty well (see description of final_phot.py script) The aperture used was 15 px and the extinction coefficients were obtained with the auxiliary ext_coeff script: U .442, B .232, V .136, I .048
  2. The PSF photometry was performed with IRAF, through the psfphot.cl task. Files are stored in the 2_PSF folder. The output als.1 files (corrected by aperture with the previous task) were transformed to the required DAOMASTER format (.txt) with the IRAF task txdump.
  3. These files were processed with daomaster_auto using a match radius from 30 px to 2 px, and a transformation of degree 4 (with only 2 degrees the I filters could not be matched) The required initial x,y translations are stored in the list (and daom.mch) file. The final output file by DAOMASTER is daom.raw, which is converted to daom.obs (we use daom_4.raw) by adding the airmasses of the longest exposure as columns (in the same order as the photometric columns: V, B, U, I) All files are stored in the folder 3_DAOM. The match.py script is unable to produce a correct match. There's something probably wrong with the linear equations solution.
  4. Finally, the magnitudes are transformed into the standard system using the coefficients obtained in 1. (stored in fit_coeffs.dat) with the final_phot.py script. I also used the invertfit task, and the results are stored in the 4_INVERTFIT folder.

phot_bh73's People

Contributors

gabriel-p avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.