Compare commits
3 commits
2fdcf821a5
...
3d21477330
Author | SHA1 | Date | |
---|---|---|---|
3d21477330 | |||
27dff00c9d | |||
56986c1369 |
2 changed files with 4 additions and 3 deletions
|
@ -31,7 +31,8 @@ for path in getattr(args, 'raob-sounding-file'):
|
|||
station = IGRAStation.find_station(db, sounding.station)
|
||||
|
||||
if station is not None:
|
||||
sounding.station = station.code
|
||||
sounding.station = station.code
|
||||
sounding.location = station.location
|
||||
|
||||
if not args.dry_run:
|
||||
db.add(sounding)
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import io
|
||||
import re
|
||||
import enum
|
||||
import datetime
|
||||
|
||||
from xmet.util import each_chunk
|
||||
|
@ -38,7 +37,8 @@ class RAOBObs():
|
|||
return datetime.datetime(
|
||||
year = now.year,
|
||||
month = now.month,
|
||||
day = day if day < 51 else day - 50
|
||||
day = day if day < 51 else day - 50,
|
||||
hour = hour
|
||||
)
|
||||
|
||||
def parse_temp_dewpoint(self, token: str):
|
||||
|
|
Loading…
Add table
Reference in a new issue