GNU Astronomy Utilities

Next: , Previous: , Up: Image manipulation   [Contents][Index]

6.1 ImageCrop

Astronomical images are often very large, filled with thousands of galaxies. It often happens that you only want a section of the image, or you have a catalog of sources and you want to visually analyze them in small postage stamps. ImageCrop is made to do all these things. When more than one crop is required, ImageCrop will divide the crops between multiple threads to significantly reduce the run time.

Astronomical surveys are usually extremely large. So large in fact, that the whole survey will not fit into a reasonably sized file. Because of this surveys usually cut the final image into separate tiles and store each tile in a file. For example the COSMOS survey’s Hubble space telescope, ACS F814W image consists of 81 separate FITS images, with each one having a volume of 1.7 Giga bytes.

Even though the tile sizes are chosen to be large enough that too many galaxies don’t fall on the edges of the tiles, inevitably some do and if you simply crop the image of the galaxy from that one tile, you will miss a large area of the surrounding sky (which is essential in estimating the noise). Therefore in its WCS mode, ImageCrop will stitch parts of the tiles that are relevant for a target (with the given width) from all the input images that cover that region into the output. Of course, the tiles have to be present in the list of input files.

ImageCrop also has facilities to crop arbitrary polygons from a set of tiles by stitching the relevant parts of different tiles within the polygon, see --polygon in Invoking ImageCrop. Alternatively, it can crop out rectangular regions from one image which can come in handy when removing the bias pixels in raw image processing, see Crop section syntax.

Next: , Previous: , Up: Image manipulation   [Contents][Index]