Issues with Custom horizon

Discussions, Bug Reports and Issues related to Beta versions of SharpCap
Post Reply
StarFlea
Posts: 177
Joined: Wed Dec 21, 2022 12:22 pm

Issues with Custom horizon

#1

Post by StarFlea »

Dear Robin,

I’m currently busy testing your new beta! Congratulations—I really like it! :)

I noticed a few things while using the custom horizon feature:

1. When editing the Alt/Az values, you can only click the "Apply" button in the settings window once. After that, the button is greyed out and cannot be used again for subsequent changes.

2. It also needs to be possible to enter (slightly) negative altitude values. My location is 410 m above sea level. I meticulously measured the horizon around my site just a few weeks ago (for use in Stellarium), and there are indeed areas where the altitude values ​​are negative.

For reference, here are my values. Note: There is a house wall to the north, there is a 90° section here:

Code: Select all

0 90
66.62 90
66.63 1.81
67.14 1.86
67.23 1.39
67.69 1.17
67.96 1.87
68.25 1.02
68.65 0.97
68.88 1.69
69.75 2.56
70.40 0.68
70.80 0.56
70.96 0.62
71.19 0.40
71.48 0.42
71.59 0.33
71.87 0.35
71.93 0.31
72.06 0.31
72.42 1.05
73.25 1.61
74.09 1.41
75.29 0.89
76.08 2.78
76.45 3.10
77.23 0.21
80.10 0.23
80.20 0.15
80.93 0.19
81.43 0.20
82.25 0.13
82.71 0.14
82.80 0.22
82.86 0.21
82.93 0.10
85.43 0.13
85.57 0.68
85.94 1.93
87.23 3.20
90.0 4.78
90.98 5.34
93.56 5.60
94.95 5.37
97.66 2.80
98.57 0.37
99.53 0.34
101.39 0.46
101.47 0.39
102.37 0.56
103.50 0.46
103.94 0.58
104.78 0.65
106.18 0.67
107.03 0.59
108.13 0.66
108.55 0.61
108.60 0.65
108.81 0.58
109.40 0.63
109.72 0.58
110.59 0.64
111.94 0.54
112.34 0.59
112.67 0.55
112.78 0.46
114.91 0.49
114.95 0.63
115.06 0.49
116.58 0.55
117.41 0.46
117.47 0.39
118.0 0.35
118.17 0.44
118.36 0.37
118.83 0.40
118.93 0.51
119.87 0.59
120.90 0.54
122.03 0.57
122.09 1.43
122.14 0.61
122.39 0.65
122.45 0.98
122.48 0.68
123.25 0.73
123.37 0.67
124.95 0.73
124.99 1.38
126.03 1.36
126.07 0.81
129.04 0.88
129.76 0.62
129.89 0.65
132.11 0.67
133.06 0.59
133.93 0.65
140.31 0.44
141.24 0.36
142.52 0.39
142.75 0.28
143.0 0.41
145.19 0.43
146.08 0.42
146.33 0.47
147.30 0.41
147.74 0.31
148.35 0.45
148.75 0.39
148.88 0.25
149.33 0.24
150.44 0.37
152.13 0.40
154.73 0.25
155.85 0.42
157.52 0.16
158.54 0.31
162.78 0.32
165.40 0.21
166.94 0.31
167.34 0.23
167.41 0.07
167.62 0.07
167.71 0.22
168.83 0.23
169.28 2.86
169.70 0.10
170.25 0.10
171.13 -0.06
171.22 0.05
172.96 0.10
173.43 -0.09
175.28 -0.14
177.56 0.04
179.44 -0.04
179.88 -0.16
179.98 -0.11
181.45 -0.05
181.98 -0.12
182.02 0.94
182.07 -0.12
182.63 -0.21
183.21 -0.14
185.57 -0.17
185.58 -0.07
185.67 -0.07
185.68 -0.16
187.89 -0.24
187.90 -0.17
187.96 -0.17
187.97 -0.24
188.14 -0.25
188.27 -0.42
190.29 -0.35
190.42 -0.14
190.53 -0.33
192.19 -0.21
192.24 0.56
192.25 -0.22
193.12 -0.19
193.22 0.73
193.31 -0.24
193.91 -0.22
194.06 2.13
197.55 5.58
200.09 9.65
202.35 9.93
204.55 8.67
205.62 5.08
208.01 4.70
208.55 5.62
214.19 6.58
218.12 5.37
221.33 5.27
221.40 7.31
224.47 8.27
228.30 9.63
228.31 90
360 90
3. Suggestion for a tool: Visual scanning of the horizon using a telescope camera and mount—guided by a crosshair—with the ability to easily transfer Alt/Az points ​​into a profile via a simple button click.

