Is there a video on creating SGP filter offsets for autofocusing?

Hi everyone,

My filters are not parfocal for a fact and I will be focusing with green filter because I have a filter wheel with 5 positions: R,G,B,Ha,OIII

I have looked around quite a few focusing videos which are super helpful but Iā€™m yet to find out that covers the topic of creating offsets for the filters.

Ideally, I would like for the focuser to move the approximate filter focus position and then run an autofocus on the filter. So, if it green focus is at 177205 (focusing position), and Ha is at 18347, I would like a method to determine every approximate focus point for each filter and then when I switch filters, for instance to Ha, I would like for the focuser to move to that position (18347) and perform an autofocus for the specific filter.

If you have any references, please share.

Thanks for your help,

Miquel

That is exactly what SGP will do, if told to do so. However, it seems counter to your early statement :

SGP can allow either. It can be told to focus with one filter, and use only offsets for the others, or it will use the offset, and THEN focus with the others. You have to decide which.

Ok, I hope this is a typo. :laughing: Iā€™m going to presume thereā€™s not a 160,000 step difference between Ha and Green. :slight_smile:

There is one. (More on that in a moment)

That is not what happens, and thereā€™s a good reason for it.


Ok, so the ā€œoffsetā€ isnā€™t a number you enter anywhere. itā€™s merely the difference between your starting focus points. If you start green at 15000, and start Ha at 15500, the offset is 500ā€¦and it will always be 500, regardless of where green is actually focused at.

So letā€™s say you start a session, and you autofocus with green. Because of temp, humidity, whatever changes, green winds up autofocusing that night at 14950. Fine. You shoot a few frames, temp changes a couple degrees, you autofocus green again, and itā€™s at 14900 now. Still good. Green is focused, everyoneā€™s happy.

Now, you change to Ha. The focuser will move to 15400 (NOT 15500) because the offset from green is +500. SGP knows youā€™re on green, youā€™re in focus, and Ha was green+500ā€¦so it moves +500. It neither knows nor cares (other than doing the basic math) that the filter settings say ā€œ15500ā€ā€¦it just knows ā€œ15500-15000 = 500ā€.

To SET your offsets then, you basically just autofocus EVERY filter in a single testing run, save those numbers, and bamā€¦you have your offsets.

Once againā€¦it doesnā€™t matter that the exact focus points wonā€™t be the same tomorrow because itā€™s 5Ā° warmerā€¦it only matters that the difference between them wonā€™t change. (And it shouldnā€™t)

So hereā€™s your process :

  • Fire up the rig, slew somewhere with a good number of scattered stars for focusing.
  • Focus with, say, green. (Start with any filter you want, doesnā€™t matter, you just mentioned green soā€¦green). Letā€™s just say, for example purposes, it winds up focused at 14000 tonight.
  • In Control Panel ā†’ Focus click ā€œSet Focusā€ to set Greenā€™s focus point to 14000. UNCHECK the box for ā€œAdjust all other filter focus pointsā€.
  • Change filters to any other filter you wish. Letā€™s say, Red.
  • Focus with red.
  • Control Panel ā†’ Focus ā†’ Set Focus.

Repeat this process for each filter, being sure to not change the other filtersā€™ focus points each time.

Ta da. You have offsets. If you go to Control Panel ā†’ Filters ā†’ Define Filter List, you will see the ā€œFocus Ptā€ for each filter. The difference between any 2 is the ā€œoffsetā€ for that pair.


Now, what will SGP do with this info? Depends on what you tell it to do. There are a BUNCH of options.

In Control Panel ā†’ Focus youā€™ll find a checkbox for ā€œAuto adjust focus per filterā€. This will cause SGP to move by the offset between current and new filter any time the filter changes. All other autofocusing steps asideā€¦when you change filters from X to Y, SGP will check the difference between X and Y, and move by that much.

Nowā€¦IF youā€™ve told it to use Auto Focus, it gets a bit more complicated :

  • In the auto focus settings, thereā€™s a box for ā€œAuto Focus On Filter Changeā€. If this is checked, then any time you change filters, SGP will autofocus with the new filter. If youā€™ve told it to Auto Adjust per filter, then it will apply the offset first, before autofocusing.
  • Thereā€™s another box for ā€œAuto focus with filter (dropdown to select filter)ā€. If this is checked, SGP will always change to the selected filter to autofocus. It will apply that filterā€™s offset or not depending on what youā€™ve said above to Auto Adjust. Once that filter is focused, it will change back to the requested filter, again applying the offset or not as told to do so.

Thereā€™s several ways you can go about it, reallyā€¦and much of it depends on how you like to image. I, for example, prefer to cycle through filter events when imagingā€¦so autofocusing on filter change would be a nightmare for me, as Iā€™d be autofocusing each frame!

So instead, I autofocus with filter (Lum in my case), auto-adjust per filter, and do NOT autofocus on filter change, instead relying on the offsets to keep me in focus. Especially handy when Iā€™m shooting NB, because NB focus runs can take a very long time, and can produce some questionable results on certain types of targets.

If you prefer to work through an entire event at a time, then you might instead want to enable ā€œauto adjust per filterā€ and ā€œauto focus on filter changeā€ and NOT use ā€œAuto focus with filterā€. This way, SGP will autofocus when needed (temp, number of frames, etc) with whatever the current filter is, apply a reasonable offset when changing to the next one, autofocus that one to tweak focus, and move on.

Works well for broadband, but can be problematic with NB for the reasons described above.

5 Likes

Hi Gboulton,

Thank you so much for the detailed answer, and yes, nice catch on the typo hehe

Regarding your description, itā€™s interesting to me that you seem to make the changes through control panel instead of profile manage, which means, itā€™s only applicable for the specific imaging event and those offset are not set permanently in the profile manager, is that ok? If yes, it means to calculate offsets for every single session, is that what you meant?

Another interesting point is how you image. It seems like you trust your offsets 100%, like no need to autofocus with filter change, but you said at the beginning that changes in temperature can throw your initial focus off and then it will throw ur offsets off but I think you also said that you only image with one filter per session? I was planning to do image and centering with green (because I donā€™t have lumb) and the imaging with Ha.

And last, how do you specifically in SGP which filter sets the main position and which ones are offsets? For instance, I want to say Green is Focus Pt 17435 and Ha is +500. How do I tell SGP that Green is the main focus point and Ha is the offset?

Thank you

That was merely for descriptive purposes of where to set these things. Everything above applies to an equipment profile as well, and yes, I have moved these things to profiles for permanent use.

Correct. The offsets work fine for me.

Temp changes will change the focus point of any given filter, but do not change the offsets significantly, at least in my case.

That is to say - Green may focus at 15000 at 0Ā° C, and 16000 at 20Ā°C, but if Red was 15250 at 0Ā°C itā€™ll be 16250 at 20Ā°Cā€¦or at least, still within critical focus at that point.

I suppose there may be SOME variance with SOME filtersā€¦just have to do your own testing and checking. if you DID find different offsets in, say, warmer temps, then you could perhaps have summer and winter profiles, or something similar.

No, sorry if I wasnā€™t clear. I cycle through events every session. So, if my session has RGB events, Iā€™ll shoot an R frame, G frame, B frame, then loop back around to R again.

There is no ā€œmain positionā€. Offsets are simply the difference between any two filters.

Focus with any filter. Doesnā€™t matter which one or how (B mask, autofocus, manual, whatever). Get that filter, letā€™s call it ā€œFilter Aā€ focused. Record the focuser position. Say A focused at 12000 this time.

Change to any other filter. Filter B. Focus it. Again, doesnā€™t matter how. Letā€™s say it focuses at 12700.

The offset between A and B is A+700. From B to A is B-700. Thatā€™s it. Thereā€™s no ā€œmain positionā€ or ā€œmaster filterā€ or anything like that. We simply know that A focuses at 700 steps less than B.

From now on, it doesnā€™t matter which of those two you start with, or what the conditions are, or anything else. If you get either of them in focus, then you know where focus is for the other.

Soā€¦you simply apply that thinking to, say, 5 filters. A, B, C, D, and E. So maybe it looks like so:

  • A 12000
  • B 12700
  • C 12600
  • D 11900
  • E 13100

