#1  
Old 08-12-2018, 10:17 PM
Stonius's Avatar
Stonius (Markus)
Registered User

Stonius is offline
 
Join Date: Mar 2015
Location: Melbourne
Posts: 939
I made an ASI 1600 Gain/Offset calculator

Hi all,

I know the accepted wisdom is to 'just leave it at 50', but for those crazy people who want to squeeze that extra 1% out of their cameras, I have created a calculator that determines the intermediate values based on a quadratic regressive fit.

So if you want to know what the offset should be if you're using a gain of say, 210, you type it in and it will tell you (32).

I include it here for others who may wish to use it. Note, you will have to be using the ASI Driver rather than the ASCOM driver, which hides the offset setting (the ASI driver still shows up in SGP, if installed, alongside the ASCOM driver).

I protected the cells that don't require input, but I'm not sure if I did it right. Let me know if there are any issues and I will correct them.

Cheers,

Markus
Attached Files
File Type: zip ASI1600 Offset Calculator.zip (2.1 KB, 43 views)

Last edited by Stonius; 11-12-2018 at 12:08 PM. Reason: Replaced file with unprotected one
Reply With Quote
  #2  
Old 11-12-2018, 12:24 AM
Jeff's Avatar
Jeff
Starry Eyed

Jeff is offline
 
Join Date: Dec 2007
Location: Wonga Park
Posts: 688
Hi Markus,

Thanks for sharing.

Cannot enter a new gain figure says it's protected.
Interested to understand your method a little more.
Is there any particular reasoning for the equations?

Curious as to whether the approach may be adaptable to other ZWO models.

Cheers,
Jeff
Reply With Quote
  #3  
Old 11-12-2018, 04:58 AM
speach's Avatar
speach (Simon)
Registered User

speach is offline
 
Join Date: Oct 2013
Location: Wonthaggi Vic
Posts: 625
yes found the same problem
Reply With Quote
  #4  
Old 11-12-2018, 10:45 AM
Stonius's Avatar
Stonius (Markus)
Registered User

Stonius is offline
 
Join Date: Mar 2015
Location: Melbourne
Posts: 939
Sorry. I was worried that might happen.

Here it is again, unprotected - I was trying to make it so it would be idiot proof. Turns out *I'm the idiot :-D

Essentially, we have three data points given by ZWO in the form of their recommended settings;

ZWO Presets
Gain Offset
0 10
139 21
300 50

In statistics, there is a thing called regression where you try and reduce experimental data to an equation that correlates the x and y axes to each other mathematically. Essentially you are modelling the camera's response so you can determine the intermediate values.

There are various ways of correlating the two axes. The simplest is a linear regression. Punch in a y value and your x value will equal whatever your y value was, multiplied by some other value to determine the steepness of the slope (b) and if an offset is required second value is added to move that slope up or down the graph (a). Essentially, y=bx (or y=a+bx if you want an offset).

I think that's right. Fairly new to all this myself.

So that's the *simplest version* that correlates data that lies on a straight line. But the data here is *not linear, it has a curve. You can see how well the data fits the curve you've used by the 'correlation coefficient' (r). The closer to '1' this is the better your data fits that curve.

There are all sorts of complicated ways of determining curves, but I'm lazy so I just used the data provided by ZWO, graphed it in google docs and played with the curve shape until I found a regression type that had a good fit. You can get google docs to spit out the equation that it used, but it only goes to 2 decimal places, so it isn't really accurate. That's why I used this site which gives *lots of decimal places (in this case, thirteen).

It also (in small type just under the Graph) gives you the equation you need to use to model the data mathematically.

So for me, it looked like quadratic regression gave the best fit. I used the quadratic regression calculator and got the following formula;

y=A+Bx+Cx^2

where;
A=10
B=0.0323458004
C=0.0003366251099

The correlation (r) was 1 (exact fit).

If you plug those values into the equation and give 'y' a value of 0,139 or 300 you will get the exact integers of the gain settings given by ZWO, namely; 10, 21 and 50.

But say you want to use Gain 76. Offset should be 14.4, so you'd probably go with 15 just to be on the safe side.

I don't know how useful it is. As far as I can tell, it will only free up at most about 1% of possible ADU values. Happy to be corrected on that, I could be wrong.

Using the same technique it is possible to model any correlation and determine intermediate values.

Hope that helps people.

Best,

Markus
Attached Files
File Type: zip ASI1600 Offset Calculator.zip (2.1 KB, 50 views)
Reply With Quote
Reply

Bookmarks

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +10. The time is now 04:34 PM.

Powered by vBulletin Version 3.8.7 | Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Advertisement
Bintel
Advertisement
Celestron Australia
Advertisement
NexDome Observatories
Advertisement
SkyWatcher Australia
Advertisement
Lunatico Astronomical
Advertisement
OzScopes Authorised Dealer
Advertisement
Meade Australia
Advertisement
Astronomy and Electronics Centre
Advertisement