Vous êtes sur la page 1sur 54

import suds from suds.xsd.doctor import Import, ImportDoctor from suds.client import Client import logging import xml.etree.

ElementTree as ET import math import numpy as np import collections import urllib2 from mpl_toolkits.basemap import Basemap, cm import matplotlib.pyplot as plt from pylab import * import scipy.interpolate from scipy.interpolate import griddata

WSDL_URL = "http://graphical.weather.gov/xml/DWMLgen/wsdl/ndfdXML.wsdl" client = Client(WSDL_URL) #print client #check the services this server allows to make the following code easier logging.basicConfig(level=logging.INFO) logging.getLogger('Client').setLevel(logging.DEBUG) myfile = open("/home/btoms/Documents/HyDROS/HyDROS_Forecast_Model/SOAP_XML/NDFD_ Data_Placeholder.txt", "wb") appender = [] #client = suds.client.Client("http://graphical.weather.gov/xml/DWMLgen/wsdl/ndfd XML.wsdl") #http://weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl #print client #data = client.service.NDFDgen(35.2255, -97.344, "glance", , , , , ) #data = client.service.LatLonListZipCode(73072, ) This one works #data = client.service.NDFDgenByDay(35.2255, -97.344, 2013-06-07, 3, "e", "12 ho urly", ) #This one also works data = client.service.NDFDgen(35.5322, -97.9547, "time-series", "2013-07-26T21:0 0", "2013-07-27T18:00", "e", "", ) print data root = ET.fromstring(data) data = root.findall("data") global perma_time_layout perma_time_layout = "none" #this portion is to pull the lat/lon list from the file already established (to prevent from 505 errors) latitudes = np.array([]) longitudes = np.array([]) latlon_file = open("/home/btoms/Documents/HyDROS/HyDROS_Forecast_Model/SOAP_XML/ Coordinate_Points_5km_OK.txt") for line in latlon_file: uncut_latlon = line latlon_duo_list = uncut_latlon.split(',') for i in latlon_duo_list: latlon_organizer = i.split()

individual_latitude = float(latlon_organizer[1]) individual_longitude = float(latlon_organizer[0]) latitudes = np.hstack((latitudes, individual_latitude)) longitudes = np.hstack((longitudes, individual_longitude)) Var_Value_Array = np.array([]) #index legend: 0 = temperature, 1 = dewpoint, 2 = wind speed, 3 = precipitation, 4 = cloud cover, 5 = RH Var_Time_Array = np.array([]) #this portion establishes the text file with the live mesonet data that will be used later on in the live METAR_file = open('/home/btoms/Documents/HyDROS/HyDROS_Forecast_Model/SOAP_XML/M esonet_Live_Data.txt', "wb") METAR_website = urllib2.urlopen("http://www.mesonet.org/data/public/mesonet/curr ent/current.csv.txt").read() METAR_file.write(METAR_website) METAR_file.close() #this portion establishes the text file with the live ASOS data ASOS_website = urllib2.urlopen("http://mesonet.agron.iastate.edu/ASOS/current.ph tml?sortcol=ts&network=OK_ASOS&metar=no&sorder=asc&format=csv").read() ASOS_file = open('/home/btoms/Documents/HyDROS/HyDROS_Forecast_Model/SOAP_XML/AS OS_Live_Data.txt', "wb") ASOS_file.write(ASOS_website) ASOS_file.close() def get_minimum_temperature_values(Variable_Value_Array, Variable_Time_Array):

min_temperature_times = np.array([]) min_temperature_values = np.array([]) for subelement in root: for subsub in subelement: if subsub.tag == "parameters": for elem in subsub: if elem.tag == "temperature": temporal_type = elem.get('type') if temporal_type == "minimum": time_layout = elem.get(' time-layout') perma_time_layout = time _layout min_temp_values = elem.f indall('value') for i in min_temp_values : min_temperature_ values = np.hstack((min_temperature_values, i.text)) for subelement in root: for subsub in subelement: if subsub.tag == "time-layout": layout_key = subsub.find('layout-key').text if layout_key == perma_time_layout: start_time = subsub.findall('start-valid -time') for p in start_time: texter = p.text

min_temperature_times = np.hstac k((min_temperature_times, p.text))

z = 0 for i in min_temperature_values: Variable_Value_Array[z] = i z = z + 1 z = 0 for i in min_temperature_times: Variable_Time_Array[z] = i z = z + 1 return (Variable_Value_Array, Variable_Time_Array) def get_snow_values(Variable_Value_Array, Variable_Time_Array):

snow_times = np.array([]) snow_values = np.array([]) for subelement in root: for subsub in subelement: if subsub.tag == "parameters": for elem in subsub: if elem.tag == "precipitation": temporal_type = elem.get('type') if temporal_type == "snow": time_layout = elem.get(' time-layout') perma_time_layout = time _layout snoww_values = elem.find all('value') for i in snoww_values: snow_values = np .hstack((snow_values, i.text)) for subelement in root: for subsub in subelement: if subsub.tag == "time-layout": layout_key = subsub.find('layout-key').text if layout_key == perma_time_layout: start_time = subsub.findall('start-valid -time') for p in start_time: texter = p.text snow_times = np.hstack((snow_tim es, p.text))

z = 0 for i in snow_values:

Variable_Value_Array[z] = i z = z + 1 z = 0 for i in snow_times: Variable_Time_Array[z] = i z = z + 1 return (Variable_Value_Array, Variable_Time_Array) def get_ice_values(Variable_Value_Array, Variable_Time_Array):

ice_times = np.array([]) ice_values = np.array([]) for subelement in root: for subsub in subelement: if subsub.tag == "parameters": for elem in subsub: if elem.tag == "precipitation": temporal_type = elem.get('type') if temporal_type == "ice": time_layout = elem.get(' time-layout') perma_time_layout = time _layout icee_values = elem.finda ll('value') for i in icee_values: ice_values = np. hstack((ice_values, i.text)) for subelement in root: for subsub in subelement: if subsub.tag == "time-layout": layout_key = subsub.find('layout-key').text if layout_key == perma_time_layout: start_time = subsub.findall('start-valid -time') for p in start_time: texter = p.text ice_times = np.hstack((ice_times , p.text))

z = 0 for i in ice_values: Variable_Value_Array[z] = i z = z + 1 z = 0 for i in ice_times: Variable_Time_Array[z] = i z = z + 1 return (Variable_Value_Array, Variable_Time_Array)

def get_precipitation_values(Variable_Value_Array, Variable_Time_Array):

precipitation_times = np.array([]) precipitation_values = np.array([]) for subelement in root: for subsub in subelement: #print subsub.tag if subsub.tag == "parameters": for elem in subsub: if elem.tag == "precipitation": temporal_type = elem.get('type') if temporal_type == "liquid": time_layout = elem.get(' time-layout') perma_time_layout = time _layout precip_values = elem.fin dall('value') for i in precip_values: precipitation_va lues = np.hstack((precipitation_values, i.text)) for subelement in root: for subsub in subelement: if subsub.tag == "time-layout": layout_key = subsub.find('layout-key').text if layout_key == perma_time_layout: start_time = subsub.findall('start-valid -time') for p in start_time: texter = p.text precipitation_times = np.hstack( (precipitation_times, p.text))

z = 0 for i in precipitation_values: Variable_Value_Array[z] = i z = z + 1 z = 0 for i in precipitation_times: Variable_Time_Array[z] = i z = z + 1 #Variable_Value_Array = np.concatenate((Variable_Value_Array, temperatur e_values)) #Variable_Time_Array = np.concatenate((Variable_Time_Array, temperature_ times)) return (Variable_Value_Array, Variable_Time_Array) def get_temperature_values(Variable_Value_Array, Variable_Time_Array):

temperature_times = np.array([]) temperature_values = np.array([]) for subelement in root: for subsub in subelement: #print subsub.tag if subsub.tag == "parameters": for elem in subsub: if elem.tag == "temperature": temporal_type = elem.get('type') if temporal_type == "hourly": time_layout = elem.get(' time-layout') perma_time_layout = time _layout temp_values = elem.finda ll('value') for i in temp_values: temperature_valu es = np.hstack((temperature_values, i.text)) for subelement in root: for subsub in subelement: if subsub.tag == "time-layout": layout_key = subsub.find('layout-key').text if layout_key == perma_time_layout: start_time = subsub.findall('start-valid -time') for p in start_time: texter = p.text temperature_times = np.hstack((t emperature_times, p.text))

z = 0 for i in temperature_values: Variable_Value_Array[z] = i z = z + 1 z = 0 for i in temperature_times: Variable_Time_Array[z] = i z = z + 1 #Variable_Value_Array = np.concatenate((Variable_Value_Array, temperatur e_values)) #Variable_Time_Array = np.concatenate((Variable_Time_Array, temperature_ times)) return (Variable_Value_Array, Variable_Time_Array) def get_dewpoint_values(Variable_Value_Array, Variable_Time_Array):

dewpoint_times = np.array([]) dewpoint_values = np.array([]) for subelement in root: for subsub in subelement: if subsub.tag == "parameters": for elem in subsub: if elem.tag == "temperature": temporal_type = elem.get('type') if temporal_type == "dew point": time_layout = elem.get(' time-layout') perma_time_layout = time _layout dew_values = elem.findal l('value') for i in dew_values: dewpoint_values = np.hstack((dewpoint_values, i.text)) for subelement in root: for subsub in subelement: if subsub.tag == "time-layout": layout_key = subsub.find('layout-key').text if layout_key == perma_time_layout: start_time = subsub.findall('start-valid -time') for p in start_time: texter = p.text dewpoint_times = np.hstack((dewp oint_times, p.text))

