Ensure soundings from RAOB files have location
This commit is contained in:
parent
27dff00c9d
commit
3d21477330
1 changed files with 2 additions and 1 deletions
|
@ -31,7 +31,8 @@ for path in getattr(args, 'raob-sounding-file'):
|
||||||
station = IGRAStation.find_station(db, sounding.station)
|
station = IGRAStation.find_station(db, sounding.station)
|
||||||
|
|
||||||
if station is not None:
|
if station is not None:
|
||||||
sounding.station = station.code
|
sounding.station = station.code
|
||||||
|
sounding.location = station.location
|
||||||
|
|
||||||
if not args.dry_run:
|
if not args.dry_run:
|
||||||
db.add(sounding)
|
db.add(sounding)
|
||||||
|
|
Loading…
Add table
Reference in a new issue