GNU Astronomy Utilities


Next: , Previous: , Up: ImageCrop   [Contents][Index]


6.1.1 ImageCrop modes

In order to be as comprehensive as possible, ImageCrop has two major modes of operation listed below.

Image

The image mode uses the pixel coordinates. Depending on your command line options, this mode consists of three sub-modes. In image mode, only one image may be input.

The latter two cases will only have one crop box. In both cases, ImageCrop will go into the image mode, irrespective of calling --wcsmode or the default mode. In the first two cases, since you specify a central pixel, the crop box will be a square with an odd number of pixels on the side, so your desired pixel sits right in the center, see Blank pixels on how to disable this for cases when the box exceeds the image size.

WCS

The Right ascension (RA) and Declination (Dec) of the objects in a catalog is used to define the central position of each postage stamp. In this mode, the width (--wwidth) is read in units of arc seconds and multiple images (tiles in a survey) can be input. If the objects are closer to the edge of the image than half the required width, other tiles (if they are present in the input files) are used to fill the empty space. The square output cropped box will have an odd number of pixels on the side.

In this mode, the input images do not necessarily have to be the same size, each individual tile can even be smaller than the final crop. In any case, any part of any of the input images which overlaps with the desired region will be used in the crop. Note that if there is an over lap, the pixels from the last input image read are going to be used. The input images all just have to be aligned with the celestial coordinates, see the caution note below.

Similar to the image mode, there are two sub-modes:

CAUTION: In WCS mode, the image has to be aligned with the celestial coordinates, such that the first FITS axis is parallel (opposite direction) to the Right Ascension (RA) while the second FITS axis is parallel to the declination. If these conditions aren’t met for an image, ImageCrop will warn you and abort. You have to use other tools to transform the image to the correct directions.

In short, if you don’t specify a catalog, you have to specify box coordinates manually on the command-line. When you do specify a catalog, ImageCrop has to be in one of the two major modes (--imgmode or --wcsmode). Note that the single crop box parameters specified in the sub-modes will not be written to or read from the configuration file, they have to be specified on each execution.


Next: , Previous: , Up: ImageCrop   [Contents][Index]