From e4cb2bba24f0b27957c6290faeec0c2e11c02352 Mon Sep 17 00:00:00 2001 From: XANTRONIX Industrial Date: Mon, 24 Feb 2025 23:22:48 -0500 Subject: [PATCH] Strip trailing whitespace from IGRA station values --- lib/xmet/igra.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/xmet/igra.py b/lib/xmet/igra.py index ce8d332..d6c93d8 100644 --- a/lib/xmet/igra.py +++ b/lib/xmet/igra.py @@ -205,11 +205,11 @@ class IGRAStation(DatabaseTable): lon = float(cols(line, 22, 30)) station = IGRAStation() - station.code = cols(line, 1, 11) + station.code = cols(line, 1, 11).rstrip() station.year_start = int(cols(line, 73, 76)) station.year_end = int(cols(line, 78, 81)) - station.name = cols(line, 42, 71) - station.state = cols(line, 39, 40) + station.name = cols(line, 42, 71).rstrip() + station.state = cols(line, 39, 40).rstrip() station.elevation = float(cols(line, 32, 37)) station.location = shapely.Point(lon, lat)