Chapter 20
Applications

 20.1 ASTERIX — X-ray data analysis
 20.2 CCDPACK — CCD data reduction
 20.3 CONVERT — Data format conversion
 20.4 DAOPHOT — Stellar photometry
 20.5 FIGARO — General spectral reduction
 20.6 IRCAM — Infrared camera data reduction
 20.7 KAPPA — Kernel applications
 20.8 PHOTOM — Aperture photometry
 20.9 PISA — Object finding and analysis
 20.10 SCAR — Star catalogue database system
 20.11 SPECDRE — Spectroscopy data reduction
 20.12 SST — Simple software tools
 20.13 TSP — Time-series and polarimetry analysis

This chapter lists the commands in the application packages mentioned in Chapter 4.

20.1 ASTERIX — X-ray data analysis

[SUN/98]

Shortform and macro commands are shown with suffixes of a cross and an asterisk respectively.

Instrument Interfaces —
Exosat:
BCKBOXEXOLE*:
Draw a source and background box on an Exosat LE image and sort the data within these regions.
BOXEXOLE*:
Draw a box on an Exosat LE image and sort the data within this region.
EXOLESORT:
Sort Exosat LE raw data files into Asterix datasets.
EXOMESORT:
Sort Exosat ME raw data files into Asterix datasets.
EXORESP:
Write an EXOSAT ME response matrix into a dataset.
EXOSUBPH:
Subtract background for ME data.
READEXO:
Read Exosat FOT’s onto disc.
SCANEXO:
Scan an Exosat tape and produce a summary.
SHOWEXO:
Produce a summary of observations on a disc directory.
TIMEXOLE*:
Plot a time series, select a time window, and sort LE data between these values.
TIMEXOME*:
Same for the ME data.
Rosat WFC:
S2ADDOWNER:
Add an ownership flag to an S2 catalogue using WFC sky division.
S2ADDPFLAG:
Add a processing flag to an S2 catalogue.
S2CATLIST:
List contents of an S2 format catalogue.
S2CATMERGE:
Merge two S2 format catalogues to create a third.
S2FILTMERGE:
Merge source search results from each filter into an S2 catalogue.
S2GIDECODE:
Unpack cross-reference data from an S2 catalogue into SCAR global index.
S2GIENCODE:
Pack a SCAR global index into an S2 catalogue.
WFCBACK:
Produce a background subtracted image given raw image.
WFCSPEC:
Produce a WFC spectral file.
Rosat XRT:
PREPXRT:
Reformat the output from XRTDISK .
XRTCORR:
Correct XRT files.
XRTDISK:
Read XRT FITS disk files.
XRTORB:
Reformat an XRT orbit file.
XRTRESP:
Write XRT response into file.
XRTSUB:
Subtract XRT files.
XSORT:
Sort raw XRT data.
Event Processing —
EVBIN:
Create a binned dataset from an event dataset.
EVCSUBSET:
Extract a circular or annular region from an event dataset.
EVLIST:
Display the DATA_ARRAY component of all lists in an event dataset.
EVMERGE:
Merge two or more event datasets.
EVPOLAR:
Bin an event dataset into a polar binned dataset.
EVSIM:
Generate a simulated event dataset.
EVSUBSET:
Extract linearly a subset from an event dataset.
Binned Dataset —
AXFLIP:
Reverse directions of any or all of dataset’s axes.
AXORDER:
Re-order axes of a dataset.
AXSHOW:
Display axes.
BINMERGE:
Merge up to ten datasets.
BINSUBSET:
Subset a binned dataset.
ENMAP:
Produce an energy map for plotting.
INTERP:
Reconstitute bad pixels by spline interpolation.
MEANDAT:
Find the mean of several datafiles.
POLYFIT:
Fit 1-d polynomial(s) to a dataset.
PROJECT:
Project data along one axis.
RATIO:
Give the ratio of two bands on any axis in an n-d array.
REBIN:
Rebin a binned dataset.
SCATTERGRAM:
Produce scatter plot of one array versus another.
SETRANGES:
Set ranges to be used by a subsequent program.
SIGNIF:
Change an input dataset to its weighted significance.
SMOOTH:
Smooth an n-d datafile with a user-selectable mask.
SYSERR:
Add a constant percentage to the variance of each point.
VALIDATE:
Basic validation of binned dataset.
Conversion —
ASTCONV:
Convert between old & new Asterix binned datasets.
AST2XSP:
Convert Asterix spectral files into XSPEC format.
ASTQDP:
Allow an Asterix file to be used within QDP.
EVBIN:
Create a binned dataset from an event dataset.
EXPORT:
Output one or more datasets to ASCII file.
IMPORT:
Read an ASCII text file into an Asterix binned dataset.
TEXT2HDS:
Convert columns in a text file into HDS arrays.
Display —
BINLIST:
Display a 1-d binned dataset.
EVLIST:
Display the DATA_ARRAY component of all lists in an event dataset.
HEADER:
Display header & processing information in a dataset.
HISTORY:
Display history of a dataset.
Maths —
ARITHMETIC:
Perform basic arithmetic (+,,/,*) on two data objects.
ADD+:
Invoke ARITHMETIC in + mode.
SUBTRACT+:
Invoke ARITHMETIC in mode.
MULTIPLY+:
Invoke ARITHMETIC in * mode.
DIVIDE+:
Invoke ARITHMETIC in / mode.
OPERATE:
Perform operations e.g. Log10 on a dataset.
Time Series Analysis —
ACF:
Auto-correlation program.
BARYCORR:
Barycentric correction.
CROSSCOR:
Cross-correlate two 1-d series.
CROSSPEC:
Compute the cross spectrum of two 1-d datasets.
DIFDAT:
Difference adjacent data points in an array.
DYNAMICAL:
Find power spectrum of successive segments of a time series.
FOLDAOV:
Period search ANOVA folding.
FOLDBIN:
Fold a time-series into phase bins at a given period.
FOLDLOTS:
Epoch folding, period search algorithm.
LOMBSCAR:
Lomb-Scargle power spectral analysis.
PHASE:
Convert a time-series into a phase series.
POWER:
Find the power spectrum of a full unweighted 1-d dataset.
SINFIT:
Find a periodogram of irregularly spaced 1-d data.
STREAMLINE:
Strip bad quality data out of a file.
TIMSIM:
Simulate a time series.
VARTEST:
Test a time series for variability.
Image Processing —
Interactive:
IAZIMUTH:
Produce azimuthal distribution.
IBLUR:
Smooth an image.
IBLURB+:
Smooth with a box filter.
IBLURG+:
Smooth with a Gaussian.
IBOX:
Define rectangular section of image.
IBOXSTATS*:
Select region and give statistics.
ICENTROID:
Find the centroid in a given region.
ICIRCSTATS*:
Get flux from a circular region.
ICLEAR:
Clear current plotting zone.
ICLOSE:
Close down image processing system.
ICOLOUR:
Change colour table.
ICONTOUR:
Contour current image.
ICURRENT:
Display the current position, image etc.
IDISPLAY:
Display current image.
IGRID:
Put grid over image in specified coords.
IHARD:
Hard copy of current plot.
IHIST:
Histogram pixels inside current box.
ILIMITS:
Change axis limits on 1-d plot.
IMARK:
Mark sources on image.
INEW:
Load new image.
INOISE:
Add Gaussian noise to image.
IPATCH:
Patch bad quality pixels in image.
IPEAKS:
Find peaks in image.
IPEEK:
Take a peek at selected bit of image.
IPEEKQ+:
Look at quality.
IPEEKV+:
Look at variances.
IPGDEF:
Change basic graphics properties.
IPLOT:
Display current 1-d plot.
IPOSIT:
Set the current position.
IPREVIOUS:
Go back to previous image.
IPSF:
Put PSF profile on 1-d plot.
IRADIAL:
Produce radial plot.
IREDISPLAY+:
Redisplay current image.
IREMOVE:
Remove sources from image.
IREPLOT+:
Redisplay current 1-d plot.
ISAVE:
Save current image to file.
ISAVE1D:
Save current 1-d data to file.
ISCALE:
Rescale image.
ISEP:
Calculate separation between two positions.
ISLICE:
Take 1-d slice from image.
ISTART:
Start up image processing system.
ISTATS:
Give basic statistics on pre-selected region of image.
ISTYLE:
Set plotting style of 1-d plot.
ISURFACE:
Display image as 3-d surface.
ITITLE:
Change title of current image or plot.
IUNZOOM*:
Redisplay whole image.
IWHOLE:
Select whole image.
IZAP:
Remove individual pixels from image.
IZONES:
Change zones on display surface.
IZOOM*:
Zoom in on section of image.
Non-interactive:
IDMSTOD*:
Convert dd:mm:ss to decimal degrees.
IDTODMS*:
Convert decimal degrees to dd:mm:ss.
IDTOHMS*:
Convert decimal degrees to hh:mm:ss.
IHMSTOD*:
Convert hh:mm:ss to decimal degrees.
IMOSAIC:
Merge several non-congruent images.
IPOLAR:
Produce polar surface brightness profile of image.
Parameter —
GLOBAL:
Display current values of all global parameters.
Spectral analysis —
FREEZE:
Freeze parameter(s) in spectral model.
IGNORE+:
Allow spectral channels to be excluded from fitting.
RESTORE+:
Reinstate spectral channels for fitting.
SDATA:
Define datasets to be fitted.
SERROR:
Evaluate confidence region for spectral model parameters.
SFIT:
Fit spectral model to one or more datasets.
SFLUX:
Evaluate flux from defined model over energy band.
SMODEL:
Allow user definition of multi-component spectral model.
SPLOT:
Plot data, fits and residuals.
THAW:
Free spectral model parameter (after FREEZEing).
Statistical analysis —
BINSUM:
Integrate dataset – use for cumulative distributions.
COMPARE:
Compare two datafiles or a file and a model.
FREQUENCY:
Produce histogram of values in data array.
KSTAT:
Calculate Kendall K statistic for 1-d dataset.
STATISTIX:
Find mean, standard deviation etc. of data array.
Quality processing —
CIGNORE:
Set quality bad in circular region.
CQUALITY:
Perform quality manipulation on circular region.
CRESTORE:
Set quality good in circular region.
IGNORE+:
Invoke QUALITY in IGNORE mode; sets temporary bad quality bit.
MAGIC:
Set magic values.
QUALITY:
General quality manipulation application.
RESTORE+:
Invoke QUALITY in RESTORE mode; clears temporary bad quality bit.
SETQUAL+:
Invoke QUALITY in SET mode; sets quality to specified value.
HDS editor —
HCOPY:
Copy an HDS object recursively.
HCREATE:
Create an HDS object in a file.
HDELETE:
Delete an HDS object.
HDIR:
Display the components of an HDS file or structure.
HDISPLAY:
Display the contents of an HDS primitive.
HFILL:
Fill a primitive object with one value.
HMODIFY:
Change the value(s) in an existing object.
HREAD:
Read from an ASCII (or binary) file to an HDS object.
HRENAME:
Rename an HDS object.
HRESET:
Set values in an HDS primitive to ‘undefined’.
HRESHAPE:
Alter size of dimensions in an HDS primitive array.
HRETYPE:
Change type of a structured object.
HSE:
Interactive HDS screen editor – see HSEHELP.
HTAB:
Simultaneously display several HDS primitive vectors.
HWRITE:
Write an HDS primitive to an ASCII (or binary) file.
Source Searching —
BSUB:
Background subtraction program.
CREPSF:
Create a PSF file.
PSS:
Search a binned dataset for sources.
PSSPAR+:
Invoke PSS in parameterise mode.
SSANOT+:
Annotate an image given source search results.
SSCARIN:
Export source search results to binary SCAR catalogue.
SSDUMP:
Dump source search results to an ASCII file.
SSMERGE:
Merge two or more source results together.
SSZAP:
Set quality bad around sources found by PSS.
XPSSCORR:
Exposure-correct XRT source fluxes produced by PSS.
GRAFIX display —
DEVICES:
Show the available graphics display devices.
DOPEN+:
Open device (variant of DEVICES).
DCLOSE+:
Close device (variant of DEVICES).
DRAW:
Display specified (or current) dataset.
QDRAW+:
Draw quick and simple plot (variant of DRAW).
RDRAW+:
Plot raw data only (variant of DRAW).
MULTI:
Create multi-graph dataset from binned datasets.
AMULTI+:
Add another binned dataset to a multi-graph dataset.
DMULTI+:
Remove a dataset from a multi-graph dataset (variants of MULTI).
DESIGN:
Display specified plots within a multi-graph dataset.
LAYOUT:
Specify number of plots in x & y in multi-graph dataset.
POSIT:
Specify position of plot in NDC or cm.
XLOG+:
Set x-axis logarithmic (variant of AXES).
YLOG+:
Set y-axis logarithmic (variant of AXES).
XYLOG+:
Set both axes logarithmic (variant of AXES).
AXES:
Set plotting attributes for axes.
XAXIS+:
Set attributes for x-axis (variant of AXES).
YAXIS+:
Set attributes for y-axis (variant of AXES).
LABEL:
Set labels on plot.
XLABEL+:
Set x-label (variant of LABELS).
YLABEL+:
Set y-label (variant of LABELS).
LEGEND:
Add, delete or modify legend lines.
ALEGEND+:
Add a legend line (variant of LEGEND).
DLEGEND+:
Delete a legend line (variant of LEGEND).
ANOTATE:
Place text in graph (binned dataset) at specified position.
POLYLINE:
Draw 1-d image as polyline.
MARKER:
Draw 1-d dataset with specified PGPLOT marker.
STEPLINE:
Draw 1-d dataset as histogram.
ERRORS:
Draw error boxes of specified shape on 1-d dataset.
PIXEL:
Draw 2-d image as pixels.
CONTOUR:
Draw 2-d dataset as contours.
THREED:
Draw 2-d dataset as quasi 3-d plot.
COLTAB:
Manipulate colour table for 2-d plot.
COLBAR+:
Cause colour bar to be put on 2-d plot.
GREYSCALE+:
Set colour table to greyscale.
SKYGRID:
Put coordinate grid on 2-d plot.
CURSOR:
Put interactive cursor on screen.
SHAPES:
Put a shape onto a displayed image.
ZOOM*:
Set plot limits interactively.
PGDEF:
Set global PGPLOT default attributes.

20.2 CCDPACK — CCD data reduction

[SUN/139]

CALCOR:
Perform dark or flash count corrections for a list of NDFs.
CCDBATCH:
Prepare a CCDPACK command procedure for submission to batch.
CCDCLEAR:
Clear the current globals parameters.
CCDNOTE:
Add a note to the log file.
CCDSETUP:
Set up the CCDPACK global parameters.
CCDSHOW:
Display the current values of the CCDPACK global parameters.
DEBIAS:
Debiass lists of NDFs either by bias NDF subtraction or by interpolation; apply bad data masks; extract a subset of the data area; produce variances; apply saturation values.
FLATCOR:
Perform the flatfield correction on a list of NDFs.
LISTLOG:
List the contents of a logfile.
MAKEBIAS:
Produce a bias calibration NDF.
MAKECAL:
Produce calibration NDFs for flash or dark counts.
MAKEFLAT:
Produce a flatfield NDF.

20.3 CONVERT — Data format conversion

[SUN/55]

DIPSO2NDF:
DIPSO to NDF format conversion.
NDF2DIPSO:
NDF to DIPSO format conversion.
DST2NDF:
Figaro version 2 to NDF format conversion.
NDF2DST:
NDF to Figaro version 2 format conversion.
BDF2NDF:
Interim (BDF) to NDF format conversion.
NDF2BDF:
NDF to Interim (BDF) format conversion.

20.4 DAOPHOT — Stellar photometry

[SUN/42]

This consists of the portable package itself, together with three additional routines to display results obtained by DAOPHOT on an image display.

DAOPHOT:
this responds to the following commands :
ADDSTAR:
Add synthetic stars to an image.
ALLSTAR:
An alternative to the iterative profile fitting routine NSTAR.
APPEND:
Concatenate two data files.
ATTACH:
Specify the disk file name of the required picture.
DUMP:
Display raw values from part of your picture on your terminal.
EXIT:
Leave the program.
FIND:
Find all the stars above a certain threshold.
FUDGE:
Change image data to fix minor problems such as cosmic ray hits (last resort).
GROUP:
Group stars together, on the principle that if two stars are close enough that the light from one will influence the profile-fit of the other then they should be in the same group.
HELP:
Produce a simple list of the commands which are available.
LIST:
Display the image header of ‘Caltech data-structure files’.
MONITOR:
Restore reporting of progress to your terminal.
NOMONITOR:
Switch off the reporting of progress to your terminal.
NSTAR:
Perform multiple, simultaneous profile-fitting photometry.
OFFSET:
Add fixed values to every X and Y co-ordinate in a data file.
OPTIONS:
Set values for various parameters to ones suitable for the given data.
PEAK:
Perform profile-fitting for a single star.
PHOTOMETRY:
Perform concentric aperture photometry in the specified image.
PICK:
Select a set of reasonable candidates for PSF stars.
PSF:
Obtain a point-spread function from the given image.
SELECT:
Cut down the size of some of the groups found by GROUP (if there are too many stars in a group).
SKY:
Estimate the sky brightness in the image.
SORT:
Re-order the stars in one of the lists produced by DAOPHOT according to various criteria.
SUBSTAR:
Remove suitable multiples of a PSF, at specified locations, from an image.
DAOGREY:
Display the image data on a suitable device.
DAOPLOT:
Take a file produced by DAOPHOT and overlay the positions of objects in the file on top of the grey-scale image produced by DAOGREY.
DAOCURS:
Display a cursor over the grey image produced by DAOGREY so that positions can be read off the screen.

20.5 FIGARO — General spectral reduction

[SUN/86]

I/O —
Input:
ALASIN
: Read a spectrum in ALAS (Abs. Line Analysis System) format.
FIND
: Read an image in IPCS format.
FITS
: Read data from a FITS format tape.
FITSLIST
: List the FITS keywords in a data file.
ICOR16
: Correct 16-bit data from signed to unsigned range.
R4S
: Read an image in 4-Shooter format.
RBAZ
: Read a DBSP CCD tape (in BAZ’s format).
RCSHEC
: Read raw Shectograph data in Copyshec disk format.
RCTIO
: Read images and spectra written in CTIO format.
RDFITS
: Read a file in AAO de facto ‘Disk FITS’ format.
RDIPSO
: Read a file in DIPSO/IUEDR/SPECTRUM format.
REWIND
: Rewind either the input or output tape.
RJAB
: Read an image in JAB’s image format.
RJKM
: Read a spectrum in JKM’s floppy disk format.
RJPL
: Read an image from a JPL linear array camera tape.
RJT
: Read an image in JT’s ‘Disk FITS’ format.
RLOL
: Read a spectrum from disk in Lolita output format.
RNTYB
: Read images written around 19Feb84 in ‘almost’ TYB format.
RPDM
: Read an image in FORTH Picture Disk Manager format.
RPFUEI
: Read an image from a Pfuei format tape.
RSHEC
: Read a raw Schectograph data tape.
RSIT
: Read 60" SIT data from tape (images or spectra).
RSPDM
: Read a spectrum in FORTH PDM/TYB format.
RSPICA
: Read a spectrum or image from a Spica Memory file.
RTYB
: Read an image in TYB format.
RXMIC
: Read an image in X-ray microscope format.
SKIP
: Skip files on tape.
SFIND
: Read data from a tape in SDRSYS format.
STARIN
: Read an image or spectrum from a Starlink BDF file.
TABLE
: List contents of a Spica memory file.
TAPE
: Set the tape drive to be used for input.
Output:
ALASOUT
: Write a spectrum in ALAS (Abs. Line Analysis System) format.
STAROUT
: Write an image or spectrum in Starlink BDF file format.
TAPEO
: Set the tape drive to be used for output.
WAIS
: Write a spectrum in AIS’s PLAY format.
WDFITS
: Write an image in the AAO de facto ‘Disk FITS’ format.
WDIPSO
: Write an image in DIPSO/IUEDR/SPECTRUM format.
WIFITS
: Write an image (or spectrum) to tape in FITS format.
WJAB
: Write an image in JAB’s Pamela format.
WJT
: Write an image in JT’s ‘Disk FITS’ format.
WLOL
: Convert a spectrum to Lolita format.
WPDM
: Write an image in FORTH picture disk manager format.
WSPICA
: Write an image or spectrum into a Spica Memory file.
DISPLAY —
On graphics/image devices:
ARGS
: Select which ARGS device is to be used.
BLINK
: Blink a displayed image pair.
BPLOT
: Plot a ‘build’ file generated by SPLOT.
CCUR
: After SPLOT, use graphics cursor to indicate data values.
COLOUR
: Set image display colour table.
CPAIR
: Colour a displayed image pair.
CPOS
: Select points with image display cursor.
DVDPLOT
: Plot the data in one file against the data in another.
ELSPLOT
: Produce a long error bar plot of a spectrum.
ESPLOT
: Produce an error bar plot of a spectrum.
HARD
: Set the file name for hard copy output.
HOPT
: Histogram-optimization of an image.
ICONT
: Produce a contour map of an image.
ICUR
: Use ARGS cursor to show x,y and data values.
IGREY
: Produce a grey-scale plot of an image.
IKON
: Specify the IKON device to use as an image display.
IMAGE
: Display an image on the selected image display.
IMAGE2
: Display a pair of separate images on the image display.
IMAGEPS
: Create a Postscript file giving a grey scale image picture.
IMPAIR
: Display an image pair on the selected image display.
IPLOTS
: Plot successive cross-sections of an image, several to a page.
ISPLOT
: Plot successive cross-sections through an image.
LSPLOT
: Plot hardcopy spectrum of specified size (up to 3 metres).
MSPLOT
: Plot a long spectrum as a series of separate plots.
PAIR
: Combine two images to form an image pair.
SOFT
: Set the device/type for terminal graphics.
SPLOT
: Plot a spectrum.
VAPLOT
: Produce an ARGS plot of a spectrum with scales under trackerball control.
XCUR
: Use cursor to delimit part of a spectrum.
ZOOM
: Zoom and pan an image (in a way compatible with ICUR).
On non-graphics devices:
EXAM
: Examine the contents of a data object.
ILIST
: List the data in an image (or spectrum).
ISTAT
: Provide some statistics about an image (max, min etc.).
CALIBRATION —
Flat field calibration:
CFIT
: Generate a spectrum using the cursor.
FF
: Flat field an image (uses JT’s algorithm).
FFCROSS
: Cross-correlate an image and a flat field (mainly IPCS data).
MASK
: Generate a mask spectrum, given a spectrum and a mask table.
MCFIT
: Fit a continuum to a spectrum, given a mask spectrum.
ISXDIV
: Divide a continuum into a spectrum, given a mask spectrum.
Wavelength calibration:
ARC
: Identify manual arc line interactively.
ECHARC
: Fit an echelle arc.
EMLT
: Fit Gaussians to the strongest lines in a spectrum.
FSCRUNCH
: Rebin data with a disjoint wavelength coverage to a linear one.
IARC
: Fit all spectra in a 2-d arc, given fit to single spectrum.
ISCRUNCH
: Rebin an image to linear wavelength scale given IARC results.
ISCRUNI
: Like ISCRUNCH, but interpolate between two IARC result sets.
IXSET
: Create a 2-d X-array from an IARC fit.
LXSET
: Set X-array of spectrum/image to specified range.
SCRUNCH
: Rebin a spectrum to a linear wavelength range.
VACHEL
: Convert wavelength for air to vacuum, and/or recession velocity.
XCOPI
: Like XCOPY, but interpolate X-data from 2 files.
XCOPY
: Copy X-info (e.g. wavelengths) into a spectrum.
Flux calibration:
ABCONV
: Convert a spectrum from Janskys into AB magnitudes.
CALDIV
: Generate a calibration spectrum from continuum standard spectra.
CFIT
: Generate a spectrum using the cursor.
CSET
: Set regions of a spectrum to a constant value interactively.
CSPIKE
: Create a calibration spiketrum, given spiketrum & standard spectrum.
FIGSFLUX
: Flux calibrate a FIGS spectrum.
FLCONV
: Convert a spectrum in Janskys into one in ergs/cm**2/s/Å.
FWCONV
: General unit conversion for spectra.
GSPIKE
: Generate a spiketrum from a table of values.
INTERP
: Interpolate between the points of a spiketrum a spectrum.
IRFLUX
: Flux calibrate an IR spectrum using a black-body model.
LINTERP
: Interpolate linearly between spiketrum points spectrum.
NCSET
: Set a region of a spectrum to a constant.
SFIT
: Fit a polynomial to a spectrum.
SPFLUX
: Apply a flux calibration spectrum to an observed spectrum.
SPIED
: Edit a spiketrum interactively.
SPIFIT
: Fit a global polynomial to a spiketrum a spectrum.
Distortion measurement and correction:
CDIST
: Correct S-distortion using SDIST results.
ICUR
: Show x,y and data values using ARGS cursor.
FINDSP
: Locate fibre spectra in an image.
ODIST
: Overlay an SDIST fit on another image.
OFFDIST
: Apply an offset to an SDIST fit.
OVERPF
: Overlay a FINDSP fit on another image.
POLEXT
: Extract fibre spectra from an image after a FINDSP analysis.
SDIST
: Analyse an image containing spectra for S-distortion.
Extinction coefficients:
EXTIN
: Correct a spectrum for atmospheric extinction.
GSPIKE
: Generate a spiketrum from a table of values.
LINTERP
: Interpolate linearly between spiketrum points spectrum.
B star calibration:
BSMULT
: Remove atmospheric band using a B star calibration spectrum.
CFIT
: Generate a spectrum using the cursor.
CSET
: Set regions of a spectrum to a constant value interactively.
MASK
: Generate a mask spectrum given a spectrum and a mask table.
MCFIT
: Fit a continuum to a spectrum, given a mask spectrum.
NCSET
: Set a region of a spectrum to a constant.
MANIPULATION —
Arithmetic:
CLIP
: Clip data above and below a pair of threshold values.
CONTRACT
: Reduce size of files by contracting arrays.
EXPAND
: Expand files reduced by CONTRACT.
IADD
: Add two images (or two spectra).
ICADD
: Add a constant to an image.
ICDIV
: Divide an image by a constant.
ICMULT
: Multiply an image by a constant.
ICONV3
: Convolve an image with a 3x3 convolution kernel.
ICSUB
: Subtract a constant from an image.
IDIFF
: Take the ‘differential’ of an image.
IDIV
: Divide two images (or two spectra).
ILOG
: Take the logarithm of an image.
IMULT
: Multiply two images (or two spectra).
IPOWER
: Raise an image to a specified power.
IREVX
: Reverse an image (or spectrum) in the X-direction.
IREVY
: Reverse an image (or spectrum) in the Y-direction.
ISHIFT
: Apply a linear x and a linear y shift to an image.
ISMOOTH
: Smooth a 2-d image using 9-point smoothing algorithm.
ISTRETCH
: Stretch and shift an image in X and Y.
ISUB
: Subtract two images (or two spectra).
ISUBSET
: Produce a subset of an image.
ISUPER
: Produce a superset of an image.
ISXADD
: Add a spectrum to each X direction x-sect of an image.
ISXDIV
: Divide a spectrum into each X direction x-sect of an image.
ISXMUL
: Multiply each X direction image x-sect by a spectrum.
ISXSUB
: Subtract each X direction image x-sect from a spectrum.
ISYADD
: Add a spectrum to each Y direction x-sect of an image.
ISYDIV
: Divide a spectrum into each Y direction x-sect of an image.
ISYMUL
: Multiply each Y direction image x-sect by a spectrum.
ISYSUB
: Subtract each Y direction image x-sect from a spectrum.
IXSMOOTH
: Smooth in X direction by Gaussian convolution.
ROTX
: Rotate data along the X-axis.
Complicated:
ADJOIN
: Append two spectra (strictly a merge by wavelength value).
BCLEAN
: Remove automatically bad lines & cosmic rays from CCD data.
CFIT
: Generate a spectrum using the cursor.
CLEAN
: Patch bad lines and bad pixels in an image interactively.
COADD
: Form the spectrum which is the mean of the rows in an image.
COMBINE
: Combine two spectra, adding with weights according to errors.
COSREJ
: Reject cosmic rays from a set of supposedly identical spectra.
CROBJ
: Create a data object or file.
CSCALE
: Estimate scale factor for 2 images using ARGS.
FSCRUNCH
: Rebin data with a disjoint wavelength coverage to a linear one.
HIST
: Produce a histogram of data value distribution in an image.
HOPT
: Histogram optimize an image.
ICONV3
: Convolve an image with a 3x3 convolution kernel.
ICOR16
: Correct 16-bit data from signed to unsigned range.
IDIFF
: Take the ‘differential’ of an image.
IERASE
: Subtract erase line from a CCD image.
IREVX
: Reverse an image (or spectrum) in the X direction.
IREVY
: Reverse an image (or spectrum) in the Y direction.
MEDFILT
: Apply a median filter to an image.
MEDSKY
: Take the median of a number of images.
PAIR
: Combine two images to form an image pair.
POLYSKY
: Fit and subtract sky from a long slit spectrum.
ROTATE
: Rotate an image through 90 degrees.
SCNSKY
: Calculate a sky spectrum for a scanned CCD image.
SCROSS
: Cross-correlate two spectra & get relative shift.
SCRUNCH
: Rebin a spectrum to a linear wavelength range.
SFIT
: Fit a polynomial to a spectrum.
SURFIT
: Fit an image using bi-cubic splines.
Complex data:
BFFT
: Take the reverse FFT of a complex data structure.
CMPLX2I
: Extract the imaginary part of a complex data structure.
CMPLX2M
: Extract the modulus of a complex data structure.
CMPLX2R
: Extract the real part of a complex data structure.
CMPLXADD
: Add two complex structures.
CMPLXCONJ
: Produce the complex conjugate of a complex structure.
CMPLXDIV
: Divide two complex structures.
CMPLXFILT
: Create a mid-pass filter for complex data.
CMPLXMULT
: Multiply two complex structures.
CMPLXSUB
: Subtract two complex structures.
COSBELL
: Create data that goes to zero at the edges in a cosine bell.
FFT
: Take the forward FFT of a complex data structure.
I2CMPLX
: Copy an array into the imaginary part of a complex structure.
PEAK
: Determine the position of the highest peak in a spectrum.
R2CMPLX
: Create a complex data structure from a real data array.
ROTX
: Rotate data along the X-axis.
Fudging:
CSET
: Set regions of a spectrum to a constant value interactively.
DELOBJ
: Delete a data object or a file.
ISEDIT
: Allow interactive editing of a 1-d or 2-d spectrum.
LET
: Assign a value to a named data object or variable.
LXSET
: Set X array of a spectrum or image to a specified range.
LYSET
: Set Y array of a spectrum or image to a specified range.
NCSET
: Set a region of a spectrum to a constant.
RENOBJ
: Change the name of a data object.
SPIED
: Edit a spiketrum interactively.
TIPPEX
: Modify individual pixel values with cursor.
XCADD
: Add a constant to the X data in a file.
XCDIV
: Divide the X data in a file by a constant.
XCMULT
: Multiply the X data in a file by a constant.
XCSUB
: Subtract a constant from the X data in a file.
Slices:
EXTLIST
: Add a number of non-contiguous lines in an image a spectrum.
EXTRACT
: Add contiguous lines of an image a spectrum.
GROWX
: Perform reverse function to that of EXTRACT.
GROWXT
: Copy an image into contiguous XT planes of a cube.
GROWXY
: Copy an image into contiguous XY planes of a cube.
GROWY
: Perform reverse function to that of YSTRACT.
GROWYT
: Copy an image into contiguous YT planes of a cube.
OPTEXTRACT
: Extract a long slit spectrum using Horne’s optimal extraction.
PROFILE
: Determine a long slit spectrum profile for use by OPTEXTRACT.
SLICE
: Take a slice with arbitrary end points through an image.
XTPLANE
: Add contiguous XT planes of a data cube an image.
XYPLANE
: Add contiguous XY planes of a data cube an image.
YSTRACT
: Add contiguous columns of an image a spectrum.
YTPLANE
: Add contiguous YT planes of a data cube an image.
Fibre images:
FINDSP
: Locate fibre spectra in an image.
POLEXT
: Extract fibre spectra from an image after a FINDSP analysis.
OVERPF
: Overlay a FINDSP fit on another image.
SPECTROMETERS —
Fabry-Perot infra-red grating spectrometer:
FET321
: Extract a spectrum from 1 detector from etalon mode FIGS data.
FIGS321
: Process a FIGS data cube down to a single spectrum.
FIGS322
: Process a FIGS data cube down to an image.
FIGS422
: Process a FIGS image-mode hypercube down to an image.
FIGS423
: Process a FIGS image-mode hypercube down to a cube.
FIGS424
: Sort a FIGS image-mode hypercube into wavelength order.
FIGSEE
: Generate a seeing ripple spectrum from a FIGS spectrum.
FIGSFLUX
: Flux calibrate a FIGS spectrum.
IRCONV
: Convert data in Janskys to W/m**2/um.
IRFLAT
: Generate a ripple spectrum from an IR spectrum.
IRFLUX
: Flux calibrate an IR spectrum using a black-body model.
REMBAD
: Remove pixels that have been flagged as bad from data.
Echelle spectrometer:
CDIST
: Correct S-distortion using SDIST results.
ECHARC
: Fit an echelle arc.
ECHFIND
: Locate spectra in echelle data.
ECHMASK
: Produce an extraction mask from an SDIST analysis.
ECHMERGE
: Merge echelle spectra into a single long spectrum.
ECHSELECT
: Select sky and object spectra for an echelle interactively.
ICUR
: Show x,y and data values using ARGS cursor.
IMAGE
: Display an image on the selected image display.
MASKEXT
: Extract echelle orders using a mask created by ECHMASK.
ODIST
: Overlay an SDIST fit on another image.
OFFDIST
: Apply an offset to an SDIST fit.
SDIST
: Analyse an image containing spectra for S-distortion.
ANALYSIS —
Absorption line analysis:
ABLINE
: Analyse absorption lines interactively.
GAUSS
: Fit Gaussians to emission or absorption lines interactively.
Photometry:
CENTERS
: Generate a file of object centroids from CPOS output.
CPOS
: Select points with the image display cursor.
FOTO
: Perform aperture photometry given CENTERS output.
Gaussian fitting to spectral lines:
EMLT
: Fit Gaussians to the strongest lines in a spectrum.
GAUSS
: Fit Gaussians to emission or absorption lines interactively.
MISCELLANEOUS —
Miscellaneous:
CCDLIN
: Apply a linearity correction to AAO CCD data.
ERRCON
: Convert percentage error values to absolute values.
FIGSET
: Set Figaro environment parameters, e.g. default directory.
RECOFF
: Turn off logging of the terminal dialogue.
RECON
: Turn on logging of the terminal dialogue.
RETYPE
: Change the type of the main data array in a file.
SQRTERR
: Generate an error array as Error = Square Root of (Data/Const).
TRIMFILE
: Cut down the size of a Figaro file by removing any deadwood.
VSHOW
: Display the values of Figaro user variables.

20.6 IRCAM — Infrared camera data reduction

[SUN/41]

These are the IRCAM commands which are relevant specifically to data reduction:

Image Display —
AGAIN:
Plot the last image again.
CFLASH:
Plot an image without scaling.
CHPLT:
Plot PhaseA, PhaseB and Difference on workstation.
CNSIGMA:
Plot an image with range N-sigma on mean at cursor posn.
CPLOT:
Plot an image with user defined max,min with cursor.
CRANPLOT:
Plot an image between user defined range using cursor.
CVARG:
Plot an image with vargrey between max,min with cursor.
DISP:
Plot STARE, SKY difference on workstation.
DISPHOT:
Retired, use DISP.
FLASH:
Plot an image without scaling.
MOREN:
Plot an image using N_sigma range on mean again.
MOREP:
Plot an image using plot between limits again.
MORER:
Plot an image using ranplot range on mean again.
MOREV:
Plot an image using vargrey CUT.
NSIGMA:
Plot an image using N_sigma range on mean.
PLOT:
Plot an image between maximum, minimum values.
PLOTGLITCH:
Plot an image, glitchmarks it, plot result.
PLOTLOT:
Plot and do stuff on a number of images.
RANPLOT:
Plot an image between user defined range.
SHOW:
Display an image with one of the plot procedures.
STPLT:
Plot STARE, SKY difference on workstation.
VARGREY:
Plot an image with variable scaling between max,min.
Colours —
ABLOCK:
Plot a colour block.
ALLCOL:
Write all colour tables to image display.
CABLOCK:
Plot a colour block at cursor position.
COL11:
Write COL11 colour table.
COL13:
Write COL13 colour table.
COL19:
Write COL19 colour table.
COL3:
Write COL3 colour table.
COL5:
Write COL5 colour table.
COL7:
Write COL7 colour table.
COLCYCLE:
Cycle colour table n times into new colour table.
COLINV:
Invert the colour table on subsequent COLTABs.
COLIST:
List colour tables currently available.
COLOUR:
Manipulate colours for PLT2D D-task.
COLTAB:
Write a colour table.
COLTAB_LIST:
List coltab tables with description.
CRECOLT:
Create colour tables by pen/intensity selection.
GREY:
Write a GREY colour table.
HEAT:
Write the HEAT colour table.
MANYCOL:
Combine n different colour tables into one output colour table.
PENCOL:
Set the colour of a pen.
PENINT:
Set the intensity of the 3 guns for a pen.
SPEC:
Write a SPEC colour table.
WRITELUT:
Write a colour table LUT to workstation.
Line Graphics —
BORDER:
Plot a border around last image.
BOX:
Plot a box.
CBOX:
Plot a box centred on cursor.
CC:
Wrap around for CROSSCUT.
CCIRCLE:
Plot a circle at cursor.
CCROSS:
Plot a cross at cursor.
CCUT:
Plot a cut using cursor defined points on current image.
CELLIPSE:
Plot a ELLIPSE at cursor.
CIRCLE:
Plot a circle.
CLINE:
Plot a line between two cursor positions.
CONTOUR:
Plot a contour image.
CONT_TIT:
Set title for a contour plot.
CROSS:
Plot a cross.
CROSSCUT:
Plot an x and a y cut on current image.
CUT:
Plot a cut on current image.
CUT2FF:
Enable/disable writing of cut to ff file.
CUT_TIT:
Set title for a cut plot.
ELLIPSE:
Plot an ellipse.
FEATURE:
Plot a line graphics/comment feature on workstation.
GRID:
Plot a grid on an image.
HIST:
Plot a histogram.
LINE:
Plot a line between user specified positions.
LINECOL:
Set all line graphics pens to specified color.
SURROUND:
Put a border and ticks/numbers around image.
VEC:
Plot a polarization vector plot on current workstation.
VEC_TIT:
Set a title for a vector plot.
Text —
LABEL:
Label an image with position values from a file.
WRCCOM:
Write a comment at cursor.
WRCOM:
Write a comment on current workstation.
Maths —
ADD:
Add two images together.
CADD:
Add a constant to an image.
CDIV:
Divide an image by a constant.
CMULT:
Multiply an image by a constant.
CSUB:
Subtract a constant from an image.
DIV:
Divide two images.
EXP10:
Take 10 exponential of an image.
EXPE:
Take e exponential of an image.
EXPON:
Take N exponential of an image.
LOG10:
Log base 10 of an image.
LOGAR:
Log base N of an image.
LOGE:
Log base e of an image.
MEDLOT:
Subtract median from a number of images.
MULT:
Multiply two images.
OADD:
Procedure to run ADD rapi2d action.
OCADD:
Procedure to run CADD rapi2d action.
OCDIV:
Procedure to run CDIV rapi2d action.
OCMULT:
Procedure to run CMULT rapi2d action.
OCSUB:
Procedure to run CSUB rapi2d action.
ODIV:
Procedure to run DIV rapi2d action.
OMULT:
Procedure to run MULT rapi2d action.
OSUB:
Procedure to run SUB rapi2d action.
POW:
Raise image to arbitrary power.
ROOT:
Take square root of an image.
SUB:
Subtract two images.
TRIG:
Perform trigonometrical functions on image.
Statistics —
ANNSTATS:
Annular aperture statistics with eccentric annuli.
APERADD:
Perform simple aperture statistics.
APERPHOT:
Aperture photometry program.
APPH1:
Aperture photometry using cremap offset file.
HISTGEN:
Generate histogram of an image (plot with HIST).
HISTO:
Histogram statistics on an image.
MAG:
Calculate magnitude of feature in image using input zp.
MSTATS:
Statistics on n images through each pixel.
OCMAG:
Procedure to run MAG rapi2d action with cursor.
OCSTATS:
Procedure to run STATS rapi2d action with cursor.
OHISTGEN:
Procedure to run HISTGEN A-task
OHISTO:
Procedure to run HISTO rapi2d action.
OSTATS:
Procedure to run STATS rapi2d action.
STATS:
Statistics on sub-image.
Image size changing —
ABSEP:
Separate odd and even readout channels into 2 images.
BINUP:
Reduce image in size by binning pixels (separate x and y).
COMPADD:
Compress an image in size by adding pixels.
COMPAVE:
Compress an image in size by averaging pixels.
COMPICK:
Compress an image in size by picking pixels.
COMPRESS:
General compression in size program.
DISPICK:
Procedure to run PICKIM rapi2d action with cursor.
MANIC:
Change an image size arbitrarily.
OEFIX:
Scale odd and even channels wrt median in channels.
OSHSIZE:
Procedure to run SHSIZE rapi2d action.
PICKIM:
Pixeks a sub-image from an image and stores.
PICKLOT:
Pickims a number of images.
PIXDUPE:
Increase image size by pixel duplication.
SHSIZE:
Return size of an image.
SQORST:
Change shape and dimensionality of an image.
XGROW:
Grow an image in x direction.
YADD:
Add up all pixels down each column and generate linear output.
YGROW:
Grow an image in y direction.
Mosaicing —
AUTOMOS:
Correct dc offsets and mosaic n images automatically.
CREQUILT:
Create a quilt file from lists of offsets and images.
MOFF:
Calculate spatial and dc offset of 2 overlapping images.
MOS2:
Display 2 images, gets stats and scales and mosaics.
MOSAIC:
Mosaic together n overlapping images.
MOSAIC2:
Mosaic 2 overlapping images together.
MOSCOR:
Calculate dc offset between two offset images.
QUILT:
Mosaic n images together using terminal/file input.
WMOSAIC:
Mosaic with weighting on image contributions.
WQUILT:
Quilt with weighting on image contributions.
Polarimetry —
APERPOL:
Aperture polarimetry from 4 input intensity images.
DEVFCS:
Calculate deviation of polarization from centro-symmetry.
FLATPOL:
Flat-field and deglitch 4 polarization images.
OCAPERPOL:
Procedure to run APERPOL action with cursor.
POLCAL:
Calculate polarization from input 4 intensity images.
POLLY:
Calculate polarization from input 4 values.
POLREG:
Move 4 polarization images to average position and trim.
POLSHFT:
Move 4 polarization images to average position.
POLSHIFT:
Wrap around for POLSHFT.
POLSHOT:
Remove shot-noise polarization contribution from image.
POLTHRESH:
Threshold 4 polarization intensity images.
SKYSUB4:
Subtract median of area of 4 images image from images.
THETAFIX:
Correct polarization position angle to 0-180 degs.
Daophot —
DAOCEN:
Take xcursor input and calculate centroid at that position.
DAOFIND:
Plot crosses or circles on each star found.
DAOGID:
Get ID of nearest star to cursor selected one.
DAOGID2:
Get ID of nearest star to cursor selected one.
Inquiries —
GETCP:
Get the pixel position of a cursor input.
GETCR:
Get the real position of a cursor input.
GETMC:
Get the calculated maximum,minimum in a PLOT/NSIGMA.
GETMM:
Get the maximum and minimum specified for a PLOT.
GETPEN:
Get pens of all line graphics and pen numbers.
GETPLOT:
Get the current state of image area PLOT.
GETPOLCOL:
Get the current settings of the colours for polax.
GETPS:
Get the plate scale for feature plotting on images.
GETRAST:
Get the size in raster units of the current workstation.
GETSTEN:
Get the start and size in raster units of image area.
Set —
SETAREA:
Copy useful files from standard directory to users.
SETBAD:
Set bad pixel image to be used.
SETCEN:
Set the centre of the image in a PLOT/NSIGMA.
SETCIM:
Set the cursoring image to other than that displayed.
SETCOL:
Set the colour of special features.
SETCOMORI:
Change the character orientation.
SETCONT:
Set up the contour plot.
SETCONTIC:
Set contour maps tick mark extent.
SETCUR:
Set where the cursor refers to in CPLOT, CNSIGMA etc.
SETCURMARK:
Set the cursor marking parameter from user’s choice.
SETCUT:
Set up a cut plot.
SETCUTAXRAT:
Set the axis ratio for cut.
SETDARK:
Set dark image to be used.
SETFONT:
Change the font and character orientation.
SETMAG:
Set the magnification for subsequent PLOTS/NSIGMAS.
SETMAX:
Set the maximum for image scaling in a PLOT.
SETMIN:
Set the minimum for image scaling in a PLOT.
SETMM:
Set the maximum and minimum for image scaling in a PLOT.
SETNUM:
Set offset or ra/dec mode for contour maps and surround.
SETNUMORI:
Set the orientation of numbers in around image.
SETNUMSCA:
Set the numbers scale factor for around image.
SETPLOTAREA:
Set the option to plot whole or sub- image.
SETPOLCOL:
Set the current settings of the colours for polax.
SETPRE:
Set correct file prefix for observation files.
SETPS:
Set the plate scale for feature plotting on image.
SETQUAD:
Set a quadrant for an image plot.
SETRADEC:
Set ra/dec for contour maps and surround.
SETUP_IRCAM:
Set IRCAM parameters for IRACS,MOTASK,PLT2D D_tasks.
SETVAL:
Set a specified value in an image at user locations.
SETVARG:
Set X and Y percentage cut for vargrey plot.
SETVEC:
Set up a polarization vector map on current workstation.
Bad Pixel Removal —
CHPIX:
Change pixel values in image.
DEGLOT:
Deglitch a number of images.
GLITCH:
Remove bad pixels by interpolation.
GLITCHMARK:
Mark glitches for glitch A-task interactively.
INSETB:
Set pixels inside user defined box to user value.
INSETC:
Set pixels inside user defined circle to user value.
OGLITCH:
Procedure to run GLITCH rapi2d action.
OUTSETB:
Set pixels outside specified box to user value.
OUTSETC:
Set pixels outside user specified circle to user value.
Smoothing —
BLOCK:
Block smooth an image.
GAUSS:
Gaussian smooth an image.
GAUSSTH:
Gaussian smooth images below a specified threshold.
LAPLACE:
Laplace transform an image.
MEDIAN:
Spatially median filter an image.
General and Miscellaneous —
AMCORR:
Correct images for air mass.
ASCIIFILE:
Take text/variables from ADAMCL and write to ASCII file.
ASCIILIST:
Convert SDF image to ASCII list of numbers.
BATCH_ZEROPOINTS:
Read zeropoint for DISP from ASCII file.
CALMAG:
Calculate magnitude from number and zeropoint.
CALZER:
Calculate zeropoint from number and magnitude.
CENTROID:
Calculate centroid of stellar profile.
CIT:
Wrap around for CLEARIT.
CLEAR:
Clear the workstation.
CLEARIT:
Clear a section of the image display screen.
CLOSE:
Close plotting.
COLMED:
Calculate median down columns and create output mask.
CREFP:
Create fp scan list in SDF format.
CREFRAME:
Create an image with standard patterns.
CREMAP:
Create image positional offset list in SDF format (gomos).
CURSOR:
Display the cursor and returns X,Y, value.
DARKLOT:
Dark subtract a number of images.
DARKSUB:
Subtract dark from a number of images.
DATASW:
Switch data input from numbers to names.
DEFGRAD:
Define gradients in image and return map.
DEFPROMPT:
Define the prompt for ADAMCL.
DIST:
Calculate distance and angle between two points in image.
FCOADD:
Add up n images into one image.
FITSREAD:
Read fits tape and create SDF file.
FITSWM:
Write SDF files to fits tape.
FLATDEG:
Flat field and deglitch a number of images.
FLATLOT:
Flat field a number of images.
FLATRED:
Reduce image.
FLIP:
Flip an image east-west or north-south.
GFIT:
Fit Gaussian to star.
HARDCOPY:
Close plotting, open it on hardcopy workstation.
HELPLIST:
List commonly used procedures.
HISTEQ:
Histogram equalization of an image.
INDEX:
Index through an SDF image listing components.
INTLK:
Generate integer map of an image.
LINCONT:
Linearize normal readout (non-NDR) images.
LINCONT_NDR:
Linearize NDR readout images.
LISTMAP:
List out a mosaic offset file to terminal.
LOOK:
Inspect pixels in an image.
LOUD:
Set the bell parameters to normal values.
MCURSOR:
Display repeatedly the cursor.
MED3D:
Median filter through stack of n images.
NUMB:
Calculate number of pixels above specified signal.
OBSEXT:
Extract an image from a observation container file.
OBSLIST:
List a specified component of an observation structure.
ODIST:
Procedure to run DIST rapi2d action.
OLOOK:
Procedure to run LOOK rapi2d action.
ONUMB:
Procedure to run NUMB rapi2d action.
OPEN:
Open plotting on a workstation.
PLT2D_RESET:
Close plotting and open it again.
RADIM:
Generate radial image profile from image and centre position.
REDLIST:
List reduction routines for info.
RELOAD_PLT2D:
Load/reload Plt2d.
RELOAD_RAPI2D:
Load/reload Rapi2d.
ROTATE:
Rotate an image by an arbitrary amount.
ROWMED:
Median filter along rows of an image generating a map.
SHADOW:
Shadow enhance an image.
SHIFT:
Shift an image by fraction pixels by linear interpolation.
SHIFT2:
Move 2 images to average position.
SHIFT3:
Centroid and shift 3 images.
SNAPFILE:
Convert spanshot images to SDF format images.
SNOOP_IRCAM:
Get IRCAM parameters from IRACS,MOTASK,PLT2D.
SOFT:
Set the bell parameters to 0 values.
SQ:
Wrap around for SETQUAD.
STARFIT:
Fit star and return stack dump (Starlink routine).
STD:
Use cursor to get star position and aperadd.
STDPLOT:
Plot last GKS QMS file to laser printer.
STEPIM:
Step an image (like pseudo-contouring with values filled).
SUBDARK:
Subtract dark.
SYS:
Get the SYS/S from VMS.
THRESH:
Set values above and below specified levels to user values.
THRESH0:
Set values below 0 to user value.
TOMAG:
Convert intensity to magnitudes in images.
TRACE:
Trace HDS structure.
TRANDAT:
Transfer ASCII list of numbers to SDF image.
USE:
Get the users from VMS.

20.7 KAPPA — Kernel applications

[SUN/95]

I/O —
Image generation and input:
CREFRAME
: Generate a test 2-d data array from a selection of several types.
FITSDIN
: Read a FITS disk file composed of simple, group or table files.
FITSIMP
: Import FITS information into an NDF extension.
FITSIN
: Read a FITS tape composed of simple, group or table files.
TRANDAT
: Convert free-format data into an NDF.
DISPLAY —
Detail enhancement:
HISTEQ
: Perform an histogram equalisation on a 2-d data array.
LAPLACE
: Perform a Laplacian convolution as an edge detector in a 2-d data array.
SHADOW
: Enhance edges in a 2-d data array using a shadow effect.
THRESH
: Create a thresholded version of a data array (new values for pixels outside defined thresholds are specified).
THRESH0
: Create a thresholded version of a data array (every value outside the defined thresholds is set to zero).
Display control:
BLINK
: Blink two planes of an image display.
CURSOR
: Report co-ordinates of points selected using cursor and select current picture.
GDCLEAR
: Clear a graphics device and purge its database entries.
GDSTATE
: Show the current status of a graphics device.
IDCLEAR
: Clear an image display and purge its database entries.
IDINVISIBLE
: Make memory planes of an image-display device invisible.
IDPAN
: Pan and zoom an ARGS or an IKON.
IDPAZO
: Pan and zoom an image-display device.
IDRESET
: Perform a hardware reset of an ARGS or an IKON.
IDSTATE
: Show the current status of an image display.
IDUNZOOM
: Unzoom and re-centre an image-display device.
IDVISIBLE
: Make all the memory planes of an image-display device visible.
PICDEF
: Define a new graphics-database picture or an array of pictures.
PICIN
: Find the attributes of a picture interior to the current picture.
PICLABEL
: Label the current graphics-database picture.
PICLIST
: List the pictures in the graphics database for a device.
PICSEL
: Select a graphics-database picture by its label.
Device selection:
GDNAMES
: Show which graphics devices are available.
GDSET
: Select a current graphics device.
IDSET
: Select a current image-display device.
OVSET
: Select a current image-display overlay.
Lookup/Colour tables:
CRELUT
: Create or manipulate an image-display lookup table using a palette.
LUTABLE
: Manipulate an image-display colour table.
LUTBGYRW
: Load the BGYRW lookup table.
LUTCOL
: Load the standard colour lookup table.
LUTCONT
: Load a lookup table to give the display the appearance of a contour plot.
LUTFC
: Load the standard false-colour lookup table.
LUTFLIP
: Flip the colour table of an image-display device.
LUTGREY
: Load the standard greyscale lookup table.
LUTHEAT
: Load the heat lookup table.
LUTHILITE
: Highlight a colour table of an image-display device.
LUTIKON
: Load the Ikon lookup table.
LUTNEG
: Load a negative greyscale lookup table.
LUTRAMPS
: Load the coloured-ramps lookup table.
LUTREAD
: Load an image-display lookup table from an NDF.
LUTROT
: Rotate the colour table of an image-display device.
LUTSAVE
: Save the current colour table of an image-display device in an NDF.
LUTSPEC
: Load a spectrum-like lookup table.
LUTTWEAK
: Tweak a colour table of an image display.
LUTVIEW
: Draw a colour-table key.
LUTZEBRA
: Load a pseudo-contour lookup table.
TWEAK
: Adjust a colour table interactively.
Output:
COLUMNAR
: Draw a perspective-histogram representation of a 2-d NDF.
CONTOUR
: Contour a 2-d NDF.
CONTOVER
: Contour a 2-d data array overlaid on an image displayed previously.
DISPLAY
: Display a 2-d NDF.
GREYPLOT
: Produce a greyscale plot of a 2-d NDF.
HIDE
: Draw a perspective plot of a 2-d NDF.
INSPECT
: Inspect a 2-d NDF in a variety of ways.
LINPLOT
: Draw a line plot of a 1-d NDF’s data values against their axis co-ordinates.
LOOK
: Output the values of a sub-array of a 2-d data array to the screen or an ASCII file.
MLINPLOT
: Draw a multi-line plot of a 2-d NDF’s data values v. axis co-ordinates.
SNAPSHOT
: Dump an image-display memory to hardcopy and, optionally, to an NDF.
TURBOCONT
: Contour a 2-d NDF quickly.
Palette:
PALDEF
: Load the default palette to a colour table.
PALENTRY
: Enter a colour into an image display’s palette.
PALREAD
: Fill the palette of a colour table from an NDF.
PALSAVE
: Save the current palette of a colour table to an NDF.
MANIPULATION —
Arithmetic:
ADD
: Add two NDF data structures.
CADD
: Add a scalar to an NDF data structure.
SUB
: Subtract one NDF data structure from another.
CSUB
: Subtract a scalar from an NDF data structure.
MULT
: Multiply two NDF data structures.
CMULT
: Multiply an NDF by a scalar.
DIV
: Divide one NDF data structure by another.
CDIV
: Divide an NDF by a scalar.
EXP10
: Take the base-10 exponential of each pixel of a data array.
EXPE
: Take the exponential of each pixel of a data array (base e).
EXPON
: Take the exponential of each pixel of a data array (specified base).
POW
: Take the specified power of each pixel of a data array.
LOG10
: Take the base-10 logarithm of each pixel of a data array.
LOGAR
: Take the logarithm of each pixel of a data array (specified base).
LOGE
: Take the natural logarithm of each pixel of a data array.
MATHS
: Evaluate mathematical expressions applied to NDF data structures.
TRIG
: Perform a trigonometric transformation on a data array.
Pixel editing:
CHPIX
: Replace the values of selected pixels in a 2-d data array with user-specified values.
GLITCH
: Replace bad pixels in a 2-d data array with the local median.
NOMAGIC
: Replace all magic-value pixels in a data array by a user-defined value.
OUTSET
: Set pixels outside a specified circle in a 2-d data array to a specified value.
SEGMENT
: Copy polygonal segments from one 2-d data array to another.
SETMAGIC
: Replace all pixels with given value in data array by magic value.
ZAPLIN
: Replace regions in a 2-d data array by bad values or by linear interpolation.
Configuration change:
FLIP
: Reverse an NDF’s pixels along a specified dimension.
INSPECT
: Inspect a 2-d NDF in a variety of ways.
MANIC
: Convert all or part of a data array from one dimensionality to another.
PICK2D
: Create a new 2-d data array from a subset of another.
ROTATE
: Rotate a 2-d data array through any angle.
SHIFT
: Realign a 2-d data array via an x,y shift.
Combination:
MOSAIC
: Merge several non-congruent 2-d data arrays into one output data array.
NORMALIZE
: Normalize NDF to similar NDF by calculating scale and zero difference.
QUILT
: Generate a mosaic from equally sized 2-d data arrays.
Compression and Expansion:
COMPADD
: Reduce the size of a 2-d data array by adding neighbouring pixels.
COMPAVE
: Reduce the size of a 2-d data array by averaging neighbouring pixels.
COMPICK
: Reduce the size of a 2-d data array by picking every nth pixel.
COMPRESS
: Reduce the size of a 2-d data array by averaging neighbouring pixels by different amounts in x and y.
PIXDUPE
: Expand a 2-d data array by pixel duplication.
SQORST
: Squash or stretch a 2-d data array in either or both axes.
Filtering:
BLOCK
: Smooth a 2-d image using a square or rectangular box filter.
FOURIER
: Perform forward and reverse Fourier transforms on 2-d NDFs.
GAUSS
: Smooth a 2-d image using a symmetrical Gaussian filter.
MEDIAN
: Smooth a 2-d data array using a 2-d weighted median filter.
MEM2D
: Perform a Maximum-Entropy deconvolution of a 2-d NDF.
SURFIT
: Fit a polynomial or spline surface to a 2-d data array.
NDF and HDS components:
ERASE
: Erase an HDS object.
FITSIMP
: Import FITS information into an NDF extension.
SETBB
: Set a new value for the quality bad-bits mask of an NDF.
SETLABEL
: Set a new label for an NDF data structure.
SETTITLE
: Set a new title for an NDF data structure.
SETTYPE
: Set a new numeric type for the data and variance components of an NDF.
SETUNITS
: Set a new units value for an NDF data structure.
SETVAR
: Set new values for the variance component of an NDF data structure.
ANALYSIS —
Statistics:
APERADD
: Derive statistics of pixels within a specified circle of a 2-d data array.
HISTAT
: Generate an histogram of a 2-d data array to compute statistics.
HISTOGRAM
: Derive histograms of sub-arrays within a 2-d data array.
INSPECT
: Inspect a 2-d NDF in a variety of ways.
MSTATS
: Cumulative statistics on a 2-d sub-array over a sequence of 2-d data arrays.
NUMB
: Count the elements of an array with values greater than a specified value.
NUMBA
: Count the elements of an array with absolute values greater than specified.
STATS
: Compute simple statistics for an NDF’s pixels.
STATS2D
: Compute simple statistics for a 2-d data array.
Other:
CENTROID
: Find the centroids of star-like features in an NDF.
NORMALIZE
: Normalize NDF to similar NDF by calculating scale and zero difference.
PSF
: Determine the parameters of a model star profile by fitting star images in a 2-d NDF.
SURFIT
: Fit a polynomial or spline surface to 2-d data array.
INQUIRIES and STATUS —
GLOBALS
: Display the values of the KAPPA global parameters.
FITSLIST
: List the FITS extension of an NDF.
NDFTRACE
: Display the attributes of an NDF data structure.
MISCELLANEOUS —
KAPHELP
: Give help about KAPPA.

20.8 PHOTOM — Aperture photometry

[SUN/45]

A — Annulus:
Alter the way in which the background level is measured.
C — Centroid:
Specify if the object is centered in the aperture before doing the measurement.
E — Exit:
Terminate the current PHOTOM session.
F — File of positions:
Do measurements automatically.
H — Help:
Display a line of help information for each command.
I — Interactive shape:
Adjust the size and shape of the cursor interactively.
M — Measure:
Measure individually selected objects interactively.
N — Non-interactive shape:
Specify the size and shape of the aperture from the keyboard.
O — Options:
Change values of parameters specified in the interface file from the keyboard.
P — Photon statistics:
Alter the way in which errors are calculated.
S — Sky:
Choose the method of estimating the background level in the sky aperture.
V — Values:
Display the current settings of significant parameters.

20.9 PISA — Object finding and analysis

[SUN/109]

ADDNOISE:
Add Poissonian or Gaussian noise to model (or any other) data.
PISA2SCAR:
Convert PISAFIND and PISAPEAK result files to SCAR format, so they can be used either by SCAR or by the CHA catalogue manipulation applications.
PISACUT:
Separate a file of variables into two groups by thresholding the values in a single column.
PISAFIND:
Perform image analysis on a 2-d data frame. There are two basic modes of operation — isophotal analysis (in which pixels with data values above the threshold are examined for connectivity and combined into objects) and profile fitting (in which an analytical stellar profile is fitted to the objects found by a preliminary isophotal analysis).
PISAFIT:
Fit the radially symmetric mixed Gaussian/Exponential/Lorentzian function, as used by PISAFIND in its profile fitting mode, to objects whose accurate positions are given in a formatted list.
PISAGEN:
Generate model data using the PISA profile fitting function using the positions and integrated intensities found by PISAFIND in its profile fitting mode (or any other data in similar format).
PISAKNN:
Use the results of PISAPEAK to discriminate objects into two classes using KNN (k nearest neighbours) distribution-free multivariate discrimination to classify objects into two classes.
PISAMATCH:
Match the indices in one file against those in a second file, writing the matching entries of the second file into an output file.
PISAPEAK:
Transform the PISAFIND parameterisations so that the variables are intensity invariant, assuming a stellar profile, for use in star-galaxy separation.
PISAPLOT:
Plot the results of the PISAFIND analysis as a series of ellipses which reflect the size and shape of the objects as defined by their parameters.

20.10 SCAR — Star catalogue database system

[SUN/70,106]

Database management —
SEARCH:
Select subsets.
SORT:
Reorder.
JOIN:
Find objects in common.
DIFFER:
Find objects not in common.
MERGE:
Merge catalogues.
SPLIT:
Split into two catalogues.
WITHIN:
Select objects from within a polygon.
CONVERT:
Change format, make indexes, new fields etc.
EDIT:
Add and delete records, and correct values.
Display —
REPORT:
List all or some of a catalogue’s contents.
PRINT:
Print it to a default file.
LISTOUT:
Show values of a given field.
CALC:
Calculate new fields.
RECALC:
Update existing fields.
CONVERT:
Change format.
WRAP:
Produce a printable version of a catalogue with records longer than 132 characters.
CHART:
Plot objects on a finding chart.
AITOFF:
Plot all objects on an all-sky plot.
IMAGEPLOT:
Plot objects for COSMOS-style processing.
Statistics —
LITTLEBIG:
Find either the largest or smallest numbers in a catalogue.
SAMPLE:
Select every Nth object from a catalogue.
HISTOGRAM:
Plot a histogram of a given field.
SCATTER:
Plot two fields and perform regression analysis.
CORRELATE:
Correlate (non-parametrically) two fields.
LINCOR:
Compute the Pearson product-moment linear correlation coefficient.
Create and process description files —
EXTAPE:
Examine the contents of an ASCII tape and dump it to disk.
LISTIN:
Read a simple VMS file into SCAR.
FORM1:
Create a description file in screen mode.
FORM2:
Create a description file in prompt mode.
ASPIC:
Create a description file for an ASPIC/IAM catalogue.
ASCII:
Convert a description file for BINARY data to one for ASCII data.
BINARY:
Convert a description file for ASCII data to one for BINARY data.
POLYGON:
Create a description file of polygon vertices.
Small tools —
SETUP:
Define default values for certain options.
CATSIZE:
Find the number of objects in a catalogue.
COUNTREC:
Count the number of objects in a sequential file.
COSMAGCAL:
Calculate magnitudes from COSMOS magnitudes.
HARDCOPY:
Produce hardcopy of output produced by graphics programs.
MOUNT:
Allocate a deck, mount a foreign tape, and assign it a logical name.
DISMOUNT:
Dismount a tape, deallocate a deck, and deassign the logical name.
DSCFHELP:
Insert a description file into a help library.
DEBUG:
Switch on the VMS debugger (for Programmers only).
GETPAR:
Get a parameter value when in the ICL environment.

