The software package is currently being dramatically improved and updated.
This is a (very) old version, potentially with bugs.
Shapelets web page | Shapelets IDL code | Installation | Help pages | Simulated images |
---|---|---|---|---|
List of routines | ||||
Instrutions for general code | ||||
Instructions for image simulation code |
This routine takes a shapelet catalogue, and lays down the objects within a blank image array. It ouputs the image as image.fits, and a faked SExtractor file image.sex containing each object's (known) input position, size, magnitude, ellipticity and star/galaxy classification. The image's header also contains a lot of information concerning the number and type of the simulated objects. This routine can be called from a shell prompt via the generate_simage script.
Note that the input shapelet catalogue could be either a catalogue containing morphed, new objects created by simage_generate_shapecat.pro, or the catalogue of a real image. I recreated both HDFs exactly, as a test of the method. To do this, ensure that the /RPOS flag is not used. This (re-)randomises the positions and orientations of objects in the input catalogue.
The new image can contain galaxies created from either a full shapelet model (c.f. simage_make_shapelet_object.pro), or just an analytic radial profile (c.f. simage_make_analytic_object.pro), with elliptical isophotes. I've been using this option to test shapelet-based shear measurement methods without biases created by measuring shear from a shapelet model by using a shapelet model. I don't know if it will be of any use, but I've left it in just in case. Weak gravitational lensing shear can be added to the simulated image, at a constant value across the field, with the input parameter gamma.
The subroutine simage_locate_object adds a postage stamp image containing one object to the overall image, making sure that the postage stamp is truncated at the same places as the edges of the full image. More information about the subroutines is available in their individual headers, within the source code for this routine. The subroutine simage_star_magnitude_distribution generates a random flux level for stars in the image. The stars will follow the stellar luminosity function measured at the galactic poles and tabulated in Allen's astrophysical quantities. Note that the overall number density of stars (and galaxies) is a user input, as is the overall size of the simulated image. Only the slope of the number counts is guaranteed to be correct (but in the case of the galaxies, depends upon the slope of the number counts in the input shapelet catalogue). The default values create an image with the same number of pixels and object number density as the Hubble Deep Fields.
See also the header below, which has been extracted from the source code for this routine.
Return to the shapelets web page or the code help menu.
Last modified on 02nd May 2008 by Richard Massey. |