File: example_cube_wcs.rst

package info (click to toggle)
astropy 7.1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 33,816 kB
  • sloc: python: 237,392; ansic: 55,195; lex: 8,621; sh: 3,317; xml: 2,399; makefile: 191
file content (12 lines) | stat: -rw-r--r-- 360 bytes parent folder | download | duplicates (5)
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