Commit d878f237 authored by Tianyang's avatar Tianyang

Final version

parent 66bb71c2
No preview for this file type
......@@ -28,7 +28,6 @@ def createMap(data):
"metar", "mslp", "p01i", "peak_wind_drct", "peak_wind_gust", "peak_wind_time", "relh", "sknt",
"skyc1", "skyc2", "skyc3", "skyc4", "skyl1", "skyl2", "skyl3", "skyl4", "tmpf", "vsby", "wxcodes"]
for each in data.result():
print(each)
# Here we choose not to display the None values and the METAR ID
ls = ["station:"+each[4]+"\n"]
l = [attributes[i] + ":" + str(each[i + 5]) for i in range(len(attributes)) if each[i + 5] != None
......
......@@ -257,8 +257,8 @@ def checkNBvariable (x):
if __name__ == "__main__":
session = connection()
start = input("Please enter the start time [form: AAAA-MM-DD (From 2008-1-1 to 2017-12-30)]: ")
end = input("Please enter the end time [form: AAAA-MM-DD (From 2008-1-1 to 2017-12-30)]: ")
start = input("Please enter the start time [form: AAAA-MM-DD (From 2008-12-19 to 2017-12-30)]: ")
end = input("Please enter the end time [form: AAAA-MM-DD (From 2008-12-19 to 2017-12-30)]: ")
target = input("Which indicator do you want to check [tmpf,dwpf,etc]: ")
targetNB = checkNBvariable(target)
#start = '2008-12-19'
......
......@@ -310,8 +310,8 @@ def checkNBvariable (x):
if __name__ == "__main__":
session = connection()
start = input("Please enter the start time [form: AAAA-MM-DD (From 2008-1-1 to 2017-12-30)]: ")
end = input("Please enter the end time [form: AAAA-MM-DD (From 2008-1-1 to 2017-12-30)]: ")
start = input("Please enter the start time [form: AAAA-MM-DD (From 2008-12-19 to 2017-12-30)]: ")
end = input("Please enter the end time [form: AAAA-MM-DD (From 2008-12-19 to 2017-12-30)]: ")
target = input("Which indicator do you want to check [tmpf,dwpf,etc]: ")
targetNB = checkNBvariable(target)
#start = '2008-01-01'
......
Markdown is supported
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