SGP AF Logviewer v1.2 Release

I forgot to put into the changelog that this part of the code is BROKEN as of now, due to the many changes done to include the ability to do the analysis per filter. I will try to fix this, but it turned out to be tricky due to the way I coded it. So for now you cannot exclude points.
As for screening data based on the meridian flip, that might be really tricky. Not sure how to do that based on what is logged.

Suggestion 2: that is probably possible, without too much coding. Good idea. I will put it on the list…

The logfile has pier side logged
[11/17/19 00:14:33.603][DEBUG] [Telescope Thread] ASCOM Telescope: Pier side is West

But…Just the ability to exclude full autofocus runs would help a lot of people :slight_smile:

Ok, I’ll look into this. Might be easier than I expected.
A crude solution would be to split the logfile into 2 files based on the hour of the flip, and analyse them separetely. I haven’t tested that thought.

I agree that the exclusion of AF runs and data points is very useful. But I felt I had lingered enough regarding posting this new version, so hence I posted it. Clearly I need to address this when I have time.

I split the file manually and ended up with this which is definitely usable data :+1:
image

I’ve uploaded v1.21 which includes the .log extension in the file selection dialog. This is the new file extension used in the SGP 3.1.0.402 (Stable) release and some earlier betas starting with 3.1.0.388.

Please download the AF logviewer here:

Mikael

1 Like

Hi,
I’m unable to load a log file with this logviewer

Log file is here https://drive.google.com/open?id=1wgEgKfnCm1JWknQ60xJnBM7PJHSBJkCl

It do the same with all log files included autofocus run. I use the latest release of SGP

This error is correlated to the insertion of additional information into the logfile, see Ken’s explanation in SGP Log Viewer - #5 by Ken - Sequence Generator - Main Sequence Software .

I reported this issue to Mikael on 24th December but did not get a response from him yet. Probably he is on vacation.

A temporary workaround is:
In an editor, find all “[SQ;AF;]” and replace by “[AF]”. Then save the modified logfile. Apply SGP AF LogViewer to the modified logfile.

Bernd

1 Like

thanks for the explanation and the workaround

The error has now been corrected. Please download v1.21 again and re-install:

Mikael

1 Like

I have been a user of the AF Log Viewer for awhile now and it is great! Thank you for creating this for us.

I do have one issue though. If I open many SGP logfiles, the position-temperature graph will plot in colors that cannot be seen on the background of the graph. See attached.

Can you change that so that the elements on the graph are high contrast?

Thank You,
Greg

Thanks for the feedback Greg!

Yes, I’m aware of the contrast issue, although I haven’t quite seen such an extreme example before.

I’ll try to find a solution as soon as I get time. I’ll post here when it is available.

Mikael

Version 1.22 of the AF Logviewer can now be downloaded from here: SGP AutoFocus LogViewer - Browse Files at SourceForge.net

No big changes, some small bug fixes, and adding the Quality factor to the output table. The change log:

  • FIXED BUG: handles exception when no temperature data can be found
  • FIXED BUG: only assign random DARK colors in the pos-vs-temp plots (used in case the filter name cannot be identified)
  • Change: added quadratic fit “Q” quality parameter to the output table (when reading older SGP files using old AF routine the parameter will show NA by default). Also shows minimum quality factor “min Q” used by SGP to qualify succesful runs. This is by default 90%, but the program will detect if ‘quadratic_fit_min_quality’ has been set by user
  • Change: added black as the default color of the “None” filter name (used in pos-vs-temp plot)

Mikael

There is an additional change I forgot to put on the list:

  • “Show all AF runs” check box added. If checked then aborted/failed runs will also be shown. By default it is unchecked.

Hi Mikael,
great app. Thanks for adding the quality value to the table.

Mark

Mikael,

Ran V1.22. Excellent job.

One issue: my Ha filter (named Ha) shows up in the data as Filter. Example:

Filter Filter : a = 0.0 steps/deg, b = 0 steps, SGP factor: 0.0 steps/deg

One request: I cannot find a table of the focus position vs. HFR for the focus runs. I would like to further analyze the focus data and combine with other session focus runs. Can you generate a table with all the data for each focus run, including which filter, etc.? If it already exists, where can I find it?

Thanks,

Mark W

Mark,

If there were runs qualified as successful (i.e. quality factor > 90%) in your logfile there should have been a table with the data you seek in the main text window. Sounds like something went wrong while scanning the file. Please post a link to the file on this forum, and I’ll have a look.

The program can also read multiple logfiles and analyze for instance the focus position vs. temperature, or filter offsets, from multiple files. You simply select all files you want to analyze together in the open file dialog.

Mikael

Mikael,

The runs were successful with fit Q from 94 to 99%. The table in the log app text window has the table of the final results for each run which is very useful. I cannot find the data used to make the AF plots, HFR vs. position. I like to use Excel to do some calculations on a variety of runs and make a different set of plots. Since you extract the data points from the focus run log, could you make the raw data available or exportable?

Mark W

Yes this is possible. Start the program using the command prompt and add a switch “-o”, eg.

C:\Program Files (x86)\AlcorSoftware\SGP AutoFocus LogViewer 1.22>“SGP AutoFocus Viewer.exe” -o

This will enable an option that automatically saves the raw data to a text file, you can choose path and filename.

Mikael

And Mark, you also had an issue with the filtername ? I’ll need the logfile to look into it.