commit 9c8dcc3058076fa90fd01fc7fa57913f61a05a8b parent 61009083ef94d75e8bde0591c2f60a75c1f6b934 Author: Vincent Forest <vincent.forest@meso-star.com> Date: Wed, 13 Aug 2025 09:40:22 +0200 Check for errors when loading a non-constant duration The duration of the time intervals must be the same. Diffstat:
| M | Makefile | | | 3 | ++- |
| A | samples/variable_time_period.txt | | | 8 | ++++++++ |
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile @@ -177,7 +177,8 @@ TEST_FILES_INVALID =\ samples/invalid_H.txt\ samples/invalid_LE.txt\ samples/invalid_day_1850.txt\ - samples/missing_data.txt + samples/missing_data.txt\ + samples/variable_time_period.txt INCS_TEST = $$($(PKG_CONFIG_LOCAL) $(PCFLAGS) --cflags rsys smeteo-local.pc) LIBS_TEST = $$($(PKG_CONFIG_LOCAL) $(PCFLAGS) --libs rsys smeteo-local.pc) diff --git a/samples/variable_time_period.txt b/samples/variable_time_period.txt @@ -0,0 +1,8 @@ +0.31659812657071051 # Albedo +10.428827285766602 # Longitude [deg] +16.388128280639648 # Latitude [deg] +2 # Time interval count + +# Date Hour Tsrf Tatm Ahum Rhum SWdn direct diffus SWup Trad h LE day/1850 +01-JAN-1850 01:30:00 287.85 289.62 4.23 12.28 0.00 0.00 0.00 0.00 271.21 12.60 0.51 0.0625 +01-JAN-1850 07:30:00 293.25 291.16 0.00 0.00 175.08 175.08 0.00 55.43 268.62 7.32 0.87 0.3125