commit c5300900828bcb39f5e83bfbc5609c0421a726a5
parent 55edd511fab5968107519a1648665a43d703c7b6
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 5 Jun 2020 10:56:47 +0200
Merge branch 'release_0.2' into develop
Diffstat:
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
@@ -48,9 +48,21 @@ for further informations on CMake.
## Release notes
+### Version 0.2
+
+- Make uniform the sky setup in shortwave and in longwave. On sky creation, the
+ caller now defines the type of the spectral data to handle (i.e. shortwave
+ or longwave) and their wavelength range. The `double wlen_lw_range[2]` member
+ variable of the `struct htsky_args` data structure is thus renamed in `double
+ wlen_range[2]` and is used in both cases. Finally the new member variable
+ `enum htsky_spectral_type spectral_type` defines the type of this spectral
+ range.
+- Add the `htsky_get_raw_spectral_bounds` function that returns the spectral
+ range of the loaded sky data overlapped by the user define wavelength range.
+
### Version 0.1
-- Add the support of long waves. Add the `double wlen_lw_range[2]` member
+- Add longwave support. Add the `double wlen_lw_range[2]` member
variable to the `struct htsky_args` data structure that, once correctly
defined, is used to setup the sky data for the provided long wave range. By
default this range is degenerated meaning that the sky is setup for the short
diff --git a/src/htsky.h b/src/htsky.h
@@ -214,8 +214,8 @@ htsky_get_spectral_band_bounds
const size_t iband,
double wavelengths[2]);
-/* Retrieve the boundaries raw sky data overlapped. This range is NOT clamped
- * against the user defined spectral range */
+/* Retrieve the spectral range of the loaded sky data overlapped by the user
+ * defined wavelength range. */
HTSKY_API res_T
htsky_get_raw_spectral_bounds
(const struct htsky* sky,