z = 0 for i in dewpoint_values: Variable_Value_Array[z] = i z = z + 1 z = 0 for i in dewpoint_times: Variable_Time_Array[z] = i z = z + 1 #Variable_Value_Array = np.concatenate((Variable_Value_Array, dewpoint_v alues)) #Variable_Time_Array = np.concatenate((Variable_Time_Array, dewpoint_tim es)) return (Variable_Value_Array, Variable_Time_Array) def get_windspeed_values(Variable_Value_Array, Variable_Time_Array): #units = kn ots

windspeed_times = np.array([]) windspeed_values = np.array([]) for subelement in root: for subsub in subelement: if subsub.tag == "parameters": for elem in subsub: if elem.tag == "wind-speed": temporal_type = elem.get('type') if temporal_type == "sustained": time_layout = elem.get(' time-layout') perma_time_layout = time _layout wind_values = elem.finda ll('value') for i in wind_values: windspeed_values = np.hstack((windspeed_values, i.text)) for subelement in root: for subsub in subelement: if subsub.tag == "time-layout": layout_key = subsub.find('layout-key').text if layout_key == perma_time_layout: start_time = subsub.findall('start-valid -time') for p in start_time: texter = p.text windspeed_times = np.hstack((win dspeed_times, p.text))

z = 0 for i in windspeed_values: Variable_Value_Array[z] = i z = z + 1 z = 0 for i in windspeed_times: Variable_Time_Array[z] = i z = z + 1 #Variable_Value_Array = np.concatenate((Variable_Value_Array, windspeed_ values)) #Variable_Time_Array = np.concatenate((Variable_Time_Array, windspeed_ti mes)) return (Variable_Value_Array, Variable_Time_Array) def get_precipitation_values(Variable_Value_Array, Variable_Time_Array): precipitation_times = np.array([]) precipitation_values = np.array([]) for subelement in root: for subsub in subelement: if subsub.tag == "parameters": for elem in subsub:

if elem.tag == "precipitation": temporal_type = elem.get('type') if temporal_type == "liquid": time_layout = elem.get(' time-layout') perma_time_layout = time _layout precip_values = elem.fin dall('value') for i in precip_values: precipitation_va lues = np.hstack((precipitation_values, i.text)) for subelement in root: for subsub in subelement: if subsub.tag == "time-layout": layout_key = subsub.find('layout-key').text if layout_key == perma_time_layout: start_time = subsub.findall('start-valid -time') for p in start_time: texter = p.text precipitation_times = np.hstack( (precipitation_times, p.text))

z = 0 for i in precipitation_values: Variable_Value_Array[z] = i z = z + 1 z = 0 for i in precipitation_times: Variable_Time_Array[z] = i z = z + 1 #Variable_Value_Array = np.concatenate((Variable_Value_Array, precipitat ion_values)) #Variable_Time_Array = np.concatenate((Variable_Time_Array, precipitatio n_times)) return (Variable_Value_Array, Variable_Time_Array) def get_cloudcover_values(Variable_Value_Array, Variable_Time_Array):

CC_times = np.array([]) CC_values = np.array([]) for subelement in root: for subsub in subelement: if subsub.tag == "parameters": for elem in subsub: if elem.tag == "cloud-amount": temporal_type = elem.get('type') if temporal_type == "total": time_layout = elem.get(' time-layout') perma_time_layout = time

_layout cloudcover_values = elem .findall('value') for i in cloudcover_valu es: CC_values = np.h stack((CC_values, i.text)) for subelement in root: for subsub in subelement: if subsub.tag == "time-layout": layout_key = subsub.find('layout-key').text if layout_key == perma_time_layout: start_time = subsub.findall('start-valid -time') for p in start_time: texter = p.text CC_times = np.hstack((CC_times, p.text)) z = 0 for i in CC_values: Variable_Value_Array[z] = i z = z + 1 z = 0 for i in CC_times: Variable_Time_Array[z] = i z = z + 1 #Variable_Value_Array = np.concatenate((Variable_Value_Array, CC_values) , axis = 0) #Variable_Time_Array = np.concatenate((Variable_Time_Array, CC_times)) return (Variable_Value_Array, Variable_Time_Array) def calculations(Var_Value_Array, Var_Time_Array): temperature_values = np.array(["BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBL ANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLA NKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLAN KBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"," BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLAN K","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANK BLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKB LANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBL ANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLA NKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLAN KBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"," BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLAN K","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANK BLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKB LANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBL ANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLA NKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLAN KBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"," BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLAN K","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANK BLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKB LANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBL

ANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLA NKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLAN KBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"," BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLAN K","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANK BLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKB LANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBL ANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLA NKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLAN KBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) dewpoint_values = np.array(["BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANK BLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKB LANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBL ANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLA NKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK", "BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLA NK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLAN KBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANK BLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKB LANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBL ANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLA NKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK", "BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLA NK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLAN KBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANK BLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKB LANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBL ANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLA NKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK", "BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLA NK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLAN KBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANK BLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKB LANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBL ANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLA NKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK", "BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLA NK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLAN KBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANK BLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKB LANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBL ANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) e_s_values = np.array([]) e_values = np.array([]) RH_values = np.array([]) dewpoint_depression_values = np.array([]) ei_values = np.array([]) e_ei_ratio_values = np.array([]) temperature_values = Var_Value_Array[0] dewpoint_values = Var_Value_Array[1] #converts the dewpoint and temperature to celsius z = 0 for i in temperature_values: if i != "BLANKBLANKBLANKBLANKBLANK": temperature_values[z] = (5.0/9.0) * (float(i) - 32) z = z + 1

z = 0 for i in dewpoint_values: if i != "BLANKBLANKBLANKBLANKBLANK": dewpoint_values[z] = (5.0/9.0) * (float(i) - 32) z = z + 1

#calculates e and e_s and ei for i in temperature_values: if i != "BLANKBLANKBLANKBLANKBLANK": e_s = (6.1094 * math.exp((17.625 * float(i))/ (float(i) + 243.04))) e_s_values = np.hstack((e_s_values, e_s)) else: e_s_values = np.hstack((e_s_values,i)) for i in dewpoint_values: if i != "BLANKBLANKBLANKBLANKBLANK": e = (6.1094 * (math.exp((17.625 * float(i))/ (float(i) + 243.04)))) e_values = np.hstack((e_values, e)) else: e_values = np.hstack((e_values,i)) for i in temperature_values: if i != "BLANKBLANKBLANKBLANKBLANK": ei = 6.112*math.pow(math.e, ((22.46*float(i))/(272.62+fl oat(i)))) ei_values = np.hstack((ei_values, ei)) else: ei_values = np.hstack((ei_values, i)) #calculates RH z = 0 for i in e_values: if i != "BLANKBLANKBLANKBLANKBLANK" and e_s_values[z] != "BLANKB LANKBLANKBLANKBLANK": RH = float(i)/float(e_s_values[z]) RH_values = np.hstack((RH_values, RH)) else: RH_values = np.hstack((RH_values, "BLANKBLANKBLANKBLANKB LANK")) z = z + 1

#calculates DPDepression z = 0 for i in dewpoint_values: if i != "BLANKBLANKBLANKBLANKBLANK" and temperature_values[z] != "BLANKBLANKBLANKBLANKBLANK": dewpoint_depression = float(temperature_values[z]) - flo at(i) dewpoint_depression_values = np.hstack((dewpoint_depress ion_values, dewpoint_depression)) else: dewpoint_depression_values = np.hstack((dewpoint_depress

ion_values, "BLANKBLANKBLANKBLANKBLANK")) z = z + 1 z = 0 for i in ei_values: if i != "BLANKBLANKBLANKBLANKBLANK" and e_values[z] != "BLANKBLA NKBLANKBLANKBLANK": ratio = (float(e_values[z]))/float(i) e_ei_ratio_values = np.hstack((e_ei_ratio_values, ratio) ) else: e_ei_ratio_values = np.hstack((e_ei_ratio_values, "BLANK BLANKBLANKBLANKBLANK")) return (e_values, e_s_values, RH_values, dewpoint_depression_values, ei_ values, e_ei_ratio_values) #ONLY FOR RADIATIONAL FOG, NO ACCURATE WAY TO PREDICT ADVECTION FOG #MAY NEED TO COME UP WITH AN "ADVECTION FOG POSSIBLE" BLOB IN THE FUTURE #VALUES OF 0-4 POSSIBLE def Freezing_Fog_Forecaster(e_values, ei_values, e_ei_ratio_values, RH_values): Fog_Index = 0 Fog_Index_Values = np.array(["BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) #For fog values, the temperature being below 0 degrees is a precursor th e the definition of freezing fog, so this will not be incorporated into the risk factor, but rather determine if any risk factor is displayed

#this portion is for the wind speeds: z = 0 for i in RH_values: if i != "BLANKBLANKBLANKBLANKBLANK": if i >= .90: Fog_Index_Values[z] = Fog_Index_Values[z] + 1 if i < .90 and i >= .875: Fog_Index_Values[z] = Fog_Index_Values[z] + .66 if i < .875 and i >= .85: Fog_Index_Values[z] = Fog_Index_Values[z] + .33 z = z + 1 #this portion is to try and compensate for the radiational cooling with cloud cover amounts z = 0 for i in Var_Values_Array[4]: if i != "BLANKBLANKBLANKBLANKBLANK": if i <= 30: Fog_Index_Values[z] = Fog_Index_Values[z] + 1 if i > 30 and i <= 40: Fog_Index_Values[z] = Fog_Index_Values[z] + .66 if i > 40 and i <= 50: Fog_Index_Values[z] = Fog_Index_Values[z] + .33 z = z + 1 #this portion is for the cooling over the past three hours Three_H_Ago_Temp = np.array([-100,"BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) z = 0

for i in Var_Values_Array[0]: if z != 0: Three_Hour_Ago_Temp = Var_Values_Array[0][(z - 1)] Three_H_Ago_Temp[z] = Three_Hour_Ago_Temp z = z + 1 z = 0 for i in Three_H_Ago_Temp: if i != "BLANKBLANKBLANKBLANKBLANK": if (Var_Values_Array[z] - i) <= (-.5): Fog_Index_Values[z] = Fog_Index_Values[z] + 1 if (Var_Values_Array[z] - i) <= (-.4) and (Var_Values_Ar ray[z] - i) > (-.5): Fog_Index_Values[z] = Fog_Index_Values[z] + .66 if (Var_Values_Array[z] - i) <= (-.3) and (Var_Values_Ar ray[z] - i) > (-.4): Fog_Index_Values[z] = Fog_Index_Values[z] + .33 z = z + 1 #**********IMPORTANT**********CANCELING OUT FREEZING FOG FOR RAIN DOESN' T EXACTLY WORK DUE TO PRECIPITATION FORECASTS ONLY BEING FOR EVERY 6 HOURS # precip values = index 6 in values array #Precip_Values = np.array([100,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBL ANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLA NKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLAN KBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"," BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLAN K","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANK BLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKB LANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBL ANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLA NKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLAN KBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"," BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLAN K","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANK BLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKB LANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBL ANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLA NKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLAN KBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"," BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLAN K","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANK BLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKB LANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBL ANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLA NKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLAN KBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"," BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLAN K","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANK BLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKB LANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBL ANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLA NKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLAN KBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) #z = 0 #for i in Var_Times_Array[0]: # time_checker_initial = i[11:20] # hour_checker = time_checker_initial[0:2] # minute_checker = time_checker_initial[3:5] # year_checker = i[0:4] # month_checker = i[5:7]

# day_checker = i[8:10] # if i != "BLANKBLANKBLANKBLANKBLANK": # zz = 0 # for i in Var_Times_Array[6]: # time_checker_initial_2 = i[11:20] # hour_checker_2 = time_checker_initial[0:2] # minute_checker_2 = time_checker_initial[3:5] # year_checker_2 = i[0:4] # month_checker_2 = i[5:7] # day_checker_2 = i[8:10] # if year_checker <= year_checker_2: # if month_checker <= month_checker_2: # if day_checker <= day_checker_2: # if hour_checker <= hour_ checker_2: # Precip_Values[z] == Var_Values_Array[zz] # else # pass # else: # pass # else: # pass # else: # pass # zz = zz + 1 # z = z + 1 #this portion is for the temperature: #if temperature > 0, then the values are automatically set to 0 z = 0 for i in Var_Values_Array[1]: if i != "BLANKBLANKBLANKBLANKBLANK": if i > 0: Fog_Index_Values[z] = 0 if i <= 0 : Fog_Index_Values[z] = Fog_Index_Values[z] + 1 z = z + 1 return Fog_Index_Values #can only do every 6 hours due to the time interval on NDFD data def Frozen_Precipitation_Forecaster(): Frozen_Precipitation_Index_Values = np.array(["BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL

ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK"]) #for snow precipitation z = 0 for i in Var_Value_Array[7]: if i != "BLANKBLANKBLANKBLANKBLANK": if float(i) > 0: Frozen_Precipitation_Index_Values[z] = Frozen_Pr ecipitation_Index_Values[z] + 1 z = z + 1 #for ice precipitation z = 0 for i in Var_Value_Array[8]: if i != "BLANKBLANKBLANKBLANKBLANK": if float(i) > 0: Frozen_Precipitation_Index_Values[z] = Frozen_Pr ecipitation_Index_Values[z] + 1 z = z + 1 #CAN'T REALLY USE THE PRECIP VALUES, THE TIMES DO NOT MATCH UP WITH THE 3-HOUR TEMPERATURE INTERVALS #for other precipitation possibly not picked up by ice/snow QPF #z = 0 #for i in Var_Value_Array[6]: # if i != "BLANKBLANKBLANKBLANKBLANK": # time_checker_initial = i[11:20] # hour_checker = time_checker_initial[0:2] # minute_checker = time_checker_initial[3:5] # year_checker = i[0:4] # month_checker = i[5:7] # day_checker = i[8:10] # if i > 0: # for p in Var_Time_Array[0]: # time_checker_initial_2 = i[11:20] # hour_checker_2 = time_checker_initial[0: 2] # minute_checker_2 = time_checker_initial[ 3:5] # year_checker_2 = i[0:4] # month_checker_2 = i[5:7] # day_checker_2 = i[8:10] #if year_checker_2 == year_checker and month_che cker_2 == month_checker and day_checker_2 == day_checker_2

#else: return Frozen_Precipitation_Index_Values

