Sign inDemoInstall


Package Overview
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies



Generalized World Coordinate System




GWCS - Generalized World Coordinate System

.. image:: :target: :alt: CI Status

.. image:: :target: :alt: Documentation Status

.. image:: :target: :alt: Code coverage

.. image:: :target: :alt: Powered by Astropy Badge

.. image:: :target: :alt: Powered by STScI Badge

Generalized World Coordinate System (GWCS) is an Astropy_ affiliated package providing tools for managing the World Coordinate System of astronomical data.

GWCS takes a general approach to the problem of expressing transformations between pixel and world coordinates. It supports a data model which includes the entire transformation pipeline from input coordinates (detector by default) to world coordinates. It is tightly integrated with Astropy_.

  • Transforms are instances of astropy.Model. They can be chained, joined or combined with arithmetic operators using the flexible framework of compound models in astropy.modeling_.
  • Celestial coordinates are instances of astropy.SkyCoord and are transformed to other standard celestial frames using astropy.coordinates_.
  • Time coordinates are represented by astropy.Time and can be further manipulated using the tools in astropy.time_
  • Spectral coordinates are astropy.Quantity objects and can be converted to other units using the tools in astropy.units_.

For complete features and usage examples see the documentation_ site.


To install::

pip install gwcs 

To clone from github and install the master branch::

git clone
cd gwcs
python install

Contributing Code, Documentation, or Feedback

We welcome feedback and contributions to the project. Contributions of code, documentation, or general feedback are all appreciated. Please follow the contributing guidelines <>__ to submit an issue or a pull request.

We strive to provide a welcoming community to all of our users by abiding to the Code of Conduct <>__.

Citing GWCS

.. image:: :target:

If you use GWCS, please cite the package via its Zenodo record.

.. _Astropy:

.. _astropy.time: .. _astropy.modeling: .. _astropy.units: .. _astropy.coordinates: .. _documentation:


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.


Related posts

SocketSocket SOC 2 Logo


  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc