Commit 3e2692b7 authored by Franco Mele's avatar Franco Mele
Browse files

corretto un errore sull'assenza di un token

parent faf7ff6f
IN DATA 3-nov-2020 per la REVISIONE: IN DATA 3-nov-2020 per la REVISIONE:
chiedono di spostare le 3 legende nell'angolo in alto a destra. chiedono di spostare le 3 legende nell'angolo in alto a destra.
Modifico make_qual2 in make_qual3 Modifico make_qual2 in make_qual3
Per il bollettino del 2015 uso: Per il bollettino del 2015 uso:
$ ./make_qual3 20150101_20151231_quality.txt file_2015.ps RdYlBu_10.cpt $ ./make_qual3 20150101_20151231_quality.txt file_2015.ps RdYlBu_10.cpt
...@@ -203,12 +203,17 @@ def main(): ...@@ -203,12 +203,17 @@ def main():
print("NULL") print("NULL")
deperr = 5.0 deperr = 5.0
if(event["origin"]["originUncertainty"].get("horizontalUncertainty")): if(event["origin"].get("originUncertainty")):
errh = float(event["origin"]["originUncertainty"]["horizontalUncertainty"]) / 1000.0 # da metri a km
print("horiz. uncert: ", errh) if(event["origin"]["originUncertainty"].get("horizontalUncertainty")):
errh = float(event["origin"]["originUncertainty"]["horizontalUncertainty"]) / 1000.0 # da metri a km
print("horiz. uncert: ", errh)
else:
print("NULL")
errh = 5.0
else: else:
print("NULL") errh = 5.0
errh = 5.0
if(event["origin"]["quality"].get("usedStationCount")): if(event["origin"]["quality"].get("usedStationCount")):
usedsta = float(event["origin"]["quality"]["usedStationCount"]) usedsta = float(event["origin"]["quality"]["usedStationCount"])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment