next up previous contents index
Next: The aXeSIM tasks Up: aXeSIM manual Previous: Installing aXeSIM   Contents   Index

Subsections


Illustrated aXeSIM examples

In this chapter we show some examples for aXeSIM simulations. In a step-by-step approach, we present the simulation input, the aXeSIM task executed and display the simulation results. In order to illustrate all possibilities of aXeSIM, we start with very simple examples and finish with rather complex simulations that expose all options in aXeSIM.

Working with aXeSIM frequently requires modifying or creating ASCII tables in the SEXtractor catalogue format. The python module AstroAsciiData (distributed at: http://www.stecf.org/software/PYTHONtools/astroasciidata/) is very convenient to do this interactively or within small python scripts.


Example 1

Simulation details

instrument: WFC3/IR G102
# of objects: 1
object spectrum: defined by one magnitude value
object brightness: defined by one magnitude value
flux normalization: not required
object shape Gaussian
default extraction YES

Directories and files before the simulation

example_1>ls -R
.:
CONF  DATA  OUTPUT  OUTSIM

./CONF:
wfc3_abscal_IRg102_0th_sens.fits  wfc3_abscal_IRg102_2nd_sens.fits
wfc3_abscal_IRg102_1st_sens.fits  WFC3.IR.G102.TV2_sim.conf

./DATA:
example_1_MOT.dat

./OUTPUT:

./OUTSIM:
example_1>setenv AXE_IMAGE_PATH ./DATA
example_1>setenv AXE_OUTPUT_PATH ./OUTPUT
example_1>setenv AXE_CONFIG_PATH ./CONF
example_1>setenv AXE_OUTSIM_PATH ./OUTSIM

The Model Object Table example_1_MOT.dat

# 1 NUMBER
# 2 X_IMAGE
# 3 Y_IMAGE
# 4 A_IMAGE
# 5 B_IMAGE
# 6 THETA_IMAGE
# 7 MAG_F1248W
  1  512.0  512.0  2.0  1.0 30.5 19.5

The simulation command

--> simdata incat='example_1_MOT.dat' config='WFC3.IR.G102.TV2_sim.conf' extraction='YES'

Figure 3.1: The results of the first simulation: the simulated slitless image in the left panel left panel and the default-extracted spectrum (solid, red line) in comparison to the input ``spectrum" (dashed, blue line) in the right panel.
Image example1_disp Image example1_plot

Directories and files after the simulation

example_1>ls -R
.:
CONF  DATA  OUTPUT  OUTSIM

./CONF:
wfc3_abscal_IRg102_0th_sens.fits  wfc3_abscal_IRg102_2nd_sens.fits  WFC3.IR.G102.TV2_sim.conf.simul
wfc3_abscal_IRg102_1st_sens.fits  WFC3.IR.G102.TV2_sim.conf

./DATA:
example_1_MOT.dat

./OUTPUT:

./OUTSIM:
example_1_MOT_slitless_2.SPC.fits  example_1_MOT_slitless_2.STP.fits  example_1_MOT_slitless.fits

7#7

The simulation results

As already mentioned in Sect. 1.2, aXeSIM collects all output in the directory AXE_OUTSIM_PATH, which is ./OUTSIM in this example. This result comprises in detail: Figure 3.1 displays the main results of the example, the simulated slitless image (left) and the extracted spectrum (right). The blue line marks the ``input spectrum'', which is a flat spectrum at the value 8#8 corresponding to the given AB-magnitude ( 9#9).

Some annotations


Example 2

Simulation details

instrument: WFC3/IR G102
# of objects: 1
object spectrum: spectral energy distribution defined by several magnitude values
object brightness: defined by several magnitude values
flux normalization: not required
object shape template image
default extraction YES
direct image YES, filter: wfc3_ir_f105w_tpass_m01.dat

Directories and files before the simulation

~>ls -R
.:
CONF  DATA  OUTPUT  OUTSIM  SIMDATA  template_images.lis

./CONF:
wfc3_abscal_IRg102_0th_sens.fits  wfc3_abscal_IRg102_2nd_sens.fits
wfc3_abscal_IRg102_1st_sens.fits  WFC3.IR.G102.TV2_sim.conf

./DATA:
example_2_MOT.dat

./OUTPUT:

./OUTSIM:

./SIMDATA:
spiral_1.fits            wfc3_ir_f105w_tpass_m01.dat
WFC3_IR_1400nm_psf.fits  WFC3_UVIS_350nm_psf.fits
WFC3_IR_950nm_psf.fits

~>setenv AXE_IMAGE_PATH ./DATA
~>setenv AXE_OUTPUT_PATH ./OUTPUT
~>setenv AXE_CONFIG_PATH ./CONF
~>setenv AXE_SIMDATA_PATH ./SIMDATA
~>setenv AXE_OUTSIM_PATH ./OUTSIM

The Model Object Table example_2_MOT.dat

# 1  NUMBER
# 2  X_IMAGE
# 3  Y_IMAGE
# 4  A_IMAGE
# 5  B_IMAGE
# 6  THETA_IMAGE
# 7  MAG_F432W
# 8  MAG_F592W
# 9  MAG_F769W
# 10 MAG_F906W
# 11 MAG_F1123W
# 12 MAG_F1603W
# 13 MODIMAGE
  269  312.0  512.0  8.0  8.0  90.0  22.984  22.163  21.890  21.807  22.027  21.788 4

The Image Template List template_images.lis

~> more template_images.lis
WFC3_IR_1400nm_psf.fits
WFC3_IR_950nm_psf.fits
WFC3_UVIS_350nm_psf.fits
spiral_1.fits

The simulation command

--> simdata incat='example_2_MOT.dat' config='WFC3.IR.G102.TV2_sim.conf'
inlist_ima='template_images.lis' tpass_direct='wfc3_ir_f105w_tpass_m01.dat'

Figure 3.2: The results of the second simulation: the direct image (left) and the slitless image (right). Both images are displayed with a logarithmic lookup table to enhance the contrast.
Image example2_dir Image example2_disp

Directories and files after the simulation

~> ls -R
.:
CONF  DATA  gaga.txt  OUTPUT  OUTSIM  SIMDATA  template_images.lis

./CONF:
wfc3_abscal_IRg102_0th_sens.fits  WFC3.IR.G102.TV2_sim.conf
wfc3_abscal_IRg102_1st_sens.fits  WFC3.IR.G102.TV2_sim.conf.simul
wfc3_abscal_IRg102_2nd_sens.fits

./DATA:
example_2_MOT.dat  template_images.fits

./OUTPUT:

./OUTSIM:
example_2_MOT_direct.fits          example_2_MOT_slitless.fits
example_2_MOT_slitless_2.SPC.fits  template_images.fits
example_2_MOT_slitless_2.STP.fits

./SIMDATA:
spiral_1.fits            wfc3_ir_f105w_tpass_m01.dat
WFC3_IR_1400nm_psf.fits  wfc3_ir_f105w_tpass_m01.fits
WFC3_IR_950nm_psf.fits   WFC3_UVIS_350nm_psf.fits

Figure 3.3: Left panel: Comparison between the default extracted spectrum (red, solid line) and the input spectrum (dashed, blue line), a spectral energy distribution defined by the AB-magnitude values. Right panel: The image template.
Image example2_plot Image spiral_1

The simulation results

In the Model Object Table, the column MODIMAGE contains the value 4, thus pointing to the fourth entry in the Image Template List. This entry, named spiral_1.fits, is then used as the image template when simulating the direct and dispersed image. The spiral structure of the template image is clearly visible in Figure 3.2, which shows the direct image and the dispersed image on the left and right side, respectively.

In total, the results comprise:

The Model Images template_images.fits is a multi-extension fits image which contains all template images listed in template_images.lis and replicates user input. aXeSIM needs the template images in this compact form and generates this file, hence it is considered as part of the result.

Figure 3.3 shows a comparison of the input spectrum and the default extracted spectrum in the left panel and the image template in the right panel. The input spectral energy distribution is defined by the AB-magnitudes and a linear interpolation in between the values.

Some annotations


Example 3

Simulation details

instrument: WFC3/IR G102
# of objects: 6
object spectrum: high resolution spectra at different redshift
object brightness: defined at 11#11
flux normalization: in 12#12
object shape template image
default extraction YES
direct image YES, filter: wfc3_ir_f110w_tpass_m01.dat

Directories and files before the simulation

example_3> ls -R
.:
CONF  DATA  OUTPUT  OUTSIM  SIMDATA  template_images.lis  template_spectra.lis

./CONF:
wfc3_abscal_IRg102_0th_sens.fits  WFC3.IR.G102.TV2_sim.conf
wfc3_abscal_IRg102_1st_sens.fits
wfc3_abscal_IRg102_2nd_sens.fits

./DATA:
example_3_MOT.dat

./OUTPUT:

./OUTSIM:

./SIMDATA:
s0_template.fits      WFC3_IR_1400nm_big_psf.fits  wfc3_ir_f105w_tpass_m01.dat
starb1_template.fits  WFC3_IR_1400nm_psf.fits      wfc3_ir_f110w_tpass_m01.dat
starb2_template.fits  WFC3_IR_950nm_big_psf.fits   WFC3_UVIS_350nm_psf.fits
starb3_template.fits  WFC3_IR_950nm_psf.fits

example_3>setenv AXE_IMAGE_PATH ./DATA
example_3>setenv AXE_OUTPUT_PATH ./OUTPUT
example_3>setenv AXE_CONFIG_PATH ./CONF
example_3>setenv AXE_OUTSIM_PATH ./OUTSIM
example_3>setenv AXE_SIMDATA_PATH ./SIMDATA

The Model Object Table example_3_MOT.dat

# 1  NUMBER
# 2  X_IMAGE
# 3  Y_IMAGE
# 4  A_IMAGE
# 5  B_IMAGE
# 6  THETA_IMAGE
# 7  MAG_F1155W
# 8  SPECTEMP
# 9  Z
# 10 MODIMAGE
    1  500.0  100.0  1.5  1.5  90.0  20.0     3  0.5     3
    2  500.0  120.0  1.5  1.5  90.0  20.0     3  0.7     3
    3  500.0  140.0  1.5  1.5  90.0  20.0     3  0.9     3
    4  500.0  160.0  1.5  1.5  90.0  20.0     3  1.1     3
    5  500.0  180.0  1.5  1.5  90.0  20.0     3  1.3     3
    6  500.0  200.0  1.5  1.5  90.0  20.0     3  1.5     3

The Image Template List template_images.lis

~> more template_images.lis
WFC3_IR_1400nm_big_psf.fits
WFC3_IR_1400nm_psf.fits
WFC3_IR_950nm_big_psf.fits
WFC3_IR_950nm_psf.fits
WFC3_UVIS_350nm_psf.fits

The Spectrum Template List template_spectra.lis

~> more template_spectra.lis
s0_template.fits
starb1_template.fits
starb2_template.fits
starb3_template.fits
13#13

The simulation command

--> simdata incat='example_3_MOT.dat' config='WFC3.IR.G102.TV2_sim.conf'
utput_root='StarBurst' inlist_spec='template_spectra.lis' tpass_flux='1040,1060'
inlist_ima='template_images.lis' exptime_disp=2000.0 bck_flux_disp=1.0
tpass_direct='wfc3_ir_f110w_tpass_m01.dat' exptime_dir=100.0 bck_flux_dir=0.5

Directories and files after the simulation

~> ls -R
.:
CONF  DATA  OUTPUT  OUTSIM  SIMDATA  template_images.lis  template_spectra.lis

./CONF:
wfc3_abscal_IRg102_0th_sens.fits  WFC3.IR.G102.TV2_sim.conf
wfc3_abscal_IRg102_1st_sens.fits  WFC3.IR.G102.TV2_sim.conf.simul
wfc3_abscal_IRg102_2nd_sens.fits

./DATA:
example_3_MOT.dat  StarBurst_images.fits  StarBurst_spectra.fits

./OUTPUT:

./OUTSIM:
StarBurst_direct.fits  StarBurst_slitless_2.SPC.fits  StarBurst_slitless.fits
StarBurst_images.fits  StarBurst_slitless_2.STP.fits  StarBurst_spectra.fits

./SIMDATA:
s0_template.fits      WFC3_IR_1400nm_big_psf.fits  wfc3_ir_f105w_tpass_m01.dat
starb1_template.fits  WFC3_IR_1400nm_psf.fits      wfc3_ir_f110w_tpass_m01.dat
starb2_template.fits  WFC3_IR_950nm_big_psf.fits   wfc3_ir_f110w_tpass_m01.fits
starb3_template.fits  WFC3_IR_950nm_psf.fits       WFC3_UVIS_350nm_psf.fits
Figure 3.4: The results of the third simulation: the direct image (left) and the slitless image (right). Only a cutout image of 1#1 pix and 2#2pix around the simulated objects is shown for the direct and slitless image, respectively.
Image example3_dir Image example3_disp

The simulation results

The six objects simulated in this example all use the same model image, which is a WFC/IR PSF at 14#14. All objects are based on the identical high resolution spectral template starb2_template.fits, however the template is shifted to different redshift values prior to simulating the images.

Figure 3.4 shows the direct image and the slitless image in the left and right panel, respectively. As the redshift increases from bottom to top, the emission lines are shifted to longer wavelengths (to the right).

In total, the results comprise:

All results start with the string given in the simdata parameter output_root. Before simulating the direct and slitless images, the template spectra are shifted in redshift and in flux. These spectra are stored in the Model Spectra file StarBurst_spectra.fits. The column MODSPEC, which simdata appends to the Model Object Table, contains for each object the corresponding extension in the Model Spectra file.

Figure 3.5 shows a comparison between the default extracted spectra from StarBurst_slitless_2.SPC.fits and their corresponding extension in StarBurst_spectra.fits for all objects in this example. The blue, dashed line marks the template, and the red, solid line the extracted spectrum. The green point marks the wavelength and normalization flux value, the black bar indicates the wavelength interval used for the flux normalization.

Figure 3.5: Comparison between the default extracted spectrum (red, solid line) and the simulated spectrum (dashed, blue line). The green point marks the flux normalization value, and the black bar the wavelength interval for the flux normalization.
Image example3_plot

Some annotations


Example 4

Simulation details

instrument: WFC3/IR G141
# of objects: 14
object spectrum: high resolution spectra and spectral energy distributions
object brightness: defined at 11#11
flux normalization: filter: wfc3_ir_f105w_tpass_m01.dat
object shape template images and Gaussian shapes
default extraction YES
direct image YES, filter: wfc3_ir_f105w_tpass_m01.dat

Directories and files before the simulation

example_4>ls -R
.:
CONF  DATA  OUTPUT  OUTSIM  SIMDATA  template_images.lis  template_spectra.lis

./CONF:
wfc3_abscal_IRg141_0th_sens.fits  wfc3_abscal_IRg141_3rd_sens.fits
wfc3_abscal_IRg141_1st_sens.fits  WFC3.IR.G141.TV2_sim.conf
wfc3_abscal_IRg141_2nd_sens.fits

./DATA:
example_4_MOT.dat

./OUTPUT:

./OUTSIM:
ObjMix_direct.fits  ObjMix_slitless_2.SPC.fits  ObjMix_slitless.fits
ObjMix_images.fits  ObjMix_slitless_2.STP.fits  ObjMix_spectra.fits

./SIMDATA:
Mann_E.dat            starb3_template.fits         WFC3_IR_950nm_psf.fits
Mann_S0.dat           WFC3_IR_1400nm_big_psf.fits  wfc3_ir_f105w_tpass_m01.dat
starb1_template.fits  WFC3_IR_1400nm_psf.fits      wfc3_ir_f110w_tpass_m01.dat
starb2_template.fits  WFC3_IR_950nm_big_psf.fits   WFC3_UVIS_350nm_psf.fits

example_4>setenv AXE_IMAGE_PATH ./DATA
example_4>setenv AXE_OUTPUT_PATH ./OUTPUT
example_4>setenv AXE_CONFIG_PATH ./CONF
example_4>setenv AXE_OUTSIM_PATH ./OUTSIM
example_4>setenv AXE_SIMDATA_PATH ./SIMDATA

The Model Object Table example_2_MOT.dat after a simdata run

Unlike the previous examples, we have listed here the Model Object Table as it looks after the execution of simdata. During the simulations, the columns #11-#16 were appended. No original table entry in #1-#10 was modified.
# 1  NUMBER
# 2  X_IMAGE
# 3  Y_IMAGE
# 4  A_IMAGE
# 5  B_IMAGE
# 6  THETA_IMAGE
# 7  MAG_F1155W
# 8  SPECTEMP
# 9  Z
# 10 MODIMAGE
# 11 MODSPEC
# 12 A_WORLD
# 13 B_WORLD
# 14 THETA_WORLD
# 15 X_WORLD
# 16 Y_WORLD
    1  450.0  170.0  1.6  1.3  270.0  21.0     0  0.0     0     0  1.600000e+00  1.300000e+00  2.700000e+02  5.320378e+01 -2.778795e+01
    2  460.0  110.0  1.5  1.2  45.0  21.0     0  0.0     0     0  1.500000e+00  1.200000e+00  4.500000e+01  5.320448e+01 -2.778852e+01
    3  450.0  130.0  1.9  1.5 -70.0  21.0     5  2.0     3     1  1.900000e+00  1.500000e+00 -7.000000e+01  5.320431e+01 -2.778826e+01
    4  450.0  80.0  1.5  1.5  90.0  21.0     0  0.0     0     0  1.500000e+00  1.500000e+00  9.000000e+01  5.320497e+01 -2.778865e+01
    5  500.0  95.0  1.5  1.5  90.0  20.0     3  0.5     1     2  1.500000e+00  1.500000e+00  9.000000e+01  5.320429e+01 -2.778908e+01
    6  500.0  120.0  1.5  1.5  90.0  20.0     0  0.7     1     0  1.500000e+00  1.500000e+00  9.000000e+01  5.320396e+01 -2.778888e+01
    7  650.0  105.0  2.5  1.5   0.0  21.5     0  0.0     0     0  2.500000e+00  1.500000e+00  0.000000e+00  5.320272e+01 -2.779064e+01
    8  350.0  150.0  1.5  1.0  90.0  21.5     0  0.0     0     0  1.500000e+00  1.000000e+00  9.000000e+01  5.320500e+01 -2.778701e+01
    9  550.0  220.0  1.5  1.5  10.0  21.5     0  0.0     0     0  1.500000e+00  1.500000e+00  1.000000e+01  5.320217e+01 -2.778866e+01
   10  50.0  105.0  1.5  1.5  135.0  21.5     0  0.0     0     0  1.500000e+00  1.500000e+00  1.350000e+02  5.320847e+01 -2.778407e+01
   11  510.0  140.0  1.5  1.5  90.0  20.0     2  0.9     1     3  1.500000e+00  1.500000e+00  9.000000e+01  5.320360e+01 -2.778884e+01
   12  490.0  160.0  1.5  1.5  90.0  20.0     5  2.1     1     4  1.500000e+00  1.500000e+00  9.000000e+01  5.320353e+01 -2.778846e+01
   13  570.0  177.0  1.5  1.5  90.0  20.0     4  1.3     0     5  1.500000e+00  1.500000e+00  9.000000e+01  5.320254e+01 -2.778921e+01
   14  400.0  212.0  1.5  1.5  90.0  20.0     1  1.5     1     6  1.500000e+00  1.500000e+00  9.000000e+01  5.320371e+01 -2.778707e+01

Figure 3.6: The image results of the fourth simulation: the slitless image (left) and the direct image. Only coutouts of 3#3pix and 4#4pix centered on the objects are shown.
Image example4_disp Image example4_dir

The Image Template List template_images.lis

-> more template_images.lis
WFC3_IR_1400nm_big_psf.fits
WFC3_IR_1400nm_psf.fits
WFC3_IR_950nm_big_psf.fits
WFC3_IR_950nm_psf.fits
WFC3_UVIS_350nm_psf.fits

The Spectrum Template List template_spectra.lis

-> more template_spectra.lis
Mann_S0.dat
starb1_template.fits
starb2_template.fits
starb3_template.fits
Mann_E.dat

The simulation command

--> simdata incat='example_4_MOT.dat' config='WFC3.IR.G141.TV2_sim.conf' output_root='ObjMix'
inlist_spec='template_spectra.lis' tpass_flux='wfc3_ir_f110w_tpass_m01.dat'
inlist_ima='template_images.lis' exptime_disp=2000.0 bck_flux_disp=1.4
tpass_direct='wfc3_ir_f105w_tpass_m01.dat' exptime_dir=100.0 bck_flux_dir=0.7

Directories and files after the simulation

example_4>ls -R
.:
CONF  DATA  OUTPUT  OUTSIM  SIMDATA  template_images.lis  template_spectra.lis

./CONF:
wfc3_abscal_IRg141_0th_sens.fits  wfc3_abscal_IRg141_3rd_sens.fits
wfc3_abscal_IRg141_1st_sens.fits  WFC3.IR.G141.TV2_sim.conf
wfc3_abscal_IRg141_2nd_sens.fits  WFC3.IR.G141.TV2_sim.conf.simul

./DATA:
example_4_MOT.dat  ObjMix_images.fits  ObjMix_spectra.fits

./OUTPUT:

./OUTSIM:
ObjMix_direct.fits  ObjMix_slitless_2.SPC.fits  ObjMix_slitless.fits
ObjMix_images.fits  ObjMix_slitless_2.STP.fits  ObjMix_spectra.fits

./SIMDATA:
Mann_E.dat            WFC3_IR_1400nm_big_psf.fits  wfc3_ir_f105w_tpass_m01.fits
Mann_S0.dat           WFC3_IR_1400nm_psf.fits      wfc3_ir_f110w_tpass_m01.dat
starb1_template.fits  WFC3_IR_950nm_big_psf.fits   WFC3_UVIS_350nm_psf.fits
starb2_template.fits  WFC3_IR_950nm_psf.fits
starb3_template.fits  wfc3_ir_f105w_tpass_m01.dat

Figure 3.7: Comparison between the default extracted spectra (red, solid line) and the simulated spectrum (dashed, blue line) for selected objects.
Image example4_plot

The simulation results

Technically, this example only shows cases which had been already presented in the previous examples. The main issue here is to illustrate a mix of object definitions with various complexity.

The simplest object characterization using Gaussian shapes and a spectral energy distribution using at least one AB-magnitude value is always possible (see objects #1, #2, #7-10) and achieved by entering ``0'' in the columns SPECTEMP and MODIMAGE. Beyound that it is possible to mix these simple objects with objects that have a template image (#6) with (e.g. #3, #5, #11) or without (#13) a high resolution template spectrum.

A simulation as shown here represents a typical mix of some primary targets together with many other, rather poorly defined surrounding objects.

In total, the results comprise:

Some annotations


next up previous contents index
Next: The aXeSIM tasks Up: aXeSIM manual Previous: Installing aXeSIM   Contents   Index
Martin Kuemmel 2007-11-28