Strip trailing whitespace from IGRA station values

This commit is contained in:
XANTRONIX 2025-02-24 23:22:48 -05:00
parent c2e0cf4488
commit e4cb2bba24

View file

@ -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)