Replies: 1 comment
-
The problem is that you have asked Skyfield for RA and declination in the J2000 ("ITRF") reference frame, but apparent RA and dec are traditionally expressed using "equinox-of-date" coordinates. Here is some documentation on the topic in case it's useful: https://rhodesmill.org/skyfield/positions.html#apparent-right-ascension-and-declination You will want to compute the coordinates like this:
Let me know if there's an adjustment I can make to Skyfield's documentation that would put this information where you would have found it more easily, and I will edit the docs accordingly! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Skyfield Developers and Community,
I've been using Skyfield (version 1.53) to calculate solar declination and have encountered an unexpected result for March 20, 2024, at 12:00:00 UTC, which I've reproduced on both Google Colab and Kaggle notebook environments.
Issue:
For the date and time 2024-03-20 12:00:00 UTC, my Skyfield setup consistently calculates an apparent geocentric solar declination of approximately +0.012173 degrees.
This value seems unexpectedly low. Based on the known Vernal Equinox time for 2024 (approx. March 20, 03:06 UTC), the declination at 12:00 UTC (almost 9 hours later) should be significantly more positive. Other sources and manual estimations suggest a value closer to +0.1465 degrees.
Minimal Reproducible Code:
Here's the minimal Python code I'm using:
Environment Details (Consistent across Colab & Kaggle for my tests):
Expected Result:
Based on other astronomical sources (e.g., NOAA Solar Calculator for a rough check, other astronomical libraries, and calculations by other users), the apparent geocentric solar declination for 2024-03-20 12:00:00 UTC is expected to be approximately +0.1465 degrees.
For example, a local test by another user with Skyfield 1.48 and de421.bsp yielded
0.14652916406613006
degrees.Question:
Could there be a reason why Skyfield 1.53, specifically in these cloud notebook environments (or perhaps generally), might be producing this lower declination value for this particular date/time? Am I potentially misusing a feature or is there an environmental factor I might be overlooking? I have tried clearing the Skyfield cache in Colab with
shutil.rmtree
on the~/.skyfield-data
directory and forcing re-downloads, but the result remains the same.Any insights or suggestions would be greatly appreciated. Thank you for developing and maintaining this excellent library!
Best regards!
Beta Was this translation helpful? Give feedback.
All reactions