question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Offset between IRAF and DAOPhotPSFPhotometry

See original GitHub issue

(I’m sorry for flooding the issues with questions. Please let me know if I should give it a rest)

I’m testing the DAOPhotPSFPhotometry class against IRAF’s usual tasks for CCD PSF photometry.

Given an observed frame I first run the IRAF tasks:

  1. detect sources (daofind)
  2. aperture photometry on the sources (phot) to use as initial estimates of the fluxes
  3. creation of the PSF model (nstar , substar , psf)
  4. PSF-fitting (allstar)

I then use the same list of sources (the ones found by daofind) to perform PSF fitting with DAOPhotPSFPhotometry using as psf_model an IntegratedGaussianPRF. I obtain magnitudes using the same zero point and exposure time as done with IRAF. I run this process twice: first fixing the coordinates of the sources in the psf_model, and then fitting them.

What I find is an offset between the differences of the final magnitudes obtained with IRAF and DAOPhotPSFPhotometry in both cases: a ~0.07 overestimation by photutils when using the fixed sources, and a ~0.02 underestimation when the sources are also fitted (the sources are sorted and matched before obtaining the differences).

figure_1

The scatter between the IRAF and photutils magnitudes is understandable, but I don’t know what parameter(s) is(are) responsible for causing these offsets.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
eteqcommented, Dec 5, 2017

Oh and re:

I’m sorry for flooding the issues with questions. Please let me know if I should give it a rest

Some of these are quite reasonable feature requests or possible issues (e.g. #620, #626). But in generally when you have a question (rather than a specific problem like “this doesn’t work” or “this should be added”) you’ll have better luck trying an environment like the facebook group, the astropy mailing list, or the astropy slack channel (e.g. http://www.astropy.org/help.html).

Admittedly, some are ambiguous - like this particular one might be a code issue, so it’s reasonable to ask here, and it might end up getting closed if it turns out there’s not a code issue to be addressed.

0reactions
Gabriel-pcommented, Jan 20, 2018

@mirca I have zero time right now but as soon as I can I’ll re-do the test paying attention to this kind of details. Sorry I can’t help more at the time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

photutils Documentation - Read the Docs
Note that this differs from the SourceExtractor, IRAF, FITS, ... Added DAOPhotPSFPhotometry class to perform PSF photometry in crowded ...
Read more >
Introduction to Imaging
Offset the telescope 10-15 arcseconds between exposures, and median the frames together to remove stellar images. One advantage here is that the optical...
Read more >
DAOPhotPSFPhotometry — photutils 1.6.0 - Read the Docs
DAOPhotPSFPhotometry(crit_separation, threshold, fwhm, psf_model, fitshape, ... Parameters from ratio to roundhi are also associated with DAOStarFinder .
Read more >
Deep PSF photometric catalog of the VVV survey data - arXiv
with PyRAF5 that is a Python front for running IRAF6 tasks. The ... difference between the DoPHOT and DaoPHOT photometries.
Read more >
the first direct distance determination to a detached eclipsing ...
and calibrated them in wavelength with IRAF routines. Three copper-argon calibration spectra were interspersed between the five sets of GMOS spectra.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found