-
Notifications
You must be signed in to change notification settings - Fork 0
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
Allow specifying AGASC HDF5 file or latest proseco_agasc as default #387
Conversation
With regard to other dependencies used in the matlab tools, it looks like in the weeds there's maybe just the ER optimization that isn't really used now https://github.com/sot/sparkles/blob/6349d0ff40d7b00ef7a9c7f20e8f2e6c58ea6e62/sparkles/find_er_catalog.py#L117 So a question about if sparkles should just ask proseco which agasc to use ? |
For that particular line you highlighted the miniagasc is fine because the goal is to find candidate acq/guide stars. The near-neighbor stars are all going to be filtered in the next lines of code.
I suppose we could make a one line function in proseco:
|
"4", "6", or "8". | ||
- ``PROSECO_PRINT_OBC_CAT``: if set then create and print a debug catalog while doing | ||
catalog merging. | ||
- ``SKA``: root directory for Ska3 runtime environment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think from proseco SKA is only used for defining SKA/data but I haven't re-checked that.
This looks good to me. I think we'd want some kind of explicit manual functional test that as applied with sot/agasc#155 that shows that, without AGASC_HDF5_FILE and AGASC_DIR set, that this code picks up proseco_agasc_* (so, proseco_agasc_1p7.h5 if that's in the $SKA/data/agasc directory and proseco_agasc_1p8.h5 if that's in $SKA/data/agasc directory, and proseco_agasc_1p8rc4.h5 is ignored). |
Done, see Functional tests in the description. |
Description
This allows specifying the AGASC HDF5 that gets used in star selection via the
AGASC_HDF5_FILE
environment variable. If that is not set then it defaults to<AGASC_DIR>/proseco_agasc_<latest>.h5
.<AGASC_DIR>
is theAGASC_DIR
environment variable or$SKA/data/agasc
.agasc
package.This PR requires sot/agasc#155.
As a bonus, I searched for
os.environ
in the code and documented all the environment variables that are used in proseco.To do:
AGASC_DIR
as a relevant env var.Interface impacts
None.
Testing
Unit tests
With the git repo for sot/agasc#155 in the PYTHONPATH:
Independent check of unit tests by Jean
Functional tests
Manual test of AGASC file
In my
$SKA/data/agasc
:Script:
Output:
Now make a temporary link from
proseco_agasc_1p8rc4.h5
toproseco_agasc_1p8.h5
New output: