Commands list

[Through release 4.19. Last updated: 8-October-2004  -- by Jim Solomon]

ABS
Compute the absolute value of the pixels intenity.

ADD [NAME]
Add the image in memory to the image designated by NAME on the disk (the image must be in the current directory).

ADD2 [NAME] [NUMBER]
Adds [number] images in the sequence of images having the generic name [name].

Example

ADD2 I 3

adds the images I1.PIC, I2.PIC & I3.PIC.

Click here for an application.

ADD3 [NAME] [FWHM] [NUMBER]
When using the command REGISTER with deep-sky images, a file FWHM.LST is created on your hard drive. In this file, the first column contains an image index and the second one corresponds to the largest FWHM (along either X or Y axis, whichever is greater) of stars within the image.

Images indexes appears according to increasing FWHMs. So, it is possible to determine the best images in the series by a simple look at this file. The command ADD3 is essentially the same as ADD2, except that only the images with FWHM better that [FWHM] will be added. ADD3 uses the file FWHM to do so. Then you may add only the best images of the series.

Example: ADD3 M51- 1.9 12

ADD_MAX [NAME]
Suppose the intensity I1(x,y) of a pixel in the image I1 at coordinates (x,y) and the intensity I2(x,y) of a pixel in the image I2 at the same coordinates (x,y). ADD_MAX produce a new image, I, where the intensity of pixel (x,y) is:

I(x,y)=I1(x,y)  if  I2 <= I1
I(x,y)=I2(x,y)  if I2 > I1

In other word, a pixel of image I1 is replaced by a pixel of image I2 if the local intensity of I2 is superior to I1.

The usage of  ADD_MAX is simple:

LOAD  I1      (load in-memory the I1 image)
ADD_MAX  I2   
(compute substitution)
SAVE  I       
(save the result)

ADD_MAX is compatible with 16-bits format (gray level images) and 48-bits format (true-color images).

Click here for a typical application.

ADD_MAX2 [NAME] [NUMBER]
Function very similar to ADD_MAX but process many images simultaneously. For example for stack images I1, I2, I3, I4, I5, enter the command:

ADD_MAX2  I  5

This function is very efficient for construct long exposure star-trails images. About this method read the excellent paper of Peter Michaud (Gemini observatory) in the Marsh 2004 issue of Sky and Telescope. Click here for an example.

ADD_MEAN [NAME] [NUMBER]
Calculate the average of a sequence of images.

ADD_NORM [NAME] [NUMBER]
Same command as ADD2 but normalise intensity to 32700 if value of one or many pixels are upper to 32768 after coading.

ADD_NORM2 [NAME] [NUMBER]
Same command that ADD_NORM (addition of a sequence of images and normalize the most intense pixel to 32767 if necessary), but the zone where normalize is computed is selected with the mouse. This gives flexibility for some situation cases to avoid saturating a specified part of the image.

AF3 [COEF]
Adaptive filtering of the noise in an image. Adaptive filtering consists of adjusting the strength of the filter as a function of local statistical criteria. The filter will be most active where the signal to noise ratio is low. This type of filter reduces the noise while conserving a maximum of details in the image.

The parameter [coef] contains a value that fixes the global strength of the filter.  The filter does not act if [coef]=0, and the filter gets stronger as the value of [coef] increases.  Typically, [coef] is between 0.1 and 5.

AF3 uses a zone of 3x3 pixels, centered on the pixel being processed, for the statistical calculation.

See also: AF5, MMSE

The AF3 command is a remarkably effective tool for reducing the noise in an image while preserving a maximum of details. This command (or AF5) is often chosen for this type of application instead of the filters whose action is isotropic (like those provided in the GAUSS command).

AF5 [COEF]
Same command as AF3 with a 5x5 array.

ANG_FILTER [XC] [YC] [RADIUS] [SIZE]
Performs a low-pass filter on rings centered to ([xc],[yc]). The algorithm computes the average of pixels in the ring in sectors of [size] degrees. The size of the computation relative to the center (xc,yc) is a circular area of dimension [radius].

The ANG_FILTER command is generally use to enhance radially structured features in images, such comet or a solar jets visible during a total solar eclipse.

Click here for a full application example.

ANIM_PLOT [DATA] [OUTPUT] [DIM X] [DIM Y] [YMIN] [YMAX] [TITLE] [NUMBER]
Save a series of graphics images calculated with the data present in sequences of file of generic name [DATE] (the extension of the file is .DAT). These data files are text type and contain two columns (axes X and Y respectively). They are produced for example with command DATA_ANIM. Graphics are saved in the form of images of generic names [OUTPUT] and of size in pixel [DIM X] x [DIM Y]. The range along the Y-axis is defined with the parameters [YMIN] and [YMAX]. The number of data files in the sequence is indicated in the parameter [NUMBER]. The parameter [TITLE] is a character string which will be displayed on the top of each graphics. The white character is the symbol " _ ". Example:

ANIM_PLOT SPECT GRAPH 300 400 800 20000 It_is_a_spectrum 23

See also command PLOT2 which displays only one graph in a similar way and which makes it possible to test ANIM_PLOT. ANIM_PLOT is often exploited in partnership with command DATA_ANIM for the dynamic study of the spectra. An example is here.

ASCALE
Enlarge of facteur two the current image (image in memory). This function preserve the intensity per unit of area. This command is useful for precise aperture photometry (PHOT and PHOTM commands). Enlarge first the image (apply many time ASCALE is necessary), then mesure the stellar image with large aperture cercles. Click here for details.

ASCALE2 [INPUT] [OUTPUT] [NUMBER]
Same as ASCALE but for a sequence of images. Click here for details.