20.11 SPECDRE — Spectroscopy data reduction

[SUN/140]

I/O —
ASCIN:
Read a 1-d or N-d data set from an ASCII table.
ASCOUT:
Write a subset to an ASCII table.
Display —
SPECPLOT:
Plot a spectrum.
Data manipulation —
GOODVAR:
Replace negative, zero and bad variance or error values.
Statistics —
CORREL:
Correlate three data sets.
Reshaping —
GROW:
Copy from an N-d cube into an (N+M)-d one.
SUBSET:
Take a subset of a data set (up to 10-d).
XTRACT:
Average an N-d cube into an (N-M)-d one.
Data calibration —
BBODY:
Calculate a black body spectrum.
Fitting —
FITGAUSS:
Fit continuum and Gaussian to a spectrum.

20.12 SST — Simple software tools

[SUN/110]

FORSTATS:
Analyse a sequence of Fortran 77 source files, divide their contents into program units, and produce statistics about the number and distribution of code and comment lines in each unit. Compare these statistics are with typical values from well-crafted Fortran code.
PROCVT:
Convert ‘old-style’ ADAM/SSE routine prologues into the format generated by the extended VAX Language Sensitive Editor (STARLSE).
PROHLP:
Read a series of Fortran 77 source files containing prologues generated by STARLSE, and produce an output file for each routine containing user-documentation in a format suitable for insertion into a Help library.
PROLAT:
Read a series of Fortran 77 source files containing prologues generated by STARLSE, and produce an output file containing user-documentation for each routine written in LATEX.
PROPAK:
Read a series of Fortran 77 source files containing prologues generated by STARLSE, and produce an output file containing an LSE ‘package definition’ suitable for use with STARLSE.

20.13 TSP — Time-series and polarimetry analysis

[SUN/66]

Data I/O —
BUILD3D:
Insert a Figaro frame into a time series image.
RCCDTS:
Read AAO CCD time series data.
RCGS2:
Read CGS2 polarimetry data.
RFIGARO:
Read a Stokes parameter spectrum from a Figaro image.
RHATPOL:
Read Hatfield polarimeter data.
RHATHSP:
Read Hatfield polarimeter high speed photometry data.
RHDSPLOT:
Read ASCII files of Hatfield polarimeter data.
RHSP3:
Read an HSP3 tape.
RIRPS:
Read IRPS photometry data.
RTURKU:
Read ASCII files of data from the Turku UBVRI polarimeter.
TLIST:
List time series data to a file.
XCOPY:
Copy wavelength data from a Figaro spectrum.
Data analysis —
CALFIT:
Fit a calibration curve to a polarization spectrum.
CALFITPA:
Fit a calibration curve to the polarization position angle.
CALIB:
Efficiency calibrate a polarization spectrum.
CALPA:
Position angle calibrate a polarization spectrum.
CCD2POL:
Reduce CCD spectropolarimetry data.
CCD2STOKES:
Reduce CCD spectropolarimetry data.
CCDPHOT:
Photometry of a star on a time series image.
CCDPOL:
Polarimetry of a star on a time series image.
CMULT:
Multiply a polarization spectrum by a constant.
COMBINE:
Combine two polarization spectra.
DIVIDE:
Divide a polarization spectrum by an intensity spectrum.
DSTOKES:
Delete a Stokes parameter from a dataset.
EXTIN:
Correct a polarization spectrum for extinction.
FLCONV:
Convert a flux calibrated spectrum to f-lambda.
FLIP:
Invert the sign of the Stokes parameter in a spectrum.
IMOTION:
Analyze the image motion in a time series image.
IPCS2STOKES:
Reduce IPCS spectropolarimetry data.
LHATPOL:
List Hatfield polarimeter infrared data.
LMERGE:
Merge two polarization spectra.
LTCORR:
Apply light time corrections to the time axis of a data set.
PTHETA:
Output the P and Theta values for a polarization spectrum.
QUMERGE:
Merge Q and U spectra into single dataset.
QUSUB:
Subtract a Q,U vector from a polarization spectrum.
REVERSE:
Reverse a spectrum in the wavelength axis.
ROTPA:
Rotate the position of a polarization spectrum.
SCRUNCH:
Rebin a polarization spectrum.
SHIFTADD:
Add frames of time series image, correcting for image motion.
SPFLUX:
Apply flux calibration to a polarization spectrum.
SUBSET:
Take a subset of a dataset in wavelength or time axes.
SUBTRACT:
Subtract two polarization spectra.
TBIN:
Bin a time series.
TDERIV:
Calculate time derivative of a dataset.
TEXTIN:
Correct a time series dataset for extinction.
TMERGE:
Merge two time series datasets.
TSETBAD:
Mark bad points in time series interactively.
TSEXTRACT:
Extract optimally a light curve from a time series image.
TSHIFT:
Apply a time shift to a dataset.
TSPROFILE:
Determine a spatial profile from a time series image.
Plotting —
DISPLAY:
Display a 3-d TSP dataset on an image display device.
EPLOT:
Plot a polarization spectrum as P, Theta with error bars.
FPLOT:
Plot a polarization spectrum as polarized intensity.
PHASEPLOT:
Plot time series data against phase.
PPLOT:
Plot a polarization spectrum as P, Theta.
QPLOT:
Plot time series data quickly.
QUPLOT:
Plot a polarization spectrum in the Q,U plane.
SPLOT:
Plot a polarization spectrum with a single Stokes parameter.
TSPLOT:
Plot time series data.