def fetch_nrel_meta_data_all(self, columns=['id','latitude','longitude','power_density','power_capacity','speed','elevation'], \
                             data_home = None):
        data_home = str(os.getenv("HOME")) + "/nrel_data/"
        archive_file_name = "meta.csv"
        DATA_URL = self.BASE_URL + "site_meta.csv"
        if not os.path.exists(data_home):
            os.makedirs(data_home)
        archive_file = os.path.join(data_home, archive_file_name)
        if not os.path.exists(archive_file):
            u = urllib2.urlopen(DATA_URL)
            localFile = open(archive_file, 'w')
            localFile.write(u.read())
            localFile.close()
            print ("downloaded NREL meta data from from %s to %s"
                   % (DATA_URL, data_home))
        reader=csv.reader(open(archive_file, "U"), delimiter=',')
        data = []
        for row in reader:
            point=[]
            point.append(int(row[0]))
            point.append(float(row[1]))
            point.append(float(row[2]))
            point.append(float(row[3]))
            point.append(float(row[4]))
            point.append(float(row[5]))
            point.append(float(row[7]))
            data.append(point)
        # abcde stuff for "TypeError: expected a readable buffer object"
        # todo maybe better solution possible...
        data_arr=np.array([(a,b,c,d,e,f,g) for (a,b,c,d,e,f,g) in data], dtype=self.NREL_META_DTYPE)
        return data_arr[columns]
WRITEME
dataset/ETHPy150Open cigroup-ol/windml/windml/datasets/nrel.py/NREL.fetch_nrel_meta_data_all--crossover with--dataset/ETHPy150Open rizar/attention-lvcsr/libs/Theano/theano/gof/cc.py/CLinker.libraries