-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
Some corrections that should be made in "Drawing a finder chart for Comet NEOWISE" #463
Comments
Good morning! To help me understand the motivation behind each change, could you list a rationale, or error message (if the script is not working on your system), behind each one? I just re-ran the script locally and confirmed that the output here on my Linux laptop is pixel-for-pixel and byte-for-byte identical to the image included in the documentation, so we are going to need to figure out step by step why you are getting different results. Thanks! |
Good morning Brandon, The first error that I have got is as follow:
After investigating and browsing comet data, I saw two rows of data in the Comet data frame for 'C/2020 F3 (NEOWISE)'. So, for the correct answer, we have to choose one of them, and with a little bit of play around, I found both are giving the same result. Then I got the second error:
Then I changed the format string to '%m/%d,' which is correct. I believe it is a typo. ** That is all. Thank you for your response and fantastic work in Skyfield, which is my favourite tool for my works. |
There are two Comet “C/2020 F3 (NEOWISE)” in the same file?! What? 🙂 Thanks for pointing that out, the older If a comet can appear twice in the file then (a) I will need to rename I'll see about making such a change.
Well, drat. I guess that’s what https://strftime.org/ means when it says “Platform specific” for:
I had hoped that all modern platforms would support
I do see a speedup from 0.45 ms to 0.30 ms here on my laptop when making that change. But given the controversy surrounding
So for now I suspect that I'll do the assignment statement, just to keep the Pandas patterns here as simple as possible for new users. But thanks for pointing out the performance difference!
I guess I'll have to learn sometime how matplotlib decides on DPI when rendering. I had hoped it would ignore the system and always do the same thing, given the same Python code. Alas!
Thanks very much for the kind words! I'm glad you are finding Skyfield useful, it is very encouraging to create something and then have it be useful to people in real work. |
Turns out? A given comet like `C/2020 F3 (NEOWISE)` can appear twice in the Minor Planet Center’s `CometEls.txt`. So let’s show users how to select the most recent of several possible orbits.
There, hopefully those improvements prevent future users from running into these problems. Thanks again! |
That's awesome. Thank you again. |
Issues:
line 31:
comets = comets.set_index('designation', drop=False)
should change to:
comets.set_index('designation', drop=False, inplace=True)
In line 33:
comet = sun + mpc.comet_orbit(row, ts, GM_SUN)
should change to:
comet = sun + mpc.comet_orbit(row.iloc[0], ts, GM_SUN)
or
comet = sun + mpc.comet_orbit(row.iloc[1], ts, GM_SUN)
In line 105:
t_comet.utc_strftime('%-m/%d')
string format should change to
%m/%d
And also:
If we want to get an exact output as shown in the picture of the example, the following changes should be made too:
In line 75:
marker_size = (0.5 + limiting_magnitude - magnitude) ** 2.0
2.0 should change to 2.5
In line 87:
fig, ax = plt.subplots(figsize=[9, 9])
figsize should be [13, 13]
Thank you,
The text was updated successfully, but these errors were encountered: