← 输入框|github.com|刷新
Skip to content

Update Mauna Kea coordinates for CFHT, Keck and Subaru - #174

Merged
hamogu merged 1 commit into
astropy:gh-pagesfrom
Sting1JP:mauna-kea-coordinates
Nov 10, 2026
Merged

hamogu merged 1 commit into
astropy:gh-pagesfrom
Sting1JP:mauna-kea-coordinates

Conversation

@Sting1JP

@Sting1JP Sting1JP commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Part of #144, following up on my comment there.

This PR updates cfht, keck and Subaru to the IfA aerial survey of 1996-09-25 (NAD83), found at https://irtfweb.ifa.hawaii.edu/observing/telescopeCoordinates.php.

The current cfht and keck entries are 332 m and 462-473 m from the telescopes (they appear to be on the Old Hawaiian datum), and Subaru is 11 m off with its height 24 m low. irtf, gemini_north and ukirt already match the survey to within 0.5 m.

  • keck stays one entry, at the midpoint of Keck 1 and Keck 2 (42 m from each). Separate keck1/keck2 entries can be added if preferred.
  • The survey gives heights in feet, and I converted to meters. For CFHT it’s the declination axis (4204 m, CFHT Observatory Manual) and for Subaru the elevation axis (4163 m - the Subaru website gives 4139 m for the site itself).
  • Checked by loading it with SiteRegistry.from_json (astropy 8.0.2): all aliases resolve, the number of names is unchanged, and the distances to the survey points are 0.0 m for CFHT and Subaru and 42 m for the Keck midpoint. tests/test_sites_json.py passes.

@giles

giles Bot commented Nov 9, 2026

Copy link
Copy Markdown

Hi 👋 and thank you for your contribution! 🙏

This pull request is being closed automatically - but don't worry, we may re-open it if you carefully follow these instructions.

Join the astropy slack using this invite link, head over to the #new-contributor-requests channel, and introduce yourself with a post that includes:

  1. Background about your current occupation or affiliation.

  2. How the bug or missing feature affects your work.

We strongly encourage contributions from people that use astropy or actively develop related scientific Python packages. We look forward to hearing from you and growing the Astropy community!

Notes for maintainers

If you know this is a genuine user and the PR is is compliance with the AI policy, you may re-open this straight away. After two successful merged pull requests, the user will be added to the allowlist and future PRs will no longer be closed automatically.

This user has not made any pull requests to this repository prior to this one.

In addition, here are some statistics on the user's activity on GitHub:

Last 24 hours Last 7 days
Pull requests opened 2 2
Issues opened 0 1

@pllim

pllim commented Nov 9, 2026

Copy link
Copy Markdown
Member

@hamogu should we reopen?

@hamogu hamogu reopened this Nov 10, 2026
@hamogu

hamogu commented Nov 10, 2026

Copy link
Copy Markdown
Member

Yes, we should reopen since I specifically requested this PR. Sorry about that @Sting1JP . We're trying to find a balance that avoids maintainer burn out by random drive-by PRs. With LLMs, we're seeing hundreds of PRs by people who have no connections to astronomy, are not coming back, and won't ever become maintainers putting in human time. While their PRs are often technically correct and useful, we've been overwhelmed with review work in the last few months, so we put in this extra step. However, after a few PRs, you should automatically we added a white list so that bot recognizes you and doesn't autoclose your PRs any more.

@hamogu
hamogu merged commit 47b23a6 into astropy:gh-pages Nov 10, 2026
4 checks passed
@Sting1JP
Sting1JP deleted the mauna-kea-coordinates branch November 10, 2026 11:39
@Sting1JP

Copy link
Copy Markdown
Contributor Author

@hamogu No problem at all, I understand. Thank you!

@pllim

pllim commented Nov 10, 2026

Copy link
Copy Markdown
Member

Fun fact, astropy uses Keck data for its tests... 😅

@Sting1JP

Copy link
Copy Markdown
Contributor Author

Sorry for the... surprise 😅

After this I went looking for similar issues, and found a few things.

Two more places still show the old Keck values: the example in the EarthLocation.of_site docstring (astropy, coordinates/earth.py) and two Observer docstrings in astroplan. I can send PRs for those if it helps.

I also compared the other IRAF entries with the MPC observatory codes, since that's where the Keck and CFHT values came from. ekar (Asiago 182 cm) is 940 m too far east: the file has longitude 11.58113, INAF's telescope page gives 11° 34' 08.397" E (11.56900) and MPC code 098 agrees. The latitude is OK. Would a PR for that be welcome? I checked that nothing in astropy, astroplan or astroquery uses ekar, so no test should break this time... hopefully.

spm and mso look wrong too (2.8 km and 1.5 km), but I don't have sources I really trust for those yet.

@pllim

pllim commented Nov 11, 2026

Copy link
Copy Markdown
Member

astropy is already accounted for (astropy/astropy#20819) and I am sure @tepickering won't mind if you patch astroplan. Thanks!

@tepickering

Copy link
Copy Markdown

astropy is already accounted for (astropy/astropy#20819) and I am sure @tepickering won't mind if you patch astroplan. Thanks!

i would say file an issue with astroplan. astroplan should use what astropy provides rather than be redundant. having an issue will help me to remember to do that refactor…

@hamogu

hamogu commented Nov 11, 2026

Copy link
Copy Markdown
Member

I also compared the other IRAF entries with the MPC observatory codes, since that's where the Keck and CFHT values came from. ekar (Asiago 182 cm) is 940 m too far east: the file has longitude 11.58113, INAF's telescope page gives 11° 34' 08.397" E (11.56900) and MPC code 098 agrees. The latitude is OK. Would a PR for that be welcome?

PRs with improvements are always welcome!
I went through the git blame and it looks like the observatories you list are originate from a historic IRAF datafile. Coordinates look rounded, possibly because the precision was limited to single precision float or by the format of the file size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants