Skip to content

Commit

Permalink
add sort to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hamogu committed Jan 11, 2016
1 parent ee6cffb commit c9547e2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/ccdproc/image_management.rst
Expand Up @@ -62,6 +62,16 @@ seconds, there is a convenience method ``.files_filtered``::
The optional arguments to ``files_filtered`` are used to filter the list of
files.

Sorting files
-------------
Sometimes it is useful to bring the files into a specific order, e.g. if you
make a plot for each object you probably want all images of the same object
next to each other. To do this, the images in a collection can be sorted with
the ``sort`` method using the fits header keys in the same way you would sort a
:class:`~astropy.table.Table`::

>>> ic1.sort(['object', 'filter'])

Iterating over hdus, headers or data
------------------------------------

Expand Down

0 comments on commit c9547e2

Please sign in to comment.