How to run the gov.fnal.eag.sim demonstration code

  1. Make sure that the java executable is in your path. Use its -version flag to find the version. You need to have version 1.5 or higher for the code to work.
    $ java -version
    java version "1.6.0"
    Java(TM) SE Runtime Environment (build 1.6.0-b105)
    Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
    
  2. Put all of the .jar files in a directory. Here, we assume that you have assigned the variable LIB_DIR to point to that directory.
  3. Put the pauRunner.sh file in a directory that is in your path.
  4. Run the command pauRunner.sh, and see that it tells you this:
    $ pauRunner.sh
    Usage: pauRunner.sh LIB_DIR className [arguments]
    If you want more memory, use -Xmx1000m between LIB_DIR and className to get 1 Gbyte of memory
    
    
  5. Run the class gov.fnal.eag.sim.pixel.MakePixeledImage with the default settings:
    $ pauRunner.sh $LIB_DIR gov.fnal.eag.sim.pixel.MakePixeledImage
    
  6. That made fhe file defaultMakePixeledImage.fit which you can display with ds9.
  7. Run the same program with one additional parameter, which gives the name of the properties file that controls the program. Here are three sample parameter files:
  8. The command to run the ellipses version is this:
    $ pauRunner.sh $LIB_DIR gov.fnal.eag.sim.pixel.MakePixeledImage ellipsesMakePixeledImage.par
    
Here is a description of each parameter in the .par files. If you omit a parameter, the default value will be used. ObjectGrid for a grid of objects; Zucca for galaxies
parameter namedefault valuedescription
a70.0non-linear term for sky to pixel projection
arcsecPerPixel0.1pixel size in arcseconds
baseFileNamedefaultMakePixeledImageoutput file will be have .fit appended to this name
catalogSeedIndex3controls the random number tree that defines the truth catalog
colRef250reference column position in the detector
countsPerSecondAt20th1000the number of counts/second for the telescope+filter+dector for a 20th magnitude object
decBore30.0declination of the center of the focal plane
detectorRotationDegrees0.0rotation of the detector around its reference posision
detectorXPositionMeters0.0location of the detector reference row,col position in the X direction (meters)
detectorYPositionMeters0.0location of the detector reference row,col position in the X direction (meters)
doPoissontruewhether to add poisson noise to the image
expTime100exposure time in seconds
filterNamepegase-rthe name of the filter
gridAbsMags19absolute magnitude of all grid objects
gridCenterDecs30.0declination (degrees) of the grid of objects
gridCenterRas20.0right ascension (degrees) of the grid of objects
gridDeltaArcsecs30separation in arcseconds between grid objects
gridDistancesAreRedshiftsfalsedistances are in redshifts (if true) or pc (if false)
gridLfBandpasspegase-rfilter that defines the luminosity of grid objects
gridObjectReferenceRedshifts10distance to grid objects
gridObjectShapesprofile gauss 0.0 0.0 15defines the shape of grid objects: profile ellipticity theta nShapeletOrders
gridObjectSizeArcsecs0.5scale length of grid objects in arcseconds
gridSEDNamesCWW_E_extspectrum of grid objects
gridSizes3diameter of grid, in number of objects
ImageRepositoryDirectory.where to write the answer
luminosityFunctionNamesObjectGrid
maxRedshifts10.0redshift maximum for objects (use 1.0 for Zucca)
metersPerPixel25e-6pixel size in meters
minRedshifts10.0redshift minimum for objects (use 0.01 for Zucca)
nCol500number of columns in the detector
noiseSeedIndex4defines the tree of random numbers for poisson and read noise
nRow500number of rows in the detector
pixelSizeArcseconds0.25size of the pixels in arcseconds
psfFileNamenullfile name for PSF convolution kernel
raBore20.0right ascension of the center of the focal plane (degrees)
readNoiseElectrons0.0read noise in electrons
rowRef250reference row in the detector
skyMagPerArcsec225.0sky brightness