GCX(1)
๐ธ GCX(1) ๐ธ โ astronomical image processing and photometry ๐ซ
okay bestie, welcome to the gcx page from the General Commands Manual (that's section 1, the "you can literally just type this" section) ๐ โ she's an astronomical image processing girlie and she's about to change your whole night sky
โจ NAME โจ
gcx โ astronomical image processing and photometry ๐ฆ
๐ SYNOPSIS ๐
gcx [options] [files...]
๐ DESCRIPTION ๐
So here's the tea. gcx is an astronomical image processing and data reduction tool, and she comes with an easy to use graphical user interface, because we are NOT doing this in raw hex dumps, bestie ๐ญ
She gives you a complete set of data reduction functions for CCD photometry, including:
- 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
- all-sky photometry
...plus general-purpose astronomical image processing functions (bias, dark, flat, frame alignment and stacking). And yes, she can function as a FITS viewer. Multitasking queen ๐ no cap.
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 โ like, go touch grass, the computer has it handled ๐
The program can also 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 its automatic field identification functions to refine telescope pointing accuracy ๐ฏ
๐ OPTIONS ๐
When invoked without arguments, the program runs in GUI mode ๐ฅ๏ธโจ Most functions are also accessible through command line options, described below ๐
-h,--helpโ Print command line options.--help-allโ Print all the on-line help on stdout.--versionโ Print program version.-D,--debug <level>โ Set debug level to<level>;0=quiet,4=noisy. ๐โ๐-o,--output <file_name>โ Set output file name for import, convert and frame operations.-r,--rcfile <config_file>โ Load configuration file.-S,--set <option>=<value>โ Set the value of an option overriding the configuration file.-i,--interactiveโ Force display frames as they are being processed. ๐
๐ Observation Scripting, Photometry and File Conversion Options ๐
-p,--recipe <recipe_file>โ Load recipe file (searchesrcp_path).-P,--phot-run <recipe_file>โ Load recipe file and run photometry in batch mode. Report in native format.-V,--phot-run-aavso <recipe_file>โ 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 depending on information in the frame header:
_TYHCO_โ will create a recipe on-the-fly from Tycho catalog data (if available);_OBJECT_โ will search the recipe path for a file with the same name as the object in the frame (ending in.rcp);_AUTO_โ will search for a recipe by object name, and if that is not found, create a tycho one.
--import <catalog name>โ Convert a tabular catalog file to thegcxLisp-like format. Reads stdin. Current table formats are:gcvs,gcvs-pos,landolt,henden,sumner.--merge <recipe_file>โ Merge a new recipe file over the one loaded with the--recipeoption. Checks are made for either positional or name duplicates. Only stars brighter thanmag_limitare merged. โญ--set-targetโ Specify a target object to be merged into a recipe file. It will also set the recipe object,raanddecfields. ๐ฏ--make-tycho-rcp <radius>โ Create a recipe file for the object specified with--objectusing tycho2 stars in a box radius arcminutes around the object.--rcp-to-aavso <recipe_file>โ 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-alloutput for more info.-T,--rep-to-table <report_file>โ 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_formatoption, see below. ๐-O,--obsfile <obs_file>โ Load/run observation scripting file (searchesobs_path).-n,--to-pnmโ Convert a fits file to 8-bit pnm. If an output file name is not specified (with the'-o'argument), stdout is used.-j,--objectโ Specify a target object (useful for setting an initial wcs when there isn't enough information present in the fits headers).--mag-limitโ Set a magnitude limit for the output of import and merge commands.
๐ฆ CCD Reduction Options ๐ฆ
-d,--dark <dark_frame>โ Set the dark frame / do dark subtraction.-b,--bias <bias_frame>โ Set the bias frame / do bias subtraction.-f,--flat <flat_frame>โ Set the flat field frame / flatfield.-G,--gaussian-blur <fwhm>โ Set blur FWHM / apply Gaussian blur.-a,--align <align_ref_frame>โ Set the alignment reference frame / align frames.-A,--add-bias <bias>โ Set the value of a constant bias to add to all frames / add a bias to frames.-M,--multiply <multiplier>โ Set a constant to multiply all frames with / multiply frames by a scalar.
Multiplication is performed before addition. ๐งฎโจ order matters bestie, don't come for me
-u,--update-fileโ Save reduction results overwriting the original files. โ ๏ธ (yes, overwriting. the originals. gone. bye.)-s,--stackโ Stack the frames using the method set in the configuration file; for some methods additive background alignment is performed.-F,--superflatโ Stack the frames using an multiplicative background alignment procedure; the frames should be already dark-substracted.-N,--no-reduceโ 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 ๐ฅ๏ธ๐
๐ Report Converter Format String ๐
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. ๐ง
Option tokens set global table options when present. They can appear anywhere in the format string. โจ
tableheadโ Generate a table header line containing the column titles.collistโ Generate a list of columns with position information at the start of the output.res_statsโ 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 column tokens are:
name [w]โ Output the star's designator.ra [w]โ Output the right ascension in h:m:s format.dra [w.p]โ Output the right ascension in decimal degrees format.dec [w]โ Output the declination in d:m:s format.ddec [w.p]โ Output the declination in decimal degrees format.smag [w.p] <band>โ Output the standard magnitude with the given name.serr [w.p] <band>โ Output the error of the standard magnitude with the given name.imag [w.p] <band>โ Output the instrumental magnitude with the given name.ierr [w.p] <band>โ Output the error of the instrumental magnitude with the given name.flags [w]โ Output reduction flags and the star type.observation [w]โ Output the name of the observation (a synthetic name that can be used to group stars reduced from the same frame.airmass [w.p]โ Output the airmass of the observation.jdate [w.p]โ Output the Julian date of the observation.mjd [w.p]โ Output the modified Julian date of the observation.filter [w]โ Output the filter name used for the observation.xc/yc [w.p]โ Output the frame coordintes of the star's centroid.xerr/yerr [w.p]โ Output the estimated centroiding errors.dx/dy [w.p]โ Output the amount the star was moved from it's catalog position when the measuring aperture was centered.residual [w.p]โ Output the star's residual in the ensemble solution.stderr [w.p]โ Output the star's standard error (residual divided by the estimated error).
Fields for which data is not available are left blank. ๐ณ๏ธ not a zero, not a dash, blank. periodt.
๐ Image Navigation and Object Selection ๐
- Middle click or space bar โ Pan cursor. ๐ฑ๏ธ
'='โ Zoom in around cursor. ๐'-'โ Zoom out.- Left button drag left/right โ Adjust brightness. โ๏ธ
- Left button drag up/down โ Adjust contrast.
0โ Auto scale intensity.9โ Scale Min-Max.1-8โ Auto scale with different intensity spans.1is sharpest,8is dullest. ๐๏ธ- Left click on an object โ Select object (and deselect all others).
- Shift-left click on an object โ Add to selection.
- Ctrl-left click on a star image โ Mark star (if not too faint). โญ
- Left click on image โ Show local image statistics.
- Right click on image โ Pop-up the main menu.
- Right click on an object โ Pop-up the star menu.
Many useful commands have keyboard accelerators; they are displayed in the menus. ๐ iykyk
๐ FILES ๐
okay bestie, file formats time ๐พโจ 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. it's giving precision, no cap ๐ซถ
gcx supports transparent compression and decompression of fits files when zcat and gzip are available and their path is set in the corresponding options. so like, zip zip slay ๐
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. main character config energy fr fr ๐
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. little treat for you bestie ๐
๐ SEE ALSO ๐
- GCX Userยดs Manual
gnuplot(1)gzip(1)zcat(1)README.vizquery
go read the lore, iykyk ๐โจ
๐ AUTHOR ๐
okay so who's the icon behind all this?? ๐ญ๐
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. ๐
not me being obsessed with the collective slay of open source ๐ซถ
and that's a wrap bestie!! this was GCX(1), dated November 27, 2005 โ iconic behavior from start to finish, periodt ๐ โจ๐
๐ฆ where this page comes from
- debian bookworm: gcx 1.3-1.1+b3
- ubuntu jammy: gcx 1.3-1.1build2
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms