Photometry with a DSLR

Affiliation
American Association of Variable Star Observers (AAVSO)
Fri, 12/18/2020 - 14:33

I've come to the conclusion that you can't do proper photometry with a DSLR despite what it says in the AAVSO guide.

I've just started doing this so I'm still very much a learner. The AAVSO guide for photometry with a DSLR says you have to do the measurements in the green wavelengths. The problem is that the Bayer matrix in the DSLR sensor means you won't count the green photons from a star which fall on the red and blue pixels so the flux measurements are going to be wrong. I've tried it using debayered images and I get results which look about right but it means that the green flux values in the non-green pixels are not real counts, just estimated.

 

Photometry with a DSLR

Steve,

You just have to use the correct approach. Yes, it is necessary to debayer DSLR RAW images, but debayering is just the process of constructing a full colour image from the mosaic of red, green and blue pixels. The next critical step, and the one that makes accurate DSLR photometry achievable, is channel separation. Various software packages allow you to extract any or all of the R, G and B channels. When this is done, you will have your original colour image (red, green, blue) and your newly created image(s), one for each channel. Some software extracts two green channels, as there are twice as many green pixels as blue or fed.

You can do accurate photometry with the green channel data alone, provided that your comparison stars have colour indices very close to that of the variable. Alternatively, if you extract (say) green and blue channels, transformed magnitudes can be calculated from comparison stars of various colours, but you need to obtain transformation coefficients for your camera/lens or camera/telescope setup first.

If you need more detail on procedures, message me offline.

Roy

Affiliation
American Association of Variable Star Observers (AAVSO)
Focus is important!

Steve,

You raise a valid point about the distribution of a star's light across the colored pixels on the sensor. As you say, if the star image on the sensor is small, on the order of the individual color pixels, the star's brightness measured with say, just the green pixels will strongly depend on which color pixel most of the star's light is concentrated on. The important lesson here is that you don't want to focus too sharply. DSLR pixels are tiny (a few microns) but with good-quality short focal length lenses, it's still possible to "over" focus. Ideally, you want to defocus so that the stars a bit "mushy" to ensure they're spread over several "superpixels" (the 2x2 set of red, green, and blue pixels). Besides spreading the light out so that no one pixel gets the bulk of the light, you can now also take longer exposures to reduce the impact of atmospheric twinkling. Short exposures (5-10 seconds) show a lot of noise because you're capturing the star's "twinkling." Longer exposures help average out this effect, with the extra benefit of allowing you to collect more photons so that your measurements are more accurate.

Shawn (DKS)

Affiliation
American Association of Variable Star Observers (AAVSO)
Thank you Ray and Shawn,

Thank you Ray and Shawn,

I'm aware of the need to defocus slightly but I find it quite hard to get it right. If you do it too much the star images turn to donuts. It's easy to see if they are heavily defocussed but sometimes you can't see it unless you magnify the image. I did some a few nights ago and thought it was ok but when I started processing the images I could just see slight donut effects. This is something I need to work on but I know where I'm going.

I found a couple of packages which allow me to split the channels out. One is AIP4WIN and the other is AIJ itself. But I'm still not sure about the debayering. I found I can split the colours without debayering but if I look at the images I can see for example in the green channel every other pixel is bright and all the rest are black in a star image. SImilar for red and blue except the pattern is different of course. I can debayer the raw image using various algorithns and then split the colour channels. In this case if I look at the green channel all of the pixels in a star image are bright but I guess only half of them will be true measured values, all the rest will be estimated values based on the debayering algorithm.  I can do photometry on either picture and get similar results so long as the star image covers a significant number of pixels.

Affiliation
American Association of Variable Star Observers (AAVSO)
Focus

I did some a few nights ago and thought it was ok but when I started processing the images I could just see slight donut effects.

While donuts in most cases indicate you over-did the defocus, it by no means invalidates the photometry, you can still use the images (but expect a somewhat worse signal-to-noise ratio). If you are doing aperture photometry, it's all about counting the photons from a given star within the measurement aperture, and it doesn't matter so much whether the photons form a circle, donut, crescent, cross, smilie or whatever. It's just not ideal because spreading the photons over more than necessary pixels will increase the noise, and might cause blending with close-by stars. Also some software might get confused by the unusual shape of the star image ("point spread function" in photometry-speak) when auto-adjusting the aperture size, so you might want to manually check/set the aperture size.

