Strip trailing whitespace from IGRA station values
This commit is contained in:
parent
c2e0cf4488
commit
e4cb2bba24
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue