Removing sensor tilt with HocusFocus or ASTAP - some questions and details to work out


Nathan Myhrvold
 

This is not specific to AP mounts, so please forgive me if this isn't appropriate here.  I figure this is a pretty sophisticated group that may have some answers.

I will also post this to CN but the SNR on those threads can be quite variable.

I'm trying to use the NINA plugin Hocus Focus (HF) to adjust tilt on a Planewave DR 350 with QHY 600M.   I have the Octopi Astro tilt adapter.  General info is that you want 10 microns or less tilt because it is so fast.

 

Here is a very high level summary of how HF works from a user perspective.  HF takes a series of exposures which sweep through focus, in the same manner as an autofocus algorithm.  It plots a curve of the focus (star diameter) as a function of focuser position, but rather than do that overall, it divides the frame up into 5 different regions - each corner, and the center.   This gives it the optimal focus point (smallest star diameter) for each corner.  If these are the same, there is no sensor tilt.  If they are different, then HF tells you the relevant amount each corner needs to move - in focuser steps, or if you tell it the size of a step, in microns.   You can then use your tilt adapter to put the adjustments.  

 

ASTAP has a similar scheme which is discussed in a CN thread, which also gives some internal details, which is great.  This has informed my understanding of what HF likely does.  However, I am using HF not  ASTAP and I haven't found the comparable details for HF. Even if I were using ASTAP, I would have pretty much the same questions because of how ASTAP is implemented.

 

Here are some of the technical issues that make it hard to use HF up to its potential.  

 

1.  It is not clear where in the sensor frame the offsets are supposed are measured/defined.  Each offset is labeled  (i.e. "bottom left corner"), so one could guess that it is the extreme corner of the sensor, but I am not sure this is the case for reasons discussed below.   This little detail matters a lot - a tilt angle is offset over a baseline, but you need to know the actual X, Y coordinates of the location where the offset (in effect a Z coordinate) are specified to know the baseline. Does anybody know where this is?  Some more details are below.

 

2.  This might seem like a simple documentation issue, but it seems that HF uses an average (mean or median) within the region of the frame that is measured means that (but perhaps not).  ASTAP definitely does this, as discussed in the other thread.  Unfortunately, when you use a mean or median across the region you make the X, Y coordinates where the offset is measured into random variables, which depend on the tilt.  This can be avoided with a better statistical technique (see below), but I don't think this is being done in HF.  This introduces some unfortunate uncertainty in the question above about where the offsets are measured.  So even if the answer to #1 is "its the frame corner", the follow-up question is "how is that calculated?".

 

3.  Once you have the 4 offset numbers from HF, there is a further problem which is that the offsets are presumably relative to the sensor, but the adjustment screws are not at the frame corners.   They are much further away from the center of the frame.  That's good because a large excursion from the screw has a smaller effect on the sensor.   The Octopi Astro adapter uses 200 TPI threaded adjustment screws so one turn is 127 microns.  Although that is very fine for a screw thread, it is pretty coarse for sensor tilt.  But it means that one needs to convert the HF offsets into actual screw displacements. 

 

4.  The screw displacements are not just a multiplier on the HF displacements, because the 4 screws on the adapter do not lie on the sensor diagonals.  So, there is no 1:1 mapping between the sensor offsets and the screw offsets.  I have derived the formulas for converting from offsets at three or four points on the sensor into 3 or 4 screw locations, so I can write a simple program or spreadsheet to convert from the sensor offsets to .  It certainly would be nice if HF (or ASTAP) did that for you.   It would mean you have to input the screw locations, or perhaps just say what tilt adapter you are using.

 

5.  Turning screws - even 200 TPI screws - is a very crude way to input an amount because it is 127 microns per turn.  General info on other CN threads say that I should shoot for <= 10 micron deviations from a squared sensor for the DR 350.  Doing that means eyeballing, how much of a fraction of a turn you turned on the screw.  Half turns are OK but when you get to eyeballing 1/8 turns it is not very accurate.  This is a hardware issue, not an HF or ASTAP issue per se - but it does limit the utility of the software.   I am planning on solving this by installing 4 dial indicators that measure to 10 microns, one near each of the screws.   

 

So those are my basic issues and questions.   Some explanation appears below.

 

One might say - hey if it is really that bad, how can HF / ASTAP be usable under these circumstances?  Partly this is because I think that most people (including me) wind up using HF in only partly quantitative way in a feedback loop - run HF, make adjustments to each screw that are roughly what the program says, then run it again and repeat.  In this mode the exact quantitative offsets are less important than the relative movement, but this is very inefficient in time.   It would be much faster to get the offsets you need for each screw, turn them in with a digital display (dial indicator), and then you will be there, or nearly there and might need only one check.    Otherwise, you are running the process over and over again, and each iteration takes 10-20 shots to sweep through focus is quite time consuming.  If I had a permanent observatory, I would go through the pain one night and then try not to change anything for a long time.  But I am mobile so I must set up frequently.

 

HF outputs some debug information which is nice, but not documented.  However, I have figured out some of the issues.

 

I believe HF divides the sensor frame into 9 equal size regions - a 3 x 3 grid, but only looks at 5 of them, and what really matters are the four corners.   

 

For each image taken during the focus sweep, HF finds the stars, fits point spread functions to measure the diameter, and then throws out stars that are too small or too big or not round enough.  That approach is all fine, although one needs to be careful about roundness for two reasons.  One is that tilt makes stars into ellipses.   So if you throw out elliptical stars, you might be throwing out part of your signal.   The other factor is that optics can distort images as you get toward the edge. But my guess is that this is all done correctly.   ASTAP does something similar.

 

ASTAP then takes the median diameter across the region, and I suspect HF may do the same thing.  The goal is simple - one doesn't want noise in the measurements to corrupt the signal.   However, this is quite ill advised because tilt has a linear gradient on focus across the region.   That's pretty obvious if you look at an image from a tilted sensor.   Taking the mean or median actually throws away most of your data.

 

The median of a linear gradient across the region would, under ideal circumstances, throw out all of the values except the one star that is at the region center.  That means you are NOT measuring the tilt at the actual corner, you are measuring offset at the region center.    It's a big flaw with using median in this case.   Using the mean introduces a similar effect - it is slightly more vulnerable on large outliers than median, but absent huge outliers should give a more accurate result with respect to small amplitude noise (and there are other ways to get rid of big outliers).  


However the measurement is only at the exact center of the frame if you have enough stars, and they are uniformly distributed in the frame.   Even if you throw out stars that are too big or too small, you may also have an effect on whether the brightness of stars is evenly distributed across the frame.  This means that rather than the actual center of the region, you have actually measured the offset at some random location near the center of the frame.

 

A further complication is that the optics may have some field curvature issue. That will further bias the median or mean - either toward, or away from the center of the frame.   If the sensor is not perfectly centered on the optics, then the effect will be asymmetric.  

 

For these reasons, I am pretty sure that the tilt offset that ASTAP and HF measure is the sensor displacement at a somewhat random location near the center of the corner regions.   Because you don't know the actual location the offset is measured at, you don't actually know the sensor tilt.  Or, anyway, you know it over a shorter baseline, with less accuracy, than you may think you know it.

 

The correct statistical approach here is very simple conceptually:

 

-  Don't bother cutting into regions - that is unnecessary (and even harmful to accuracy) - use the whole image

-  For each image in the focus sweep, process the stars more or less as they are done now in HF.

-  This gives you a set of stars, each with an X, Y position (center of point spread function), and the measured diameter (FWHM or other).

-  Connect the stars from each image in the focus sweep, and make a focus curve for each star.

-  Fit a hyperbola to the focus curve for each star, which gives you the optimal focal distance Z for each star. 
-  This has the added benefit that by comparing each star to itself you avoid most issues with the distribution of brightness.

-  You now have a set of data - X, Y, Z for each star.  Do a least squares fit of a plane to the data.  This gives you the 4 parameters that define the plane.

-  Given the plane parameters, you can find the screw offsets by taking the X, Y of each screw and determining the Z

 

As a quality control issue, one should check to see if the stars are reasonably distributed - if the stars are all clustered on one side of frame - either because of the region of the sky, or a cloud - then this won't work, but neither will the existing algorithm.  HF will sometimes say "autofocus failed" and lack of sufficient stars may be why  - or may not, HF could be a bit more informative as to why it failed.

 

I am calling this the "correct" statistical approach because it deals with the fact that tilt introduces a gradient. The method that ASTAP uses (and likely the method that HF uses) actually destroys gradient information by blocking into very coarse (only four per frame) regions.   It also deals completely with field curvature, and the sensor being off center with respect to the optics. Meanwhile, lumping stars together within a region and taking the mean or median of the region interacts poorly with each of these features of the problem. Sensor tilt determination is fundamentally fitting a plane to the data. In general, one should never average data before a curve fit.  The whole point of least-squares fitting is to make the best estimate - averaging up front only messes things up.

 

Also, it is almost always better to use well understood methods like least squares curve fitting than to do an ad-hoc approach of coming up with average focus distance at each region and saying well, that must approximate the plane. 

 

I am pretty sure HF is doing something similar to ASTAP.   It does not seem likely it is doing a focus curve per star, because it draws the 5 regional focus curves, rather than the 500 - 1000 focus curves for each star.   I guess in principle I could download the open source code and figure it all out but that is quite a task.  Somebody must know.   

The cost of doing the "correct" approach is potentially a lot more computation, which would take longer.  I doubt that this would be a problem for a modern computer.  As it stands, computation time is small compared to the time of taking the images anyway.   Finally, if the method above is too slow, one could pick a random subset of the stars.

 

The existing HF / ASTAP approach is an approximation to this.  In cases where the tilt is small and you don't mind iteratively correcting multiple times it might be OK.  I am explaining the "correct" approach not to criticize HF/ASTAP, but because this helps illustrate the problems that come from the approximation.


HF outputs some data files for debugging purposes that seem like they MIGHT give enough information that I could write software to do this from those files.  That would be nice if so.  Or I suppose that I could write my own software entirely, but I am mostly a guy who wants to take pictures of the sky.

Any comments or information would be appreciated.

Nathan

 





Ram
 

This is an excellent post.

1. I fully agree that it is sufficient to look at the 4 corners. The reason I believe why HF is using all these regions is that they want to estimate both tilt AND curvature. I think it is really confusing to have all this info anyway. It is far better to separate tilt and curvature into different steps. This is also because when you remove curvature (by adding, removing spacing), you will influence tilt and vice versa.

2. I also think that you have highlighted correctly the challenges of using screws to correct tilt. Not only are screws somewhat "coarse" given the required focusing accuracy for the optics we are dealing with, they also suffer from backlash which can lead to non repeatability. It might be better to use shims once a very precise tilt has been calculated in step 1. 

3. Another option which I am currently exploring is to start with every component as parallel and orthogonal as possible. 
 a. Eliminate focuser tilt in the field by using a high quality focuser that runs on bearings -- not deformable bushings. 
 b. Test every adapter on a surface plate/height gauge to ensure it meets specs -- say within10 microns. I have found that QHY cameras and adapters are well made and are well within spec. 
 c. Build all adapters carefully. I have a machine shop where I can make my own parts and that is quite helpful in ensuring quality.

Further, if there is any tilt observed after all this, perhaps the issue is collimation? It is helpful to have a way to do daytime collimation. For your scope I recommend getting a Hotech Advanced Laser collimator which simulates the parallel rays of a star and uses double pass autocollimation to amplify errors. I know that several manufacturers included TEC use this to do their collimation in their shop.

Another additional thought which I have not yet fully explored is to compensate in collimation any residual tilt by decollimating in the opposite direction. Again, I haven't gotten that far yet.







Nathan Myhrvold
 

Thanks for the comments!

 

As it happens, I also have a machine shop and I made the adapters to connect QHY filter wheel to to OctopIAstro tilt adapter and then to camera.   And we made the adapter to connect the Planewave focuser / rotator to the QHY filter wheel.  That was necessary to prevent vignetting.   But as a result it is all very flat.   But I still had plenty of tilt to correct out when it was all assembled.   I will go over it all again.

 

The Hotech Advanced Laser Collimator sounds like a great idea.  I have tried artificial stars in the past but they are not great.  This looks pretty amazing so I will look into it.

 

Nathan

 

 

From: main@ap-gto.groups.io <main@ap-gto.groups.io> On Behalf Of Ram via groups.io
Sent: Saturday, March 18, 2023 1:21 PM
To: main@ap-gto.groups.io
Subject: [EXTERNAL] Re: [ap-gto] Removing sensor tilt with HocusFocus or ASTAP - some questions and details to work out

 

This is an excellent post.

1. I fully agree that it is sufficient to look at the 4 corners. The reason I believe why HF is using all these regions is that they want to estimate both tilt AND curvature. I think it is really confusing to have all this info anyway. It is far better to separate tilt and curvature into different steps. This is also because when you remove curvature (by adding, removing spacing), you will influence tilt and vice versa.

2. I also think that you have highlighted correctly the challenges of using screws to correct tilt. Not only are screws somewhat "coarse" given the required focusing accuracy for the optics we are dealing with, they also suffer from backlash which can lead to non repeatability. It might be better to use shims once a very precise tilt has been calculated in step 1. 

3. Another option which I am currently exploring is to start with every component as parallel and orthogonal as possible. 
 a. Eliminate focuser tilt in the field by using a high quality focuser that runs on bearings -- not deformable bushings. 
 b. Test every adapter on a surface plate/height gauge to ensure it meets specs -- say within10 microns. I have found that QHY cameras and adapters are well made and are well within spec. 
 c. Build all adapters carefully. I have a machine shop where I can make my own parts and that is quite helpful in ensuring quality.

Further, if there is any tilt observed after all this, perhaps the issue is collimation? It is helpful to have a way to do daytime collimation. For your scope I recommend getting a Hotech Advanced Laser collimator which simulates the parallel rays of a star and uses double pass autocollimation to amplify errors. I know that several manufacturers included TEC use this to do their collimation in their shop.

Another additional thought which I have not yet fully explored is to compensate in collimation any residual tilt by decollimating in the opposite direction. Again, I haven't gotten that far yet.






Christopher Erickson
 

The Hotech collimator is VERY sensitive and it takes a bit of practice to set it up properly.

I have two of them. I had one custom-made with a higher output power for a specialized application in a professional observatory.

-Christopher Erickson
Observatory engineer
Waikoloa, HI 96738
www.summitkinetics.com
   


On Sat, Mar 18, 2023, 10:32 AM Nathan Myhrvold <nathanm@...> wrote:

Thanks for the comments!

 

As it happens, I also have a machine shop and I made the adapters to connect QHY filter wheel to to OctopIAstro tilt adapter and then to camera.   And we made the adapter to connect the Planewave focuser / rotator to the QHY filter wheel.  That was necessary to prevent vignetting.   But as a result it is all very flat.   But I still had plenty of tilt to correct out when it was all assembled.   I will go over it all again.

 

The Hotech Advanced Laser Collimator sounds like a great idea.  I have tried artificial stars in the past but they are not great.  This looks pretty amazing so I will look into it.

 

Nathan

 

 

From: main@ap-gto.groups.io <main@ap-gto.groups.io> On Behalf Of Ram via groups.io
Sent: Saturday, March 18, 2023 1:21 PM
To: main@ap-gto.groups.io
Subject: [EXTERNAL] Re: [ap-gto] Removing sensor tilt with HocusFocus or ASTAP - some questions and details to work out

 

This is an excellent post.

1. I fully agree that it is sufficient to look at the 4 corners. The reason I believe why HF is using all these regions is that they want to estimate both tilt AND curvature. I think it is really confusing to have all this info anyway. It is far better to separate tilt and curvature into different steps. This is also because when you remove curvature (by adding, removing spacing), you will influence tilt and vice versa.

2. I also think that you have highlighted correctly the challenges of using screws to correct tilt. Not only are screws somewhat "coarse" given the required focusing accuracy for the optics we are dealing with, they also suffer from backlash which can lead to non repeatability. It might be better to use shims once a very precise tilt has been calculated in step 1. 

3. Another option which I am currently exploring is to start with every component as parallel and orthogonal as possible. 
 a. Eliminate focuser tilt in the field by using a high quality focuser that runs on bearings -- not deformable bushings. 
 b. Test every adapter on a surface plate/height gauge to ensure it meets specs -- say within10 microns. I have found that QHY cameras and adapters are well made and are well within spec. 
 c. Build all adapters carefully. I have a machine shop where I can make my own parts and that is quite helpful in ensuring quality.

Further, if there is any tilt observed after all this, perhaps the issue is collimation? It is helpful to have a way to do daytime collimation. For your scope I recommend getting a Hotech Advanced Laser collimator which simulates the parallel rays of a star and uses double pass autocollimation to amplify errors. I know that several manufacturers included TEC use this to do their collimation in their shop.

Another additional thought which I have not yet fully explored is to compensate in collimation any residual tilt by decollimating in the opposite direction. Again, I haven't gotten that far yet.






Jim Crumly
 

Nathan

I to have used the Hotech Advanced Collimator to culminate a RC scope. I found an Alt AZ mount works great for setup, I have a non-motorized type that you can dial in the setup pretty easily. And you might need a tall tripod for the screen. Works great once you get it setup correctly.

 

Good luck and Clear Skys

Jim   

 

From: main@ap-gto.groups.io <main@ap-gto.groups.io> On Behalf Of Nathan Myhrvold
Sent: Saturday, March 18, 2023 1:33 PM
To: main@ap-gto.groups.io
Subject: Re: [ap-gto] Removing sensor tilt with HocusFocus or ASTAP - some questions and details to work out

 

Thanks for the comments!

 

As it happens, I also have a machine shop and I made the adapters to connect QHY filter wheel to to OctopIAstro tilt adapter and then to camera.   And we made the adapter to connect the Planewave focuser / rotator to the QHY filter wheel.  That was necessary to prevent vignetting.   But as a result it is all very flat.   But I still had plenty of tilt to correct out when it was all assembled.   I will go over it all again.

 

The Hotech Advanced Laser Collimator sounds like a great idea.  I have tried artificial stars in the past but they are not great.  This looks pretty amazing so I will look into it.

 

Nathan

 

 

From: main@ap-gto.groups.io <main@ap-gto.groups.io> On Behalf Of Ram via groups.io
Sent: Saturday, March 18, 2023 1:21 PM
To: main@ap-gto.groups.io
Subject: [EXTERNAL] Re: [ap-gto] Removing sensor tilt with HocusFocus or ASTAP - some questions and details to work out

 

This is an excellent post.

1. I fully agree that it is sufficient to look at the 4 corners. The reason I believe why HF is using all these regions is that they want to estimate both tilt AND curvature. I think it is really confusing to have all this info anyway. It is far better to separate tilt and curvature into different steps. This is also because when you remove curvature (by adding, removing spacing), you will influence tilt and vice versa.

2. I also think that you have highlighted correctly the challenges of using screws to correct tilt. Not only are screws somewhat "coarse" given the required focusing accuracy for the optics we are dealing with, they also suffer from backlash which can lead to non repeatability. It might be better to use shims once a very precise tilt has been calculated in step 1. 

3. Another option which I am currently exploring is to start with every component as parallel and orthogonal as possible. 
 a. Eliminate focuser tilt in the field by using a high quality focuser that runs on bearings -- not deformable bushings. 
 b. Test every adapter on a surface plate/height gauge to ensure it meets specs -- say within10 microns. I have found that QHY cameras and adapters are well made and are well within spec. 
 c. Build all adapters carefully. I have a machine shop where I can make my own parts and that is quite helpful in ensuring quality.

Further, if there is any tilt observed after all this, perhaps the issue is collimation? It is helpful to have a way to do daytime collimation. For your scope I recommend getting a Hotech Advanced Laser collimator which simulates the parallel rays of a star and uses double pass autocollimation to amplify errors. I know that several manufacturers included TEC use this to do their collimation in their shop

Another additional thought which I have not yet fully explored is to compensate in collimation any residual tilt by decollimating in the opposite direction. Again, I haven't gotten that far yet.





Chris White
 

Nathan,

I posted an article on this topic and discussed both Hocus Focus and astap. It will answer some of the questions you have posted. Please followup with additional thoughts. I'm away from my pc right now but can help chew this topic over with you and the group. I've used octopi on several systems from 130gtx to stowaway to epsilon, all with the imx455 chip cameras. 

See this thread for a link to the article. 
https://ap-ug.groups.io/g/main/topic/95343845#94835


Ram
 

Regarding collimating with the Hotech  -- I posted instructions on cloudynights many years ago. Several people found that post helpful.

https://www.cloudynights.com/topic/509460-daytime-collimation-of-a-cassegrain-scoperc/

The scope in question was a TEC ADL 300 F 5.6 which is no longer made.  As an additional note, it is very helpful to have a precision X-Y stage to make aligning the laser fast and efficient. 


Nathan Myhrvold
 

Great – I will take a look.

 

In related news, I got onto the NINA Discord server and had a conversation with the author of HF.   It turns out that HF already does have a mode I didn’t know about that does the per-star focus curves with an overall curve fit pretty much as I mentioned.  I didn’t know about it!   

 

However, HF does not do adjusted offsets for your screw positions.  But the HF author wants to add those.  I am going to send him some data and my formulas.

 

Nathan

 

From: main@ap-gto.groups.io <main@ap-gto.groups.io> On Behalf Of Chris White via groups.io
Sent: Saturday, March 18, 2023 3:26 PM
To: main@ap-gto.groups.io
Subject: [EXTERNAL] Re: [ap-gto] Removing sensor tilt with HocusFocus or ASTAP - some questions and details to work out

 

Nathan,

I posted an article on this topic and discussed both Hocus Focus and astap. It will answer some of the questions you have posted. Please followup with additional thoughts. I'm away from my pc right now but can help chew this topic over with you and the group. I've used octopi on several systems from 130gtx to stowaway to epsilon, all with the imx455 chip cameras. 

See this thread for a link to the article. 
https://ap-ug.groups.io/g/main/topic/95343845#94835


Chris White
 

On Sat, Mar 18, 2023 at 06:54 PM, Nathan Myhrvold wrote:

Great – I will take a look.

 

In related news, I got onto the NINA Discord server and had a conversation with the author of HF.   It turns out that HF already does have a mode I didn’t know about that does the per-star focus curves with an overall curve fit pretty much as I mentioned.  I didn’t know about it!   

 

