Compare commits

..

3 commits

2 changed files with 4 additions and 3 deletions

View file

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

View file

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