Add STK ephem source option to get_planet_chandra#196
Conversation
|
@jeanconn - I just pushed a commit that takes advantage of the cheta computed MSID interface to reduce/simplify the code. It is passing tests, but if there is an issue we can revert the commit. |
|
|
|
I updated the notebook so this is hopefully ready now. |
|
It is still my PR so I can't approve it. I do note in passing that I didn't use the computed MSID because the fetch import was just a lot heavier, and I was looking to have more of this code used by proseco instead of its bespoke version for Jupiter. But we can always look at this again if that ends up being a problem. |
On my laptop importing It looks like |
|
Yep, I'm good with it. For fetch - I am actually a little confused about how the Windows interface with cheta remote access does or doesn't do anything for these stk computed msids? It isn't a case I worked with much when I skipped right ahead to doing the ephem_stk version for proseco. So we can talk about that more. I agree that the "heavier" fetch import isn't that heavy and shouldn't even need to happen except for targets that already have a hit on a planet from the no-chandra-ephem-needed first round of checks. |
|
That was an excellent point about remote access and you were a bit quick to merge. It turns out that on Windows (or if remote access is enabled) then importing fetch is fine, but doing This appears to be successfully fixed by this little patch in cheta.fetch to make the Then: Hmm... |
|
I figured this was adding new functionality - so merging to master wasn't really breaking anything, and forward and fix would be fine - either with a fix in cheta or backing out your computed stk use here. Since my preference was to find a fix in cheta it seems like this on track! |
|
Oh and if we really care about stk speed and web queries I think we still probably could add a "just use what you've got in the cache" option. But I do think it is reasonable now that it always hits occweb to check for the latest names for paths. |
|
I also want to put a retry in the bit that checks the directory, I got hit with a hang on that bit once while testing. |
|
So there is now sot/cheta#282. Despite that fix, I'm almost leaning to reverting back to the original direct use of |
|
I think the cheta fix is great and very helpful so I see this as a useful conversation and progression. And fine either way by me if this chandra_aca code uses computed msids or ephem_stk directly in the end. |
Description
Add STK as an ephemeris source option to
get_planet_chandra.This will allow some code reuse instead of a bunch of different copies of very similar code and provide a way to do ACA planet checks on all platforms, including FOT laptops with no cheta archive.
Interface impacts
Testing
Unit tests
Independent check of unit tests by [REVIEWER NAME]
Functional tests
See the updated analysis notebook.