def Hoar_Frost_Forecaster(e_values, e_s_values, RH_values, dewpoint_depression_v alues, ei_values, e_ei_ratio_values): Hoar_Index = 0 Hoar_Index_Values = np.array(["BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) #checks to see if the skies are 1/3 cloudy or less #checks to see if the cloud cover <= 33% z = 0 for i in Var_Value_Array[4]: if i != "BLANKBLANKBLANKBLANKBLANK": if i <= 33: Hoar_Index_Values[z] = Hoar_Index_Values[z] + 1 z = z + 1 #checks to see if the wind speed is at least 1 kt z = 0 for i in Var_Value_Array[2]: if i != "BLANKBLANKBLANKBLANKBLANK": if i >= 1: Hoar_Index_Values[z] = Hoar_Index_Values[z] + 1 z = z + 1

#checks to see if the vapor pressure is greater than the saturation vapo r pressure WRT ice z = 0 for i in e_ei_ratio_values: if i != "BLANKBLANKBLANKBLANKBLANK": if i >= 1: Hoar_Index_Values[z] = Hoar_Index_Values[z] + 1 z = z + 1 #checks to see if it is night time z = 0 for i in Var_Time_Array[0]: time_checker_initial = i[11:20] hour_checker = time_checker_initial[0:2] minute_checker = time_checker_initial[3:5] if hour_checker != "LA": if float(hour_checker) > 23: Hoar_Index_values[z] = Hoar_Index_Values[z] + 1 if float(hour_checker) <= 13: if float(hour_checker) == 13: if float(minute_checker) <= 30: Hoar_Index_Values[z] = Hoar_Inde x_Values[z] + 1 else: Hoar_Index_Values[z] = Hoar_Index_Values [z] + 1 z = z + 1 #checks to see if the dewpoint depression is <= 1.5 degrees Celsius z = 0 for i in dewpoint_depression_values: if i != "LA": if i <= 1.5: Hoar_Index_Values[z] = Hoar_Index_Values[z] + 1 z = z + 1 #print Var_Time_Array[5] #previous night low z = 0 for i in Var_Time_Array[0]: hourly_temperature_month = i[5:7] hourly_temperature_day = i[8:10] hourly_temperature_hour = i[11:13] hourly_temperature_year = i[0:4] if hourly_temperature_hour != "LA": if hourly_temperature_hour >= 23: for i in Var_Time_Array[5]: daily_low_temperature_day = i[8:10] #below are for months w/ 31 days if int(hourly_temperature_day) == 1: if int(hourly_temperature_month) == 1 or int(hourly_temperature_month) == 2 or int(hourly_temperature_month) == 4 or int(hourly_temperature_month) == 6 or int(hourly_temperature_month) == 8 or int(hourly_temperature_month) == 9 or int(hourly_temperature_month) == 11: if int(hourly_temperatur e_day) == 1: z = 0

for i in Var_Tim e_Array[5]: daily_lo w_temperature_day = i[8:10] if daily _low_temperature_day != "NK": daily_low_temperature_day = int(daily_low_temperature_day) if int(daily_low_temperature_day) == 31: previous_night_low == int(Var_Value_Array[5][z]) if previous_night_low <= 0: Hoar_Index_Values = Hoar_Index_Values[z] + 1 z = z + 1 elif int(hourly_temperature_mont h) == 3: if int(hourly_temperatur e_year) % 4 == 0: z = 0 for i in Var_Tim e_Array[5]: daily_lo w_temperature_day = i[8:10] if daily _low_temperature_day != "NK": daily_low_temperature_day = int(daily_low_temperature_day) if daily_low_temperature_day == 29: previous_night_low == int(Var_Value_Array[5][z]) y = 0 if previous_night_low <= 0: Hoar_Index_Values = Hoar_Index_Values[z] + 1 y = y + 1 z = z + 1 if int(hourly_temperature_month) == 5 or int(hourly_temperature_month) == 7 or int(hourly_temperature_month) == 10 or int(hourly_temperature_month) == 12: if int(hourly_temperatur e_day) == 1: z = 0 for i in Var_Tim e_Array[5]: daily_lo w_temperature_day = i[8:10] if daily _low_temperature_day != "NK": daily_low_temperature_day = int(daily_low_temperature_day)

if daily_low_temperature_day == 30: previous_night_low = int(Var_Value_Array[5][z]) if previous_night_low <= 0: Hoar_Index_Values = Hoar_Index_Values[z] + 1 z = z + 1 else: z = 0 for i in Var_Time_Array[5]: daily_low_temperature_da y = i[8:10] if daily_low_temperature _day != "NK": daily_low_temper ature_day = int(daily_low_temperature_day) if daily_low_tem perature_day == (int(hourly_temperature_day) - 1): previous_night_low = int(Var_Value_Array[5][z]) if previous_night_low <= 0: Hoar_Index_Values = Hoar_Index_Values[z] + 1

#makes sure only periods with temperatures that could plausibly lead to black ice are taken into account z = 0 for i in Var_Value_Array[0]: if i != "BLANKBLANKBLANKBLANKBLANK": if i >= 2.8: Hoar_Index_Values[z] = 0 z = z + 1 return Hoar_Index_Values

def map_plotter_hoar(Hoar_Risk_Values): lons = np.array([-97.9547, -97.9447, -97.4256,]) lats = np.array([35.5322, 35.864, 35.4111]) data = np.array([1,2,2]) colortype_array = np.array([]) map = Basemap(llcrnrlon = -103.068237, llcrnrlat = 33.610045, urcrnrlon = -94.359076, urcrnrlat = 37.040928, resolution = 'i') lons_min, lons_max = lons.min(), lons.max() lats_min, lats_max = lats.min(), lats.max() #xi, yi = np.linspace(lons_min, lons_max, 100), np.linspace(lats_min, la ts_max, 100) #xi, yi = np.meshgrid(xi, yi) #rbf = scipy.interpolate.Rbf(lons,lats,data, function = 'linear') #zi = rbf(xi, yi)

#xi = np.linspace(-103.068237, -94.359076) #yi = np.linspace(33.610045, 37.040928) #zi = griddata(lons, lats, data, xi, yi) #print xi, yi, zi #CS = map.contour(xi,yi,zi) #map.drawstates() #plt.show() z = 0 for i in data: colortype = "nan" if i == 2: colortype = "red" if i == 1: colortype = "blue" map.scatter(lons[z], lats[z], c = colortype) z = z + 1 #plt.colorbar() #map.scatter(lons, lats, c = colormaker(lons, lats, data)) map.drawstates() #plt.plot(x,y) plt.show() def map_plotter_fog(Fog_Risk_Values): lons = longitudes lats = latitudes data = Fog_Risk_Values def map_plotter_precip(Precip_Risk_Values): lons = longitudes lats = latitudes data = Fog_Risk_Values #both calculates and plots the data def live_hoar(): site_array = np.array([]) live_mesonet_file = open('/home/btoms/Documents/HyDROS/HyDROS_Forecast_M odel/SOAP_XML/Mesonet_Live_Data.txt', "r") for line in live_mesonet_file: temp_array = np.array([]) ind_station_data_list = line.split(',') station_ID = ind_station_data_list[0] station_city = ind_station_data_list[1] station_state = ind_station_data_list[2] station_latitude = ind_station_data_list[3] station_longitude = ind_station_data_list[4] station_year = ind_station_data_list[5] station_month = ind_station_data_list[6] station_day = ind_station_data_list[7] station_hour = ind_station_data_list[8] station_minute = ind_station_data_list[9] station_temp = ind_station_data_list[10] station_dewpoint = ind_station_data_list[11] station_wind_direction = ind_station_data_list[15] station_wind_speed = ind_station_data_list[16] station_precipitation = ind_station_data_list[21] temp_array.hstack((temp_array, station_ID)) #0 temp_array.hstack((temp_array, station_city)) #1

temp_array.hstack((temp_array, temp_array.hstack((temp_array, temp_array.hstack((temp_array, temp_array.hstack((temp_array, temp_array.hstack((temp_array, temp_array.hstack((temp_array, temp_array.hstack((temp_array, temp_array.hstack((temp_array, temp_array.hstack((temp_array, temp_array.hstack((temp_array, temp_array.hstack((temp_array, temp_array.hstack((temp_array, temp_array.hstack((temp_array, site_array.hstack((site_array,

station_state)) #2 station_latitude)) #3 station_longitude)) #4 station_year)) #5 station_month)) #6 station_day)) #7 station_hour)) #8 station_minute)) #9 station_temp)) #10 station_dewpoint)) #11 station_wind_direction)) #12 station_wind_speed)) #13 station_precipitation)) #index 14 temp_array))

live_ASOS_file = open('/home/btoms/Documents/HyDROS/HyDROS_Forecast_Mode l/SOAP_XML/ASOS_Live_Data.txt', "r") ADM = np.array([34.30320,-97.01950]) #lat,lon WDG = np.array([36.37920,-97.79110]) OKC = np.array([35.38890,-97.60060]) PNC = np.array([36.73000,-97.10000]) MLC = np.array([34.88222,-95.78306]) SWO = np.array([36.16122,-97.08569]) HBR = np.array([34.99131,-99.05139]) PWA = np.array([35.53417,-97.64706]) GUY = np.array([36.68167,-101.50528]) LAW = np.array([34.56771,-98.41664]) GAG = np.array([36.29554,-99.77642]) FDR = np.array([34.35310,-98.98391]) CSM = np.array([35.33984,-99.20050]) MKO = np.array([35.65667,-95.36139]) RVS = np.array([36.03961,-95.98464]) GOK = np.array([35.84981,-97.41561]) TUL = np.array([36.19839,-95.88811]) BVO = np.array([36.76248,-96.01115]) END = np.array([36.33917,-97.91650]) TIK = np.array([35.41474,-97.38663]) FSI = np.array([34.64493,-98.40334]) LTS = np.array([34.66707,-99.26668]) AVK = np.array([36.77317,-98.66995]) AXS = np.array([34.69881,-99.33847]) TQH = np.array([35.93000,-95.00000]) GCM = np.array([36.29000,-95.48000]) JWG = np.array([35.86469,-98.42075]) OUN = np.array([35.24352,-97.47077]) DUC = np.array([34.47000,-97.96000]) ADH = np.array([34.80426,-96.67120]) HHW = np.array([34.03480,-95.54190]) GMJ = np.array([36.60678,-94.73856]) OKM = np.array([35.67000,-95.95000]) DUA = np.array([33.94227,-96.39453]) one_F_zero = np.array([34.14699,-97.12265]) #can't use numbers in variab le names CLK = np.array([35.53825,-98.93269]) BKN = np.array([36.74511,-97.34958]) RCE = np.array([35.48808,-97.82356]) GZL = np.array([35.28911,-95.09389]) PVJ = np.array([34.71083,-97.22306]) CHK = np.array([35.09736,-97.96769]) JSV = np.array([35.43806,-94.80278])

four_O_four = np.array([33.90940,-94.85940]) #can't use numbers in varia ble names SNL = np.array([35.35731,-96.94283]) CUH = np.array([35.94993,-96.77305]) OJA = np.array([35.54483,-98.66849]) WWR = np.array([36.43800,-99.52267]) RKR = np.array([35.02000,-94.62000]) CQB = np.array([35.72382,-96.82027]) SRE = np.array([35.27468,-96.67516]) RQO = np.array([35.47267,-98.00579]) AQR = np.array([34.40000,-96.15000]) for line in live_ASOS_file: ASOS_ind_data = line.split(',') if ASOS_ind_data[0] == "ADM": for i in ASOS_ind_data: ADM.hstack((ADM, if ASOS_ind_data[0] == "WDG": for i in ASOS_ind_data: WDG.hstack((WDG, if ASOS_ind_data[0] == "OKC": for i in ASOS_ind_data: OKC.hstack((OKC, if ASOS_ind_data[0] == "PNC": for i in ASOS_ind_data: PNC.hstack((PNC, if ASOS_ind_data[0] == "MLC": for i in ASOS_ind_data: MLC.hstack((MLC, if ASOS_ind_data[0] == "SWO": for i in ASOS_ind_data: SWO.hstack((SWO, if ASOS_ind_data[0] == "HBR": for i in ASOS_ind_data: HBR.hstack((HBR, if ASOS_ind_data[0] == "PWA": for i in ASOS_ind_data: PWA.hstack((PWA, if ASOS_ind_data[0] == "GUY": for i in ASOS_ind_data: GUY.hstack((GUY, if ASOS_ind_data[0] == "LAW": for i in ASOS_ind_data: LAW.hstack((LAW, if ASOS_ind_data[0] == "GAG": for i in ASOS_ind_data: GAG.hstack((GAG, if ASOS_ind_data[0] == "FDR": for i in ASOS_ind_data: FDR.hstack((FDR, if ASOS_ind_data[0] == "CSM": for i in ASOS_ind_data: CSM.hstack((CSM, if ASOS_ind_data[0] == "MKO": for i in ASOS_ind_data: MKO.hstack((MKO, if ASOS_ind_data[0] == "RVS": for i in ASOS_ind_data: RVS.hstack((RVS, if ASOS_ind_data[0] == "GOK":

i)) i)) i)) i)) i)) i)) i)) i)) i)) i)) i)) i)) i)) i)) i))

if if if if if if if if if if if if if if if if if if if if

for i in ASOS_ind_data: GOK.hstack((GOK, i)) ASOS_ind_data[0] == "TUL": for i in ASOS_ind_data: TUL.hstack((TUL, i)) ASOS_ind_data[0] == "BVO": for i in ASOS_ind_data: BVO.hstack((BVO, i)) ASOS_ind_data[0] == "END": for i in ASOS_ind_data: END.hstack((END, i)) ASOS_ind_data[0] == "TIK": for i in ASOS_ind_data: TIK.hstack((TIK, i)) ASOS_ind_data[0] == "FSI": for i in ASOS_ind_data: FSI.hstack((FSI, i)) ASOS_ind_data[0] == "LTS": for i in ASOS_ind_data: LTS.hstack((LTS, i)) ASOS_ind_data[0] == "AVK": for i in ASOS_ind_data: AVK.hstack((AVK, i)) ASOS_ind_data[0] == "AXS": for i in ASOS_ind_data: AXS.hstack((AXS, i)) ASOS_ind_data[0] == "TQH": for i in ASOS_ind_data: TQH.hstack((TQH, i)) ASOS_ind_data[0] == "GCM": for i in ASOS_ind_data: GCM.hstack((GCM, i)) ASOS_ind_data[0] == "JWG": for i in ASOS_ind_data: JWG.hstack((JWG, i)) ASOS_ind_data[0] == "OUN": for i in ASOS_ind_data: OUN.hstack((OUN, i)) ASOS_ind_data[0] == "DUC": for i in ASOS_ind_data: DUC.hstack((DUC, i)) ASOS_ind_data[0] == "ADH": for i in ASOS_ind_data: ADH.hstack((ADH, i)) ASOS_ind_data[0] == "HHW": for i in ASOS_ind_data: HHW.hstack((HHW, i)) ASOS_ind_data[0] == "GMJ": for i in ASOS_ind_data: GMJ.hstack((GMJ, i)) ASOS_ind_data[0] == "OKM": for i in ASOS_ind_data: OKM.hstack((OKM, i)) ASOS_ind_data[0] == "DUA": for i in ASOS_ind_data: DUA.hstack((DUA, i)) ASOS_ind_data[0] == "1F0": for i in ASOS_ind_data: one_F_zero.hstack((one_F_zero, i)) ASOS_ind_data[0] == "CLK":

