GalSim-developers / GalSim-developers/GalSim

define `origin` and `world_origin` for CelestialWCS classes?

Open
#1,260 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request wcs
Dominant language
Python
Stars
272
Forks
121
PR merge metrics
No merged PRs in 30d

Description

@sidneymau and I were working on some DES stuff and ran into an issue where we need the point on the sphere about which a given a WCS uses the projection. We found that the GSFitsWCS class defines a .center property (but that its value was (0, 0) which did not make much sense to us).

However, ignoring that .center was a bit funny in our case, as far as I can tell

  • .center is the point we want but is largely undocumented?
  • the origin and world_origin attributes are not defined

Is there a reason we couldn't set origin to CRPIX or similar and set world_origin to the tangent point on the sphere?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the CelestialWCS classes and the GSFitsWCS .center property, then compare their existing coordinate conventions with CRPIX and the projection's tangent point. Define consistent meanings for origin and world_origin, and verify that the resulting behavior is documented and covered for the relevant CelestialWCS classes.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.