However, HF does not do adjusted offsets for your screw positions.  But the HF author wants to add those.  I am going to send him some data and my formulas.

 

Nathan

I'm not sure how helpful the sensor model is for suggesting which corner to move. I believe it assumes that the image circle is infinite and that only simple defocus occurs with tilt. In reality we have field curvature and astigmatism which confuse the measurements. This error is easily seen with the backspacing analysis. It's unreliable for large chips. I've had many conversations with George about HF from the beginning and it is a really great resource despite some of the limitations.  I'd like to see some sort of sanity check for corner measurements. Not sure if eccentricity could be used or not, but HFR (Hocus focus) and HFD (astap) are not the most robust proxies for tilt analysis when issues other than simple defocus are experienced (such as eccentricity and astigmatism)


Nathan Myhrvold
 

Maybe you are right, but here is why I think it is helpful to do the analysis for each star.

 

  1. The region based approach is inherently inaccurate because it gets rid of most of the focus data.  This is explained in the post – mean or median throw away most of the focus gradient.    It typically measures tilt only on a couple places across the sensor, and due to factors that I mention in my earlier post, you aren’t even sure where those places are due to star location or brightness statistics, curvature, centering or other effects.  .  These may, or may not, be big effects, but it is probably simpler to do the calculations with fewer artifacts rather than more.

 

  1. I don’t think there are the assumptions that you state.  The per-star analysis, according to the discord chat I just had, just measures the optimal focus point for each star, which gives you a 3D scatter plot, then fits an plane (or other surface) through those points.   For tip-tilt I only want the plane -specifically the equation of the plane.

 

  1. Whatever result you get for tip-tilt adjustments must then be extrapolated way beyond the frame – but that is just evaluating the plane equation at the points that correspond to your adjustment screws.

 

  1. Field curvature and astigmatism don’t matter if you do the per-star analysis and fit the plane.   That may sound flip but hear me out.    If you plot the surface for the full per-star focus optima you will get a non-flat surface due to these effects.   But you can’t alter those effects with a tilt adapter – they are due to optics.   It might tell you to collimate if that is possible, or buy a new scope. The tip-tilt problem doesn’t include those.  The goal for tip-tilt adjustment is to find the best settings to make as many of the stars have good focus as possible.    The linear regression (or other cuvrve fit) finds the plane such that if you put the sensor in that plane, it will minimizes the total error -i.e. have the smallest possible stars in as many places as possible on the frame.   That’s my goal – at least with regard to tip-tilt.

 

That could be wrong of course but it is how I have been proceeding.

 

Nathan

 

 

From: main@ap-gto.groups.io <main@ap-gto.groups.io> On Behalf Of Chris White via groups.io
Sent: Saturday, March 18, 2023 4:54 PM
To: main@ap-gto.groups.io
Subject: [EXTERNAL] Re: [ap-gto] Removing sensor tilt with HocusFocus or ASTAP - some questions and details to work out

 

On Sat, Mar 18, 2023 at 06:54 PM, Nathan Myhrvold wrote:

Great – I will take a look.

 

In related news, I got onto the NINA Discord server and had a conversation with the author of HF.   It turns out that HF already does have a mode I didn’t know about that does the per-star focus curves with an overall curve fit pretty much as I mentioned.  I didn’t know about it!   

 

However, HF does not do adjusted offsets for your screw positions.  But the HF author wants to add those.  I am going to send him some data and my formulas.

 

Nathan

I'm not sure how helpful the sensor model is for suggesting which corner to move. I believe it assumes that the image circle is infinite and that only simple defocus occurs with tilt. In reality we have field curvature and astigmatism which confuse the measurements. This error is easily seen with the backspacing analysis. It's unreliable for large chips. I've had many conversations with George about HF from the beginning and it is a really great resource despite some of the limitations.  I'd like to see some sort of sanity check for corner measurements. Not sure if eccentricity could be used or not, but HFR (Hocus focus) and HFD (astap) are not the most robust proxies for tilt analysis when issues other than simple defocus are experienced (such as eccentricity and astigmatism)  


Chris White
 

The problem with eccentricity and astigmatism is that if they are present, hfr measurements may place the vertex of the "optimal focus curve" at the wrong focuser position.  You can mitigate this by using an ROI to eliminate these aberrations from the analysis, but at the expense of measuring the very stars we are agonizing the most over. 


Chris White
 
Edited

Even on a single star basis hfr assumes only defocus as the variable. Astigmatism and eccentricity confuse the measurement. Hence the optimum position presented by the algorithm has error.

When youbare only measuring focus and defocus across the entire chip you must be assuming the image circle is infinite in size as you are ignoring the effect of field curvature and astigmatism.  


Chris White
 
Edited

By the way Nathan, your thought process is spot on. I'm in agreement with your logic. I only bring this up to illustrate a shortcoming with using hfr as the proxy for tilt, which may not steer you to your desired goal. 

Let me ask you this:  what would you prefer, a very tightly focused star with severe astigmatism, or a round star with a slightly higher fwhm?  Hfr analysis will steer you towards the former, when this might not be your end goal. If you base tilt and spacing analysis on hfr alone it's possible that the analysis diverges from your idea of a visually "good looking star."  

This has been my experience and both the Epsilon+imx455 as well as the 130gtx with QTCC+imx455. Inwas able to successfully use the analysis to get most of the tilt error out, but the final 10% required visually tweaking. Both ASTAP and Hocus focus were going around in circles once I got my field very close to perfect. 

I completely agree with you that for any of this to work you must have a well collimated scope in play. 

I've approached Gaston Baudat from innovations foresight, who has created wave front analysis software for collimation and he believes he can create a solution for tilt analysis that does not depend on the current methods. Not sure how much of a priority it is for him. This conversation does remind me to check back in with him...


Roland Christen
 

One can design a refractor with compressor that produces round stars into the corners even when the sensor is tilted. The drawbacks are 2-fold. First, the scope is not as sharp on-axis both visually and imaging, and the stars will be significantly larger on the astro-images.  2) the scope will have significant off-axis coma when used visually without a field flattener. 

Now, most people won't use such a scope visually with wide field oculars like Naglers and Ethos, so they might not realize the limitation of the off-axis coma. They will instead enjoy the roundness of their stars on their astro-photos and that may be indeed the best option for them (even though they would lack resolution).

I designed the 110 lens to have no off-axis coma, so it can be used without flatteners with small chip camera over approximately 0.6 degree field. It can be used with full frame digital cameras for bird and wildlife images and will produce very sharp images of extended objects, just not point sources like stars. When used with my upcoming F6.6 flattener it will produce round stars even in the presence of sensor tilt. However, when used at F5 with the TCC, the sensor tilt must be removed. My ZWO 6200 MM has at least 100 microns of tilt, caused by the chip, filter wheel and off-axis guider hardware. None of these parts are made truly orthogonal. These parts all have wedge. My partial solution would be to add shims of various thickness under 3 of the 4 corners. Right now I'm imaging with the tilt partially removed because I don't have the measurement equipment here in Hawaii.

Roland

-----Original Message-----
From: Chris White <chris.white@...>
To: main@ap-gto.groups.io
Sent: Sat, Mar 18, 2023 3:33 pm
Subject: Re: [ap-gto] Removing sensor tilt with HocusFocus or ASTAP - some questions and details to work out

By the way Nathan, your thought process is spot on. I'm in agreement with your logic. I only bring this up to illustrate a shortcoming with using hfr as the proxy for tilt, which may not steer you to your desired goal. 

Let me ask you this:  what would you prefer, a very tightly focused star with severe astigmatism, or a round star with a slightly higher fwhm?  Hfr analysis will steer you towards the former, when this might not be your end goal. If you base tilt and spacing analysis on hfr alone it's possible that the analysis diverges from your idea of a visually "good looking star."  

This has been my experience and both the Epsilon+imx455 as well as the 130gtx with QTCC+imx455. Inwas able to successfully use the analysis to get most of the tilt error out, but the final 10% required visually tweaking. Both ASTAP and Hocus focus were going around in circles once I got my field very close to perfect. 

I completely agree with you that for any of this to work you must have a well collimated scope in play. 

I've approached Gaston (Baudat i believe), who has created waves front analysis software for collimation and he believes he can create a solution for tilt analysis that does not depend on the current methods. Not sure how much of a priority it is for him. This conversation does remind me to check back in with him...

--
Roland Christen
Astro-Physics


Nathan Myhrvold
 

It is very cool that this degree of freedom in design exists - thanks for explaining!


From: main@ap-gto.groups.io <main@ap-gto.groups.io> on behalf of Roland Christen via groups.io <chris1011@...>
Sent: Saturday, March 18, 2023 9:42:14 PM
To: main@ap-gto.groups.io <main@ap-gto.groups.io>
Subject: [EXTERNAL] Re: [ap-gto] Removing sensor tilt with HocusFocus or ASTAP - some questions and details to work out
 
One can design a refractor with compressor that produces round stars into the corners even when the sensor is tilted. The drawbacks are 2-fold. First, the scope is not as sharp on-axis both visually and imaging, and the stars will be significantly larger on the astro-images.  2) the scope will have significant off-axis coma when used visually without a field flattener. 

Now, most people won't use such a scope visually with wide field oculars like Naglers and Ethos, so they might not realize the limitation of the off-axis coma. They will instead enjoy the roundness of their stars on their astro-photos and that may be indeed the best option for them (even though they would lack resolution).

I designed the 110 lens to have no off-axis coma, so it can be used without flatteners with small chip camera over approximately 0.6 degree field. It can be used with full frame digital cameras for bird and wildlife images and will produce very sharp images of extended objects, just not point sources like stars. When used with my upcoming F6.6 flattener it will produce round stars even in the presence of sensor tilt. However, when used at F5 with the TCC, the sensor tilt must be removed. My ZWO 6200 MM has at least 100 microns of tilt, caused by the chip, filter wheel and off-axis guider hardware. None of these parts are made truly orthogonal. These parts all have wedge. My partial solution would be to add shims of various thickness under 3 of the 4 corners. Right now I'm imaging with the tilt partially removed because I don't have the measurement equipment here in Hawaii.

Roland

-----Original Message-----
From: Chris White <chris.white@...>
To: main@ap-gto.groups.io
Sent: Sat, Mar 18, 2023 3:33 pm
Subject: Re: [ap-gto] Removing sensor tilt with HocusFocus or ASTAP - some questions and details to work out

By the way Nathan, your thought process is spot on. I'm in agreement with your logic. I only bring this up to illustrate a shortcoming with using hfr as the proxy for tilt, which may not steer you to your desired goal. 

Let me ask you this:  what would you prefer, a very tightly focused star with severe astigmatism, or a round star with a slightly higher fwhm?  Hfr analysis will steer you towards the former, when this might not be your end goal. If you base tilt and spacing analysis on hfr alone it's possible that the analysis diverges from your idea of a visually "good looking star."  

This has been my experience and both the Epsilon+imx455 as well as the 130gtx with QTCC+imx455. Inwas able to successfully use the analysis to get most of the tilt error out, but the final 10% required visually tweaking. Both ASTAP and Hocus focus were going around in circles once I got my field very close to perfect. 

I completely agree with you that for any of this to work you must have a well collimated scope in play. 

I've approached Gaston (Baudat i believe), who has created waves front analysis software for collimation and he believes he can create a solution for tilt analysis that does not depend on the current methods. Not sure how much of a priority it is for him. This conversation does remind me to check back in with him...

--
Roland Christen
Astro-Physics


Nathan Myhrvold
 

To reply directly to what Chris asks, I would rather take the sharper star rather than the fuzzier but rounder star.

That is for a couple reasons.  First, defocus is easier in software than focus - you can mess with star shape and increases size easier than sharpening by deconvolution (although both can be done to some degree).

Second and more important. think this is a good example of how one can get an artificial dilemma.   

While it is true that in some limited cases you might find that poor optics makes slightly better images without being fully sharp, letting this case get in the way of doing the right general case processing causes way more problems.

So I would rather use the four screws on the tip-tilt plate to get the best sharpness. I can't actually correct astigmatism with 4 screws, at best hide it a little.  

To meaningfully correct it you need either collimation (if that is messed up) or more likely different optics.

Roland gave a good example in another post about how optical design actually let's you build an analogous tradeoff between resolution and star shape directly into the optical design.  I didn't know that there was that much latitude.

But as he says, the lower resolution but rounder star design that is tilt immune is probably not the choice of most people.

One more point.  Although you can't correct field curvature with tilt adj (ie  4 screws,) you actually can fix it if you take multiple exposures and focus stack them.

I do this in macro/ micro all the time.  It may sound silly to focus stack something at infinity, but you certainly could shoot 2 or more frames with a different focus offset and then focus stack in software.  That is a different sort of stacking than normal astrophotography stacking.

I would rather buy better optics personally,  but if you had enough time this would work


From: main@ap-gto.groups.io <main@ap-gto.groups.io> on behalf of Chris White via groups.io <chris.white@...>
Sent: Saturday, March 18, 2023, 6:36 PM
To: main@ap-gto.groups.io <main@ap-gto.groups.io>
Subject: [EXTERNAL] Re: [ap-gto] Removing sensor tilt with HocusFocus or ASTAP - some questions and details to work out

[Edited Message Follows]

By the way Nathan, your thought process is spot on. I'm in agreement with your logic. I only bring this up to illustrate a shortcoming with using hfr as the proxy for tilt, which may not steer you to your desired goal. 

Let me ask you this:  what would you prefer, a very tightly focused star with severe astigmatism, or a round star with a slightly higher fwhm?  Hfr analysis will steer you towards the former, when this might not be your end goal. If you base tilt and spacing analysis on hfr alone it's possible that the analysis diverges from your idea of a visually "good looking star."  

This has been my experience and both the Epsilon+imx455 as well as the 130gtx with QTCC+imx455. Inwas able to successfully use the analysis to get most of the tilt error out, but the final 10% required visually tweaking. Both ASTAP and Hocus focus were going around in circles once I got my field very close to perfect. 

I completely agree with you that for any of this to work you must have a well collimated scope in play. 

I've approached Gaston Baudat from innovations foresight, who has created wave front analysis software for collimation and he believes he can create a solution for tilt analysis that does not depend on the current methods. Not sure how much of a priority it is for him. This conversation does remind me to check back in with him...


Chris White
 
Edited

You are not really using tip tilt to control for astigmatism though. You use backspacing to control astigmatism. A tilt free image train will show symmetry regardless of spacing. 

The point I am making, is that analysis using HFR is error prone. Maybe you can come up with a method to mitigate this error?  I for one would be very happy if you could. :-)

Devonvolution is not effective with astigmatism, but it is effective with bloated stars... especially RC blurxterminator. 

Here is a comparison I did a while back that illustrates the flaws of HFR analysis:  https://ap-ug.groups.io/g/main/topic/90845381#90967


Chris White
 

On Sun, Mar 19, 2023 at 12:42 AM, Roland Christen wrote:
designed the 110 lens to have no off-axis coma, so it can be used without flatteners with small chip camera over approximately 0.6 degree field. It can be used with full frame digital cameras for bird and wildlife images and will produce very sharp images of extended objects, just not point sources like stars. When used with my upcoming F6.6 flattener it will produce round stars even in the presence of sensor tilt
The flattener will be the perfect scenario for programs like ASTAP and Hocus Focus, where simple defocus is the only symptom of tilt. I assume you just have a large enough and flat enough image circle that with proper spacing, field curvature is non existent for a full frame chip. 


Nathan Myhrvold
 

Sorry, but I don’t understand “using backspacing to control astigmatism”.  My focuser has a wide range of travel.  If I backspace – either explicitly with a spacer, or implicitly by turning all of the screws in the tip-tilt adapter in the same direction, then unless it is at the very limit of focuser travel, the autofocus is going to find the spot where star diameter (either FWHM or HFR) is smallest.  That is how essentially every autofocus works. 

 

Perhaps by backspacing you mean this: autofocus the telescope, then defocus slightly by a pre-determined amount?   Sort of like the filter offsets that are used to change focus when you use filters of different thickness. 

 

Astigmatism is an off-axis effect.  Telescope astigmatism (telescope-optics.net), which is exacerbated by sensor tilt, but exists off axis more generally it can exist off-axis for a perfectly squared up, tilt-free sensor.

 

So yes, a tip-tilt adapter thus can reduce or eliminate the tilt-dependent astigmatism effects, but can’t eliminate astigmatism that occurs for the off-axis regions of a perfectly perpendicular sensor.   That is what I meant.

 

----------------Somewhat tangential detour-------------------

The way I think of aberrations is this – we want the telescope optics to perform a “computation” on the incoming light – effectively the OTA is computing a function of incoming light.  In most cases, we implement that function by a series of spherical surfaces.   This is much like approximating a mathematical function by a power series.   Our main theories for doing this started off with approximations that worked best very close to the axis – just like power series approximations usually work best in the neighborhood of a point.  As we got more ambitious to have wider field of view, we started to stray off-axis, making the approximations less good.

 

But expanding the desired function only using spherical surfaces introduces a number of characteristic problems we call aberrations.  These occur both on-axis and off-axis. Mathematically they correspond to the Zernike polynomials Zernike coefficients (telescope-optics.net), which describe the characteristic deformations of the wavefronts that correspond to the aberrations.   

 

We use spherical surfaces in refractive optics for two main reasons – first, there is a rich history of optical designs that have found ways to get around many of the aberrations.  We lack a similarly developed theory and set of designs for aspherical optics.  Second, our methods of manufacturing spherical lenses is vastly more advanced (and thus much cheaper) that for aspheres.  It also allows using wider variety of optical materials (different glasses).  As a result, most imaging lenses do not use aspheres.  The few that do usually use only one element, and often only one surface of that element is aspherical.  They are often made of plastic using a mold.

 

Reflective optics is a bit different – in that case parabolic and hyperbolic surfaces have been used for a very long time, in large part because somebody invented a way to make and test these surfaces on a mirror, using simple methods (grinding by hand, testing with a candle and knife edge).   A complication here is that there is only one way to spherical but many ways to aspherical.  The parabolic and hyperbolic surfaces using in reflectors are not spherical, but they are just one small step into a wild world of aspheres.

 

Fully aspherical optics would eliminate most of the classical aberrations.  A breakthrough paper in 2019 by some Mexican physicists came up with a bi-aspheric (i.e. both sides of the lens were aspherical) singlet (i.e. a single lens) with no spherical aberration untitled (researchgate.net).  

 

Take a look at the lens shapes in that paper  – they are WEIRD!   And probably difficult or impossible to make using conventional techniques.  Single point diamond turning makes lenses with a CNC lathe, and could easily make these.  However, at the moment the method leaves tool marks that are too rough for visible light (they are using in long wave IR). 

 

The same research group has made promising steps in telescope optics Analytic-formulation-of-a-refractive-reflective-telescope-free-of-spherical-aberration.pdf (researchgate.net), or general optical systems https://www.researchgate.net/profile/Rafael-G-Gonzalez-Acuna/publication/335374531_General_formula_to_eliminate_spherical_aberration_produced_by_an_arbitrary_number_of_lenses/links/5d640b44299bf1f70b0e8dc4/General-formula-to-eliminate-spherical-aberration-produced-by-an-arbitrary-number-of-lenses.pdf

 

A surprising aspect of this work is that it is analytical in nature – i.e. they are using mathematical formulas.  Ernst Abbe (19th century optics theorist) could read the papers!  Most work on aspheres is done with ray tracing software – which is great for a specific case but it is less likely to lead to insights that can be generalized to optical designs. 

 

However, compared to the maturity and sophistication of conventional optical design, and the experience of great designers like Roland, these are baby steps.  But they are intriguing for the future.


I am quite curious as to what Roland has to say about this stuff.

 

------------ back to topic at hand ----------------

 

I am sure that it is possible to make a metric for telescope autofocus other than star diameter (HFR , FWHM etc).   You just need a mathematical description of your desired balance between star roundness and diameter.  Run that on a per-star basis to get the optimum point for each star, by this new metric.   The fit a plane to the data, and that tells you what tip-tilt to use.

 

You would also need this same metric embedded in the autofocus routine – unless you find that the optimum position can be described as a fixed offset from the optimum using star diameter.

 

Conceptually this is easy – the hard aspect of implantation is picking your roundness criteria, but there are many out there.  The obvious thing to try is  HFR + roundness, or perhaps Sqrt( HFR^2 + roundness^2) where “roundness” is some scalar valued metric.

 

It might be better implemented in the Fourier domain.  Most current autofocus methods measure HFR (or FWHM) on the image itself to do autofocus.  But Fourier domain methods have been developed 2201.12466.pdf (arxiv.org).  In the Fourier domain it might be easier to apply the criterion there – at the cost of it being harder to think about.

 

However, my judgement (perhaps flawed!) is that this isn’t all that interesting because as explained previously (a) better optics solves the problem a different way, and (b) if you have the sharpest possible stars you can address the problem (at least somewhat) by post-processing in software.

 

Nathan

 

 

From: main@ap-gto.groups.io <main@ap-gto.groups.io> On Behalf Of Chris White via groups.io
Sent: Sunday, March 19, 2023 4:45 AM
To: main@ap-gto.groups.io
Subject: [EXTERNAL] Re: [ap-gto] Removing sensor tilt with HocusFocus or ASTAP - some questions and details to work out

 

You are not really using tip tilt to control for astigmatism though. You use backspacing to control astigmatism. A til free image trail will show symmetry regardless of spacing. 

The point I am making, is that analysis using HFR is error prone. Maybe you can come up with a method to mitigate this error?  I for one would be very happy if you could. :-)

Here is a comparison I did a while back that illustrates the flaws of HFR analysis:  https://ap-ug.groups.io/g/main/topic/90845381#90967


Chris White
 

On Sun, Mar 19, 2023 at 02:04 PM, Nathan Myhrvold wrote:
Perhaps by backspacing you mean this: autofocus the telescope, then defocus slightly by a pre-determined amount?   Sort of like the filter offsets that are used to change focus when you use filters of different thickness.
No, you can mitigate astigmatism by adjusting backspacing. (The distance between the flattener and camera sensor) .  See the link I shared about the 130gtx+Qtcc. 

I'll look at the rest of your post also, but I'm on my phone right now.