Take a look. You know the difference between any pair of filters. Soā€¦no matter where you are or what youā€™re doing, if any given filter is in focus at this moment in these conditions, then any other filter will be in focus by simply adding or subtracting the appropriate difference. E is 500 more than Cā€¦so if E is focused, move 500 steps in, and C will be.


So, in your caseā€¦you say you want to focus and center with Green. Fine! Letā€™s say Green is ā€œCā€ in our example above.

  • Set your autofocus settings to always use Green, and to auto-adjust per filter.
  • Set autofocus to focus on sequence start and, say, every 2Ā° temp change (just as an example) and maybe after a centering action. (Or, whatever parameters you want EXCEPT ā€œautofocus on filter changeā€)
  • So your sequence starts. Itā€™s probably going to be ā€œclose enoughā€ to focus for green from the last time you imaged for autofocus to work. So, autofocus runs (using green) at sequence starts, and winds up getting green in focus at 12634 this evening.
  • SGP changes to Ha (Letā€™s say itā€™s D in our example above). Offset from C to D was C-700. So, it moves the focuser to 11934, changes to Ha filter, and off we go.
  • Shoot an Ha frame, then change to OIII (E from above for example). Ok, D to E was D+1200. So it moves to 13134, changes to OIII, takes a frame.
  • This process repeats until something triggers an autofocus (say, 2Ā° temp change) Say youā€™re on OIII (13134). Ok. E (OIII) to C (G) was E-500. It moves to 12634 (Notice thatā€™s JUST where we started with G in focus at the beginning of the night!), runs autofocus with Green, and now focus is at 12598.
  • Back to Ha for a new frame, Ha (D) is still Green (C) - 700ā€¦so it moves to 11898, changes to Ha, and off we go.

Key point here is that while the point at which any given filter focuses may change in any given set of circumstances, the difference between any pair of filters is generally much more consistent.

MOST changes to focus point that happen throughout a night are a function of changes in the OPTICS (mirrors, lenses, tube, etc) and not the filters themselves. So, yeahā€¦you may need to ā€œmove in by 100ā€ to focus when temp/humidity/whatever changes, but you should need to ā€œmove in by 100ā€ (or pretty damn close) for every filter.


Last but not least : Some caveats

  • This is never a perfect science. Keep an eye on things, do multiple passes to find good averages, and yes, maybe you need different profiles for different seasons as described above. I donā€™t, others do, YMMV, that sort of thing.
  • You say youā€™re running both NB and RGB filters in one set. Just be aware (and this isnā€™t an offset-specific thing, just general comment) the offsets from NB to RGB filters can often be quite large, thus causing difficulties using an OAG.
  • Depending upon the amount, severity, and/or cause of any focuser backlash you may have, strict management of focuser backlash compensation can be essential to relying strictly on offsets.
6 Likes

Kudos for excellent, concise answers!

1 Like

image

:laughing:

But thanks :slight_smile:

2 Likes

Princess Bride is one funny movie. I especially like when Wallace Shawn always says ā€œINCONCEIVABLEā€.

Peter

1 Like

Hi Gboulton,

Fantastic answer. It clarified a lot of stuff for me. Now, I understand that in SGP, we record the focusing positions for each filter and offsets are calculated by SGP based on each focusing position. Offsets, itā€™s not something ā€œI careā€ but SGP cares to know how to adjust focus from filter to filter.

I said ā€œI careā€ because I think your comment about NB and RGB filters in the same wheel is very valid about having too much of a difference offset-wise between them, so I need to experiment with it a bit to find the best values.

The only thing that I thought it was a bit unclear was the aspect that perhaps, I understood wrong but I think you advice against filter on every filter change because it can take too long, right? Other than that, it should be ok.

Thanks again for everything,

Hi gboulton, that is the best description of how autofocus with offsets works in SGP that Iā€™ve seen. It confirmed some of what I thought I knew and clarified some other aspects. During periods of doublful seeing Iā€™ve often wanted to shoot LRGB-LRGB-LRGB, etc rather than completing each filter sequence, but Iā€™ve always set autofocus on filter change, so that is a nightmare scenario. Now I think I know how to modify my set up to allow that to happen, when I want to rotate capture through each filter one frame at a time without the huge downtime of autofocus every frame.
Cheers, Geof

1 Like

Your description should make it into the manual!!!
Thanks!

3 Likes