Skip to content

Commit b6777b9

Browse files
committed
close #470
1 parent d0030c7 commit b6777b9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python/borinud/utils/source.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,8 +763,9 @@ def record_to_arkiquery(self, rec):
763763

764764
for k in ["lon", "lat"]:
765765
if k in rec:
766-
q["area"]["fixed"][k] = int(rec[k])
767-
#q["area"]["mobile"][{"lon": "x", "lat": "y"}[k]] = math.floor(rec[k]/100000) #this select one grade box around station
766+
if (rec[k]):
767+
q["area"]["fixed"][k] = int(rec[k])
768+
#q["area"]["mobile"][{"lon": "x", "lat": "y"}[k]] = math.floor(rec[k]/100000) #this select one grade box around station
768769

769770
if "report" in rec:
770771
q["product"] = "BUFR:t={}".format(rec["report"])

0 commit comments

Comments
 (0)