rnsf

Define and load a phase function data format
git clone git://git.meso-star.fr/rnsf.git
Log | Files | Refs | README | LICENSE

commit 1bad3b95b3787bc7e6e4a8ac885965b4e2059478
parent 470e056d2de157141d8da995b08624df34c02aaf
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed,  6 Jul 2022 12:45:48 +0200

Minor upd of the file format

Diffstat:
Mdoc/rnsf.5.scd | 20++++++++++----------
Msrc/rnsf.c | 2+-
2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/doc/rnsf.5.scd b/doc/rnsf.5.scd @@ -69,10 +69,10 @@ only of spaces and tabs. --- -<phase-func> ::= <phase-func-hg> +<phase-func> ::= <phase-func-HG> | <phase-func-discrete> -<phase-func-hg> ::= hg <asymmetric-param> +<phase-func-HG> ::= HG <asymmetric-param> <asymmetric-param> ::= REAL # in [-1, 1] <phase-func-discrete> ::= discrete <angles-count> @@ -95,7 +95,7 @@ a band for long waves with a discretized phase function on 4 angles: bands 2 # Visible part -380 780 hg 0 +380 780 HG 0 # Inrared 1000 100000 discrete 4 @@ -131,11 +131,11 @@ wavelengths 10 3.14159 0.079577 # Long waves -1100 hg -0.1 -1300 hg 0.57 -1400 hg 0.4 -2100 hg 0.3 -2500 hg -0.9 -2900 hg -0.4 -100000 hg 0.0 +1100 HG -0.1 +1300 HG 0.57 +1400 HG 0.4 +2100 HG 0.3 +2500 HG -0.9 +2900 HG -0.4 +100000 HG 0.0 ``` diff --git a/src/rnsf.c b/src/rnsf.c @@ -300,7 +300,7 @@ parse_phase_fn goto error; } - if(!strcmp(tk, "hg")) { + if(!strcmp(tk, "HG")) { phase->type = RNSF_PHASE_FN_HG; res = parse_phase_fn_hg(rnsf, txtrdr, tk_ctx, &phase->param.hg); if(res != RES_OK) goto error;