File: example_cube_wcs.rst

package info (click to toggle)
astropy 7.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,156 kB
  • sloc: python: 240,839; ansic: 55,852; lex: 8,621; sh: 3,318; xml: 2,399; makefile: 149
file content (12 lines) | stat: -rw-r--r-- 360 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
.. _example_cube_wcs:

Second Example
^^^^^^^^^^^^^^

Another way of creating a WCS object is via the use of a Python
dictionary. This affords us more control over the ``NAXISn``
FITS header keyword which is otherwise automatically default to zero
as in the case of the First Example shown above.

.. literalinclude:: examples/cube_wcs.py
   :language: python