star-meteo

Time varying meteorological data
git clone git://git.meso-star.fr/star-meteo.git
Log | Files | Refs | README | LICENSE

commit 169610a5f1181b25e18012ba9c527c9f65432327
parent c08348126aaa95565cc7f8f7294e2245cf349a7f
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Tue, 12 Aug 2025 17:49:16 +0200

The latent flux can be negative

Diffstat:
Mdoc/smeteo.5 | 4++--
Msrc/smeteo_load.c | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/smeteo.5 b/doc/smeteo.5 @@ -12,7 +12,7 @@ .\" .\" You should have received a copy of the GNU Lesser General Public License .\" along with this program. If not, see <http://www.gnu.org/licenses/>. -.Dd August 11, 2025 +.Dd August 12, 2025 .\"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" .Dt SMETEO 5 .Os @@ -128,7 +128,7 @@ The file format is as follows: .It Ao Va SWup Ac Ta ::= Ta Va real No # ShortWave upward flux [W.m^2] .It Ao Va Trad Ac Ta ::= Ta Va real No # Radiative temperature >0 [K] .It Ao Va h Ac Ta ::= Ta Va real No # Convective coefficent >0 [W/K/m^2] -.It Ao Va LE Ac Ta ::= Ta Va real No # Latent flux >0 [W/m^2] +.It Ao Va LE Ac Ta ::= Ta Va real No # Latent flux [W/m^2] .It Ao Va day/1850 Ac Ta ::= Ta Va real # Time in fraction of day since 1 Jan 1850 .El diff --git a/src/smeteo_load.c b/src/smeteo_load.c @@ -190,7 +190,7 @@ parse_line(struct smeteo* smeteo, struct txtrdr* txtrdr) PARSE_ATTRIB("shortwave upward flux [W/m^2]", SWup, 0, INF); PARSE_ATTRIB("radiative temperature [K]", Trad, 0, INF); PARSE_ATTRIB("convection coefficient [W/K/m^2]", H, -INF, INF); - PARSE_ATTRIB("latent flux [W/m^2]", LE, 0, INF); + PARSE_ATTRIB("latent flux [W/m^2]", LE, -INF, INF); PARSE_ATTRIB("number of days since 1850", day_1850, 0, INF); #undef PARSE_DOUBLE