Clear skies

HB

Affiliation
Bundesdeutsche Arbeitsgemeinschaft fur Veranderliche Sterne e.V.(Germany) (BAV)
Muniwin: (TG_1+TG_2) / 2

Hi,
I use Muniwin to process ~300 files after another: https://sourceforge.net/projects/c-munipack/

which is calculating the mean of the two green channels. (TG_1+TG_2) / 2. I think AIP4Win does this also?

I am getting quite the same results in TG as others in Johnson V.

Barbara Harris, told in her video: https://www.youtube.com/watch?v=7S-doKrQJxc

that the transformation for her DSLR is affecting only the 2nd digit after the decimalpoint (if I remember correctly...)

Also, with the Ensemble-Option (use multiple comp stars) I am getting at good clear skies: 4 - 5 mmag for each data point (with the 4 inch Achromat or the 8" Newtonian).

De-Focus:

It is mandatory to check the first star of a sequence before you perform a sequence for:

1) A good SNR (~70% - 75% of the ADU should be gained, for 14 BIT = 16381. Minus a 2000 BIT Canon offset well...12 000 to 14 000 ADU for the variable will be good. (So you will be also in the linearity range...) The comp +check stars should not be saturated.

2) I have experienced, that with different comp or check stars, sometimes even at the Ensemble-Option, the magnitude of the lightcurve is varying beween 0.5 or even 1 mag up or down! So I'll guess thats the main reason, for not getting the same results as others. (You'll have to had the same: telescope+camera setup, seeing conditions, and comp + check stars, to get similar results...but thats what we facing here. I've read that the mag limit should be not greater than 2.5 mag, for selecting the comp or check stars.. but sometimes one just have to select the available comp stars...)

3) To check the defocus with the ADU-Profile-Function, if it does not has horns (or to big horns..) Curently I am experimenting with the APT Focusing Aid Tool:

https://www.astrophotography.app/usersguide/focusing_aid.htm?ms=AAA%3D&q=Zm9jdXNpbmcgYWlk&st=MQ%3D%3D&sct=MA%3D%3D&mw=MjQw#

I want to have a proper FWHM for my telescope focal length & pixel setup:

https://astronomy.tools/calculators/ccd_suitability

I think, if the FWHM is at low as possible, ~1 its a good starting point ?

(But I've read somewhere, that FWHM 2-4 will be good?) Well thats what I am experimenting for now, if it not were for overcast since October...

 

clear skies,

Bernhard

PS: take your time, after one year you'll get a better routine for most of the things here (-;

PPS: The feature from Muniwin I like most is the live function: You'll do all photometry steps for the first stars, than you'll hit the "Ampel-Button": "process every new image in the directory the same way...", and you can watch the lightcurve evolving in real time!

Affiliation
American Association of Variable Star Observers (AAVSO)
Accurate photometry with DSLR

Steve,

All of the replys have made good points about getting accurate photometry with a DSLR. I agree that you can get accurate photometry with DSLR. The DSLR manual is a great tool to use to do this. I will summarize some of the key points:

1. Adequate exposure (not too short and do not saturate your target and comp stars).  I try to keep my exposure length a minimum of 15 secs. If I have to go shorter because the target is too bright, I will stack enough exposures so that I have a total of a 60-sec image (see p.24 of DSLR manual). Know the saturation and linearity range of your camera to avoid saturation (see appendix E of the DSLR manual). When I advise those wanting to do DSLR photometry, I recommend doing appendix A (DSLR camera testing) and appendix E (Linearity Testing) of the DSLR manual as a start.

2. De-focus your star so that the FWHM of your target is at least 8-10 pixels (see p.57 of the DSLR manual).  This assures that the starlight is spread over many pixels. This can be a frustrating part of obtaining images. I use an 80mm refractor with a Canon 40D setup that has an electronic focuser. I will do an autofocus and get perfect focus and then back off from perfect focus to get an FWHM of 8-10 pixels. I also use a Canon 70D with a lens for brighter targets. This is a little more frustrating trying to get the correct amount of de-focus. I usually end up de-focusing just a little and then going to the computer to check the amount of de-focus before I end up taking my images

3. Color separation can be done by Debayering or demosaicing (convert the image to a color image) then split that image into a tricolor R,G,B image or color extraction (extract both green channels and average them together to form one green image). I use MaximDL. I extract the two green images and average them together. AIP4Win performs a bi-linear interpolation(DeBayer) and then extracts the green image (see p.28 and p.56 of the DSLR manual).  There is also a PDF manual of software tutorials for IRIS, Muniwin, AIP4Win, and MaximDL here  https://www.aavso.org/sites/default/files/publications_files/dslr_manua…

4. Calibrate your images (Bias,Dark, Flat). The order of calibration (before or after extraction of color channel) depends on what software you are using.

5. I only use the TG green channel because it is closest to Johnson V. I rarely report TB or TR because I feel that they are too far away from the photometric B and R unless I transform them (see Spectral Response of DSLR color channels p.70 DSLR manual)

Anyway, following the guidelines in the DSLR manual should give you good photometry with your DSLR.

 

Barbara

Affiliation
Bundesdeutsche Arbeitsgemeinschaft fur Veranderliche Sterne e.V.(Germany) (BAV)
do not forget about the FUN in all of that

You are welcome!

 

Well, spectral response of filters in general (also UBV...) needs to be calibrated also. Because of different manufacturers (Astrodon, Baader, etc), one cannot simply shoot through V filter, without calibrating it with Standard-Fields, Landolt-Fields or Arne Henden-Fields (-;

But maybe the difference to the real magnitude value, of an uncalibrated Johnson V filter is closer to the real mag. value,  as the filter TG (tri color green).

But even the Johnson filters are not optimal at every occasion:

The UBV system has some disadvantages. The short wavelength cutoff that is the U filter is defined mainly by the terrestrial atmosphere rather than the filter itself; thus, it (and observed magnitudes) can vary with altitude and atmospheric conditions.[3] However, many measurements have been made in this system, including many of the bright stars.[4]


 

In my understanding, the spectral response curves of UBV, is looking that way because it was invented around 1953 with filters at that time:

https://en.wikipedia.org/wiki/Photometric_system

https://en.wikipedia.org/wiki/UBV_photometric_system

https://en.wikipedia.org/wiki/Str%C3%B6mgren_photometric_system

 

Many observations were made with them, so to compare measurements, the "exact" same spectral response curves, in terms of wavelength... will be ideal.

 

BUT... (here comes the but (-;)

Nowadays there are many filters (Astrodon, Bayer, etc...) which need to match these wavelengths..

https://en.wikipedia.org/wiki/UBV_photometric_system#/media/File:UBV-System.png

..and that seems to be difficult for the manufacturers.. (see also the webinars for CCD and CMOS, there was also a talk about filters and the end of many manufacturers fabricating these filters...)

So in theory Astrodon, Bayer etc should all manufacture exact the same filters, but that is difficult. Also different filters have different thickness. This is important for focusing. So it is better to buy a complete filterset from one certain label / brand.  Costs: 700  ...    >1000 $

What I think (but do not know for certain..) is that the shown spectral response curves, from the advertisments, are the hopefully standard, every manufacturer hopes to match as close as possible. Therefore, my local telescope shop has an option, to measure the exact wavelength of the bougth filters! (Of course, if the 1000$ filters come with a wavelength- print, of the delivered filters, you are lucky...)

 

So instead of talking down the DSLR filter TG, I would ask for a little project. Lets take the same star, telescope setup, filters, exposure times, (focus and seeing conditions   (-;  ) and look for the exact differences. That can be an interesting project. (-:

 

At last, do not forget about the FUN in all of that. If you are starting out right away, take the modest equipment you have, dig in and have fun!

You can be an astronomer. (or  SOA: Small Observatory Astronomer) Select targets, observe them, analyse them, publish the results. Thats what astronomers do (-:

 

Some years later... you can upgrade to whatever sophisticated equipment you like.

 

Have a nice day,

WBEA

PS: friends of mine (astrophotographers) which have already photographic green filters, they take just them, and transform them to Johnson V...  if they are in the mood (;

Affiliation
None
You are correct, but for a different reason

As others correctly point out, the Beyer matrix problem is addressed by defocusing somewhat then allowing the software to sum over the correct pixels.  But there are additional problems that are generally overlooked.  First among them is the unfortunate fact that the spectral response of DSLRs varies from make to make and model to model.  That necessitates calibration of transformation coefficients and use of comparison stars that are spectrally closely matched to the target, if reasonably accurate (ca 30 mmag) measurements are to be made.  But determination of transformation coefficients requires bright standard stars, and unfortunately there are not very many of those.  So unless you are willing to use a really big aperture and forego ensemble photometry techniques, DSLR photometry is rarely worth the effort.  (Who wants to spend 15 minutes to get a 2- or 3-fold improvevment over what they could do in 3, visually?)

Stephen, your pessimistic…

Stephen, your pessimistic views on DSLR photometry suggest that your may not have seen results from observers who use this approach expertly. Also, DSLR or CMOS or CCD photometry must be used for time series photometry for EBs or short period pulsators when accurate timing and magnitudes are needed. You can't do this work just with visual observations.

Roy

Affiliation
None
Response to ARX

I did not say anything about CCD photometry, or what you call "CMOS" photometry (as though CCDs were not based on Complementary Metal-Oxide Semiconductor technology).  And I did not say anything about timing.  As it happens, none of the problems I wrote about are common to the other methods.  My pessimism about DSLR photometry arises from actual practice, attempting to achieve 10 mmag true accuracy and finding it to not be possible with the equipment I was using and the seeing/light pollution environment I observe in.  So kindly do not put words in my mouth.

DSLR photometry

Sorry, didn't mean to cause offence. Let me stick to the main point. In your original post you wrote: "So unless you are willing to use a really big aperture and forego ensemble photometry techniques, DSLR photometry is rarely worth the effort." That is your opinion. If you decide that DSLR photometry is only worth while if you achieve 10mmag accuracy, and you can't achieve that, I understand why you have your point of view. However, it is a fact (not just my opinion) that DSLR photometry can still achieve worthwhile, publishable results even if the the accuracy doesn't meet your benchmark.

Roy

 

Affiliation
Bundesdeutsche Arbeitsgemeinschaft fur Veranderliche Sterne e.V.(Germany) (BAV)
do not forget about the FUN in all of that

Hi Stephen,

as i wrote in "do not forget about the FUN in all of that".. One has also to transform the Johnson UBV.. filters.. and not only the TG with standard fields. B. Harris told in her video, that a TG transformation is affecting only the 2nd decimal after the comma. Which is not far away from the true value. (What numbers do other people achieve here?)

 

I have another point for DSLR, which one can look at. Many astrophotographs already have a DSLR. And there is a whole new playground beneath photographing the Messier objects the x-th time. Variable Stars!

My Canon 200 D or the predecessor the 250 D, costs around 500€. Also, not everyone can afford the higher prices for a monochrome CCD, filterhwheel & filters, 1000....3000 $ the first time, they are looking into the topic. Sometime, when I passed by all the possibilities or limits of a DSLR, I want to buy a CMOS or CCD.

But! e.g. the Moravian G2 1600 CDD, which I am thinking of, do cost about 3000 €, the filterwheel version extra 500€, the filterset: Astrodon 700€.

For now, I achieve at good seeing conditions 4...10 mmag errorbars (on rare occasions 3 mmag !) with my DSLR (ensemble & defocus & APT focusing aid tool), and I have my first exoplanets as well, all without autoguiding! (I already have a ZWO ASI for autoguiding waiting, but we have overcast since October!) The last time, at full moon but with excellent seeing I got around 5 mmag errorbars. WOW!

If one is looking into the Exoplanet Transit Database: var2.astro.cz/ETD/index.php, people with the Moravian G2 1600 or similar CCDs, are achieving 2...6 mmag residuals. I am not far away from this with an only 500$ DSLR! (I am looking foreward, to see how autoguiding is having a positive impact on accuracy.. (-:)

So, DSLR is the hopefully entrance point for people (with low budget) to get involved into variable stars. Hmm.. for 1000 astrophotographers, how many are willing to make the transition to photometry? 1 - 10 ? The motivation will be to help them, to learn the DSRL manual correctly. If there are errors in the manual, they need to be corrected by hard facts.

As Arne Henden told in his first slide of his last video: cars are cars (CMOS & CCD)  (-:

 

Stay safe through these difficult times & clear skies!

Bernhard

 

 

Affiliation
American Association of Variable Star Observers (AAVSO)
Thanks Bernhard,

I will…

Thanks Bernhard,

I will stick with DSLR for the time being because that's what I've got. Once I know a bit more I might get a proper camera but I'm in no hurry. At least I can learn the processes with the DSLR before spending any more money. I have been taking pictures of various  messier objects which is quite nice but I wanted to do some science and there is a lot to learn about variable stars.

All the best

Steve