Cheers!
StarFlea
User avatar
admin
Site Admin
Posts: 17609
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Issues with Custom horizon

#2

Post by admin »

Hi,

glad you like the new custom horizon - more features coming from that direction in time...

No problem with adding a small negative altitude allowance, although I guess that's more theoretical than practical, since extinction due to air mass at that altitude would be pretty horrible :)

The way that the 'Apply' button works is that it only updates when you move away from the editing area for the horizon - basically the edits are unchecked while you are still working in that edit box, then when you click outside, press tab or whatever, SharpCap checks the horizon, displays any error and then enables the 'Apply' button if something has changed and there are no errors.

In theory, I could make all the checking and apply button updating happen every time you type a character, but in practice that tends to be annoying - you will get false 'errors' about incomplete lines of text in the horizon as you are part way through typing them.

cheers,

Robin
StarFlea
Posts: 177
Joined: Wed Dec 21, 2022 12:22 pm

Re: Issues with Custom horizon

#3

Post by StarFlea »

Hi,

You are absolutely right about extinction at negative altitude values. The whole thing is actually more interesting in the context of capturing sunrise and sunset, as well as moonrise and moonset.

I can't fully reproduce it, but the "Apply" button doesn't always reactivate after multiple consecutive edit attempts when I click outside the text field.
It seems to work reliably only if I click in the graphics area after editing.
Personally, I’ve always handled this in my GUIs by placing an explicit "Check" button next to the text field; this button becomes active as soon as anything in the text field is changed. Clicking this button triggers error validation. The graphic can then be updated if everything is correct and the button greys out. Otherwise if errors remain, the system can focus on and highlight the first line in the text field containing an error.
The "Apply" button at the bottom then remains responsible for applying the complete set of settings.

cheers,

StarFlea
StarFlea
Posts: 177
Joined: Wed Dec 21, 2022 12:22 pm

Re: Issues with Custom horizon

#4

Post by StarFlea »

Unfortunately, even with the latest update, I'm still having problems importing my data list.

The error message is: "Invalid custom horizon - points must be in ascending order of azimuth."
I can't find any incorrect order.
Is there perhaps a limit to the number of data points, or could there be a problem with the decimal places?

cheers,
StarFlea
archer1960
Posts: 98
Joined: Sun Feb 23, 2025 9:04 pm

Re: Issues with Custom horizon

#5

Post by archer1960 »

If SC rounds the azimuth values to zero or one decimal place, I can see some spots in your list where you will get the same value twice in a row. Why (and how) do you get a list with azimuth values to two decimal places?
StarFlea
Posts: 177
Joined: Wed Dec 21, 2022 12:22 pm

Re: Issues with Custom horizon

#6

Post by StarFlea »

That would explain a lot!

Basically, I just adopted the horizon values ​​I use for Stellarium. I painstakingly traced the horizon using the crosshairs and noted down the altitude/azimuth values ​​displayed in GSS. That should help me better gauge the landmarks.
User avatar
admin
Site Admin
Posts: 17609
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Issues with Custom horizon

#7

Post by admin »

Hi,

I'm wondering if the Windows number format settings might be the problem here - I have no issues with the horizon data posted above, but if your decimal separator is set as ',' and the thousands grouproing character is '.' then SharpCap will try interpreting the data using those settings, getting odd values for both altitude and azimuth.

If that's the case then I will have to think about how to deal with it.

cheers,

Robin
StarFlea
Posts: 177
Joined: Wed Dec 21, 2022 12:22 pm

Re: Issues with Custom horizon

#8

Post by StarFlea »

Ah, okay, the separator!

I hadn't paid attention to consistency there myself!
Thanks! It works now! :)

StarFlea
Post Reply