commit 4372dbd4a0207c624b42ab6d77aa1d1fd1143202
parent 8d2f792ff7a3c92aa13870ca722c0b922317043d
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 11 Aug 2025 15:41:46 +0200
Update the smeteo utility to display new data
Also print the albedo, longitude, and latitude of the geographic
position.
Diffstat:
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/doc/smeteo.1 b/doc/smeteo.1
@@ -34,11 +34,13 @@ Loads a
file and displays information about it.
If no file is provided, data is read from standard input.
.Pp
-On output, it displays the number of meteorological entries loaded and
-the name of the file from which they were loaded.
+On output, it displays the ground albedo, the longitude and latitude in
+degrees of the corresponding geographical position, the number of its
+meteorological entries loaded and the name of the file from which they
+were loaded.
The message is formatted as follows:
.Bd -literal -offset Ds
-"%s %s\\n", entry_count, file
+"%f %f %f %lu %s\\n", albedo, longitude, latitude, entry_count, file
.Ed
.Pp
The options are as follows:
diff --git a/src/smeteo_main.c b/src/smeteo_main.c
@@ -106,7 +106,8 @@ print_info(struct cmd* cmd)
ASSERT(cmd);
SMETEO(get_desc(cmd->smeteo, &desc));
- printf("%lu %s\n", desc.nentries, desc.filename);
+ printf("%f %f %f %lu %s\n",
+ desc.albedo, desc.longitude, desc.latitude, desc.nentries, desc.filename);
}
static res_T