File: example_cube_wcs.rst

package info (click to toggle)
astropy 7.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 35,328 kB
  • sloc: python: 233,437; ansic: 55,264; javascript: 17,680; lex: 8,621; sh: 3,317; xml: 2,287; makefile: 191
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