def create_weather_3h(codes)
      codes_3h = []
      count = 0;
      max_code = 0;
      codes.each {|c|
        if compare_code(max_code ,c)
          max_code = c
        end
        count += 1
        if count == 3
          codes_3h << max_code
          max_code = 0
          count = 0
        end
      }

      codes_3h
    end
def create_weather_3h(codes)
      codes_3h = []
      count = 0;
      max_code = 0;
      codes.each {|c|
        if compare_code(max_code ,c)
          max_code = c
        end
        count += 1
        if count == 3
          codes_3h << max_code
          max_code = 0
          count = 0
        end
      }

      codes_3h
    end
3時間毎の天気コードに集約