def weather_scale(wx_type):
    """
    returns an integer from 1-5 for a relative scale of the various weather descriptions
    more documents here
    https://www.visualcrossing.com/resources/documentation/weather-api/weather-condition-fields/"""
    
    wx={ 
        'type_43': {'type': 43, 'description':'Clear', 'rating': 0},
        'type_27': {'type': 27, 'description':'Sky Coverage Decreasing', 'rating': 0},
        'type_28': {'type': 28, 'description':'Sky Coverage Increasing', 'rating': 0},
        'type_29': {'type': 29, 'description':'Sky Unchanged', 'rating': 0},
        
        'type_42': {'type': 42, 'description':'Partially cloudy', 'rating': 0},

        'type_2': {'type': 2, 'description': 'Drizzle', 'rating': 1},
        'type_3': {'type': 3, 'description': 'Heavy Drizzle', 'rating': 1},
        'type_4': {'type': 4, 'description': 'Light Drizzle', 'rating': 1},
        'type_6': {'type': 6, 'description': 'Light Drizzle/Rain', 'rating': 1},
        'type_26': {'type': 26, 'description':'Light Rain', 'rating': 1},
        'type_41': {'type': 41, 'description':'Overcast', 'rating': 1},
        
	      'type_1': {'type': 1, 'description':'Blowing Or Drifting Snow','rating': 2},
	      'type_5':	{'type': 5, 'description':'Heavy Drizzle/Rain', 'rating': 2},
	      'type_8':	{'type': 8, 'description':'Fog', 'rating': 2},
	      'type_9':	{'type': 9, 'description':'Freezing Drizzle/Freezing Rain', 'rating': 2},
	      'type_11':	{'type': 11, 'description':'Light Freezing Drizzle/Freezing Rain', 'rating': 2},
	      'type_12':	{'type': 12, 'description':'Freezing Fog', 'rating': 2},
	      'type_14':	{'type': 14, 'description':'Light Freezing Rain', 'rating': 2},
	      'type_17':	{'type': 17, 'description':'Ice', 'rating': 2},
	      'type_18':	{'type': 18, 'description':'Lightning Without Thunder', 'rating': 2},
	      'type_19':	{'type': 19, 'description':'Mist', 'rating': 2},
	      'type_20':	{'type': 20, 'description':'Precipitation In Vicinity', 'rating': 2},
	      'type_23':	{'type': 23, 'description':'Light Rain And Snow', 'rating': 2},
	      'type_24':	{'type': 24, 'description':'Rain Showers', 'rating': 2},
	      'type_31':	{'type': 31, 'description':'Snow', 'rating': 2},
	      'type_32':	{'type': 32, 'description':'Snow And Rain Showers', 'rating': 2},
	      'type_33':	{'type': 33, 'description':'Snow Showers', 'rating': 2},
	      'type_35':	{'type': 35, 'description':'Light Snow', 'rating': 2},
	      'type_36':	{'type': 36, 'description':'Squalls', 'rating': 2},
	      'type_38':	{'type': 38, 'description':'Thunderstorm Without Precipitation', 'rating': 2},
	      'type_10':	{'type': 10, 'description':'Heavy Freezing Drizzle/Freezing Rain', 'rating': 3},
	      'type_13':	{'type': 13, 'description':'Heavy Freezing Rain', 'rating': 3},
	      'type_16':	{'type': 16, 'description':'Hail Showers', 'rating': 3},
	      'type_21':	{'type': 21, 'description':'Rain', 'rating': 3},
	      'type_22':	{'type': 22, 'description':'Heavy Rain And Snow', 'rating': 3},
	      'type_25':	{'type': 25, 'description':'Heavy Rain', 'rating': 3},
	      'type_34':	{'type': 34, 'description':'Heavy Snow', 'rating': 3},
	      'type_37':	{'type': 37, 'description':'Thunderstorm', 'rating': 3},
	      'type_40':	{'type': 40, 'description':'Hail', 'rating': 3},
	      'type_7':	    {'type': 7, 'description':'Duststorm', 'rating': 4},
	      'type_15':	{'type': 15, 'description':'Funnel Cloud/Tornado', 'rating': 4},
	      'type_39':	{'type': 39, 'description':'Diamond Dust','rating': 4},
	      'type_30':	{'type': 30, 'description':'Smoke Or Haze',  'rating': 4},
	}

    number = []
    description = []
    for i in wx_type.split(','):
        rating = next(val for key, val in wx.items() if i.strip() == key)
        number.append(rating['rating'])
        description.append(rating['description'])
    return number, description