DOKK / manpages / debian 12 / gcx / gcx.1.en
GCX(1) General Commands Manual GCX(1)

gcx - astronomical image processing and photometry

gcx [options] [files...]

gcx is an astronomical image processing and data reduction tool, with an easy to use graphical user interface. It provides a complete set of data reduction functions for CCD photometry, with frame WCS fitting, automatic star identification, aperture photometry of target and standard stars, single-frame ensemble photometry solution finding, multi-frame color coefficient fitting, extinction coefficient fitting, and all-sky photometry, as well as general-purpose astronomical image processing functions (bias, dark, flat, frame alignment and stacking); It can function as a FITS viewer.

For automating data reduction of large numbers of frames, gcx implements recipe files. These files contain specific information about the objects measured in each field. Once a recipe file is created for a given field, any number of frames of that field can be reduced without user intervention.

The program can control CCD cameras and telescopes, and implement automatic observation scripting. Cameras are controlled through a hardware-specific server, to which gcx connects through a TCP socket. It generates FITS files with comprehensive header information.

Telescopes and mounts using the LX200 protocol are supported. gcx uses it's automatic field identification functions to refine telecope pointing accuracy.

When invoked without arguments, the program runs in GUI mode. Most functions are also accessible through command line options, descibed below.

Print command line options.
Print all the on-line help on stdout.
Print program version.
Set debug level to <level>; 0=quiet, 4=noisy.
Set output file name for import, convert and frame operations.
Load configuration file.
Set the value of an option overriding the configuration file.
Force display frames as they are being processed.

Load recipe file (searches rcp_path).
Load recipe file and run photometry in batch mode. Report in native format.
Load recipe file and run photometry in batch mode. Report in AAVSO format.

If <recipe_file> is set to one of the following three special tokens, the recipe will change depeding on information in the frame header:

will create a recipe on-the-fly from Tycho catalog data (if available);
will search the recipe path for a file with the same name as the object in the frame (ending in .rcp);
will search for a recipe by object name, and if that is not found, create a tycho one.
Convert a tabular catalog file to the gcx Lisp-like format. Reads stdin. Current table formats are: gcvs, gcvs-pos, landolt, henden, sumner.
Merge a new recipe file over the one loaded with the --recipe option. Checks are made for either positional or name duplicates. Only stars brighter than mag_limit are merged.
Specify a target object to be merged into a recipe file. It will also set the recipe object, ra and dec fields.
Create a recipe file for the object specified with --object using tycho2 stars in a box radius arcminutes around the object.
Convert a recipe file to the aavso db (tab-delimited) format. If the file argument is '-', stdin is read. The recipe comment and star comment fields are interpreted to get some db fields. See the --help-all output for more info.
Convert a report file to tabular format. If an output file name is not specified (with the '-o' argument), stdout is used. If the file argument is '-', stdin is read. The format of the table is specified by the value of the .file.tab_format option, see below.
Load/run observation scripting file (searches obs_path).
Convert a fits file to 8-bit pnm. If an output file name is not specified (with the '-o' argument), stdout is used.
Specify a target object (useful for setting an initial wcs when there isn't enough information present in the fits headers).
Set a magnitude limit for the output of import and merge commands.

Set the dark frame / do dark subtraction.
Set the bias frame / do bias subtraction.
Set the flat field frame / flatfield.
Set blur FWHM / apply Gaussian blur.
Set the alignment reference frame / align frames.
Set the value of a constant bias to add to all frames / add a bias to frames.
Set a constant to multiply all frames with / multiply frames by a scalar.

Multiplication is performed before addition.

Save reduction results overwriting the original files.
Stack the frames using the method set in the configration file; for some methods additive background alignment is performed.
Stack the frames using an multiplicative background alignment procedure; the frames should be already dark-substracted.
Do not run the reduction operations, just load the frame list / reduction options.

When any of the CCD reduction options is set and the -i flag is not specified, the reduction operations are run in batch mode on all the supplied fits files. When no output file is specified or -i is set, the files are loaded into the batch processing file list, the reduction options set in the dialog, and the program starts up in gui mode

The report converter option converts the native gcx output to a fixed-width tabular format that is easy to import in other programs for further processing. The table's format is defined by the .file.tab_format configuration option. The option string consists of tokens separated by spaces. There are two types of tokens: option tokens, and column tokens.

Options tokens set global table options when present. They can appear anywhere in the format string.

Generate a table header line containing the column titles.
Generate a list of columns with position information at the start of the output.
Generate a line with descriptive statistics on the stars' residuals at the end of each frame.

Column tokens specify what information gets output in each column. The first column token corresponds to the first output column, and so on in order. Each column token can optionally be followed by a specifier of the form: width.precision. The width excludes a single character spacer between the columns. Supported colum tokens are:

Output the star's designator.
Output the right ascension in h:m:s format.
Output the right ascension in decimal degrees format.
Output the declination in d:m:s format.
Output the declination in decimal degrees format.
Output the standard magnitude with the given name.
Output the error of the standard magnitude with the given name.
Output the instrumental magnitude with the given name.
Output the error of the instrumental magnitude with the given name.
Output reduction flags and the star type.
Output the name of the observation (a synthetic name that can be used to group stars reduced from the same frame.
Output the airmass of the observation.
Output the Julian date of the observation.
Output the modified Julian date of the observation.
Output the filter name used for the observation.
Output the frame coordintes of the star's centroid.
Output the estimated centroiding errors.
Output the amount the star was moved from it's catalog position when the measuring aperture was centered.
Output the star's residual in the ensemble solution.
Output the star's standard error (residual divided by the estimated error).

Fields for which data is not available are left blank.

Pan cursor.
Zoom in around cursor.
Zoom out.
Adjust brightness.
Adjust contrast,
Auto scale intensity.
Scale Min-Max.
Auto scale with different intensity spans 1 is sharpest, 8 is dullest.
Select object (and deselect all others).
Add to selection.
Mark star (if not too faint).
Show local image statistics.
Pop-up the main menu.
Pop-up the star menu.

Many useful commands have keyboard accelerators; they are displayed in the menus.

The native image file format of gcx is FITS. The program will read 16-bit integer and 32-bit float files (BITPIX = 16 or BITPIX = -32), and save 16-bit integer files. The internal representation of images is in 32-bit floating point.

gcx supports transparent compression and decompression of fits files when zcat and gzip are available and their path is set in the corresponding options.

Configuration options are stored in ~/.gcxrc. The options can be edited in GUI mode, or directly in the file itself. A template configuration file can be created by selecting "save" in the option editing dialog.

The program reads several object catalog formats. See the relevant chapter in the User's manual for information on how to set up catalogs. Catalogs are normally placed under /usr/share/gcx/catalogs.

Documentation files usually reside in the "docs" directory of the source distribution or in /usr/share/doc/gcx.

Example data is distributed separately from the main source. When installed from a package it usually goes to /usr/share/doc/gcx/examples.

GCX User´s Manual; gnuplot(1); gzip(1); zcat(1); README.vizquery.

gcx was written by Radu Corlan, with valuable contributions from Alexandru Dan Corlan (Tycho2 searching, porting of GSC searching code); Liam Girdwood (various routines from the libnova library); Pertti Paakkonen (GUI improvements). The star search algorithm is similar to (and inspired by) the one in Elwood Downey's XEphem. WCS conversion routines are taked from classic AIPS. The GSC scanning routines are adapted from the code distributed with the catalog.

November 27, 2005