Skip to content
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

add EclipticCoords #46

Merged
merged 3 commits into from
Feb 11, 2023
Merged

add EclipticCoords #46

merged 3 commits into from
Feb 11, 2023

Conversation

aplavin
Copy link
Contributor

@aplavin aplavin commented Dec 23, 2022

Needed ecliptic coordinates recently in my work, the basic implementation is straightforward.

No tests for now: could you please help with adding these coords to generated tables in test/data?

@codecov
Copy link

codecov bot commented Dec 23, 2022

Codecov Report

Base: 91.52% // Head: 91.17% // Decreases project coverage by -0.34% ⚠️

Coverage data is based on head (04d5038) compared to base (6c8849b).
Patch coverage: 66.66% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #46      +/-   ##
==========================================
- Coverage   91.52%   91.17%   -0.35%     
==========================================
  Files           3        3              
  Lines         118      136      +18     
==========================================
+ Hits          108      124      +16     
- Misses         10       12       +2     
Impacted Files Coverage Δ
src/types.jl 71.87% <14.28%> (-16.13%) ⬇️
src/SkyCoords.jl 98.83% <100.00%> (+5.50%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@mileslucas
Copy link
Member

Thanks, these changes look good to me at first glance! You'll need to do a rebase/merge of master- also feel free to bump the project to 1.2.0 (otherwise I will after merge).

No tests for now: could you please help with adding these coords to generated tables in test/data?

I will take a look!

@mileslucas
Copy link
Member

@aplavin you should be able to add some tests for Ecliptic coordinates in the test/astropy.jl files once you rebase off master!

@aplavin
Copy link
Contributor Author

aplavin commented Jan 13, 2023

Thanks for setting tests up, @mileslucas!

Currently, these ecliptic coords seem to be approximate: results are close to astropy (tests pass for 1e-3 tol), but not exactly equal. I guess some small extra rotation isn't accounted for...

For me, ecliptic coords with this accuracy are fine. More precise conversion may require extra distinct types anyway, as astropy does: geo/helio/bary centric, mean/true.

@mileslucas mileslucas merged commit 07653d1 into JuliaAstro:master Feb 11, 2023
@aplavin aplavin deleted the ecliptic branch February 13, 2023 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants