-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to add take_dark_lib and check_dark_lib api through event server? #1211
Comments
We could potentially add this to the api, but could you elaborate on your use case for why you might need it? |
This comment was marked as abuse.
This comment was marked as abuse.
@agalasso And I think the biggest problem now is that we can only operate phd2 by simulating clicks inside the program, without a good interface |
It isn't a question of how to do it, it's the more important question of why we would want to. This strikes me as a very marginal use-case for the reasons Andy already mentioned. Further, I question how many typical guide cameras have a mechanical shutter that would support remote dark library building. We have never signed up for making every interactive operation in PHD2 controllable through the API nor do I think we should. I think your implementation is probably better left to a private version of PHD2, which is one of the benefits of having it be open-source. Bruce |
@bwdev01 |
@agalasso @bwdev01 |
@jilaqi-le-gao thanks for explaining the motivation. I am not opposed to adding this feature.
To summarize, phd2 would need:
|
I would really like to see the supporting data here, I doubt seriously that the problem – whatever it was – has been analyzed correctly. In the last 11 years, I can count on one hand the number of times we’ve ever had to tell someone to replace their dark library. I would like to avoid the recurring theme of 1) encounter a problem, 2) mis-analyze the problem but don’t ask for any help, 3) request a new feature that will purportedly “fix” the problem. I’m flabbergasted that anyone would want to provide a server interface to fiddle around with dark libraries while ignoring other far more useful capabilities like Calibration Assistant, Guiding Assistant, polar alignment, etc.
From: Gao Le ***@***.***>
Sent: Saturday, June 15, 2024 6:45 AM
To: OpenPHDGuiding/phd2 ***@***.***>
Cc: bwdev01 ***@***.***>; Mention ***@***.***>
Subject: Re: [OpenPHDGuiding/phd2] Is it possible to add take_dark_lib and check_dark_lib api through event server? (Issue #1211)
@agalasso <https://github.com/agalasso> @bwdev01 <https://github.com/bwdev01>
Let me explain why we need it.
Because we are developing a remote control software, which operates on a mobile phone, remotelly controls phd2(through a python backend). This meansing our software does not have a chance to use the GUI because everything is on http or websocket. Therefore, we could not use the gui to generate the dark lib.
The current event server api provides almost everything to get phd2 work remotely, except the dark lib.
We also tried to not use the dark lib to guide. But in recent test, even we try to select star manually, it still has chance to select star onto a hot-pixel. Even the min-HFR is larger than 1.5 does not solve the case.
That's why i come to this issue, just to make the remote control more perfect.
Also, if it is necessary to make our software open-source, i would be glad to do so after we finish it.
—
Reply to this email directly, view it on GitHub <#1211 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADDHSV7T3I3ZVOMEDHWTYVLZHRANHAVCNFSM6AAAAABJFZNWCCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRZGY3DGNRYHA> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/ADDHSVYWJ7ME3BYQIRR3T2TZHRANHA5CNFSM6AAAAABJFZNWCCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUBKJYMQ.gif> Message ID: ***@***.*** ***@***.***> >
|
@agalasso |
Well, you are right. I perfer to using the exsiting solution to solve this problem than developing a new api. But our key problem is not the guider error, but mis-select a star. I think maybe we could provide data like this:
if the phd2 has other logs or data can export for better analysis this problem, please let me know. However, in my opinion, setting a roi region before start guide is not always the solution, because we can't expect the light star to be always inside this area. So, we could not let the roi region to be very small. Aslo, the roi is only one rect area, which may easily contain a hot-pixel. But anyway, maybe more testing can tell us more. |
Ok, this is what I expected. There is nothing magic about an HFD value of 2, that may still be too low. You can’t just make guesses here, you need to analyze the log files – or ask us to – and see what the characteristic star sizes are for your setup. If the guide camera was not well-focused for example, the star sizes could be huge. Re-doing dark libraries isn’t going to fix this problem. I agree that requiring an ROI for auto-find isn’t a good solution but HFD or a bad-pixel map are your two best defenses against hot pixel selection. All of this assumes that you were operating under reasonable sky conditions where you could have a reasonable expectation of finding usable guide stars.
Bottom line – we need to see real data when this problem is encountered and proceeding with the requested API feature would almost certainly be a waste of time.
Bruce
From: Gao Le ***@***.***>
Sent: Sunday, June 16, 2024 2:38 AM
To: OpenPHDGuiding/phd2 ***@***.***>
Cc: bwdev01 ***@***.***>; Mention ***@***.***>
Subject: Re: [OpenPHDGuiding/phd2] Is it possible to add take_dark_lib and check_dark_lib api through event server? (Issue #1211)
I would really like to see the supporting data here, I doubt seriously that the problem – whatever it was – has been analyzed correctly. In the last 11 years, I can count on one hand the number of times we’ve ever had to tell someone to replace their dark library. I would like to avoid the recurring theme of 1) encounter a problem, 2) mis-analyze the problem but don’t ask for any help, 3) request a new feature that will purportedly “fix” the problem. I’m flabbergasted that anyone would want to provide a server interface to fiddle around with dark libraries while ignoring other far more useful capabilities like Calibration Assistant, Guiding Assistant, polar alignment, etc. From: Gao Le @.> Sent: Saturday, June 15, 2024 6:45 AM To: OpenPHDGuiding/phd2 @.> Cc: bwdev01 @.>; Mention @.> Subject: Re: [OpenPHDGuiding/phd2] Is it possible to add take_dark_lib and check_dark_lib api through event server? (Issue #1211 <#1211> ) @agalasso <https://github.com/agalasso> https://github.com/agalasso @bwdev01 <https://github.com/bwdev01> https://github.com/bwdev01 Let me explain why we need it. Because we are developing a remote control software, which operates on a mobile phone, remotelly controls phd2(through a python backend). This meansing our software does not have a chance to use the GUI because everything is on http or websocket. Therefore, we could not use the gui to generate the dark lib. The current event server api provides almost everything to get phd2 work remotely, except the dark lib. We also tried to not use the dark lib to guide. But in recent test, even we try to select star manually, it still has chance to select star onto a hot-pixel. Even the min-HFR is larger than 1.5 does not solve the case. That's why i come to this issue, just to make the remote control more perfect. Also, if it is necessary to make our software open-source, i would be glad to do so after we finish it. — Reply to this email directly, view it on GitHub <#1211 (comment) <#1211 (comment)> > , or unsubscribe https://github.com/notifications/unsubscribe-auth/ADDHSV7T3I3ZVOMEDHWTYVLZHRANHAVCNFSM6AAAAABJFZNWCCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRZGY3DGNRYHA . You are receiving this because you were mentioned. https://github.com/notifications/beacon/ADDHSVYWJ7ME3BYQIRR3T2TZHRANHA5CNFSM6AAAAABJFZNWCCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUBKJYMQ.gif Message ID: @.*** @.***> >
Well, you are right. I perfer to using the exsiting solution to solve this problem than developing a new api. But our key problem is not the guider error, but mis-select a star.
We can provide some data to see whether the dark lib is exactly necessary or not to start an auto-select, which avoiding selecting hot-pixel by setting a reasonable min-HDF. But as we do not have a lot of good weather for testing for almost half years, probbaly we need to wait some time, as the next week may raining all days.
I think maybe we could provide data like this:
1, Our guider camera type (in last testing is QHY 585), and guider telescope info, mount info
2, the origin guider captured fits files, which the star selected to a hot-pixel, even if:
* we send a roi when we start auto guide. (this is an existing event server api). Inside the roi, there is a very bright star.
* we set the min-HFR to at least 2.
if the phd2 has other logs or data can export for better analysis this problem, please let me know.
However, in my opinion, setting a roi region before start guide is not always the solution, because we can't expect the light star to be always inside this area. So, we could not let the roi region to be very small. Aslo, the roi is only one rect area, which may easily contain a hot-pixel. But anyway, maybe more testing can tell us more.
—
Reply to this email directly, view it on GitHub <#1211 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADDHSV65I5R7VSUS3NHGCRTZHVMIJAVCNFSM6AAAAABJFZNWCCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZRGMZTSNBYGY> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/ADDHSV7WVUHJMKHPNWRCD5LZHVMIJA5CNFSM6AAAAABJFZNWCCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUBNQBN4.gif> Message ID: ***@***.*** ***@***.***> >
|
@bwdev01 As you suggested, I will try with a much larger HFD value. I will post the data here as soon as we tested. |
Don’t just guess about MinHFD, you need to be systematic about this. Another possibility other than hot pixels is that you might have reflected light on the guide camera sensor that is masquerading as a star. That is also fixable with the MaxHFD setting. Just do the following:
1. Under reasonable night sky conditions, start looping the guide camera using 2-sec exposures.
2. Capture several representative guide camera images using the File/Save menu option
3. Run the Star Profile tool while you are looping exposures and look at the typical HFD values
4. Do an auto-find and see if you get a list of reasonable stars
5. If you think auto-find has selected a hot pixel, post the debug log file using the Help/Upload Logs function and send me that resultant link
Why can’t you also build a legitimate dark library the usual way, making sure that the guide scope is covered when the exposures are being taken?
Bruce
From: Gao Le ***@***.***>
Sent: Sunday, June 16, 2024 5:48 PM
To: OpenPHDGuiding/phd2 ***@***.***>
Cc: bwdev01 ***@***.***>; Mention ***@***.***>
Subject: Re: [OpenPHDGuiding/phd2] Is it possible to add take_dark_lib and check_dark_lib api through event server? (Issue #1211)
@bwdev01 <https://github.com/bwdev01>
Well, one more comment is, because we do not have dark lib api, so all our tests are run under no dark lib situations, to find out if we ingore the dark lib database, can we still use auto-star select.
As you suggested, I will try with a much larger HFD value. I will post the data here as soon as we tested.
—
Reply to this email directly, view it on GitHub <#1211 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADDHSV6DR7MGOGQGRXRG56LZHYW47AVCNFSM6AAAAABJFZNWCCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZRHE3TIOBZGI> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/ADDHSV6WQDJUSAX345BHXULZHYW47A5CNFSM6AAAAABJFZNWCCWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUBOW2OY.gif> Message ID: ***@***.*** ***@***.***> >
|
Because as our application is using phd2 without the desktop of linux. Every control signal is done by event server api. As just come in to my mind, I am not sure whether we can prewrite dark lib data into .PHD2Guding file if dark lib data is written in such file. If it is feasible, I need to know the data format of dark lib data, path and format in config file. Then, we can generate dark lib through our own way and prewrite into .PHD2Guding file before we start process. In such way, there is no need to change event server api. |
@agalasso at last several days, we have tested running without dark lib and setting min-HFD to 7. In short, setting a higher min-HFD value to avoid selecting hot-pixel is feasible. But the best value depends on the stars in view. If the stars are too dim, it may cause a too small HFD error and leads to an star-lost. Is there any other ways to generate dark lib by myself, and add the result into phd2, by files or settings? |
@jilaqi-le-gao PHD2 will automatically load a dark library if it finds one as follows:
When PHD2 generates a dark library FITS file, it takes a series of exposures and combines them using the mean pixel value for each pixel ( When PHD2 does dark subtraction, it selects the HDU from the dark library that has an exposure time less than or equal to the exposure time of the current frame, so dark subtraction works best if there is a dark frame for each exposure time used during guiding. |
Thanks a lot, this information really helps a lot. Thanks a lot! |
If I want to use phd2 only through event server api, I found there is no api to take dark lib (using default configure is enough) and check whether this profile setting has a dark lib.
I have checked the event server wiki and event_server.cpp, failed to find dark lib related functions.
Is it possible to add those two api in event server? Or is there any easy way to add those two api in event server?
The text was updated successfully, but these errors were encountered: