aboutsummaryrefslogtreecommitdiff
path: root/src/pattern_sim.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2009-12-04 10:48:43 +0100
committerThomas White <taw@physics.org>2009-12-04 10:48:43 +0100
commit6a378dfb14c8f3d539e93b01c8c5dda77350070a (patch)
tree10b3c1663d458b9c784595b69976ab01a0f4455f /src/pattern_sim.c
parent903d944cb22d818096e8bba23274a18902396e4c (diff)
Add --no-bloom option
Diffstat (limited to 'src/pattern_sim.c')
-rw-r--r--src/pattern_sim.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c
index 0c5350a8..6755f53e 100644
--- a/src/pattern_sim.c
+++ b/src/pattern_sim.c
@@ -43,8 +43,16 @@ static void show_help(const char *s)
" --no-images Do not output any HDF5 files.\n"
" -r, --random-orientation Use a randomly generated orientation\n"
" (a new orientation will be used for each image).\n"
+"\n"
+"By default, the simulation aims to be as accurate as possible. For greater\n"
+"speed, or for testing, you can choose to disable certain things using the\n"
+"following options.\n"
+"\n"
" --no-water Do not simulate water background.\n"
" --no-noise Do not calculate Poisson noise.\n"
+" --no-bloom Do not calculate CCD bloom (intensities which are\n"
+" above the recordable range will be clamped to\n"
+" the maximum allowable value).\n"
);
}
@@ -144,6 +152,7 @@ int main(int argc, char *argv[])
int config_noimages = 0;
int config_nowater = 0;
int config_nonoise = 0;
+ int config_nobloom = 0;
int number = 1; /* Index for the current image */
int n_images = 1; /* Generate one image by default */
int done = 0;
@@ -158,6 +167,7 @@ int main(int argc, char *argv[])
{"no-images", 0, &config_noimages, 1},
{"no-water", 0, &config_nowater, 1},
{"no-noise", 0, &config_nonoise, 1},
+ {"no-bloom", 0, &config_nobloom, 1},
{0, 0, NULL, 0}
};
@@ -233,7 +243,8 @@ int main(int argc, char *argv[])
image.hdr = NULL;
get_diffraction(&image);
- record_image(&image, !config_nowater, !config_nonoise);
+ record_image(&image, !config_nowater, !config_nonoise,
+ !config_nobloom);
if ( config_nearbragg ) {
output_intensities(&image);