commit f59118cfe114476510cff14be2cd14742e3bd982
parent 2d96123a255df15297e367eb1f221ae48e85da20
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 27 May 2020 16:04:12 +0200
Rename "<long|short> wave" in "<long|short>wave"
Diffstat:
3 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/doc/htrdr.1.txt.in b/doc/htrdr.1.txt.in
@@ -53,7 +53,7 @@ computation is performed over the visible part of the spectrum in [380, 780]
nanometers, for the three components of the CIE 1931 XYZ colorimetric space
that are subsequently recombined in order to obtain the final color for each
pixel, and finally the whole image of the scene as seen from the set
-observation position. In long waves, the rendering is performed for the range
+observation position. In longwave, the rendering is performed for the range
of wavelengths defined by the *-l* option. The estimated radiance per pixel is
then converted to its brightness temperature and both are saved in the output
image.
@@ -141,13 +141,13 @@ OPTIONS
Number of samples per pixel estimation. In regular image rendering, a pixel
will use "3 * _samples-count_" Monte-Carlo realisations, one set of
_samples-count_ realisations for each X, Y and Z component of the CIE 1931
- XYZ color space. In long wave rendering (*-l* option) only one set of
+ XYZ color space. In longwave rendering (*-l* option) only one set of
_samples-count_ is used to estimate the pixel radiance and the resulting
brightness temperature for the submitted range of wavelengths. By default,
*spp* is set to @HTRDR_ARGS_DEFAULT_IMG_SPP@.
*-l* __wlen-min__,__wlen-max__::
- Switch in infrared rendering for the long wave interval in [__wlen-min__,
+ Switch in infrared rendering for the longwave interval in [__wlen-min__,
__wlen-max__] nanometers.
*-R*::
diff --git a/src/htrdr_args.c b/src/htrdr_args.c
@@ -62,7 +62,7 @@ print_help(const char* cmd)
" page for the list of image options\n");
printf(
" -l WLEN_MIN,WLEN_MAX\n"
-" switch in infrared rendering for the long waves in\n"
+" switch in infrared rendering for longwave in\n"
" [WLEN_MIN, WLEN_MAX], in nanometers. By default, the\n"
" rendering is performed for the visible part of the\n"
" spectrum in [380, 780] nanometers.\n");
@@ -377,7 +377,7 @@ parse_lw_range(struct htrdr_args* args, const char* str)
if(res == RES_OK && len != 2) res = RES_BAD_ARG;
if(res == RES_OK && range[0] > range[1]) res = RES_BAD_ARG;
if(res != RES_OK) {
- fprintf(stderr, "Invalid long wave range `%s'.\n", str);
+ fprintf(stderr, "Invalid longwave range `%s'.\n", str);
goto error;
}
diff --git a/src/htrdr_ran_lw.c b/src/htrdr_ran_lw.c
@@ -59,14 +59,14 @@ setup_ran_lw_cdf
res = darray_double_resize(&ran_lw->cdf, ran_lw->nbands);
if(res != RES_OK) {
htrdr_log_err(ran_lw->htrdr,
- "%s: Error allocating the CDF of the long wave spectral bands -- %s.\n",
+ "%s: Error allocating the CDF of the longwave spectral bands -- %s.\n",
func_name, res_to_cstr(res));
goto error;
}
res = darray_double_resize(&ran_lw->pdf, ran_lw->nbands);
if(res != RES_OK) {
htrdr_log_err(ran_lw->htrdr,
- "%s: Error allocating the pdf of the long wave spectral bands -- %s.\n",
+ "%s: Error allocating the pdf of the longwave spectral bands -- %s.\n",
func_name, res_to_cstr(res));
goto error;
}
@@ -75,10 +75,10 @@ setup_ran_lw_cdf
pdf = darray_double_data_get(&ran_lw->pdf); /* Now save pdf to correct weight */
htrdr_log(ran_lw->htrdr,
- "Number of bands of the long wave cumulative: %lu\n",
+ "Number of bands of the longwave cumulative: %lu\n",
(unsigned long)ran_lw->nbands);
- /* Compute the *unormalized* probability to sample a long wave band */
+ /* Compute the *unormalized* probability to sample a longwave band */
FOR_EACH(i, 0, ran_lw->nbands) {
double lambda_lo = ran_lw->range[0] + (double)i * ran_lw->band_len;
double lambda_hi = MMIN(lambda_lo + ran_lw->band_len, ran_lw->range[1]);
@@ -285,7 +285,7 @@ htrdr_ran_lw_create
if(!ran_lw) {
res = RES_MEM_ERR;
htrdr_log_err(htrdr,
- "%s: could not allocate long wave random variate data structure -- %s.\n",
+ "%s: could not allocate longwave random variate data structure -- %s.\n",
FUNC_NAME, res_to_cstr(res));
goto error;
}