ASINH [ALPHA] [INTENSITY]
This command is for processing red, green and blue (RGB) composites from three-band astronomical images. ASINH stretch the image to show faint objects, while simultaneously preserving the structure of bright objects of the field. The color contrast is boosted by the application a non-linear stretch: the Arc Sinus Hyperbolic function. This method permit to reveal an enoumous amount of information: index color of stars, faint nebulae, galaxies having a distinctive colors (see for example, the Hubble Deep-Space images of the HST, many time processed with a function very similar to ASINH. The arcsinh is a new manner of defining the magnitudes scale, see R. Lupton, Astronomical Journal, 118, 1406-1410. This scale magnitudes has properties very interesting when one applies to color images colors because it boost the colors index of the objects (see R. Lupton & all, PASP, 116,133-137). The colors contrast is very strongly accentuated whereas the noise increase is contained.

The parameter [ALPHA] permit to adjust the non-linearity factor. A null value corresponds to a standard linear scale. Typical values are between 0.001 to 0.1. The parameter [INTENSITY] adjust the intensity of the final image. Typical values for this parameter go from 1 to 50 (carry out tests and exploit the visualization thresholds). Click here for an example.

BESTOF [NAME] [NUMBER]
Ordering of the must resolved images in a sequence. For details click here.

BESTOF2 [NAME] [NUMBER]
Same function that BESTOF but more particularly adapted to objects presenting a high contrast.

BEST_STREHL [NAME] [NUMBER]
Ordering of the must resolved stellar images in a sequence (Strehl ratio criteria). For details click here.

BG
Return the background level of the image in memory.

BGNOISE
Return the background noise level.

BINX [BINNING FACTOR]
Compute the binning of the along X axis.

BINY [BINNING FACTOR]
Compute the binning of the along Y axis.

BINXY [COEFFICIENT]
Compute the numerical binning of the in-memory image (sum of the pixels 2x2, 3x3..., like the analogic binnuing of CCD camera). Same as Binning... command of Geometry menu.

BLACK
To restore just colors of tri-color images it is some time necessary to the balance the white. The version 3.83b integrates two new commands which make it possible to carry out this operation with precision and speed. The first is the function BLACK which bring the sky background to zero in a zone selected with the mouse, and that simultaneously on the 3 colors plans in memory. The command return the background levels of sky in the zone for the three plans. These levels are automatically subtracted and the result is displayed. See also the WHITE command.

BLINK [NAME1] [NAME2] [DELAY]
Compares two images by displaying them successively and cyclically on the screen. The names of the two images are in the parameters [name1] and [name2]. The images may have different sizes. It is recommended to adjust the dynamic and offset of images to minimize flickering effects between the images (SCALECOLOR is a good command for this operation).

The blinking time may be adjusted with the [delay] parameter that contains the visualization time of an image in milliseconds.

During blinking it is possible to adjust visualisation threshold, color palette, use some processing command like TRANS for register dynamicaly the two images... Processing concern the image [name1]. For example, try the commands:

BLINK M51 M51 200
OFFSET 100
TRANS 1 0

To stop blinking enter the command: BLINKOFF.

The BLINK command is a powerful tool to bring out any difference between two images. It can be used for many kinds of investigations: detection of supernovae, novae, variable stars, comets, asteroids, etc...

BLINK2 [NAME1] [NAME2] [NAME3] [DELAY]
Same command as BLINK but with 3 images instead of 2 (that allows sometimes better identification of moving objects).

For example: BLINK2 ASTER1 ASTER2 ASTER3 200

BLINKOFF
Stop the blink mode (see BLINK and BLINK2 commands).

BMP2PIC [INPUT] [OUTPUT] [NUMBER]
Convert of a sequence 8-bits BMP 8 images in a sequence of FITS ou PIC images.

CAPTURE
Same function that the One Shot command of the Webcam menu, but accessible from the console. For a general description of webcam and video functions, click here.

CFA [R] [G] [B]
Extracts the RGB components from a CCD composed with a Color Filter Array (CFA), like Kodak KAF-0400C CCD. The Iris CFA command is dedicated to a Bayer array with the following aspect:

G R G R
B G B G
G R G R
B G B G

The coordinates of the first red pixel in the bottom left corner of the image have to be set in the variables CFAX & CFAY in the IRIS.INI file (this file is located in the windows directory).

CFA2RGB [R] [G] [B]
Converted CFA image in memory (CFA = Color Filter Array) into three files containing the primary color components.

CIRCLE [THRESHOLD]
Carry out the binarisation of the current image to the threshold THRESHOLD then calculates the best circle which passes by contour thus definite. The software return the coordinates of the center of the circle and its radius. The command is ideal for registration of sun or planetary images. See an example here.

CLIPMAX [OLD] [NEW]
All the pixels with an intensity greater than [old] are assigned the value [new].
See also: CLIPMIN

Examples:

CLIPMAX 200 0

The pixels whose intensity is greater than 200 are assigned the value 0.

CLIPMAX 4095 4095

The pixels with a value over 4095 are set to 4095.

The CLIPMAX command allows you to control the maximum intensity of the pixels in an image.  It can be used, for example, when pixels with a high intensity may cause a calculation error in certain processes, or when you wish to reduce a 16 bit image to an 8 bit image.

CLIPMIN [OLD] [NEW]
All the pixels with an intensity less than [old] are assigned the value [new].

See also: CLIPMAX

The CLIPMIN command is practical for making the contents of an image strictly positive (try CLIPMIN 0 0)

CMY2RGB [C] [M] [Y] [R] [G] [B]
Convert tricolor images Cyan, Magenta, Yellow (CMY) to tricolor images Red, Green, Blue (RGB). For details, click here.

COL2BW [INPUT] [OUTPUT] [NUMBER]
Convert a 48-bits true-colors image into a black and white sequence (simple add of the RGB layer).

COMPOSIT [NAME] [SIGMA] [ITERATION] [SATURATION] [NUMBER]
COMPOSIT is a powerful command to perform automatic combination of a sequence of images that were registered before. The simplest way to combine the images is of course to add them. COMPOSIT proceeds in that way, but will reject the pixels that have values significantly bad, i.e. for which the difference with respect of the mean of the values in all the images is greater that [SIGMA] times the standard deviation of the values. Moreover, the process may be iterative: at each iteration, a new analysis of the pixels statistics is made with the left ones. This method is called sigma-clipping. To be very efficient, it is necessary to have a large number of images to combine (at least 5). Try [SIGMA] values between 1.5 & 5.

The [NAME] parameter contains the generic name of the sequence, and the [#IMAGE] parameter contains the number of images in the sequence.

The [SATURATE] parameter is a flag. If saturate=1 the max intensity of the coadded image is normaliszed to 32700 if the level is upper to 32767.
This control is not realized if saturate=0.

Example: COMPOSIT M33- 2.5 2 0 7

Combines the images M33-1.PIC, M33-2.PIC...M33-7.PIC with a rejection level of 2.5 sigma. Two iterations are performed.

The COMPOSIT command is a powerful tool that gathers efficiency of the simple addition of images in terms of signal to noise ratio, and the power of median combination in terms of rejection of aberrant pixels (cosmic rays, satellites, ...). See the general discussion about deep-sky images preprocessing.

COMPOSIT2 [NAME] [FLAG. MAX] [NUMBER]
COMPOSIT2 method use a robust average image using a continuous adaptive weighting scheme that is derived from the data themselves -  see Artificial Skepticism Stacking algorithm  - Stetson 1989, V Advanced School of Astrophysics [Univerisidade de Sao Paulo], p.1. See also: http://archive.stsci.edu/hst/wfpc2/pipeline.html
http://archive.eso.org/archive/hst/wfpc2_asn/3sites/WFPC2_Newsletter.pdf.

The given parameters are only the generic name of the input image sequence, the normalized flag (0 or 1, see COMPOSIT) and the number of input image (an unlimited number).

The weights of the pixel values are computed by the equation:



where wi is the weight of the ith pixel value, si is the sigma of the ith pixel in the stack, derived from the readout noise and camera gain. The ri term, which is the residual between the current average pixel value and the value of the ith pixel, is computed at each iteration. This version of COMPOSIT2 use classical and internally coded value for CCD readout noise and camera gain (noise of 15 electrons RMS en 2 e-/ADU). COMPOSIT2 is a simple command to use and efficient for bad pixels rejection.

Important, before use commands like SMEDIAN, COMPOSIT and COMPOSIT2 it is necessary to have the same sky background level for all the images of the sequence. Use the command NOFFSET if is not the case (or NOFFSET2 for select a specific region for the harmonization of the sky level). Similar, is the exposure time is not the same the image should be scaled before stacking (MULT, MULT2, NGAIN2 commands for exemple).

The choice of the most optimal combining algorithm will depend on the nature of the data and on the exposure type. For produce a clean flat-field or a master dark frame the appropriate command is SMEDIAN (or SMEDIAN2). For deep-sky imaging the classical sigma-clipping is a good choise for the best conservation of signal to noise (the median lose 30% in signal to noise typically relative to simple sum and the COMPOSIT/COMPOSIT2 commands). The COMPOSIT2 command is now an useful and fast altenative to the sigma-clipping scheme.

COMPUTE
Draw a rectangle around a star with the mouse. Then type COMPUTE. Iris reads the files POLX.LST & POLY.LST created by Astrometry/Photometry dialog box and returns the equatorial coordinates and the magnitude of the star. See also: SKY2REC, REC2SKY.

COMPUTE_TRICHRO1 [MASTER] [R] [G] [B] [SIZE] [SELECT NB.] [TOTAL NB.]
This command carries out the automatic processing of trichromy images of planets. It connects commands BESTOF, SELECT, PREGISTER and ADD_NORM, this for the three colors channels. At the end of the processing the trichromatic image appears on the screen (you can then save it on the disc with command SAVEBMP, SAVEJPG, ... or adjust its chromatic balance with the command White balance... from menu View for example).

Moreover, several sequences of images are created on the hard disk. The sequence @r1, @r2.... @rn (n is the total number of image treated) contains the registered images of the red color channel and sorted by order of decreasing spacial resolution. The sequences @g1, @g2... @gn and @b1, @b2... @bn contain same information for the green and blue channels.

COMPUTE_TRICHRO1 also automatically produces the 3 images @r, @g, @b (without indices) which represent the addition of the best n' images for the 3 colors channel (n' parameters being provided by the operator).

Command COMPUTE_TRICHRO1 using function PREGISTER to carry out the registration of the images (centering of the images of a sequence compared to the first image of this sequence), it is rather intended for the images being able not to have a contour of revolution, the such planet Saturn or lunar surface. Moreover, the use of PREGISTER imposes that the operator enters in parameter of COMPUTE_TRICHRO1 the size of the window for the calculation of registration (its must be equal to a power of two because the technique used for registration is the intercorrelation in the Fourier space). The parameters are:

[MASTER] is the generic name of a sequence of image from which IRIS will make sorts it better images (as command BESTOF and will calculate the parameters of registration for the 3 colors plans. The master sequence of images must contain images well exposed posed if possible and well resolved. Generally, in the case of the use of a Webcam camera, one will choose the images corresponding to the plan of green color.

[R], [G], [B] is the generic names of red, green and blue channel images respectively.

[SIZE] is the size of the zone for the calculation for registration (choose among values 128, 256, 512 for example).

[SELECT NB.] is the number of images added during the final composite. It is a number equal or lower than the total number of image to treat . This value is dependent on the degree of turbulence. For example for a sequence of 200 input images it is not abnormal to add only 50 images with final (they will be 50 best images).

[TOTAL NB.] is the total number of images to be treated.

Let us suppose that you extracted from a film AVI (command Conversion AVI... from File menu) or functions of Webcam acquisitions from IRIS (Webcam menu) from the sequences from 300 images whose generic names are R, G and B for respectively the plans colors red, green and blue. You make then for example:

COMPUTE_TRICHRO1 G  R  G  B  128  40  300

The size of the window for calculation (here 128) must be higher (but not much higher, if not calculation can be very long) than the diameter of the planet disc of planet. It is necessary moreover for run the command to surround planet by a rectangle while dragging with the mouse (press left button).

It is significant that the rectangle thus defined either centered on the center of the planetary disc. It is necessary moreover that its dimension makes it possible to include the images of planet of the beginning and at the end of the sequence. The size and the position of the selection box are less critical in the case of the lunar images (but for this type of images the three-colour process in general presents well little interest and it is by far preferable to treat monochromic images).

Calculation can be relatively long. If a problem appears in the course of processing it is always possible to stop this one while click on the stop key of the bar of tools.

COMPUTE_TRICHRO2 [MASTER] [R] [G] [B] [SEUIL] [SELECT NB.] [TOTAL NB.]
This command is very similar to COMPUTE_TRICHRO1 except the uses of function CREGISTER for the registration of the images instead of PREGISTER. Function CREGISTER determines the position of planet by adjusting a circle on the circumference of the limb. It is necessary to provide to COMPUTE_TRICHRO2 the value of the threshold of intensity from which the calculation of the circle is carried out (click here for more information). Taking into account these characteristics, it is necessary to reserve the use of this command to planets having a good symmetry of revolution (Jupiter and generally Mars).

The parameter [THRESHOLD] define the level of threshold which will be used to adjust a circle around planet. For example:

COMPUTE_TRICHRO2 G  R  G  B  80  60  300

Tip: to carry out images having a good chromatic balance it should be checked that the level of the sky background is homogeneous between the three colors plan. It is not rare with the images coming from the Webcam camera that the level of the sky is higher in blue than in the red and the green. Thus to bring back the level of the bottom of sky in the sequence blue you will make:

NOFFSET3  B   B  0  300

after having to draw a selection box in one of the images of the sequence. You can also use for that the Normalisation of the offset of a sequence... command of Processing menu after having to notch the option On a zone. See also command SCALECOLOR2.

To note that command COMPUTE_TRICHRO2 is appreciably faster than COMPUTE_TRICHRO1 and if you have the choice, it is COMPUTE_TRICHRO2 which you will use preferably.

CONVERT_INDEX [IN] [OUT] [NUMBER]
Convert image name format in0001, in0002, in0003, ... to out1, out2, out3, ...

CONVERTBMP [IN] [OUT] [NUMBER]
Convert an 8-bits BMP input sequence [in] into an output sequence [out] in the current file format (fix the File type in the Settings dialog box - see the File menu). The number of image in the input sequence is [number]. You can set the base of the first index in the input sequence (see the SETBASE command). The first index of the output sequence is alway 1.

CONVERTBMP24 [IN] [R] [G] [B] [NUMBER]
Convert an 24-bits BMP input sequence [in] into three output genered sequences [r] [g] [b] in the current file format (fix the File type in the Settings dialog box - see the File menu). The number of image in the input sequence is [number]. You can set the base of the first index in the input sequence (see the SETBASE command). The first index of the output sequence is alway 1.

CONVERTBMP24BW [IN] [OUT] [NUMBER]
Convert an 24-bits BMP input sequence [in] into the mean of the RGB planes and copy the result in the output sequence [out]. The number of image in the input sequence is [number]. You can set the base of the first index in the input sequence (see the SETBASE command). The first index of the output sequence is alway 1.

CONVERTSX [IN] [OUT] [NUMBER]
Convert a sequence of unsigned 16-bits images into a series of signed 16-bits images compatible with Iris (dynamic range between 0 and 65535). The level of the pixels is multiplied by 0.5 to respect dynamics 0...32767. See also: SIGNED.

CONVERTSX2 [IN] [OUT] [NUMBER]
Convert a sequence of unsigned 16-bits images into a series of signed 16-bits images compatible with Iris. The level of the pixels is not modified, but the images are truncated for intensities higher than 32767. The final level lies between 0 and 32767.

CONVERTSX3 [IN] [OUT] [NUMBER]
Convert a sequence of unsigned 16-bits images into a series of signed 16-bits images compatible with Iris. Value 32767 is subtracted from all the pixels. The final level lies between -32768 and 32767.

CONVERTTIFF [IN] [OUT] [NUMBER]
Convert an 8-bits uncompressed TIFF input sequence [in] into an output sequence [out] in the current file format (fix the File type in the Settings dialog box - see the File menu). The number of image in the input sequence is [number]. You can set the base of the first index in the input sequence (see the SETBASE command). The first index of the output sequence is always 1.

CONVERTTIFF24 [IN] [R] [G] [B] [NUMBER]
Convert an 24-bits uncompressed TIFF input sequence [in] into an output sequence of RGB planes in the current file format (fix the File type in the Settings dialog box - see the File menu). The number of image in the input sequence is [number]. You can set the base of the first index in the input sequence (see the SETBASE command). The first index of the output sequence is alway 1.

CONVERTTIFF24BW [IN] [OUT] [NUMBER]
Convert an 24-bits uncompressed TIFF input sequence [in] into the mean of the RGB planes and copy the result in the output sequence [out]. The number of image in the input sequence is [number]. You can set the base of the first index in the input sequence (see the SETBASE command). The first index of the output sequence is alway 1.

COPY [NAME] [X1] [Y1] [X2] [Y2]
Copy in the current image the portion of the image [name] in the disk delimited by the coordinates (x1, y1)-(x2, y2).

COPYADD [IN] [OUT] [NUMBER] [NB_ADD]
This command adds the [nbadd] first images with the generic name [in] and saves the result with the name [out] with the index 1. Then the result of adding the next  [nb_add] images of generic name [in] is saved with the name [out] with the index 2 and so on up to the image [in] with the index [number]. One of the interests of this command is that the acquisition time put in the header of the added images is the barycentre of the individual images. As a consequence the dating accuracy contained in the input images is transferred to the added images.

COPYFWHM [IN] [OUT] [FWHM] [NUMBER]
Copy images of the sequence [in] to a new sequence [out], but select only images where the FWHM is inferior to [fwhm] parameter. The command return the selected image number. It is necessary to apply before the REGISTER command (see also ADD3). COPYFWHM is perfect for isolate good images, before compositing for example.

Example: COPYFWHM M51- I 1.6 12

See here a typical use.

COPYMED [IN] [OUT] [NUMBER] [NB_MED]
Same command as COPYADD, but uses median averaging instead of adding the [nb_med] images.

COPYX [X_ORIG] [X_DEST]
Copy the colum of position [x_orig] to the colum [x_dest].

COPYY [Y_ORIG] [Y_DEST]
Copy the line of position [y_orig] to the line [y_dest].

COREGISTER [IN1] [IN2]
Performs geometric transforms on [IN2] so that it may be superimposed on [IN1]. The output file is the new [IN2] file.

See also: SETFINDSTAR, SETREGISTER.

Example: COREGISTER N266_1 N266_2

For a typical application, click here.

COREGISTER2 [IN] [OUT] [NUMBER]
Same function that COREGISTER but applies to a sequence of images.

COSME [LIST FILE]
Apply the local mean to a set of pixels on the in-memory image (cosmetic correction). The coordinate of this pixels are in an ASCII file [list file]. COSME is adapted to correct residual hot and cold pixels after preprocessing (the coordinate of this points is constant for a given CCD). For example, if the goal is to correct pixels of coordinate:
(120,310)
(9,501)
(232, 140)
and line (100) and column (20)

Create the following text file (use your favorite word processing):
P  120  310
P  9    501
P  232  140
L  100  0
C  20   0

Save under the name CORRECT.LST (for example, but the extension .LST is important). The file is saved in the working path (see Settings... dialog box of the File menu).

Now, load the image to correct, then:

COSME CORRECT

You can correct up to 500 pixels (i.e. 500 lines max in the .lst file).

See also: COSME2

COSME2 [INPUT] [OUTPUT] [LIST FILE] [NUMBER]
Same command as COSME but for a sequence of [number] images. [input] is the generic name of the input sequence and [output] is the generic name of the corrected sequence. For example: COSME2 M51- I CORRECT 4
process the sequence: M51-1, M51-2, M51-3, M51-4 and produce the sequence I1, I2, I3, I4.

See also: COSME

COSME_CFA [FILE_LIST]
Same function that COSME but applying to RAW images (Bayer matrix images). All the types of RAW files recognized by Iris can be treated (Canon, Nikon...). The processing is distinct for red, green and blue pixels of CFA matrix). The file whose name is given in argument contains the list of the hot pixels. Those can be found automatically with command FIND_HOT. Click here for an example.

COSME_CFA2 [INPUT] [OUTPUT] [FILE_LIST]
Same function that COSME_CFA, but applying to a sequence of images.

CPU [TIME (S)]
Measure the frequency of clock of the CPU. Click here for more details.

CREGISTER [IN] [OUT] [THRESHOLD] [NUMBER]
Carry out the registration of a sequence of image from the coordinates of the center of a circle determined from a contour defined for the intensity THRESHOLD in each image. See also: CIRCLE. Click here for an example.

DATA_BIN [IN] [OUT] [BINNING FACTOR]
Carry out the binning of a data file, for example a file resulting from the photometric analysis, in order to increase the signal to noise ratio. [BINNING FACTOR] is the factor of binning (typicaly value: 2 to 4).

DATA_REJECT [IN] [OUT] [COEF]
Analyze a data file (file DELTA.DAT coming from the automatic photometric analysis for example) and eliminates the points deviating of more than [COEF]. sigma of the average value (sigma is the standard deviation of the distribution). [IN] is the name of the input file (it must have extension DAT on the disc). [OUT] is the name of the output text file.

DATA_RESAMPLE [IN] [OUT] [STEP]
Re-sampling points of a data file (use of the spline interpolation). Useful command for example to represent data spectral or an intensity distribution curve with a integer step.

DATA_STAT [DATA FILE]
Turn over statistical data on the data file [DATA_FILE].

DATA2IMAGE [INPUT] [COEFFICIENT] [NUMBER]
Create an image in memory starting from a sequence of text file having extension DAT. The contents of the first file are used to produce the first line of the image. The contents of the second file build the second line of the image, and so on. The text files must contain two columns of real data. The image is built with information of the second column. With final, the size of the image along axis X is equal to the number of lines contained in files DAT and the size along the axis Y is equal to the number of file DAT. Parameters are:

[INPUT] is the generic name of files DAT
[COEFFICENT] is a multiplicative parameter by which one multiplies the second column of files DAT before assigning them to the pixels of the image in memory.
[NUMBER] is the number of files DAT

Click here for an example.

DATA2PIC [DATA FILE NAME]
Converted a text ASCII file with two columns into an image whose axis Y contains the values (standardized to 32767) contained in the second column of the file. This command is useful to import in IRIS spectral data.

DATA_ANIM [IN] [OUT] [X1] [X2] [STEP]
Powerful function allowing for example to interpolate at the same time along wavelength and temporally a whole of spectral data in order to carry out an animation.

The parameter [IN] is the name of a text file having the extension LST. It contains two columns. The first give a spectral file name having extension DAT, the second is the date of acquisition of these spectra in Julian day or reduced Julian day. Here contents characteristic of an input file:

290601 245678.345
300701 245689.446
220801 245693.945
.....

It indicates that spectral profile 290601.DAT was acquired the day Julian 245678.345, that spectral profile 300701.DAT was acquired the day Julian 245689.446, that spectral profile 220801.DAT was acquired the day Julian 245693.945, and so on.

The parameter [OUT] is the name of a text file having the extension LST. It contains two columns. The first give the spectral file name (DAT extension) which will be interpolated, the second is the date of the files interpolated in Julian day or reduced Julian day. Here contents characteristic of a file of an output file:

R1 245679.0
R2 245690.0
R3 245691.0
....

It indicates that command DATA_ANIMmust produce spectral profiles in files of names R1.DAT, R2.DAT, R3.DAT, respectively for the dates in Julian days 245679.0, 245690.0, 245691.0.

The parameters [X1] and [X2] define an interval in wavelength for the interpolation which an interpolation step of [STEP].

The mode of interpolation along the temporal axis is linear. One uses an interpolation spline along the wavelengths axis.

Once the interpolated profiles, you can displaying this in a graphic form with the software of your choice then to create animations of the evolution of the spectrum according to time. It is possible also to produce an image of the dynamic spectrum starting from command DATA2IMAGE. Click to see examples here.

DATE
Return the current date.

DATE2JD [DAY] [MONTH] [YEAR]
Convert une date to Julian (example : DATE2JD 27.76 08 2001).

DECONVFLAT [COEFFICIENT]
Counter the smearing effect in an image exposed without obturator. [coefficient] is the ratio between the reading time of a CCD line and the exposure time. See an example here.

DILATE
Perform a dilatation operation to the current image.
See also: ERODE.

Example:
LOAD M51
ERODE
ERODE
DILATE
DILATE

DIST
Computes the distance between two stars.

DISTOR [NAME1] [NAME2] [ORDER]
Morphing is not just a special effect for artistic applications. Morphing techniques have various ranging from lens distortion correction, motion capture data interpolation, waves atmospheric turbulence correction, etc. This section describe the turbulence correction of planetary image (but the procedure is the same for correct optically distorted wide-field CCD images for examples).

The goal of the processing is to resample a target image relative to a reference image for minimize geometrical difference between the two. So, the blurring effect of the turbulence in the Earth's atmosphere is now partially compensated: If you stack the two images (or more), the spatial resolution is increased.

The atmospheric distortion was calculated using DISTOR.

The parameters are:

[NAME1] is the name of a good contrasted reference image on the disk.
[NAME2] is the name to resample relative to the reference image.
[ORDER] is the order of a 2-D quadratic equation used for fit the distortion. Range is between 1 (linear correction) and 5 (complex distortion). The recommended value is 3 or 4 for most the case. DISTOR use an iterative scheme for aberrant points elimination.

Before running the DISTOR command it is necessary to define point interactively with mouse in the reference image. If possible, this point mark contrasted details (light/shadow region on the moon surface, planetary limb, stars, ...). The geomtric correction is only valid into the pointing area (outside this area Iris extrapolate).

For an application example, click here.

DISTOR2 [NAME1] [NAME2] [ORDER] [NUMBER]
Same as DISTOR but for a sequence.

DIV [NAME] [COEFFICIENT]
Divide the image in memory by the image on disk designated by NAME. The resulting image is multiplied by the value COEFFICIENT.

DIV2 [IN] [OPERAND] [OUT] [COEF] [NUMBER]
Divides a sequence of images having the generic name [IN] by the image [OPERAND] and multiplies the result by [COEF] (see also DIV). The [OUT] parameter is the generic name of the output images. The number of images to process is [NUMBER].

DRIZZLE [NAME] [RESOLUTION] [NUMBER]
This command performs an optimal adding of images as far as resolution is concerned. The principle is that, at sub-pixel level, shifts between individual input images are nearly randomly distributed. For example, a star in the first image may be centered  perfectly in the middle of a pixel, whereas it will be across two pixels in the second one, and so on. Since it is easy to know the exact shift between the images, it is possible to create an output image with a finer sampling, in which resolution may be increased with respected to each input image. In fact, energy from each input pixel is dropped in the output image, and the whole processus may be compared to a drizzle...

The DRIZZLE command is adapted to under-sampled images, for example when the telescope focal length is too short for the pixel size. One may consider that the system is under-sampled when FWHM is smaller than 2 pixels.

Before using DRIZZLE, it is necessary to know the shift between the images. We suppose that only a linear translation exists between images (with no distortion and no rotation). The shift values are in the file SHIFT.LST (to create this file, refer to the command REGISTER). You can also create this file manually, by measuring the shifts along X & Y individually (the sign convention is image#1 - image#i).

It is important that all the input images are acquired in the same conditions: same exposure time, same sky background level. If this is not the case, you have to adjust offset and gain prior to use DRIZZLE (see commands OFFSET and MULT).

The parameters of the command are:

[NAME] is the generic name of the input image.

[RESOLUTION] is the over-sampling factor with respect to the input images. A factor or 2 to 2.5 may be considered as a coherent objective when the number of images is between 5 and 10. If the number of images is much larger, this factor may be increased to values as high as 3 or more.

[NUMBER] is the number of images in the sequence. A minimum of 5 images is generally necessary.

Click here for a discussion about diphering technique and examples.

DTRANS [X] [Y]
Select a star in an image by drawing a small rectangle around it with the mouse. Then, the command  DTRANS translates the images with the values:

DX=[x]-XM
DY=[y]-YM

where (XM, YM) is the centroid of the object in the rectangle.

The DTRANS command is very useful the register a sequence of images with respect to a reference star at coordinates ([x], [y]) in the reference image. Click here for an example.

EDGE [X1] [Y1] [X2] [Y2]
The coordinates ([X1], [Y1]) and ([X2],[Y2]) mark a frame outside of which the pixels of the image in memory are set to zero.

Sometimes the edges of images contain no significant information or have defects (artefacts due to previous processing).  In these cases, the EDGE command can be used to fix the image.

ERODE
Perform an erosion operation to the current image.
See also: DILATE.

EXPORT [NAME] [HEADER] [BYTE PER PIXEL] [REVERSE]
Exports images in a non standard format. The program writes the header at the beginning of the file, whose length in bytes should be specified in [header]. This header is filled with zeroes. In the parameter [BYTE PER PIXEL], you must indicate whether the pixels are coded on one or two bytes. If the coding is on two bytes, you must also indicate in the parameter [reverse] the order of the bytes in the 16 bit word. If [reverse]=0, they will be in the INTEL format (most significant/least significant), while if [reverse]=1, they will be in the MOTOROLA format (least significant/most significant). See also: IMPORT.

Example: EXPORT FILE.IMG  256  2  0

Converts the image in memory as a free format image with the name FILE.IMG, and with a header length of 256 bytes and pixels coded on 16 bits in the INTEL format.

EXPORTASC [NAME]
Saves the images with an ASCII format in 3 rows. the two first rows contain the pixel coordinates (origin at (1,1)), whereas the third row contains the image intensity. Warning: the result file may be very big for large input images.

See also: IMPORT_ASC

FCORREL [IMAGE #1] [IMAGE #1] [COEF]
Compute the cross-correlation of [IMAGE #1] and [IMAGE #1]. The [COEF] coefficient is an intensity scale factor for the result. Example:

FCORREL MARS1  MARS2  1 

FFTD [MODULUS] [PHASE]
IRIS V4.11 can compute a FFT (Fast Fourier Transform) to evaluate fixed pattern noise of an image. First, the Direct (Forward) FFT is computed with FFTD. Next, the fixed pattern noise is corrected through boxcar filtering (FFILL). Finally, the reverse FFT (FFTI)is computed to display the corrected image. The modulus (magnitude) of the FFT is stored in the output file [MODULUS] and the phase is stored in the output file [PHASE]. Click here for an example.

FFTI [MODULUS] [PHASE]
Compute an Inverse Fast Fourier Transform from the magnitude and phase data contained in files [MODULUS] and [PHASE]. See FFTD.

FFILL [VALUE]
Symmetric fill of a region defined by the mouse. Used to process an image in the Fourier (FFT) domain. See FFTD and FFTI.

FILE_CONV [KERNEL NAME]
Convolution of the in memory image by a matrix whose coefficients are contained in image [kernel_name]. The value of the coefficients is multiplied by Iris by 0.001 before calculation itself. The image must be obligatorily square and of odd size. The maximum size is of 41x41 pixels. You can use command IMPORT_ASC to charge a matrix with convolution starting from a textual file, which you then save in the format PIC or FITS.

FILE_TRANS [IN] [OUT] [NUMBER]
Registration of a sequence of images by using information which is in file SHIFT.LST. See also the command: REGISTER

FILL [VALUE]
Fills the whole current image with pixels having the [VALUE] intensity.

FIND_HOT [LIST FILE] [THRESHOLD]
The command makes it possible to generate a file lists (format text) in the working directory which contains the co-ordinates of the pixels which have an intensity higher than only one provided by the user.

This file, known as cosmetic file, is then used by IRIS to correct certain systematic defects during the preprocessing of the deep-sky images. Thus, if command FIND_HOT applies to an image of the dark signal , the produced file will contain co-ordinates of the pixels of affected by an abnormally high dark current (hot pixels). When this file is read by a function of preprocessing, the pixels in questions in then treated images are replaced by a computed value starting from the intensity of the close pixels.

The two parameters are:

[LIST FILE] the name of the file lists produced. The name is supplemented by extension .LST.
[THRESHOLD] the threshold for the discrimination of the hot points.

To note that IRIS turns over in the console the number of hot points found. For a normal CCD it is necessary to be arranged to adjust the threshold so as not to find much more than one ten hot points. For example:

LOAD DARK
FIND_HOT COSME 300

Here a typical contents of the produced file (file COSME.LST in the example):

P 1086 1
P 402 7
P 1434 13
P 403 23
P 1372 27
C 468 0

The letter P indicates that it is necessary to correct only one pixel of the image. The co-ordinates of the first sick pixel is (1086, 1). Second is at the co-ordinates (402, 7) and so on.

The last line starts with C and was added manually to the file (for example with an editor like WordPad). It indicates to IRIS that it will be necessary during the pretreatment to replace the column of row 468 (on the basis of the left) by the average value of the adjacent columns.

In the present case the action of the last line of file COSME.LST is equivalent making:

REPAIRX 468

If the cosmetic file contains the line:

L 34 0

That means that it is necessary to replace the line of co-ordinates 34 (starting from the bottom of the image) by the value of the adjacent lines. To note that in the case of the correction of the lines and the columns the third value in a line of the cosmetic file must have a null value.

To apply the cosmetic corrections registered in the file lists you can use commands COSME and COSME2. Some dialog boxes can now also take into account information of a cosmetic file.

FINDSTAR
Detects stars having a level greater than [sigma] times the level of the sky background noise (see the SETFINDSTAR command). A file of the type STAR.LST is created on the drive. This file may be edited (e.g. EDIT command of MS-DOS). It contains parameters about detected stars (position, instrumental magnitude, FWHM). More precisely for each colon:

Note that STAR.LST file is used with automatic astrometry and photometry command. See astrometric functions.

FITS2FIT [NAME] [NUMBER]
Convert a FITS extension sequence to a FIT extension sequence (example the file name M57-2.FITS is converted to M57-2.FIT).

FITS2PIC [IN] [OUT] [NUMBER]
Convert a sequence of FITS image into a sequence with the proprietary PIC format. Parameters:

[IN] is the generic name of the input sequence.
[OUT] is the generic name of the output sequence.
[NUMBER] is the number of images in the sequence.

FLAT [NAME] [HL] [LL] [LEVEL] [#ITER] [#IMAGE]
The FLAT command allows you to calculate a flat-field without having to take specific images at dusk (images without stars or other objects).  The flat-field can be obtained from merely the images of the observed objects taken during the night.

Other methods can also be used to obtain flat-field images from night images.  They use the calculation of the median of a set of images (see the SMEDIAN command).  However, the technique used in FLAT can resolve difficult cases:

In these two cases, correctly extracting a flat-field with a median set technique is very unlikely.

The FLAT command is useful in these situations (the median set technique is still a good method in normal situations because it is faster and easier to implement). The command uses an iterative process and works with the logarithmic values of the images. It is recommended to have as many images as possible to get the best result (typically between 5 and 10 images, the maximum number allowed is 15).

Several conditions must be respected:

The displacement values do not affect the quality of the result.  However, it is recommended to not displace the images too much, because the complete calculation of the flat-field image can only be done on the parts common to all the images.  The parts of the flat-field outside the common area are still valid, but they are calculated with less precision because of the smaller number of images used in the calculation.  Also, note that the calculation time grows with the displacement values. Large image are prohibed because large computation time (up to 400 pixels size image are correct).

It is recommended to choose the reference image (first image) so that the relative displacements are as isotropic as possible for the set of images.

Before executing FLAT it is necessary to produce the file SHIFT.LST containing the relative displacements of the images with respect to the first  image. Each line of this file contains the displacements with respect to the reference image (first the displacement along the X axis, then along the Y axis, with one or more blanks between the numbers). The first line of this file contains the elements of the first image (the reference image), that is  (0,0).  This file can be created with a word processing. Remember that automatic registration commands in Iris (REGISTER, FULL_PR, PREGISTER...) produce a shift file SHIFT.LST in the woking directory.

The command arguments of FLAT are:

[NAME]: the generic name of the images to be processed.  The generic name is the root of the name of the image, which will have a number and an extension added to it. The first number added is 1, and the last is [#IMAGE].  Thus, with the generic name "IMAGE" and [#IMAGE]=5, the processing will be done on the images:

IMAGE1.PIC
IMAGE2.PIC
IMAGE3.PIC
IMAGE4.PIC
IMAGE5.PIC

[#IMAGE]: the number of images to be used in the calculation (between 5 and 15).

[#ITER]: the number of iterations.  This number is chosen as a result of the previous tests.  Typically, between 1 and 3 iterations are used.

[HL]: eliminates pixels with a level over [hl] from the calculations. This can be useful when processing a field with saturated stars (the saturated parts do not contain radiometrically useful information). In general, [HL] should have the value of the maximum dynamic range of the image.

[LL]: eliminates pixels with a level less than [LL] from the calculations. In particular, the value of [LL] can be adjusted to reject pixels with a negative value, thus [LL] is usually 0.

[LEVEL]: the generated flat-field will have the average intensity [LEVEL]. Most of the time this value will be the same order of magnitude as the average level of the processed images. [LEVEL] must be greater than 1.

Reference: J. R. Kuhn et al., Publications of the Astronomical Society of the Pacific - Vol 103, 1097, October 1991

Click here for an example, and here for a second example.

FPOLREC [MODULUS->REAL] [PHASE->IMAGINARY]
Transform the frequency domain images from polar to rectangular. The two arguments are filenames containing the [MODULUS] and [PHASE] on input, and the [REAL] and [IMAGINARY] components on output, respectively. NOTE: this command rewrites the contents of the specified files! Make a copy to preserve the originals.

FRECPOL [REAL->MODULUS] [IMAGINARY->PHASE]
Transform the frequency domain images from rectangular to polar. The two arguments are filenames containing the [REAL] and [IMAGINARY] components on input, and the [MODULUS] and [PHASE] on output, respectively. NOTE: this command rewrites the contents of the specified files! Make a copy to preserve the originals.

FULL_PR [IN] [OUT] [DARK] [OFFSET] [FLAT] [NB]
Computes the automatic processing of a sequence of [NB] images having the generic name [IN], i.e. subtracts the offset signal, removes the dark current signal, and divides by the flat-field image. The images are then automatically registered. At last, the images are added.

Example: we want to process a sequence of 3 raw images of the SH2-136 nebula. The image names are SH136_1.PIC, SH136_2.PIC and SH136_3.PIC. We have also the images OFFSET.PIC, DARK.PIC and FLAT.PIC. Load the first image in the sequence:

LOAD SH136_1

With the mouse, select a rectangle typically 50 pixel in width with contain only one non-saturated star. This rectangle will be used for matching the images. Then type:

FULL_PR  SH136_  RESULT  DARK  OFFSET  FLAT  3

The final image is fully preprocessed and corresponds to the combination of the 3 input images (simple addition).

The FULL_PR command also created 3 images in the current directory : RESULT1, RESULT3 and RESULT3 in this example). These images are fully preprocessed. So you may choose between several combination methods. for example, for a simple addition, you will do:

ADD2  RESULT  3

For a median combination, you will type:

SMEDIAN  RESULT  3

And of a sigma-clipping combination, you will do:

COMPOSIT  RESULT  1.5 1 3

You can also use the ADD3 command, that select the finest images for the addition.

FULL_SPEC [IN] [OUT] [DARK] [FLAT] [OFFSET LEVEL] [ANGLE] [FLAG] [LINE WIDTH] [NUMBER]
Automatic processing of a sequence of spectra. Compute the preprocessing, correct orientation, register the sequence to the first spectral image, and finaly add the images. IN is the generic name of the input sequence. OUT is the registered sequence. DARK is the dark current image name. FLAT is the flat-field image name. OFFSET LEVEL is the mean level of the level. ANGLE is the orientation of the spectra relative to the horizontal axis. FLAG=0 for a registration with an absorption line and FLAG=1 for a registration with an emission line. LINE WIDTH is the typical width of the line profile in pixel. NUMBER is the number of images in the sequence.

First, draw a rectangle in the current image with the mouse around a significant spectral line then run the command FULL_SPEC.

GAUSS [SIGMA]
Convolves the current image by a two-dimensional Gaussian whose width is given by the parameter [SIGMA].

The convolution of an image by a Gaussian with a small sigma (less than 1) can be used to attenuate the noise. A high value for sigma produces a fuzzy effect.

GAUSS2 [SIGMA]
Same command as GAUSS, but the processing is here done for the whole image, including the sides (that makes this command slower than the GAUSS).

GAUSS3 [SIGMA] [BORDER SIZE]
Same function that the command GAUSS but while excluding from calculation a border of the image having a size in pixel of equal to [size edge]. This makes it possible to filter images with minimum atefact.

GEN_OUT [FILE] [TEXT] [X1] [X2] [STEP]
Utility function to generate an output file for command DATA_ANIM, this last allowing to produce dynamic spectra.

[NAME] is the name of output LST file.
[TEXT] is the generic name of the first column of LST file.
[Y1] and [Y2] are the date limits of the second column (normally the Julian day).
[STEP] is the temporal step of the second column.

For example:

GEN_OUT OUT R 2310 2317 0.5

Generates this file OUT.LST contains:

r01 2310.500000
r02 2311.000000
r03 2311.500000
r04 2312.000000
r05 2312.500000
r06 2313.000000
r07 2313.500000
r08 2314.000000
r09 2314.500000
r10 2315.000000
r11 2315.500000
r12 2316.000000
r13 2316.500000
r14 2317.000000

GET [X] [Y]
Returns the intensity of the pixel at coordinates ([x],[y]).

GRADX [OPTION]
Filters the current image with a gradient along the X axis. The option (1 or 2) allows to choose the orientation of the gradient  (left or right). For example:

LOAD M51
GRADX 1
OFFSET 1000
VISU 1200 800

GRADY [OPTION]
Filters the current image with a gradient along the Y axis. The option (1 or  2) allows to choose the orientation of the gradient (up or down).

GRADX2 [OPTION]
Same command as GRADX, but with a stronger effect.

GRADY2 [OPTION]
Same command as GRADY, but with a stronger effect.

GREY_FLAT
Convert a flat-field taken with a digital camera to a neutral tone flat-field (click here for detail of use).

HISTO
Calculate the histogram of the in memory image and produces file HISTO.DAT in the working directory. This function calculates also the cumulated histogram (file CUMUL.DAT) and the opposite cumulated histogram (file CUMUL_INV.DAT).

HSI2RGB [H] [S] [I] [R] [G] [B]
The HSI2RGB command converts a color image defined by its color components Hue, Saturation and Intensity into a trichromatic image in Red, Green, and Blue. The parameters are:

See also: RGB2HSI and TRICHRO.

IMAGE2SPEC [FILE] [LINE/MM] [DIST] [P_ZERO] [PIXEL]
Carry out the spectral calibration of an image spectral profile when the position of grating zero order is accessible. Parameters are:

[FILE]: the name of the file of the calibrated spectral profile which will be created on the disc. It is an ASCII file with two columns. In the first column one finds the wavelength in angströms and in the second the intensity of the spectrum.
[LINE/MM]: the number of groove by millimeter of the grating.
[DIST]: the distance separating the grating from the CCD in millimeters.
[P_ZERO]: the position in pixel of the center of the zero order image along the horizontal axis of the image.
[PIXEL]: size of the pixel along the horizontal axis of the image in millimeters.

For an example of application of this command click here.

IMPORT [NAME] [X] [Y] [HEADER] [#BYTE] [REVERSE]
Imports images with a nonstandard format. The program skips the header at the beginning of the file. The number of bytes in the header should be specified in the parameter [HEADER]. The [#BYTE] parameter indicates whether the pixels are coded on one or two bytes. If the coding is on two bytes, you must indicate the order of the bytes in the 16 bit word in the parameter [REVERSE]. If [REVERSE]=0, they are in the INTEL format (most significant/least significant), while if [REVERSE]=1, they are in the MOTOROLA format (least significant/most significant). Finally, the parameters [X] and [Y] contain the image format in pixels along the X and Y axes, respectively (the X axis is the one which is read more quickly in the file).

See also: EXPORT

Example: IMPORT EXTERN.IMG  512  800  256  2  0

Imports the image EXTERN.IMG with the following characteristics:  pixels coded in 16 bit INTEL format, 256 byte header, 512x800 format.

IMPORT_ASC [NAME]
Imports an image that was saved in a 3-row ASCII format. The two first rows contain the pixel coordinates (origin in (1,1)), whereas the third row contains the pixel intensity. The extension .ASC is added automaticaly. Note that this file may be very big for large images.

See also EXPORTASC.

Example: IMPORT_ASC FILE

IMPORT_ASC2 [NAME] [SIZE X] [SIZE Y]
Load an image stored in an ASCII file in the simple form of a single column of real numbers. The length of this vector must be equal to [SIZE X] x [SIZE Y]. See also command IMPORT_ASC.

INFO
Returns information about current image (size, date/time of exposure, integration time). For a FITS file the command return also principal keyword of the header.

INSERT [IN1] [IN2] [MASK] [VALUE]
For a given pixel of coordinate (x,y) in the [IN1], [IN2] and [MASK] images, if the intensity in the [MASK] image is equal to [VALUE] then the in-memory intensity image pixel is [IN2], else the intensity is [IN1].

Example:
LOAD M51
OFFSET -500
CLIPMIN 0 0
SAVE MASK
INSERT MASK M51 MASK 0

JD2DATE [JULIAN DAY]
Convert Julian day to date.

JPG2PIC [IN] [OUT] [NUMBER]
Convert a sequence of JPEG file to PIC or FITS sequence (the final format is dependant of the choice in the setup dialog box of File menu).

Consider the input sequence IM1.JPG, IM2.JPG and IM3.JPG. To convert to image R1.PIC, R2.PIC and R3.PIC (or R1.FIT, R2.FIT and R3.FIT), enter the command:

JPG2PIC IM R 3

L_ADD [LINE1] [LINE2]
Computes for each row of the current image the add of lines between [line1] and [line2]. The sum is maximized to 32767. The "L_" commands (line commands) are adapted for spectra processing. Click here for details.

The result is represented as a new image with the same width as the input image and 20 identical lines in height. Each pixel corresponds to the mean of the input lines in the current row.

L_ADD2 [LINE1] [LINE2] [SKY BACKGROUND] [GAIN] [READOUT NOISE]
Same as L_ADD but by taking into account the noise for the calculation of a weight function. SKY BACKGROUND is the present sky level in ADU (Analog Digital Unit). GAIN is the camera gain (i.e 2 electrons/ADU). READOUT NOISE is the noise of camera in electrons (i.e. 18 electrons).

L_BIN
Carry out an operation of binning along vertical axis on a spectrum whose dispersion axis is horizontal. The addition zone along the vertical axis is such as with final the result of the addition contains 93% of the information of the real spectrum. Iris calculates the optimal addition width zone for reduce noise in the result. The max intensity in the binned image is normalized to 32766. The result is an image of the spectral profile where this one is to duplicate 20 times along the vertical axis. Before run the command you must frame the spectrum of a rectangle to be traced with the mouse.

For an introduction tutorial to spectrography, click here.

L_BIN2
Same function that L_BIN, but the normalization is carried out starting from the most intense pixel which is in the selection zone and not over the entire length of the spectrum.

L_CORREL [NAME]
Compute the shift in pixel unit along the x-axis of the in-memory spectrum and the [name] file spectrum. Before running L_CORREL define with the mouse a rectangle for the cross-correlation computation.

L_COUNT
Compute the mean level of a 2D spectrum (in ADU or Analog/Digital Unit). The concerned part is selected with mouse.

L_CURVE [LINE1] [LINE2] [RADIUS]
Same as L_ADD but the binning is made along a curved spectrum. The radius of curvature of the spectrum is [RADIUS]. Click here for details.

L_CURVE_TEST [LINE1] [LINE2] [RADIUS]
Draw line along the spectrum to test parameters of L_CURVE command.

L_DIV [NAME] [COEF]
Same principle as L_SUB with a division with the line and a [coef] coefficient.

L_EXPAND [HEIGHT]
Creates a new image with [height] identical lines equal to the line obtained with, L_MEDIAN, or L_ADD.

L_GAUSS [SIGMA]
Convolution of a vector image by a gaussian function. The sigma of the gauss function is given in parameter. For a typical application click here.

L_MEDIAN [LINE1] [LINE2]
Same command as L_ADD except that a median is applied instead of a mean.

L_MEDIAN_CURVE [LINE1] [LINE2] [RADIUS]
Useful for spectra processing. Same command as L_MEDIAN but along a curved spectrum. The radius of curvateur in pixels is [RADIUS].
See exemples here.

L_MERGE [FILE #1] [FILE #2] [X1] [X2]
Merge two spectra [FILE #1] and [FILE #2]. The point of at the coordinate [X1] (pixels unit) into the spectrum #1 correspond to the point [X2] into the spectrum #2. The intensity are normalized at around this point. Click here for an example.

L_MERGE2 [FILE #1] [FILE #2] [X1] [X2]
Same as L_MERGE. The only difference: the spectra are not normalized at the common point.

L_NOISE
Compute the mean level and the RMS noise of a 1D spectrum - The wavelength limits of the computation are selected with the mouse.

L_OPT
An easy to use optimal extraction function of the 1D spectrum from the 2D spectrum. See L_OPTBIN.

L_OPTBIN [LINE1] [LINE2] [GAIN (e/ADU)] [RON (e-)] [MEAN SKY LEVEL (ADU)] [KAPPA]
Optimal extraction for CCD spectroscopy. Click here for a description.

L_OPTBIN2 [LINE1] [LINE2] [GAIN (e/ADU)] [RON (e-)] [MEAN SKY LEVEL (ADU)] [KAPPA]
Optimal extraction for CCD spectroscopy. Click here for a description.

L_ORI
Return the orientation of a spectrum relative to the horizontal axis. Draw first a rectangle in the current image with the mouse around the spectra.

L_PLOT [HEIGHT]
Creates a new image with a plot of the line obtained with L_MEDIAN, or L_ADD. The width of the plot is the line width, and its height is [height]. This command produce also the ASCII file PLOT.LST.

L_POS [FLAG] [WIDTH]
Compute the position of a spectral line. If FLAG=0 the line is in absorption. If FLAG=1, the line is in emission. WIDTH is the typical width of the line(FWHM). Select un area around the line with the mouse then execute L_POS.

L_POS2
Precise evaluation of the position of a spectral in a 1D spectrum. The line influence zone is selected with the mouse. The command return the position in pixel and also the FWHM of the line.

L_REGISTER [IN] [OUT] [FLAG] [WIDTH] [NUMBER]
Register a sequence of NUMBER spectral images with the aim of a spectral line. If FLAG=0 the line is in absorption. If FLAG=1, the line is in emission. WIDTH is the typical width of the line(FWHM). Select un area around the line with the mouse then execute L_REGISTER.

L_SINC [FACTOR]
Scale a spectral image by the coefficient [FACTOR]. This function use the sinc intrepollation. For an application example click here.

L_SKY [LINE1] [LINE2] [LINE3] [LINE4]
Computes the median value for each row of the current image between [LINE1] and [LINE2]. This give the value V1. Computes the median value for each row of the current image between [LINE3] and [LINE4]. This give the value V2. The value (V1+V2)/2 is computed and substracted to each row of the current image. L_SKY is useful to correct gradient background for spectral image. In the normal situation the area between [LINE1] and [LINE2] is upper the spectrum and the area between [LINE3] and [LINE4] is in the opposite side relative to the spectrum.

L_SKY2
Command allowing to estimate the level of the sky background on both sides of a spectrum. The sky background is modelled by calculating for each columns of the images taken independently the median value of the intensities of the pixels in two zones that one definite interactively. The operator define these two zones by 4 clicks of the mouse as shows it the following image:

The click order of the points is not critical. L_SKY2 then substrat from all the columns the average of the two median intensities calculated in each one of them. The effect is to bring the level of the sky background to zero. It is an essential operation before being able to extract the spectral profile from a spectral image because it fixes the origin of the scale of the intensities. Click here for an illustration.

L_SKY3
Command, very similar to L_SKY2, allowing to estimate the level of the sky background on both sides of a spectrum. The sky background is modelled by fitting linear lines distinct for each columns from the image. The pixels of the image which are used to calculate these fit are in two zones on both sides spectrum that the operator define by 4 clicks of the mouse as shows it the following image:

L_SKY_CURVE [LINE1] [LINE2] [LINE3] [LINE4] [RADIUS]
Same as L_SKY but along a curved spectrum. Click here for exemple of use.

L_SUB [NAME]
Subtracts from each line of the current image the line in the [name] image obtained with L_MEDIAN, or L_ADD.

LAPLACIAN
Calculate the Laplacian of the image in memory.

LOAD [NAME]
Load an image in memory from the current directory (defined in the item Current Directory from the Settings tab – File menu). You can also indicate in which directory to load a particular image by specifying the full path of the image. For instance: LOAD c:\nuit7\m51.

LOADBMP [NAME]
Load a 8-bits BMP file in memory from the current directory.

LOADBMP24 [NAME] [R] [G] [B]
Load a 24-bits BMP file from the current directory and copy the RGB planes in the images [r], [g], [b] respectively.

LOADBMP24BW [NAME]
Load a 24-bits BMP file from the current directory in memory and convert the RGB planes into a B&W images.

LOADCAM [NAME]
Converted RAW file coming from a digital camera into a color image which is displayed (see also Load... command of the File menu).

Example: LOADCAM CRW_0347

LOADCFA [NAME]
Display a CFA image extracted from a RAW file (CFA = matrix of coloured filters covering the pixels of the electronic sensor).

LOADRAW [NAME] [R] [G] [B]
Converted a RAW in three files containing the primary layers of colors. For example:

LOADRAW CRW_0347 R G B
TR R G B

LOADSB [NAME]
Loads an image in CCD SBIG (ST4, ST4X, ST6, ST7, ST8...) format into memory. This command also accepts compressed format.

Example: LOADSB M51

LOADSX [NAME]
Load into memory an unsigned 16-bits image (dynamic range between 0 and 65535). The level of the pixels is multiplied by 0.5 to bring final dynamics between 0 and 32767. See also: CONVERTSX, SIGNED.

LOADSX2 [NAME]
Load into memory an unsigned 16-bits image. The level of the pixels is not modified, but the images is truncated for intensities higher than 32767.

LOADSX3 [NAME]
Load into memory an unsigned 16-bits image. Value 32767 is subtracted from the intensity of all the pixels. The final level lies between -32768 and 32767.

LOADTIFF [NAME]
Load a 8-bits uncompressed TIFF file in memory from the current directory.

LOADTIFF24 [NAME] [R] [G] [B]
Load a 24-bits uncompressed TIFF file from the current directory and copy the RGB planes in the images [R], [G], [B] respectively.

LOADTIFF24BW [NAME]
Load a 24-bits uncompressed TIFF file from the current directory in memory and convert the RGB planes into a B&W image.

LOG [NORM]
Calculates the base 10 logarithm of an image where [norm] is a coefficient which adjusts the maximum dynamics of the output image and Max(imput image) is the intensity of the brightest pixel in the input image.

The logarithm of an image is used to display the range of intensity levels in one visualization. Often, during deep sky image processing, the OFFSET command is used first to bring the sky background close to level 0. The depiction of faint details is then greatly improved.

Let's calculate the logarithm of the image M51.FIT, whose sky background level is around 130:

LOAD M51
OFFSET –100
LOG 1000
VISU 1000 400

With the STAT command, you can verify that there are no pixels with intensities over 1000 in the final image.

The LOG command allows you to transform the linear intensity scale into a magnitude scale, to within a constant. This can be very useful in photometry or in various kinds of image representation (for example isophotes vizualisation).

LRGB [IN_R] [IN_G] [IN_B] [IN_L] [OUT_R] [OUT_G] [OUT_B]
Give tri-color images IN_R, IN_G & IN_B, the program compute the RGB to HSI conversion, then replace the I image by the IN_L image (luminance image). Finaly, the program perform the HSI to RGB conversion for producing the output images OUT_R, OUT_G & OUT_B.

See also: RGB2HSI, HSI2RGB, RGB2PCA, PCA2RGB, TRICHRO.

MAX [PIXEL NUMBER]
Draw a rectangle in the current image with the mouse before running that command. This will replace the [pixel number] brightest pixels of the rectangle by the median value of the remaining pixels (the median value is computed at each iteration).

This command is good for interactively removing cosmetic artefacts in an image, such as warm pixels. To remove a single pixel you will type MAX 1. But you may also remove several pixels at a time, and even remove a star (e.g. MAX 30).

MEDIAN3 [COEF]
Performs median filtering on the current image. The median value of the intensities of the pixels in a 3x3 matrix around a pixel is calculated for each pixel in the image. The corresponding point in the output image is set to this median value.

[coef] is a parameter that adjusts the strength of the filter (the action of the filter is maximum if [par]=0). If we number from n=1 to 9 the values of a 3x3 matrix sorted on increasing order, if I(n) represents the intensity of the points in the matrix and if I0 represents the intensity of the point at the center of the 3x3 matrix, MEDIAN3 performs as follows:

- if the absolute value of (I0 - I(5)) is greater than: [coef]. . (I(8)-I(2)) then the corresponding pixel I0 in the output image will be given the median value I(5);

- otherwise, the pixel I0 of the output image will keep the value of I0 from the input image.

Median filtering is an excellent tool for eliminating impulse noise in an image (cosmic rays, interference in one or two pixels, etc.). The original version of the median filter is very energetic. Used without finesse, this filter may suppress useful information (faint stars) and give an artificial texture to the filtered image. This is why a weighting factor has been added to the Iris implementation of the median filter. For images that are not too noisy, the parameter [coef] is typically between 0.80 and 0.99:

MEDIAN5 [COEF]
Same comand as MEDIAN3 but with a 5x5 matrix.

MEDIANF [SIZE] [COEF]
Carry out same work as MEDIAN3 or MEDIAN5 but by using a kernel (zone in which the median is calculated) of adjustable [SIZE]. Size must be imperatively an odd value. For example MEDIANF 9 0.8. This command is practical to erase the details of relatively large size.

MEM [#ITER]
Deconvolution using a Maximum Entropy Method. The process is iterative and contains [#iter] iterations. The size of the image must be square and equal to a power of 2 (see WINDOW3 and PADDING commands). Before running the command, select an isolated star with the mouse. It has to have a good signal to noise ratio, but not too bright, in order to avoid saturation.

Generally, 15 to 20 iterations are recommended. Try also to have a sky background close to zero (use the OFFSET command) but strictly positive.

MIN [PIXEL NUMBER]
Same command as MAX, but applies on pixels having a level lower than the median level of the area (e.g. for removing non active pixels).

MIRRORX
Rotate the image around a vertical axis.

MIRRORY
Rotates the image around an horizontal axis.

MIRRORXY
Invert the X and Y axis.

MIRRORXY2 [IN] [OUT] [NUMBER]
Permutation of axes X and Y for a sequence of images.

LOAD M51

With the mouse, define a rectangle about 30 to 40 pixels in width, avoiding the galaxy and stars. then run the STAT command (contextual menu). Iris returns a standard deviation around 8 (it is the estimation of the sky background). Then type:

MMSE 8.0

The MMSE command allows reduction of noise in the image while preserving fine detail.

MMSE [SIGMA]
Filters adaptatively noise by using the "Minimum Mean-Square Error" method. The [SIGMA] parameter contains the typical value of noise in the sky background. This value may be obtained for example with the STAT command. For example, load the M51.PIC image.

MODULO [VALUE]
Computes for each pixel the value modulo [VALUE]. The result is the current image in memory. This command allows to produce some isophote effects that may be useful to visualize images with large dynamic ranges. Select the false color palette to a better rendering.

MOSA [NAME] [DX] [DY] [TYPE]
MOSA allows you to include a set of elementary images in one image. The images are merged two at a time. The first image is in memory. The second image is designed by the parameter [NAME].

The shift between two points on the images you want to merge is contained in the variables ([DX],[DY]).

When the two images have points that overlap (which is not required), the value contained in the variable [type] allows you to choose the state of the overlapping zone in the final image:

The format of the input images can be different.

The MOSA command is used primarily to put together several shots of the same object in order to have a single image of this object. Click here for an example.

MULT [COEF]
Multiply all the current image pixels by the constant COEF.

MULT2 [IN] [OUT] [COEF] [NUMBER]
Multiplies all the pixels of a sequence of images by [COEF]. The generic name of the [NUMBER] input images is [IN], whereas the generic name of the output images is [OUT].

Example: MULT2 I J 0.5 7

NEW [X] [Y]
Creates a new image filled with zeros. The image has a size of [X] x [Y].

NGAIN [NORM]
Normalizes the median level of an image to [norm] by multiplying the image by a constant value. This command is generally used to change the median level of a flat-field image, in order to prepare a median sum.

NGAIN2 [IN] [OUT] [NORM] [NUMBER]
Normalizes the median level of a sequence of [number] images having a generic name [in] to [norm] by multiplying each image with a constant value. The generic name of the output images is [out].

NGAIN3 [IN] [OUT] [NORM] [NUMBER]
Normalization of a sequence of images. For the difference of NGAIN2 it is necessary to define with the mouse the zone of the image in which the calculation is carried out.

NOFFSET [NORM]
Normalizes the median level of an image to [norm] by adding a constant value to the image.

NOFFSET2 [IN] [OUT] [NORM] [NUMBER]
Normalizes the median level of a sequence of [NUMBER] images of generic name [IN] to [NORM] by adding a constant value to each image. The generic name of the output images is [OUT].

NOFFSET3 [IN] [OUT] [NORM] [NUMBER]
Normalizes the median background level of a series of [NUMBER] images having the generic name [IN] to [NORM]. The generic name of the output images is [OUT]. You have to select the area in which the background level will be estimated before running the command. Use the mouse for that. This command is very useful to normalize background levels in a series of planetary images. For example, the PREGISTER command works best when the background level is close to zero, and when the image background is uniform including near the image edges (windowing is often necessary to avoid edge effects). So, a typical sequence to register a series of planetary images will be for example:

WINDOW2 JUP I 5 5 170 170 9   (in order to supress bad border)
NOFFSET3 I J 0 9   (in order to make zero level background around the planet)
PREGISTER J K 256 9   (in order to register the images)
MULT3 K K .3 9   (in order to avoid integer overflow when adding the images)
ADD2 K 9   (in order to composite the 9 images)

NUMBER [GENERIC NAME]
Return the number of images of an image sequence. For example, if the sequence is M31_1.FIT, M31_2.FIT and M31_3.FIT, NUMBER M31_ return 3.

OFFSET [VALUE]
Adds the constant [value] to the current image. The constant can have a negative value.

OFFSET2 [IN] [OUT] [OFFSET] [NUMBER]
Adds the value [offset] to [number] images having the generic name [in]. The parameter [out] contains the generic name of the output images.

OPT [DARK FRAME NAME]
In long exposure CCD imagery, one of the major difficulties posed during preprocessing is the dark current correction.  This interference signal, due to thermal charges, is added to the signal produced by the observed objects. The problem is to suppress this interfering component of the image because it is noise that impairs the detectability.

A classic solution is to take an exposure of the object under study with an integration time T, then to take another exposure of length T while placing the detector in total darkness. This last exposure is called the dark current map. This map is a constant, to within a coefficient, for a given CCD.  To first order, the coefficient is proportional to the temperature of the CCD and to the integration time.  In the preceding procedure, the dark current map is simply subtracted from the image of the object.

This is, however, far from the ideal solution. In fact, this procedure implies that a dark current map must be taken after each image of the object. This is very constraining when the exposure time is several minutes or more.

Things seem to go better if the temperature of the CCD is perfectly stable.  In this case, a priori only one map is necessary. It can be taken, for example, at the beginning of the observing session, and can be used to correct all the images.  If the exposure time is not the same on the dark map and the image to be processed, the dark map must be multiplied by a coefficient before the subtraction.  The coefficient is the ratio of the exposure time of the image to the exposure time of the dark map.

Besides the fact that is a delicate matter to maintain the detector at a fixed temperature, this method has the following inconvenience - the dark map has its own noise (readout noise) and when the map is subtracted from the images, this noise is actually added to the images.

There is a more efficient method:

- Take several (5 to 10) dark images with integration times that are not necessarily equal, but long enough to be sensitive to the dark current (they should have the same duration as the observation exposures). The CCD should be cooled to reduce the readout noise as much as possible.

- For each exposure in darkness, another one with a minimal integration time is taken. This provides the offset map.

- For each of the dark images, subtract the corresponding offset map. The resulting images then contain only the thermal component of the signal.

-Sum all the images from the previous step to obtain the dark map. This adds the thermal contributions from each image, but averages the readout noise. This map can be considered constant for a given CCD (it is still good to redo this procedure every 1 or 2 months to allow for any possible change in the electronic characteristics of the detector).

- Now a given image must be corrected.  The difficulty is in finding a multiplicative coefficient, to apply to the dark map, which will optimally correct this image. This is what the command OPT does.

Iris solves this problem nearly instantaneously using an analytical approach.

You have to select an area typically 30 to 100 pixels in width with the mouse. Then run the command. [dark frame name] is the name of the dark current map. The program will return the coefficient to apply to the dark current map to create a new map that is optimal for the image to process.

Example: OPT DARK calculates the optimal coefficient for the dark map DARK.PIC to correct the current image.

The OPT command should be systematically used to preprocess deep sky images. With this command in hand, you do not need to worry about taking dark images during the night.  The result is quite good because the criteria chosen minimize the noise.

OPT2 [IN] [DARK] [OUT] [NUMBER]
Same command as OPT but applies on a sequence of [NUMBER] images having the generic name [IN]. [OUT] is the generic name of the output images.

OPT3 [IN] [DARK] [OUT] [NUMBER]
Same command as OPT2 the with a more fully procedure (it is not necessary to select a zone in the image).

OPT_SUB [NAME]
Convolution of the image in memory by a kernel calculated by the command so that the PSF of stars are most similar to the image [name]. The kernel is saved at ends under the name @k.

PADDING [LX] [LY]
Sets the size of the current image to [lx], [ly]. If the image is larger than ([lx], [ly]), it is truncated. If the image is smaller than ([lx], [ly]), it is completed by pixels of zero intensity.

This command is generally useful for comparing images taking with differents CCD or before using commands that perform Fast Fourier Transforms for which the image must have a size equal to a power of 2. For example, the command:

PADDING 256 256

guarantees that the image in memory has a size of 256x256 pixels.

PADDING2 [IN] [OUT] [LX] [LY] [NUMBER]
Same function that PADDING, but applying to a sequence of images.

PCA2RGB [C1] [C2] [C3] [R] [G] [B]
The PCIA2RGB command performs the reverse transformation of the RGB2PCA command, that is, it goes from the space of the principal components to the space of the fundamental colors (R,G,B).  To do this, this function needs the file containing the matrix of the eigenvectors of the covariance matrix of the three initial trichromatic images (pci.lst). For more information on this technique, see the RGB2PCA command.

PHOT [RADIUS1] [RADIUS2] [RADIUS3] [OPTION]
Computes aperture photometry. After running the command, one or several circles appear in the field. By centering the circles on the stars and then clicking on the left button of the mouse the program returns information about the star intensity.

If [option]=1, a simple circle appears.The returned information is the sum of the intensitites of the pixels inside the circle (i.e. the sum of the star intensity and the sky background).

If [option]=2, two circles appear. The signal of the star plus the sky background is integrated in the inner circle. In the area between the two circles, the mean sky background is measured. PHOT then returns the signal of the star alone (sum of the intensities I, and instrumental magnitude M). The inner circle radius is [radius1], and the outer circle radius is [radius2].

If [option]=3, three circles appear. The most outer circle radius is [radius3]. It is the same method as previously, except that the backgroung level is calculated from the area between circles 2 & 3. This allows sometimes to avoid close stars to the measured star, that may bias the measure of the sky background.

To exit the PHOT mode, execute the commande PHOTOFF.

Examples:

PHOT 6 0 0 1
PHOT 6 11 18 3

Note: it is important that a rather large number of pixels are used to determine the sky background. Moreover, as far as the inner circle is concerned, it has to be large enough to contain the whole star, but not too big in order to minimize noise level.

See application here.

PHOTM [RADIUS1] [RADIUS2] [RADIUS3] [OPTION]
This command is close to the PHOT command. The difference is that a median is used to compute the sky background level instead of a simple average. It may be useful to minimize the effect of feeble stars in the measure annulus. To exit the PHOT mode, execute the commande PHOTOFF.

PIC_ANIM [INPUT] [OUTPUT]
Function very close to DATA_ANIM. The latter calculates interpolations starting from data curves, in particular of spectra (click here for an example). PIC_ANIM applies to 2-D images to improve fluidity of the animation of a sequences. For that of the intermediate images are calculated by simple linear interpolation starting from the acquired images.

The parameter [INPUT] indicate the name of a text file which respectively contains on two columns the name of the acquired images and date of acquisition of these images (or all other identifying function of time, as for example an index value which goes into increasing).

The parameter [OUTPUT] indicate the name of a text filwhich respectively contains on two columns the name of the interpolated images and dates for which the interpolation is calculated (or an identifier function of time, in conformity with that used in the input file).

Suppose 5 images to be interpolated with the names MET1, MET2, MET3, MET4 and MET5. We create in the working directory a text file of name IN.LST containing (use a text editor for that):

met1 1
met2 2
met3 3
met4 4
met5 5

We create the output file OUT.LST:

r1 1.00
r2 1.25
r3 1.50
r4 1.75
r5 2.00
r6 2.25
r7 2.5
r8 2.75
r9 3.00
r10 3.25
r11 3.50
r12 3.75
r13 4.00
r14 4.25
r15 4.50
r16 4.75
r17 5.00
r18 4.50
r19 4.75
r20 5.00
r21 4.50
r16 4.75
r17 5.00

The images R1 and R5 for example will be identical to images MET1 and MET2 (correspondence of the dates). But moreover, between the two images observed, command PIC_ANIM will generate the intermediate images R2, R3 and R4, and so on for the whole of the sequence.

Note: file OUT.LST can be creates automatically with the assistance of command GEN_OUT, which is quite practical for long sequences. In the example one will make:

GEN_OUT OUT R 1 5 0.25

After having saved the file IN.LST and OUT.LST, we produce the interpolated sequence:

PIC_ANIM IN OUT

The sequence R1 ... R17 synthesized can be visualized with the Animation... command from Visualisation menu. You can also save the sequence in the form of BMP images for produce an animated GIF or a AVI film for example with the assistance of an adequate software:

PIC2BMP R RR 17

You have now on the disc a sequence RR1.BMP..., RR17.BMP.

PIC2BMP [INPUT] [OUTPUT] [NUMBER]
Convert of a sequence of FITS or PIC images to a sequence of 8-bits BMP images.

PIC2DATA [DATA FILE NAME]
Convert the values of the first line of the image in memory into a text file of name [DATA FILE NAME]. This command is particularly useful for the analysis of the spectral data starting from a spreadsheet or a program of display of curves.

And also an improved version of the command NUMBER. Suppose the sequence M57-1, M57-2, M57-3. The command NUMBER M57- return the number of images in the sequence (3) but mid-date of the acquisition.

PIC2FITS [IN] [OUT] [NUMBER]
Convert a sequence of PIC image into FITS a sequence. Parameters:

[IN] is the generic name of the input sequence.
[OUT] is the generic name of the output sequence.
[NUMBER] is the number of images in the sequence.

PLOT2 [DATA] [DIM X] [DIM Y] [YMIN] [YMAX] [TITLE]
Even function that ANIM_PLOT but applying to only one data file [DATA].

POINTON
This command permits selection of any points on a sky background. The list of points will then be used by commands such as POLY and SYNTHE in order to produce synthetical sky backgrounds.

Each time you click with the mouse, a small cross appears in the image, a counter increments and the pixel coordinates and intensities are stored in memory. The maximum number of points is 5000.

To come back to normal cursor mode type: POINTOFF. For an example click here.

See also: POLY, SYNTHE.

POINTOFF
See POINTON.

POLAR [0°] [60°] [120°] [DEGREE] [ANGLE] [SCALE]
Computes the polarization angle and level from 3 images obtained through a polarizing filter at angles of 0°, 60° & 120°. The three parameters [0°], [60°], and [120°] contain the names of the three corresponding images. The two resultant images contain the linear polarization level (named with the [degree] parameter), and the polarization angle (named with the [angle] parameter), respectively. The parameter [scale] allows to normalize the levels in the degree of polarization image. If [scale]=100, the image will contain the polarization degree in percents. The intensities in the polarization angle image corresponds to degrees of polarization (between 0° and 180°). The angle origin correspond to the filter with the 0° orientation. Angles are oriented counter-clockwise.

Example: POLAR P0 P60 P120 POL ANGLE 100
Click here for examples. See also POLAR_CARTO command.

POLAR2 [0°] [45°] [90°] [135°] [DEGREE] [ANGLE] [SCALE]
Computes the polarization angle and degree from 4 images obtained through a polarizing filter at angles of 0°, 45°, 90°& 135°. The four parameters [0°], [45°], [90°] and [135°] contain the names of the four corresponding images. The results consists in an image containing the polarization level (named with the [degree] parameter), and an image containing the polarization angle (named with the [angle] parameter). The parameter [scale] allows to normalize the levels in the polarization degree image. If [scale]=100, the image will contain the polarization degree in percents. The intensities in the polarization angle image corresponds to degrees of polarization (between 0° and 180°).

For an application, we are going to process a set of four images of the moon taken through a polarizing filter with four position angles 45° apart. This filter was placed just in front of a CCD detector. The exposure times are identical for the four images, which are called MP1.PIC, MP2.PIC, MP3.PIC, and MP4.PIC. The offset signal has been subtracted from each of these images (see the SUB command) and they have been carefully centered to within a fraction of a pixel with respect to each other. Then:

POLAR2 MP1 MP2 MP3 MP4 P A 100
LOAD P
VISU 5 0

The intensity levels in P.PIC express the polarization degree. For the moon the degree is often small as 5%. Comparing the polarization map and the albedo image is instructive. For the most part, the polarization rate is higher in the continental zones than in the seas. Nevertheless, there are some notable local exceptions. You will also note that some craters have a particularly high polarization rate. Click here for an example.

This type of polarization map provides information about the roughness of the lunar surface. The interpretation of this kind of document requires prudence (for example, the polarization rate at a given point on the moon is strongly dependant on the elevation of the sun at the point, and on the mineralogical makeup of the ground).

POLAR3 [0°] [45°] [90°] [DEGREE] [ANGLE] [SCALE]
Same as POLAR2 but for only three angles : 0°, 45° and 90° of the polaroid analyzer.

POLAR_CARTO [DEGREE] [ANGLE] [STEP] [SCALE]
The POLAR_CARTO command creates a polarization map from an image containing the polarization magnitude and an image containing the polarization angle (in degrees). The output image is formed of small vectors whose length is proportional to the polarization degree and whose orientation is equal to the polarization angle. An angle of 0° corresponds to a vertical vector. The center of the vector is at the point where the calculation was done.

[MAGNITUDE] is the polarization magnitude image name and [ANGLE] is the angle image name. The calculation of the vectors is performed at the intersection of a mesh whose stepsize, in pixels, is contained in the parameter [STEP]. Note that the displayed result is the average of the polarization degree and the polarization angles calculated on a zone of dimension [STEP] centered on the point.

The parameter [SCALE] adjusts the length of the vectors as a function of the polarization rate. It is expressed in pixels per percent of polarization (if the polarization rate is itself in percent).

Example: POLAR_CARTO POL ANGLE 10 30 , draws a polarization map from the images POL and ANGLE. The calculation stepsize is 10 pixels, and each segment has a length of 30 pixels per polarization percentage (this requires that a polarization rate of 100% is equivalent to level 100 in the image POL.PIC).

POLY [ORDER]
In many cases it is very important that the level of the sky background becomes as uniform as possible, and with a given value (for low flux detection, photometry,...). If the background is not uniform enough after preprocessing to perform such analyses, a solution may be to synthetize a background using mathematical functions that fits the real background. The synthetic background will be then subtracted from the original image.

POLY calculates the coefficients of a polynomial by the method of least squares from data obtained by making pointings in the image background (see the command POINTON).

The parameter [ORDER] contains the order of the polynomial to calculate. The order can range from 0 to 5. For a fifth degree, the polynomial has the form:

V = CONSTANT +C1.X + C2.Y + C3.X.Y + C4.X2 +C5.Y2 +C6.X2.Y + C7.X.Y2 +C8.X3 +C9.Y3 + C10.X4 + C11.Y4 + C12.X5 +C13.Y5

When a lesser order polynomial is calculated, only the related coefficients are included (the others are set to zero). For example, for a second degree polynomial, only the coefficients from C1 to C5, as well as the constant, are significant.

Click here for an example.

See also: SYNTHE, SUBSKY, POINTON, POINTOFF

POWER [VALUE]
Rise the intensity of the pixels of the current image to the power. The value of the power is provided by the user ([value]).

PR [INPUT] [DARK + OFFSET] [FLAT] [OUTPUT] [NUMBER]
The PR command (PR=PreProcessing) is an important command for the preprocessing of a sequence of [NUMBER] images. The [INPUT] parameter contains the generic name of the images to process. [DARK + OFFSET] is the name of sum of the dark current image and of the offset signal. So, the dark image has either to be obtained in the same conditions as the images themselves (same exposure time, same temperature), or to be computed (see the OPT command). [FLAT] contains the flat-field image. [OUTPUT] is the generic name of the output images. See also: FULL_PR

The command PR produce preprocessed images that may be, for example, combined later after registration (see REGISTER, ADD2, ADD3, DRIZZLE, COMPOSIT, SMEDIAN, FULL_PR commands). Click here for details.

PREGISTER [IN] [OUT] [SIZE] [NUMBER]
Performs the registration of [NUMBER] planetary images having the generic name [IN] using an intercorrelation method. The size for the intercorrelation is given by [SIZE]. It must be a power of 2 (128, 256, 512...). The size should be larger than the planet diameter. [OUT] is the generic name of the output images. Before use PREGISTER define a selection rectangle around the planetary disk (drag with the mouse). Note that the size of rectangle is not important (the rectangle mark only the center of interest of the image).

Example: PREGISTER MARS I 256 7

To verify the efficiency of this command, you may subtract an image from another one, e.g.:

LOAD I1
SUB I3 2000
VISU 3000 1000

The observed residuals mainly come from the atmospheric turbulence.

See here for an application example.

PREGISTER2 [ENTERED] [LEFT] [SIZE] [A] [NUMBER]
Very similar function that PREGISTER for the registration of the planetary images by the technique of the intercorellation in the Fourier domain. PREGISTER relative make registration of each image of the sequence to the first image of this sequence. PREGISTER2 on the other hand calculates the intercorellation of the image of row N relative with the image of row N-1. This is of an interest when the detail which is used to center the images changes of form notably (a solar protuberance for example).

PREREGISTER [IN] [OUT] [NUMBER]
Command for fast registering of a sequence image. The algorithm is fast (special cross correlation in the spatial domain) but less precise compared to REGISTER, PREGISTER, or CREGISTER for example (PREREGISTER use a registration at the nearest pixel for minimal degradation of image quality) . PREREGISTER is used as a first step registration for difficult case (if traditional registration command are not applicable - situation of large de-registration for example). Applied command like REGISTER or COREGISTER for a second pass (registration at a pixel fraction). Parameters:

[IN] generic name of the input sequence
[OUT] generic name of the output sequence
[NUMBER] image number

Before run PREREGISTER select with the mouse a rectangle around a contrasted details. For important de-registration do not hesitate to select the whole image.

PROD [NAME] [COEF]
Performs the multiplication pixel by pixel of the current image by the image [NAME]. The result is muliplied by [COEF]

Example: To calculate the square of the image M51.PIC:

LOAD M51
PROD M51 .05
VISU 10000 0

PUT [X] [Y] [V]
Attributes the intensity [V] to the pixel at coordinates ([X], [Y]). See also: GET

QR [NAME1] [NAME2]  ( or QREGISTER [NAME1] [NAME2] )

Command for a quick and a easy registering of deep-sky image pairs. The method used involve interactively identifying common point sources (stars) in overlapping images fields. This functions are compatible with 16-bits (black & white) and 48-bits images (true colors). [NAME1] and [NAME2] are the file name of the images to be register. The reference is the image [NAME1]. The QR command applied a sample translation to the image [NAME2] for superposition. Click here for details.

QR2 [NAME1] [NAME2]  ( or QREGISTER2 [NAME1] [NAME2] )

Command for a quick and a easy registering of deep-sky image pairs. The method used involve interactively identifying common point sources (stars) in overlapping images fields. This functions are compatible with 16-bits (black & white) and 48-bits images (true colors). [NAME1] and [NAME2] are the file name of the images to be register. The reference is the image [NAME1]. The QR2 applied an affine transform to the image [NAME2] for superposition. Click here for details.

RAINBOW [NAME] [LAMBDA1] [LAMBDA2]
Useful for the representation of the spectral data. Colorize with the rainbow colors the image [NAME]. The coloured distribution is realistic and takes into account which the first pixel on the left is with the wavelength [LAMBDA1] and which the last pixel on the right is with the wavelength [LAMBDA2].

REC2SKY [X] [Y]
REC2SKY returns the equatorial coordinates of a point on the image whose Cartesian coordinates in pixels are in the parameters ([x],[y]), using the polynomial files POLX.POL and POLY.POL (created by Astrometry/Photometry dialog box).

Example:

REC2SKY 12.67 321.12

Calculates the equatorial coordinates of the point with Cartesian coordinates (12.67, 321.12) from the parameters contained in the files POLX.POL and POLY.POL.

REGISTER [IN] [OUT] [NUMBER]
Registers [NUMBER] images of a sequence having the generic name [IN] with respect to the first one. The generic name of the output images is [OUT]. The registration consists here in a simple translation.

Draw a rectangle with the mouse around an isolated, non-saturated star. The registration of the images will be done with respect to that star. The size of the rectangle has to be large enough so that it contains the displacement of the star between two contiguous images (if this not the case, Iris could take a wrong star to perform the registration).

Example: REGISTER I J 7

Registers the images I1.PIC ... I7.PIC and produces the output images J1.PIC ... J7.PIC.

The registration is generally followed by a combination of the images (see e.g. ADD2, ADD3 or COMPOSIT). Click here for an example.

REINDEX [IN] [OUT] [FIRST INDEX IN] [FIRST INDEX OUT] [NUMBER]
Reorganize the indices of a sequence. Let us suppose a sequence: I1, I2, I3, I4. One wants to transform it into a sequence J5, J6, J7, J8. One will write:

REINDEX I J 1 5 4

The input and the output sequences cannot have the same name. [NUMBER] is the number of image to be converted.

REMOVE@
Delete all the files of the working directory starting with the character @. Equivalent with command DOS: DEL @*.*

REPAIRX [X]
Replaces the column of rank [x] by the average of the columns of rank [x]-1 and [x]+1. See also REPAIRY.

Example: REPAIRX 66

Replaces the column of rank 66 by the average of columns 65 and 67.

REPAIRX is used for the cosmetic correction of images: suppressing electronic interference or a defective line in the detector.

REPAIRX2 [IN] [OUT] [X] [NUMBER]
Same as REPAIRX but for an image sequence.

REPAIRY [Y]
Replaces the line of rank [Y] by the average of the columns of rank [Y]-1 and [Y]+1.

Example: REPAIRY 90

REPAIRY2 [IN] [OUT] [Y] [NUMBER]
Same as REPAIRY but for an image sequence.

RESET
Update position of dialog box (command , threshold, ...). Useful when the screen resolution is modified.

RGB2HSI [R] [G] [B] [H] [S] [I]
The RGB2HSI command converts an image defined by its Red, Green, and Blue components into an image defined by its Hue, Saturation and Intensity components.

The starting element is a trichromatic image whose three components have been obtained in distinct spectral bands (not necessari