The database file contains a description of every survey image. At present this description includes the name of the image, the filter id, the right ascension and declination of the image center in hours and degrees, the coordinate system of the image, the size of the image in pixels, the image projection type, the coordinates of the projection reference point in degrees and degrees, the coordinates of the reference point in pixels and pixels, the x and y image scale in "/pixel, the x and y axes rotation in degrees, and the image extent in ra and dec in degrees and degrees. The database filter ids are read from the image keyword defined by the kwfilter parameter.
A single cutout region is specified by the ra, dec, rawidth, decwidth, fcsystem, and filters parameters. Multiple cutout regions may be defined in the regions file regions which has the following format.
ra1 dec1 ra/xwidth1 [dec/ywidth1 [fcsystem1 [filters1]]] ra2 dec2 ra/xwidth2 [dec/ywidth2 [fcsystem2 [filters2]]] raN decN ra/xwidthN [dec/ywidthN [fcsystemN [filtersN]]]
The right ascension and declination values define the center of the extraction region and must be hours and degrees. The right ascension and declination widths must be in arcminutes. The x and y widths must be in pixels. X and Y pixel width values are distinguished from ra and dec width values by a trailing 'p' character. The decwidth / ywidth, coordinate system, and filter id values are optional, and default to the value of rawidth, and the values of the fcsystem and filters parameters respectively.
If opmode = "list" then the names, offsets from the extraction region center in arcminutes or pixels, and filter ids are printed on the screen.
If opmode = "cutout" the FITS image cutouts output are created, one cutout for each filter in filters. If cutmode = "largest" the cutout is extracted from the survey image which has the largest overlap with the extraction region. If cutmode is "collage" then the cutouts are created from all the images which overlap the extraction regions, with images with larger overlap regions taking precedence over those with smaller overlap regions. The survey images are assumed to have a common projection system and cutouts are aligned to the nearest pixel. Undefined pixels in the cutouts are assigned the value blank. If trim = yes then undefined pixels around the edges of the cutout images are removed.
By default the cutout image names are of the form "imroot_coords_filter.fits" where imroot is the values of the parameter imroot, coords is an IAU-like coordinate designation, and filter is the filter id. Users can also specify their own output image names in output. If there are more output images than output image names then default output image names are constructed for the "extra" images.
1. Create an image database for the survey images in the subdirectory data.
cl> cutout opmode="scan" dbfile=imdb.dat input=data/*.fits
2. Update the previous database after some new images are added to the survey directory. The entire database will be rewritten.
cl> cutout opmode="scan" dbfile=imdb.dat input=data/*.fits
3. List all the images in the survey which overlap the 20 arcminute region around position ra = 13:29:56.232, dec = +47:11:38.19, fcsystem = J2000.
cl> cutout "default" 13:29:56.232 +47:11:38.19 rawidth=20.0 decwidth=20.0 \
filters="" opmode=list dbfile=imdb.dat
4. Repeat example 3 but specify x and y widths in pixels instead of ra and dec widths in arcminutes assuming that the scale is 1 " / pixel.
cl> cutout "default" 13:29:56.232 +47:11:38.19 rawidth=1200p \
decwidth=1200p filters="" opmode=list dbfile=imdb.dat
5. Make B and R band cutouts of the above region from the images which have the largest area of overlap with the extraction region. Do not trim the images.
cl> cutout "default" 13:29:56.232 +47:11:38.19 rawidth=20.0 decwidth=20.0 \
filters="B,R" dbfile=imdb.dat
6. Repeat example 5 but create a collage of all the survey images which overlap the extraction region.
cl> cutout "default" 13:29:56.232 +47:11:38.19 rawidth=20.0 decwidth=20.0 \
filters="B,R" cutmode=collage dbfile=imdb.dat