IVM Data Reduction Procedures


This document describes how to reduce raw IVM magnetogram data using the IDL procedures in /solar/IVM/idl. The procedure is the one we use for reducing the morning survey magnetograms in near real-time, and as such it may not include techniques which could improve the results but are very slow. On the other hand, it does
  1. compute the flat-field corrections in the best way we know,
  2. coalign successive images by rigid translation, using the geometry images to determine the shifts,
  3. locate the line center spectral position pixel by pixel, and
  4. compute the magnetic field parameters using a decent implementation of the derivative method.
The software described here is the version of June 1995.

Contents

  1. Data files
  2. Programs
  3. Calling syntax
  4. Procedure
  5. Options
  6. Time and storage requirements
  7. Restrictions

Data files


Programs:

The driver is a function called rivm. It calls a number of other routines, many of which are in the IVM directory, /solar/IVM/idl. Some Yohkoh software routines are used.

Calling syntax

gram = rivm(calfile,datafile[,fitmap])

The names of the calibration and data files are the only required arguments. Default dark and flat files are the most recently observed dark and flat, before the data observation. Their names are recorded in the data file header and extracted by rivm. If different dark and flat files are needed, they can be specified with keyword variables.

Procedure

Rivm executes the following steps in the reduction process:

Options

The options are many, but the default values are usually right so the options are often not required. Fitmap is an optional argument; the remainder are implemented as keywords.

OLD_DATA
Set this keyword if the observations are from the very early days in 1992, before the header sizes were set. It causes RIVM to query the operator for the correct header sizes.

D0FIL, F0FIL
Use these keywords to override the dark and flat filenames in the header. Useful for old data with these entries missing; also if the appropriate dark/flat were obtained just after the data file rather than just before it.

NPTS
Numeric entry to specify the number of spectral positions, for files where this number is not found in the header.

NFUS
Numeric entry to specify the interval in Fabry-Perot units between successive wavelength points. Normally extracted from the header.

FOURSTEP
Set to force demodulation using demod_2, assume the data and calibration were obtained with four-step modulation sequence. This is the default if the header item NFRAMES is 4.

CALSMOOTH
Numeric entry which overrides the default 16-pixel smoothing which is applied to the calibration matrix.

JUMP
Set to one of the strings 'flat', 'shift', 'avg', 'scat', 'demod', 'calib' or 'bgram' to jump into the processing sequence, skipping already executed stages. This may be useful if one wishes to do the magnetic field computation at a different wing position, for example, and the calibrated Stokes file has already been obtained.

REDFLAT
Set if the flat-field data have already been reduced and the inverse flat files are present in the working directory. Skips processing of raw flat data. This is helpful with flare-mode data, i.e. rapid sequences of magnetograms depending on a common flat.

REDCAL
Set if the inverse calibration matrix is present in the working directory. Skips processing of the calibration data file. Again, handy with flare-mode data where one cal serves several magnetogram datasets.

NO_REG
Set to skip coalignment of frames. Usually coalignment is preferred.

SCAT
Set to apply the diffuse scattered light correction. The value specified for scat is the fraction of the average to be subtracted from each frame. This may be useful, but its validity hasn't been carefully explored.

SHUT
Set to apply the shutter leakage correction using shuttersub. Only needed for early data with LC shutter; doesn't work too well for that. Set shut to a string containing the name of the correction file.

NO_BGRAM
Abort processing after computing calibrated Stokes data; do not compute magnetic fields.

DL
Offset, in Angstroms, from line center at which the program is to measure the polarizations and intensity derivative. The default value is 0.100 A, which appears to work the best.

PLOT
If set, the interval in sequential pixels between plots of the Stokes profile fits in bjeff6. These plots are useful for estimating the quality of the data and of the fits, though they increase processing time somewhat. A value of 250 or 500 may be appropriate.

FITMAP Variable into which a yes/no map of the Intensity fit validity is returned.

KEEP_INT
If set, keep all the intermediate files. The default is to delete most of them, retaining the inverse calibration matrix file, the inverse flats, and the final calibrated Stokes file.

Time and storage requirements

The intermediate files are by default deleted, but 130 MB of disk space is required for short-term storage and the Stokes file. If the KEEP_INT option is selected, about 400 MB of free space is required, in addition to the 80 MB needed for the data files. The output FITS file is 660K for a 256 x 256 image size, and can be compressed a little, to about 450K. Processing takes about 35 minutes for a 256 x 256 file with 20 spectral points and two spectral scans, on a Sparc-20/50.

Restrictions

Image is assumed to be square.

Assumes 6.0 mA per unit of F-P setting. This value has been determined from the separation of the 630.15 and 630.25 nm lines. Note that the steps in wavelength do not have to be uniform, but there is some code in xbgram6 (95Apr) that chooses which points in the I-profile to fit and that assumes uniform wavelength steps.


Home Back

Last updated: 1996 February 15
mickey@ahinahina.ifa.hawaii.edu