diff --git a/carra2py.py b/carra2py.py index 877ae56..109c36a 100644 --- a/carra2py.py +++ b/carra2py.py @@ -341,9 +341,9 @@ def export_to_csv(self,output = None, path = 'default'): filename = self.date + "_" + a + "_" + str(res) + "m_AVHRR.csv" - df = pd.DataFrame({'x' : x,\ - 'y' : y,\ - 'albedo' : z}) + df = pd.DataFrame({'x' : x.ravel(),\ + 'y' : y.ravel(),\ + 'albedo' : z.ravel()}) df.to_csv(path + os.sep + filename)