4.2 Preparing the SXT Data for Analysis (SXT_PREP)


next up previous contents
Next: 4.3 Making a Light Up: 4 Soft X-Ray Telescope Previous: 4.1 How to View

4.2 Preparing the SXT Data for Analysis (SXT_PREP)

         

It is the desire of the SXT team to have the routine SXT_PREP used for most of the preparation of the SXT data. The SXT_PREP routine performs a variety of tasks, some of which are described in the following list.

  1. Flag the saturated pixels
  2. Calculate the decompression error uncertainties for each pixel
  3. Perform standard corrections to the data
  4. Align the images and build the observing region (or mosaic of PFI images). The routine can handle PFI, FFI, or a mix of images. It can extract subportions out of FFI images. The alignment can be done
  5. Optionally fill in the horizontal gaps in the observing region (or)
  6. Optionally exposure normalize to a one second exposure

Some important elements of SXT_PREP are:

The steps to using SXT_PREP can be somewhat involved. The basic steps are described below, but the routine XSXT_PREP is an easy way for a user to specify what processing should be performed, and XSXT_PREP is described at the end of this section.

  1. Select the files which have the data of interest. You can use YODAT to do this, or some other method.

  2. Select the images that you wish to process. Again, YODAT can do this, or you can use SSWHERE or another method for selecting the images. If you are not using YODAT, then one option is to read the roadmaps of the files, and pass the roadmap to SSWHERE. The following example assumes the list of file names (as a string vector) is in the variable infil.
    IDL> rd_roadmap, infil, rmap

    IDL> ss = sswhere(rmap)

  3. To register images, it might be necessary to determine the coordinates for the center of the aligned images. Some methods for specifying the coordinates are:

    If you only selected PFI images, and the PFI images you selected are all for the same active region, then you do not need to specify the coordinates of an aligned image (it will automatically derive the optimal coordinates by averaging all PFI center locations). If they are not for the same region, then you should either modify your selection so that it only includes one location on the sun, or select a image which all of the data should be aligned to and use the ref_image=index(ialign) option, or you can specify the absolute coordinates (the procedure for establishing those coordinates is described below).

    If you have mixed PFI and FFI images, then you can specify one of the partial frame images, and then all images will be registered to that image, and the appropriate portion of the FFI image will be extracted and aligned.

    If you selected only FFI images, but you want to extract a portion to make a registered movie, then you will need to determine the coordinates for the registered image. A simple method to do this is to use SXT_GRID. If you want to simply remove the S/C jitter and the SXT pointing changes (register relative to sun center), then display a full frame image and call SXT_GRID. An example is:
    IDL> tvscl, data(*,*,5)

    IDL> sxt_grid, index(5), /read_out, last=loc, /angle
    As you move the cursor around, you will see that the values in the small window are changing. When the cursor is located at the location where you want the center of your image, press the right button. If you want to register images and track on a heliocentric coordinate, then you can use SXT_GRID again to get those coordinates. An example is:
    IDL> tvscl, data(*,*,5)

    IDL> sxt_grid, index(5), /read_out, last=loc
    It is necessary to specify the size of the output image when extracting a partial frame out of a full frame.

  4. Run SXT_PREP. If you are reading the data and passing the index and data to SXT_PREP, then the observing regions should not be assembled (answer ``No'' to this question in YODAT). This is important because jitter and drift can cause pointing changes between the different exposures that comprise of one PFI observing region.

    It is possible to pass index and data into SXT_PREP, or to pass the file name array (infil) and the data sets to extract (ss). The results can be returned in the third and fourth parameters (index2 and data2) or they can be written directly to an output file (outfil=outfil).

    Below are some examples of how to call SXT_PREP.


IDL> sxt_prep, infil, ss, index2, data2, /reg

IDL> sxt_prep, infil, ss, index2, data2, uncert, satpix, /reg

IDL> sxt_prep, infil, ss, index2, data2, helio=loc, date_helio=date_helio

IDL> sxt_prep, infil, ss, index2, data2, helio=[-9.8,-20.3], $

IDL> date_helio='14-JUN-92 02:37:41')

IDL> sxt_prep, index, data, index2, data2, /reg, ref_image=index(55), outsiz=100

IDL> sxt_prep, index, data, index2, data2, /reg, ref_image=index(55), /helio

IDL> sxt_prep, infil, ss, index2, data2, /reg, /sfd, outres=1, $

IDL> outsiz=[100,200], suncoord=suncoord

IDL> sxt_prep, infil, ss, /reg, outfil=outfil, /dc_interpolate, /normalize

XSXT_PREP provides a graphical user interface to SXT_PREP. The XSXT_PREP routine simplifies the access to the many SXT_PREP options and varied calling sequences. In addition, XSXT_PREP provides a front end to some additional data selection and filtering tools which may be used to fine tune the data set and allows graphical definition of all SXT_PREP input parameters. The following graphical tools are provided:

The combination of graphical interface and online help make this a good routine to learn through use. It is a main level routine. For starters, try the following calling sequence:
IDL> .run yodat ; select SXT data cube to process

IDL> .run xsxt_prep ; play around


next up previous contents
Next: 4.3 Making a Light Up: 4 Soft X-Ray Telescope Previous: 4.1 How to View


ydac@mssly1.mssl.ucl.ac.uk