From 7aa6bbb85557def3cc1bf9deb333e353bd30c4f0 Mon Sep 17 00:00:00 2001 From: Zilog80 Date: Mon, 5 Aug 2019 20:42:11 +0200 Subject: [PATCH] rs41-sgp: Stationsdruck (c.f. https://www.fingers-welt.de/phpBB/viewtopic.php?f=14&t=43&start=2400#p198380) --- README.md | 1 + demod/mod/rs41mod.c | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3cb43f4..fa50dd8 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ wird DFT verwendet). Je nach Empfangsgeraet oder SDR-Software kann das Signal in http://www.fingers-welt.de/phpBB/viewtopic.php?f=14&t=43&start=2300#p193107 https://www.fingers-welt.de/phpBB/viewtopic.php?f=14&t=43&start=2325#p196322 https://www.fingers-welt.de/phpBB/viewtopic.php?f=14&t=43&start=2400#p198064 + https://www.fingers-welt.de/phpBB/viewtopic.php?f=14&t=43&start=2400#p198380 https://www.fingers-welt.de/phpBB/viewtopic.php?f=14&t=43&start=2425#p203315 https://www.fingers-welt.de/phpBB/viewtopic.php?f=14&t=43&start=2825#p235868 https://www.fingers-welt.de/phpBB/viewtopic.php?f=14&t=43&start=2875#p245177 diff --git a/demod/mod/rs41mod.c b/demod/mod/rs41mod.c index ec22b6e..fbc7127 100644 --- a/demod/mod/rs41mod.c +++ b/demod/mod/rs41mod.c @@ -518,7 +518,7 @@ static float get_Tc(gpx_t *gpx, ui32_t f, ui32_t f1, ui32_t f2) { } // rel.hum., capacitor -// (data:) ftp://ftp-cdc.dwd.de/pub/CDC/observations_germany/radiosondes/ +// (data:) ftp://ftp-cdc.dwd.de/climate_environment/CDC/observations_germany/radiosondes/ // (diffAlt: Ellipsoid-Geoid) static float get_RH(gpx_t *gpx, ui32_t f, ui32_t f1, ui32_t f2, float T) { float a0 = 7.5; // empirical @@ -955,6 +955,16 @@ static int get_Calconf(gpx_t *gpx, int out, int ofs) { } if (out && gpx->option.vbs) fprintf(stdout, ": %s ", sondetyp); strcpy(gpx->rstyp, sondetyp); + if (out && gpx->option.vbs == 3) { // Stationsdruck QFE + float qfe1 = 0.0, qfe2 = 0.0; + memcpy(&qfe1, gpx->frame+pos_CalData+1, 4); + memcpy(&qfe2, gpx->frame+pos_CalData+5, 4); + if (qfe1 > 0.0 || qfe2 > 0.0) { + fprintf(stdout, " "); + if (qfe1 > 0.0) fprintf(stdout, "QFE1:%.1fhPa ", qfe1); + if (qfe2 > 0.0) fprintf(stdout, "QFE2:%.1fhPa ", qfe2); + } + } } }