star-aerosol

Describe the radiative properties of aerosols
git clone git://git.meso-star.fr/star-aerosol.git
Log | Files | Refs | README | LICENSE

commit 22a35fcfe6e58cbb1bf044bea3da763e6c3b513f
parent c53431b18cec61a7d61f1858763f0c9ff0aebff4
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Tue, 30 Aug 2022 11:21:36 +0200

Spectral bands are defined in nanometers

Diffstat:
Mdoc/sars.5.scd | 6+++---
Msrc/sars.h | 6+++---
Msrc/sars_c.h | 4++--
3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/doc/sars.5.scd b/doc/sars.5.scd @@ -41,7 +41,7 @@ coefficients are attached. After the header comes the list of spectral bands sorted in ascending order relative to their interval. Each spectral band is defined by 2 double-precision floating-point numbers that represent the lower and upper limits of the band in -cm^-1. +nanometers. Fill bytes follow the list of spectral bands to ensure alignment of the radiative coefficients on _pagesize_. By aligning data on _pagesize_, and @@ -74,8 +74,8 @@ significant bytes are stored first. <band> ::= <band-low> <band-upp> <band-id> ::= UINT64 -<band-low> ::= DOUBLE # In cm^-1 -<band-upp> ::= DOUBLE # In cm^-1 +<band-low> ::= DOUBLE # In nm (inclusive) +<band-upp> ::= DOUBLE # In nm (exclusive) --- diff --git a/src/sars.h b/src/sars.h @@ -50,8 +50,8 @@ static const struct sars_create_args SARS_CREATE_ARGS_DEFAULT = SARS_CREATE_ARGS_DEFAULT__; struct sars_band { - double lower; /* Lower band wavenumber in cm^-1 (inclusive) */ - double upper; /* Upper band wavenumber in cm^-1 (exclusive) */ + double lower; /* Lower band wavelength in nm (inclusive) */ + double upper; /* Upper band wavelength in nm (exclusive) */ size_t id; float* ks_list; /* Per node ks */ @@ -110,7 +110,7 @@ sars_get_band SARS_API res_T sars_find_bands (const struct sars* sars, - const double range[2], /* In cm^-1. Limits are inclusive */ + const double range[2], /* In nm. Limits are inclusive */ size_t ibands[2]); /* Range of overlaped bands. Limits are inclusive */ #endif /* SARS_H */ diff --git a/src/sars_c.h b/src/sars_c.h @@ -21,8 +21,8 @@ #include <rsys/ref_count.h> struct band { - double low; /* Lower bound in cm^-1 (inclusive) */ - double upp; /* Upper bound in cm^⁻1 (exclusive) */ + double low; /* Lower bound in nm (inclusive) */ + double upp; /* Upper bound in nm (exclusive) */ size_t map_len; float* ka_list; float* ks_list;