if if if if if if if if if if if if if if if if

for i in ASOS_ind_data: CLK.hstack((CLK, i)) ASOS_ind_data[0] == "BKN": for i in ASOS_ind_data: BKN.hstack((BKN, i)) ASOS_ind_data[0] == "RCE": for i in ASOS_ind_data: RCE.hstack((RCE, i)) ASOS_ind_data[0] == "GZL": for i in ASOS_ind_data: GZL.hstack((GZL, i)) ASOS_ind_data[0] == "PVJ": for i in ASOS_ind_data: PVJ.hstack((PVJ, i)) ASOS_ind_data[0] == "CHK": for i in ASOS_ind_data: CHK.hstack((CHK, i)) ASOS_ind_data[0] == "JSV": for i in ASOS_ind_data: JSV.hstack((JSV, i)) ASOS_ind_data[0] == "4O4": for i in ASOS_ind_data: four_O_four.hstack((four_O_four, i)) ASOS_ind_data[0] == "SNL": for i in ASOS_ind_data: SNL.hstack((SNL, i)) ASOS_ind_data[0] == "CUH": for i in ASOS_ind_data: CUH.hstack((CUH, i)) ASOS_ind_data[0] == "OJA": for i in ASOS_ind_data: OJA.hstack((OJA, i)) ASOS_ind_data[0] == "WWR": for i in ASOS_ind_data: WWR.hstack((WWR, i)) ASOS_ind_data[0] == "RKR": for i in ASOS_ind_data: RKR.hstack((RKR, i)) ASOS_ind_data[0] == "CQB": for i in ASOS_ind_data: CQB.hstack((CQB, i)) ASOS_ind_data[0] == "SRE": for i in ASOS_ind_data: SRE.hstack((SRE, i)) ASOS_ind_data[0] == "RQO": for i in ASOS_ind_data: RQO.hstack((RQO, i)) ASOS_ind_data[0] == "AQR": for i in ASOS_ind_data: AQR.hstack((AQR, i))

ASOS_list = np.array[()] ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ADM)) WDG)) OKC)) PNC)) MLC)) SWO)) HBR))

ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list,

PWA)) GUY)) LAW)) GAG)) FDR)) CSM)) MKO)) RVS)) GOK)) TUL)) BVO)) END)) TIK)) FSI)) LTS)) AVK)) AXS)) TQH)) GCM)) JWG)) OUN)) DUC)) ADH)) HHW)) GMJ)) OKM)) DUA)) one_F_zero)) CLK)) BKN)) RCE)) GZL)) PVJ)) CHK)) JSV)) four_O_four)) SNL)) CUH)) OJA)) WWR)) RKR)) CQB)) SRE)) RQO)) AQR))

#checks to see if wind speed > 1 mph (~1kt) wind_speed_array = np.array[()] wind_speed_index = 0 for array in site_array: wind_speed_index = 0 if int(array[13]) > 1: wind_speed_index = 1 wind_speed_array.hstack((wind_speed_array, wind_speed_index)) #checks to see if e > ei ei_array = np.array[()] ei_index = 0 for array in site_array: #i = temperature ei_index = 0

if float(array[10]) > (-100): e = (6.1094 * (math.exp((17.625 * float(array[10]))/ (fl oat(array[10]) + 243.04)))) ei = 6.112*math.pow(math.e, ((22.46*float(array[10]))/(2 72.62+float(array[10])))) ratio = e/ei else: ratio = .1 if ratio >= 1: ei_index = 1 ei_array.hstack((ei_array, ei_index)) #checks to see if it is nighttime nighttime_array = np.array[()] nighttime_index = 0 for array in site_array: nighttime_index = 0 hour = float(array[8]) minute = float(array[9]) if hour >= 17: nighttime_index = 1 if hour <= 7: if hour == 7: if minute <= 30: nighttime_index = 1 else: nighttime_index = 1 nighttime_array.hstack((nighttime_array, nighttime_index)) #for previous night low previous_night_temp_array = np.array[()] previous_night_temp_index = 0 for array in site_array: previous_night_index = 0 current_station_id = site_array[0] current_year = site_array[5] current_month = site_array[6] current_day = site_array[7] current_hour = site_array[8] current_minute = site_array[9] previous_night_day = 0 if int(current_hour) < 7: if int(current_day) = 1: if int(current_month) == 2 or int(current_month) == 4 or int(current_month) == 6 or int(current_month) == 8 or int(current_month ) == 9 or int(current_month) == 11 or int(current_month) == 1: previous_night_day = 31 if int(current_month) == 3: if (int(current_year) / 4): previous_night_day = 29 else: previous_night_day = 28 if int(current_month) == 5 or int(current_month) == 7 or int(current_month) == 10 or int(current_month) == 12: previous_night_day = 30 else: previous_night_day = int(current_day) - 1 if int(current_hour) == 7 and int(current_minute) <= 45: if int(current_day) = 1: if int(current_month) == 2 or int(current_month)

== 4 or int(current_month) == 6 or int(current_month) == 8 or int(current_month ) == 9 or int(current_month) == 11 or int(current_month) == 1: previous_night_day = 31 if int(current_month) == 3: if (int(current_year) / 4): previous_night_day = 29 else: previous_night_day = 28 if int(current_month) == 5 or int(current_month) == 7 or int(current_month) == 10 or int(current_month) == 12: previous_night_day = 30 else: previous_night_day = int(current_day) - 1 if int(current_hour) >= 15: previous_night_day = current_day current_month_for_link = "NONE" current_night_day_for_link = "NONE" if (int(current_month) - 10) < 0: current_month_for_link = ("0" + str(current_month)) else: current_month_for_link = str(current_month) if previous_night_day - 10 < 0: current_night_day_for_link = ("0" + str(previous_night_d ay)) else: current_night_day_for_link = str(previous_night_day) #1345 UTC = the latest the sun comes up in winter #check between 1200 UTC and 1345 UTC previous_night_low = 900 int_hour_for_link = 12 int_minute_for_link = 0 for int_minute_for_link <= 55: if (int_hour_for_link hour_for_link = else: hour_for_link = if (int_minute_for_link minute_for_link )) else: minute_for_link = str(int_minute_for_link) previous_data = urllib2.urlopen("http://www.mesonet.org/ index.php/dataMdfMts/dataController/getFile/" + str(current_year) + current_mont h_for_link + current_night_day_for_link + hour_for_link + minute_for_link + "/md f/TEXT/").read() previous_data_file = open('/home/btoms/Documents/HyDROS/ HyDROS_Forecast_Model/SOAP_XML/Previous_Night_Data.txt', "wb") previous_data_file.write(previous_data) previous_data_file.close() previouss_data_file = open('/home/btoms/Documents/HyDROS /HyDROS_Forecast_Model/SOAP_XML/Previous_Night_Data.txt', "r") for line in previouss_data_file: ind_station_lister = previouss_data_file.split()

10) < 0: ("0" + str(int_hour_for_link)) str(int_hour_for_link) - 10) < 0: = ("0" + str(int_minute_for_link

if str(ind_station_lister[0]) == str(current_sta tion_id): if float(ind_station_lister[4]) < previo us_night_low: previous_night_low = str(ind_sta tion_lister[4]) break int_minute_for_link = int_minute_for_link + 5 int_hour_for_link = 13 int_minute_for_link = 0 for int_minute_for_link <= 45: if (int_hour_for_link hour_for_link = else: hour_for_link = if (int_minute_for_link minute_for_link )) else: minute_for_link = str(int_minute_for_link) previous_data = urllib2.urlopen("http://www.mesonet.org/ index.php/dataMdfMts/dataController/getFile/" + str(current_year) + current_mont h_for_link + current_night_day_for_link + hour_for_link + minute_for_link + "/md f/TEXT/").read() previous_data_file = open('/home/btoms/Documents/HyDROS/ HyDROS_Forecast_Model/SOAP_XML/Previous_Night_Data.txt', "wb") previous_data_file.write(previous_data) previous_data_file.close() previouss_data_file = open('/home/btoms/Documents/HyDROS /HyDROS_Forecast_Model/SOAP_XML/Previous_Night_Data.txt', "r") for line in previouss_data_file: ind_station_lister = previouss_data_file.split() if str(ind_station_lister[0]) == str(current_sta tion_id): if float(ind_station_lister[4]) < previo us_night_low: previous_night_low = str(ind_sta tion_lister[4]) break int_minute_for_link = int_minute_for_link + 5 if previous_night_low > (-100) and previous_night_low <= 0: previous_night_temp_index = previous_night_temp_index + 1 previous_night_temp_array.hstack((previous_night_temp_array, pre vious_night_temp_index)) #DONE WITH PREVIOUS NIGHT TEMP ARRAY #to determine cloud cover amount #lat = 3, lon = 4 cloud_cover_array = np.array([]) cloud_cover_index = 0 for sub_array in site_array: closest_lat_diff = 1000

10) < 0: ("0" + str(int_hour_for_link)) str(int_hour_for_link) - 10) < 0: = ("0" + str(int_minute_for_link

closest_lon_diff = 1000 closest_lat_lon_aver_diff = 1000 latitude = float(sub_array[3]) longitude = float(sub_array[4]) Remarks = "NONE" #to find the closest ASOS station, and take its remarks for i in ASOS_list: #lat = 0, lon = 1 lat_diff = math.fabs((float(i[0]) - latitude)) lon_diff = math.fabs((float(i[1]) - longitude)) lat_lon_aver_diff = ((lat_diff + lon_diff) / 2) if lat_lon_aver_diff < closest_lat_lon_aver_diff: closest_lat_lon_aver_diff = lat_lon_aver_diff Remarks = i[10] else: pass Remarks_Broken = Remarks.split() too_cloudy = False #take remarks, see if too cloudy for cloudy variable to assist i n hoar for i in Remarks_Broken: if i == "BKN" or i == "OVC": too_cloudy = True #if not too cloudy, then decide how much cloud_cover_index to ad d if too_cloudy == False: for i in Remarks_Broken: if i == "SCT": cloud_cover_index = .66 else: cloud_cover_index = 1 if too_cloudy == True: cloud_cover_index = 0 cloud_cover_array.hstack((cloud_cover_array, cloud_cover_index)) dp_depression_array = np.array([]) dp_depression_index = 0 for sub_array in site_array: dp_depression_index = 0 temperature = float(sub_array[10]) dewpoint = float(sub_array[11]) temperature = (5.0/9.0) * (temperature) - 32) dewpoint = (5.0/9.0) * (temperature - 32) if (temperature - dewpoint) <= 1.5: dp_depression_index = dp_depression_index + 1 dp_depression_array.hstack((dp_depression_array, dp_depression_i ndex)) # totals up the hoar indexes hoar_index_totals = np.array([]) index_final = 0 z = 0 for i in dp_depression_array: index_final = 0 index_final = int(i)

index_final index_final index_final index_final index_final index_final

= = = = = =

index_final index_final index_final index_final index_final index_final

+ + + + + +

dp_depression_array[z] cloud_cover_array[z] previous_night_temp_array[z] nighttime_array[z] wind_speed_array[z] ei_array[z]

hoar_index_totals.hstack((hoar_index_totals, index_final)) z = z + 1 #to make sure that only environments with temperatures that could plausi bly lead to black ice are counted z = 0 temperature_celsius = 0 for sub_array in site_array: temperature_celsius = 0 temperature_celsius = (5.0/9.0) * (int(sub_array[10]) - 32) if temperature_celsius >= 2.8: hoar_index_totals[z] = 0 z = z + 1 site_locations_array = np.array([]) for array in site_array: lon = array[4] lat = array[3] site_locations_array.hstack((site_locations_array , lon + "," + lat)) return hoar_index_totals, site_locations_array def live_fog() site_array = np.array([]) live_mesonet_file = open('/home/btoms/Documents/HyDROS/HyDROS_Forecast_M odel/SOAP_XML/Mesonet_Live_Data.txt', "r") for line in live_mesonet_file: temp_array = np.array([]) ind_station_data_list = line.split(',') station_ID = ind_station_data_list[0] station_city = ind_station_data_list[1] station_state = ind_station_data_list[2] station_latitude = ind_station_data_list[3] station_longitude = ind_station_data_list[4] station_year = ind_station_data_list[5] station_month = ind_station_data_list[6] station_day = ind_station_data_list[7] station_hour = ind_station_data_list[8] station_minute = ind_station_data_list[9] station_temp = ind_station_data_list[10] station_dewpoint = ind_station_data_list[11] station_RH = ind_station_data_list[12] station_wind_direction = ind_station_data_list[15] station_wind_speed = ind_station_data_list[16] station_precipitation = ind_station_data_list[21] temp_array.hstack((temp_array, station_ID)) #0 temp_array.hstack((temp_array, station_city)) #1 temp_array.hstack((temp_array, station_state)) #2 temp_array.hstack((temp_array, station_latitude)) #3 temp_array.hstack((temp_array, station_longitude)) #4

temp_array.hstack((temp_array, temp_array.hstack((temp_array, temp_array.hstack((temp_array, temp_array.hstack((temp_array, temp_array.hstack((temp_array, temp_array.hstack((temp_array, temp_array.hstack((temp_array, temp_array.hstack((temp_array, temp_array.hstack((temp_array, temp_array.hstack((temp_array, temp_array.hstack((temp_array, site_array.hstack((site_array,

station_year)) #5 station_month)) #6 station_day)) #7 station_hour)) #8 station_minute)) #9 station_temp)) #10 station_dewpoint)) #11 station_RH) #12 station_wind_direction)) #13 station_wind_speed)) #14 station_precipitation)) #index 15 temp_array))

live_ASOS_file = open('/home/btoms/Documents/HyDROS/HyDROS_Forecast_Mode l/SOAP_XML/ASOS_Live_Data.txt', "r") ADM = np.array([34.30320,-97.01950]) #lat,lon WDG = np.array([36.37920,-97.79110]) OKC = np.array([35.38890,-97.60060]) PNC = np.array([36.73000,-97.10000]) MLC = np.array([34.88222,-95.78306]) SWO = np.array([36.16122,-97.08569]) HBR = np.array([34.99131,-99.05139]) PWA = np.array([35.53417,-97.64706]) GUY = np.array([36.68167,-101.50528]) LAW = np.array([34.56771,-98.41664]) GAG = np.array([36.29554,-99.77642]) FDR = np.array([34.35310,-98.98391]) CSM = np.array([35.33984,-99.20050]) MKO = np.array([35.65667,-95.36139]) RVS = np.array([36.03961,-95.98464]) GOK = np.array([35.84981,-97.41561]) TUL = np.array([36.19839,-95.88811]) BVO = np.array([36.76248,-96.01115]) END = np.array([36.33917,-97.91650]) TIK = np.array([35.41474,-97.38663]) FSI = np.array([34.64493,-98.40334]) LTS = np.array([34.66707,-99.26668]) AVK = np.array([36.77317,-98.66995]) AXS = np.array([34.69881,-99.33847]) TQH = np.array([35.93000,-95.00000]) GCM = np.array([36.29000,-95.48000]) JWG = np.array([35.86469,-98.42075]) OUN = np.array([35.24352,-97.47077]) DUC = np.array([34.47000,-97.96000]) ADH = np.array([34.80426,-96.67120]) HHW = np.array([34.03480,-95.54190]) GMJ = np.array([36.60678,-94.73856]) OKM = np.array([35.67000,-95.95000]) DUA = np.array([33.94227,-96.39453]) one_F_zero = np.array([34.14699,-97.12265]) #can't use numbers in variab le names CLK = np.array([35.53825,-98.93269]) BKN = np.array([36.74511,-97.34958]) RCE = np.array([35.48808,-97.82356]) GZL = np.array([35.28911,-95.09389]) PVJ = np.array([34.71083,-97.22306]) CHK = np.array([35.09736,-97.96769]) JSV = np.array([35.43806,-94.80278]) four_O_four = np.array([33.90940,-94.85940]) #can't use numbers in varia ble names

SNL CUH OJA WWR RKR CQB SRE RQO AQR

= = = = = = = = =

np.array([35.35731,-96.94283]) np.array([35.94993,-96.77305]) np.array([35.54483,-98.66849]) np.array([36.43800,-99.52267]) np.array([35.02000,-94.62000]) np.array([35.72382,-96.82027]) np.array([35.27468,-96.67516]) np.array([35.47267,-98.00579]) np.array([34.40000,-96.15000])

for line in live_ASOS_file: ASOS_ind_data = line.split(',') if ASOS_ind_data[0] == "ADM": for i in ASOS_ind_data: ADM.hstack((ADM, if ASOS_ind_data[0] == "WDG": for i in ASOS_ind_data: WDG.hstack((WDG, if ASOS_ind_data[0] == "OKC": for i in ASOS_ind_data: OKC.hstack((OKC, if ASOS_ind_data[0] == "PNC": for i in ASOS_ind_data: PNC.hstack((PNC, if ASOS_ind_data[0] == "MLC": for i in ASOS_ind_data: MLC.hstack((MLC, if ASOS_ind_data[0] == "SWO": for i in ASOS_ind_data: SWO.hstack((SWO, if ASOS_ind_data[0] == "HBR": for i in ASOS_ind_data: HBR.hstack((HBR, if ASOS_ind_data[0] == "PWA": for i in ASOS_ind_data: PWA.hstack((PWA, if ASOS_ind_data[0] == "GUY": for i in ASOS_ind_data: GUY.hstack((GUY, if ASOS_ind_data[0] == "LAW": for i in ASOS_ind_data: LAW.hstack((LAW, if ASOS_ind_data[0] == "GAG": for i in ASOS_ind_data: GAG.hstack((GAG, if ASOS_ind_data[0] == "FDR": for i in ASOS_ind_data: FDR.hstack((FDR, if ASOS_ind_data[0] == "CSM": for i in ASOS_ind_data: CSM.hstack((CSM, if ASOS_ind_data[0] == "MKO": for i in ASOS_ind_data: MKO.hstack((MKO, if ASOS_ind_data[0] == "RVS": for i in ASOS_ind_data: RVS.hstack((RVS, if ASOS_ind_data[0] == "GOK": for i in ASOS_ind_data: GOK.hstack((GOK,

i)) i)) i)) i)) i)) i)) i)) i)) i)) i)) i)) i)) i)) i)) i)) i))

if ASOS_ind_data[0] == "TUL": for i in ASOS_ind_data: TUL.hstack((TUL, i)) if ASOS_ind_data[0] == "BVO": for i in ASOS_ind_data: BVO.hstack((BVO, i)) if ASOS_ind_data[0] == "END": for i in ASOS_ind_data: END.hstack((END, i)) if ASOS_ind_data[0] == "TIK": for i in ASOS_ind_data: TIK.hstack((TIK, i)) if ASOS_ind_data[0] == "FSI": for i in ASOS_ind_data: FSI.hstack((FSI, i)) if ASOS_ind_data[0] == "LTS": for i in ASOS_ind_data: LTS.hstack((LTS, i)) if ASOS_ind_data[0] == "AVK": for i in ASOS_ind_data: AVK.hstack((AVK, i)) if ASOS_ind_data[0] == "AXS": for i in ASOS_ind_data: AXS.hstack((AXS, i)) if ASOS_ind_data[0] == "TQH": for i in ASOS_ind_data: TQH.hstack((TQH, i)) if ASOS_ind_data[0] == "GCM": for i in ASOS_ind_data: GCM.hstack((GCM, i)) if ASOS_ind_data[0] == "JWG": for i in ASOS_ind_data: JWG.hstack((JWG, i)) if ASOS_ind_data[0] == "OUN": for i in ASOS_ind_data: OUN.hstack((OUN, i)) if ASOS_ind_data[0] == "DUC": for i in ASOS_ind_data: DUC.hstack((DUC, i)) if ASOS_ind_data[0] == "ADH": for i in ASOS_ind_data: ADH.hstack((ADH, i)) if ASOS_ind_data[0] == "HHW": for i in ASOS_ind_data: HHW.hstack((HHW, i)) if ASOS_ind_data[0] == "GMJ": for i in ASOS_ind_data: GMJ.hstack((GMJ, i)) if ASOS_ind_data[0] == "OKM": for i in ASOS_ind_data: OKM.hstack((OKM, i)) if ASOS_ind_data[0] == "DUA": for i in ASOS_ind_data: DUA.hstack((DUA, i)) if ASOS_ind_data[0] == "1F0": for i in ASOS_ind_data: one_F_zero.hstack((one_F_zero, i)) if ASOS_ind_data[0] == "CLK": for i in ASOS_ind_data: CLK.hstack((CLK, i))

if ASOS_ind_data[0] == "BKN": for i in ASOS_ind_data: BKN.hstack((BKN, i)) if ASOS_ind_data[0] == "RCE": for i in ASOS_ind_data: RCE.hstack((RCE, i)) if ASOS_ind_data[0] == "GZL": for i in ASOS_ind_data: GZL.hstack((GZL, i)) if ASOS_ind_data[0] == "PVJ": for i in ASOS_ind_data: PVJ.hstack((PVJ, i)) if ASOS_ind_data[0] == "CHK": for i in ASOS_ind_data: CHK.hstack((CHK, i)) if ASOS_ind_data[0] == "JSV": for i in ASOS_ind_data: JSV.hstack((JSV, i)) if ASOS_ind_data[0] == "4O4": for i in ASOS_ind_data: four_O_four.hstack((four_O_four, i)) if ASOS_ind_data[0] == "SNL": for i in ASOS_ind_data: SNL.hstack((SNL, i)) if ASOS_ind_data[0] == "CUH": for i in ASOS_ind_data: CUH.hstack((CUH, i)) if ASOS_ind_data[0] == "OJA": for i in ASOS_ind_data: OJA.hstack((OJA, i)) if ASOS_ind_data[0] == "WWR": for i in ASOS_ind_data: WWR.hstack((WWR, i)) if ASOS_ind_data[0] == "RKR": for i in ASOS_ind_data: RKR.hstack((RKR, i)) if ASOS_ind_data[0] == "CQB": for i in ASOS_ind_data: CQB.hstack((CQB, i)) if ASOS_ind_data[0] == "SRE": for i in ASOS_ind_data: SRE.hstack((SRE, i)) if ASOS_ind_data[0] == "RQO": for i in ASOS_ind_data: RQO.hstack((RQO, i)) if ASOS_ind_data[0] == "AQR": for i in ASOS_ind_data: AQR.hstack((AQR, i)) ASOS_list = np.array[()] ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ADM)) WDG)) OKC)) PNC)) MLC)) SWO)) HBR)) PWA)) GUY))

ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list, ASOS_list.hstack((ASOS_list,

LAW)) GAG)) FDR)) CSM)) MKO)) RVS)) GOK)) TUL)) BVO)) END)) TIK)) FSI)) LTS)) AVK)) AXS)) TQH)) GCM)) JWG)) OUN)) DUC)) ADH)) HHW)) GMJ)) OKM)) DUA)) one_F_zero)) CLK)) BKN)) RCE)) GZL)) PVJ)) CHK)) JSV)) four_O_four)) SNL)) CUH)) OJA)) WWR)) RKR)) CQB)) SRE)) RQO)) AQR))

