skyfielders / python-skyfield

Elegant astronomy for Python
MIT License
1.39k stars 209 forks source link

How to get the altitude and azimuth of the sun in a location of Ceres? #762

Closed nanheer closed 11 months ago

nanheer commented 2 years ago

I know that Skyfield supports some planetary reference frames from https://rhodesmill.org/skyfield/planetary.html, and you show us how to get the altitude and azimuth of the earth when observing from a lunar location. You load three files in advance as follows: pc.read_text(load('moon_080317.tf')) pc.read_text(load('pck00008.tpc')) pc.read_binary(load('moon_pa_de421_1900-2050.bpc')) while now I want to get the altitude and azimuth of the sun in a location of Ceres at a specific time, I think I also need to download .tf , .tpc, and .bpc files to build a working model of Ceres, but I'm not sure whether this web(https://naif.jpl.nasa.gov) provides these files, and if so, I want to know the 3 corresponding file names.

brandon-rhodes commented 11 months ago

Alas, it looks like no one has jumped in to help you search the large collection of NAIF files, and I myself don't have the time to go searching. I'll just note that at the root directory:

https://naif.jpl.nasa.gov/pub/

— there's a file called ls-lR.gz that, if you download and uncompress it, lists all the files on the site. You could search through it for files that have ceres in the name; there appear to be 399 such files. Maybe you could find the orientation data in some of them? If you do find a specific file, but can't get Skyfield to read it, please feel free to comment further here on this issue! But for the moment I'm going to close this issue, as it's not reporting a specific problem with Skyfield.