-
Notifications
You must be signed in to change notification settings - Fork 47
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
Issues 1099, 1317: Modifying margin from 100" to using PSF for user-entered coordinates and updating coordinates with proper motion #1318
Conversation
…using 100" to PSF.
Added in the ability to use proper motion to update the target star's coordinates at the time observed. |
Just as a heads up - parameters not entered (distance, PM RA, PM DEC) will have a value of 0 if gathering params from the JSON file that do not exist. Therefore, proper motion will not be accounted for properly. |
Review complete. Please merge upon resolving comments. This must be tested with all merges in |
I've created this test for nea.py. You can run it from the /exotic/api/ folder: https://gist.github.com/IraLeeBell/ac3f7202f29f9b3a3c45e8725dd2e1e7 Perhaps it wouldn't hurt to have a test for each of the api files as I've done here (separate from this PR). |
I'm getting the following error/warning when the correct pixels are selected. I wanted to test this first, before testing the incorrect pixels. I note that EXOTIC is calculating the pixel coordinates at [0,0]. I can confirm that this data set is a valid set, which produces a good light curve and will result in PSF photometry. Also, I can confirm that a plate solution is found when getting this warning. |
Quick script to determine whether a FIT file has a plate solution in the header (per convo w/ @tamimfatahi ): https://gist.github.com/IraLeeBell/f272dabddec4585c3f9563dde68241c8 |
Agreed. I'd place the tests in the |
I believe we currently use astropy to determine whether a FITS file has a plate solution. If that isn't the best way, please let me know. |
For some reason, the archive isn't giving the distance to WTS-2 when querying as its value is 0.0. It does scrape its proper motions though. That's why you're getting such an off value. I updated the code to handle for the error. You should get a warning like this:
Thanks for that catch! Please see how the code handles the change now. You can also add in the parameters through the updated initialization file. |
I believe EXOTIC use is_celestial from
|
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.
Just ran through a flow with exoplanet WTS-2 b and EXOTIC ran as expected. All files present, looks good.
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.
Please see comments
Please take a quick look at the comments and they should be able to be cleared readily. |
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.
Looks great!
100" may seem too large of a bound for some equipment, which may lead to incorrect user-entered coordinates that EXOTIC would validate. Instead, this PR uses the PSF to help create the bounds.
As talked about before with @rzellem, it has bounds of 1 PSF. However, after testing, it seems as though it is too constraining. I recommend we do something larger, just as we do in our PSF fitting routine where the max goes up to 6.
Closes issue #1099 and issue #1317