RH_array = np.array([]) RH_index = 0 for sub_array in site_array: RH_index = 0 if sub_array[12] >= 90: RH_index = RH_index + 1 if sub_array[12] < 90 and sub_array[12] >= 87.5: RH_index = RH_index + .66 if sub_array[12] < 87.5 and sub_array[12] >= 85: RH_index = RH_index + .33 RH_array.hstack((RH_array, RH_index)) RH_index = 0 cloud_cover_array = np.array([]) cloud_cover_index = 0

for sub_array in site_array: closest_lat_diff = 1000 closest_lon_diff = 1000 closest_lat_lon_aver_diff = 1000 latitude = float(sub_array[3]) longitude = float(sub_array[4]) Remarks = "NONE" #to find the closest ASOS station, and take its remarks for i in ASOS_list: #lat = 0, lon = 1 lat_diff = math.fabs((float(i[0]) - latitude)) lon_diff = math.fabs((float(i[1]) - longitude)) lat_lon_aver_diff = ((lat_diff + lon_diff) / 2) if lat_lon_aver_diff < closest_lat_lon_aver_diff: closest_lat_lon_aver_diff = lat_lon_aver_diff Remarks = i[10] else: pass Remarks_Broken = Remarks.split() too_cloudy = False #take remarks, see if too cloudy for cloudy variable to assist i n hoar for i in Remarks_Broken: if i == "BKN" or i == "OVC": too_cloudy = True #if not too cloudy, then decide how much cloud_cover_index to ad d if too_cloudy == False: for i in Remarks_Broken: if i == "SCT": cloud_cover_index = .5 else: cloud_cover_index = 1 if too_cloudy == True: cloud_cover_index = 0 cloud_cover_array.hstack((cloud_cover_array, cloud_cover_index)) cloud_cover_index = 0 Three_H_Cooling_Array = np,array([]) Cooling_Index = 0 for i in Var_Time_Array[0]: hour_checker_init = sub_array[8] minute_checker_init = sub_array[9] year_checker_init = sub_array[5] month_checker_init = sub_array[6] day_checker_init = sub_array[7] if int(hour_checker_init) < 10: hour_checker = "0" + str(hour_checker_init) else: hour_checker = str(hour_checker_init) if minute_checker < 10: minute_checker = "0" + str(minute_checker_init) else: minute_checker = str(minute_checker_init) if month_checker < 10:

month_checker = "0" + str(month_checker_init) else: month_checker = str(month_checker_init) if day_checker < 10: day_checker = "0" + str(day_checker_init) else: day_checker = str(day_checker_init) year_checker = str(year_checker_init) checker = urllib2.urlopen("http://www.mesonet.org/index.php/data MdfMts/dataController/getFile/" + str(year_checker) + str(month_checker) + str(d ay_checker) + Three_H_Ago_Hour + minute_checker + "/mdf/TEXT/").read() file = open('/home/btoms/Documents/HyDROS/HyDROS_Forecast_Model/ SOAP_XML/checker.txt') file.write(checker) file.close() if hour_checker == "00": Three_H_Ago_Hour = "21" Three_H_Ago_Data = urllib2.urlopen("http://www.mesonet.o rg/index.php/dataMdfMts/dataController/getFile/" + str(year_checker) + str(month _checker) + str(day_checker) + Three_H_Ago_Hour + minute_checker + "/mdf/TEXT/") .read() if hour_checker == "01": Three_H_Ago_Hour = "22" Three_H_Ago_Data = urllib2.urlopen("http://www.mesonet.o rg/index.php/dataMdfMts/dataController/getFile/" + str(year_checker) + str(month _checker) + str(day_checker) + Three_H_Ago_Hour + minute_checker + "/mdf/TEXT/") .read() if hour_checker == "02": Three_H_Ago_Hour = "23" Three_H_Ago_Data = urllib2.urlopen("http://www.mesonet.o rg/index.php/dataMdfMts/dataController/getFile/" + str(year_checker) + str(month _checker) + str(day_checker) + Three_H_Ago_Hour + minute_checker + "/mdf/TEXT/") .read() if hour_checker == "03": Three_H_Ago_Hour = "00" Three_H_Ago_Data = urllib2.urlopen("http://www.mesonet.o rg/index.php/dataMdfMts/dataController/getFile/" + str(year_checker) + str(month _checker) + str(day_checker) + Three_H_Ago_Hour + minute_checker + "/mdf/TEXT/") .read() if hour_checker == "04": Three_H_Ago_Hour = "01" Three_H_Ago_Data = urllib2.urlopen("http://www.mesonet.o rg/index.php/dataMdfMts/dataController/getFile/" + str(year_checker) + str(month _checker) + str(day_checker) + Three_H_Ago_Hour + minute_checker + "/mdf/TEXT/") .read() if hour_checker == "05": Three_H_Ago_Hour = "02" Three_H_Ago_Data = urllib2.urlopen("http://www.mesonet.o rg/index.php/dataMdfMts/dataController/getFile/" + str(year_checker) + str(month _checker) + str(day_checker) + Three_H_Ago_Hour + minute_checker + "/mdf/TEXT/") .read() if hour_checker == "06":

Three_H_Ago_Hour = "03" Three_H_Ago_Data = urllib2.urlopen("http://www.mesonet.o rg/index.php/dataMdfMts/dataController/getFile/" + str(year_checker) + str(month _checker) + str(day_checker) + Three_H_Ago_Hour + minute_checker + "/mdf/TEXT/") .read() if hour_checker == "07": Three_H_Ago_Hour = "04" Three_H_Ago_Data = urllib2.urlopen("http://www.mesonet.o rg/index.php/dataMdfMts/dataController/getFile/" + str(year_checker) + str(month _checker) + str(day_checker) + Three_H_Ago_Hour + minute_checker + "/mdf/TEXT/") .read() if hour_checker == "08": Three_H_Ago_Hour = "05" Three_H_Ago_Data = urllib2.urlopen("http://www.mesonet.o rg/index.php/dataMdfMts/dataController/getFile/" + str(year_checker) + str(month _checker) + str(day_checker) + Three_H_Ago_Hour + minute_checker + "/mdf/TEXT/") .read() if hour_checker == "09": Three_H_Ago_Hour = "06" Three_H_Ago_Data = urllib2.urlopen("http://www.mesonet.o rg/index.php/dataMdfMts/dataController/getFile/" + str(year_checker) + str(month _checker) + str(day_checker) + Three_H_Ago_Hour + minute_checker + "/mdf/TEXT/") .read() if hour_checker == "10": Three_H_Ago_Hour = "07" Three_H_Ago_Data = urllib2.urlopen("http://www.mesonet.o rg/index.php/dataMdfMts/dataController/getFile/" + str(year_checker) + str(month _checker) + str(day_checker) + Three_H_Ago_Hour + minute_checker + "/mdf/TEXT/") .read() if hour_checker == "11": Three_H_Ago_Hour = "08" Three_H_Ago_Data = urllib2.urlopen("http://www.mesonet.o rg/index.php/dataMdfMts/dataController/getFile/" + str(year_checker) + str(month _checker) + str(day_checker) + Three_H_Ago_Hour + minute_checker + "/mdf/TEXT/") .read() if hour_checker == "12": Three_H_Ago_Hour = "09" Three_H_Ago_Data = urllib2.urlopen("http://www.mesonet.o rg/index.php/dataMdfMts/dataController/getFile/" + str(year_checker) + str(month _checker) + str(day_checker) + Three_H_Ago_Hour + minute_checker + "/mdf/TEXT/") .read() else: Three_H_Ago_Hour = int(hour_checker) - 3 Three_H_Ago_Hour = str(Three_H_Ago_Hour) Three_H_Ago_Data = urllib2.urlopen("http://www.mesonet.o rg/index.php/dataMdfMts/dataController/getFile/" + str(year_checker) + str(month _checker) + str(day_checker) + Three_H_Ago_Hour + minute_checker + "/mdf/TEXT/") .read() Past_Mesonet_Splitter = Three_H_Ago_Data.split('\n') for site in site_array: for line in Past_Mesonet_Splitter:

Site_Splitter = line.split() if site_array[0] == Site_Splitter[0]: Three_H_Ago_Temperature = Site_Splitter[ 4] else: pass Three_Hour_dT = int(site[10]) - int(Three_H_Ago_Temperat ure) if Three_Hour_dT <= (-.5): Cooling_Index = Cooling_Index + 1 if Three_Hour_dT <= (-.4) and Three_Hour_dT > (-.5): Cooling_Index = Cooling_Index + .66 if Three_Hour_dT <= (-.3) and Three_Hour_dT > (-.4): Cooling_Index = Cooling_Index + .33 Three_H_Cooling_Index.hstack((Three_H_Cooling_Index, Cooling_Ind ex)) Cooling_Index = 0 #totals up the fog indexes fog_index_totals = np.array([]) index_final = 0 z = 0 for i in RH_array: index_final = 0 index_final = RH_array[z] index_final = Three_H_Cooling_Index[z] index_final = cloud_cover_array[z] fog_index_totals.hstack((fog_index_totals, index_final)) z = z + 1

return

def plot_live_hoar(hoar_indexes, site_locations) lons = np.array([-97.9547, -97.9447, -97.4256,]) lats = np.array([35.5322, 35.864, 35.4111]) data = np.array([1,2,2]) colortype_array = np.array([]) map = Basemap(llcrnrlon = -103.068237, llcrnrlat = 33.610045, urcrnrlon = -94.359076, urcrnrlat = 37.040928, resolution = 'i') lons_min, lons_max = lons.min(), lons.max() lats_min, lats_max = lats.min(), lats.max() #xi, yi = np.linspace(lons_min, lons_max, 100), np.linspace(lats_min, la ts_max, 100) #xi, yi = np.meshgrid(xi, yi) #rbf = scipy.interpolate.Rbf(lons,lats,data, function = 'linear') #zi = rbf(xi, yi) #xi = np.linspace(-103.068237, -94.359076) #yi = np.linspace(33.610045, 37.040928) #zi = griddata(lons, lats, data, xi, yi) #print xi, yi, zi #CS = map.contour(xi,yi,zi) #map.drawstates() #plt.show()

z = 0 for i in data: colortype = "nan" if i == 2: colortype = "red" if i == 1: colortype = "blue" map.scatter(lons[z], lats[z], c = colortype) z = z + 1 #plt.colorbar() #map.scatter(lons, lats, c = colormaker(lons, lats, data)) map.drawstates() #plt.plot(x,y) plt.show() def plot_live_fog() def plot_live_precip() Temporary_Value_Array = np.array(["BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) Temporary_Time_Array = np.array(["BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"

,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) #index 0 Temporary_Value_Array, Temporary_Time_Array = get_temperature_values(Temporary_V alue_Array, Temporary_Time_Array) Var_Value_Array = Temporary_Value_Array Var_Time_Array = Temporary_Time_Array Temporary_Value_Array2 = Temporary_Value_Array Help_Me = Temporary_Value_Array2 Temporary_Value_Array = np.array(["BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK

BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) Temporary_Time_Array = np.array(["BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) #index 1 Temporary_Value_Array, Temporary_Time_Array = get_dewpoint_values(Temporary_Valu e_Array, Temporary_Time_Array) Var_Value_Array = np.vstack((Var_Value_Array, Temporary_Value_Array)) Var_Time_Array = np.vstack((Var_Time_Array, Temporary_Time_Array)) Temporary_Value_Array = np.array(["BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB

LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) Temporary_Time_Array = np.array(["BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) #index 2 Temporary_Value_Array, Temporary_Time_Array = get_windspeed_values(Temporary_Val ue_Array, Temporary_Time_Array) Var_Value_Array = np.vstack((Var_Value_Array, Temporary_Value_Array)) Var_Time_Array = np.vstack((Var_Time_Array, Temporary_Time_Array)) Temporary_Value_Array = np.array(["BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN

KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) Temporary_Time_Array = np.array(["BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK

BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) #index 3 Temporary_Value_Array, Temporary_Time_Array = get_precipitation_values(Temporary _Value_Array, Temporary_Time_Array) Var_Value_Array = np.vstack((Var_Value_Array, Temporary_Value_Array)) Var_Time_Array = np.vstack((Var_Time_Array, Temporary_Time_Array)) Temporary_Value_Array = np.array(["BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) Temporary_Time_Array = np.array(["BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"

,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) #index 4 Temporary_Value_Array, Temporary_Time_Array = get_cloudcover_values(Temporary_Va lue_Array, Temporary_Time_Array) Var_Value_Array = np.vstack((Var_Value_Array, Temporary_Value_Array)) Var_Time_Array = np.vstack((Var_Time_Array, Temporary_Time_Array)) Temporary_Value_Array = np.array(["BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) Temporary_Time_Array = np.array(["BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN

KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) #index 5 Temporary_Value_Array, Temporary_Time_Array = get_minimum_temperature_values(Tem porary_Value_Array, Temporary_Time_Array) Var_Value_Array = np.vstack((Var_Value_Array, Temporary_Value_Array)) Var_Time_Array = np.vstack((Var_Time_Array, Temporary_Time_Array)) Temporary_Value_Array = np.array(["BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA

NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) Temporary_Time_Array = np.array(["BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) #index 6 Temporary_Value_Array, Temporary_Time_Array = get_precipitation_values(Temporary _Value_Array, Temporary_Time_Array) Var_Value_Array = np.vstack((Var_Value_Array, Temporary_Value_Array)) Var_Time_Array = np.vstack((Var_Time_Array, Temporary_Time_Array)) Temporary_Value_Array = np.array(["BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B

LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) Temporary_Time_Array = np.array(["BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) #index 7 Temporary_Value_Array, Temporary_Time_Array = get_snow_values(Temporary_Value_Ar ray, Temporary_Time_Array) Var_Value_Array = np.vstack((Var_Value_Array, Temporary_Value_Array)) Var_Time_Array = np.vstack((Var_Time_Array, Temporary_Time_Array)) Temporary_Value_Array = np.array(["BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL

ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) Temporary_Time_Array = np.array(["BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) #index 8 Temporary_Value_Array, Temporary_Time_Array = get_ice_values(Temporary_Value_Arr ay, Temporary_Time_Array)

Var_Value_Array = np.vstack((Var_Value_Array, Temporary_Value_Array)) Var_Time_Array = np.vstack((Var_Time_Array, Temporary_Time_Array)) Temporary_Value_Array = np.array(["BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANK BLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","B LANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK ","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKB LANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBL ANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLA NKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLAN KBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) Temporary_Time_Array = np.array(["BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKB

LANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BL ANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK" ,"BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBL ANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLA NKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLAN KBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANK BLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK","BLANKBLANKBLANKBLANKBLANK"]) Var_Value_Array[0], Var_Time_Array[0] = get_temperature_values(Temporary_Value_A rray, Temporary_Time_Array) #to fix the weird mistakee,....Can't figure it out e_values, e_s_values, RH_values, dewpoint_depression_values, ei_values, e_ei_rat io_values = calculations(Var_Value_Array, Var_Time_Array) #Forecasted_Hoar_Values = Hoar_Frost_Forecaster(e_values, e_s_values, RH_values, dewpoint_depression_values, ei_values, e_ei_ratio_values) #Forecasted_Freezing_Fog_Values = Freezing_Fog_Forecaster(e_values, ei_values, e _ei_ratio_values, RH_values) #Forecasted_Frozen_Precipitation_Values = Frozen_Precipitation_Forecaster() #map_plotter_hoar(Forecasted_Hoar_Values) #map_plotter_fog(Forecasted_Freezing_Fog_Values) #map_plotter_precip(Forecasted_Frozen_Precipitation_Values) #live_hoar_values, site_locations = live_hoar() #plot_live_hoar(live_hoar_values, site_locations)

Vous aimerez peut-être aussi