Compare commits
No commits in common. "3d21477330e52ae9fa888469d9f6661d9c558148" and "2fdcf821a593f127a27de9e5dd26d9490b9e3b80" have entirely different histories.
3d21477330
...
2fdcf821a5
2 changed files with 3 additions and 4 deletions
|
@ -31,8 +31,7 @@ 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)
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import io
|
import io
|
||||||
import re
|
import re
|
||||||
|
import enum
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
from xmet.util import each_chunk
|
from xmet.util import each_chunk
|
||||||
|
@ -37,8 +38,7 @@ class RAOBObs():
|
||||||
return datetime.datetime(
|
return datetime.datetime(
|
||||||
year = now.year,
|
year = now.year,
|
||||||
month = now.month,
|
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):
|
def parse_temp_dewpoint(self, token: str):
|
||||||
|
|
Loading…
Add table
Reference in a new issue