@@ -0,0 +1,2105 @@
+# -*- coding: utf-8 -*-%0A%22%22%22%0ACreated on Fri Oct  9 16:01:02 2015%0A%0A@author: uwe%0A%22%22%22%0A%0Aimport pandas as pd%0A%0A%0Aclass FeedinWeather:%0A    def __init__(self, **kwargs):%0A        r%22%22%22%0A        %22%22%22%0A        self.data = kwargs.get('data', None)%0A        self.timezone = kwargs.get('timezone', None)%0A        self.longitude = kwargs.get('longitude', None)%0A        self.latitude = kwargs.get('latitude', None)%0A        self.name = kwargs.get('name', None)%0A        self.filename = kwargs.get('filename', None)%0A        self.data_height = kwargs.get('data_height', None)%0A%0A    def read_feedinlib_csv(self, filename=None, overwrite=True):%0A        r%22%22%22%0A        Raises: FileNotFoundError%0A        %22%22%22%0A        if filename is None:%0A            filename = self.filename%0A%0A        # Read meta data (location of weather data)%0A        meta_dict = %7B%7D%0A        skiprows = 0%0A        with open(filename, 'r') as f:%0A            while 1:%0A                tmp = f.readline()%5B2:-1%5D%0A                if not tmp.strip():%0A                    break%0A                tmp = tmp.replace(' ', '')%0A                %5Ba, b%5D = tmp.split(':')%0A                meta_dict%5Ba%5D = b%0A                skiprows += 1%0A%0A        # Read weather data%0A        if self.data is None or overwrite:%0A            df = pd.read_csv(filename, skiprows=skiprows)%0A            self.data = df.set_index(%0A                pd.to_datetime(df%5B'Unnamed: 0'%5D)).tz_localize(%0A                'UTC').tz_convert('Europe/Berlin').drop('Unnamed: 0', 1)%0A%0A        # Define attributes%0A        if self.latitude is None or overwrite:%0A            self.latitude = float(meta_dict.get('latitude'))%0A%0A        if self.longitude is None or overwrite:%0A            self.longitude = float(meta_dict.get('longitude'))%0A%0A        if self.timezone is None or overwrite:%0A            self.timezone = meta_dict.get('timezone')%0A%0A        if self.name is None or overwrite:%0A            self.name = meta_dict.get('name')%0A%0A        # Define height dict%0A        self.data_height = %7B%7D%0A        for key in self.data.keys():%0A            self.data_height%5Bkey%5D = float(%0A                meta_dict.get('data_height' + key, 0))%0A        return self%0A

add simple weather class with read csv method