From 448f5a31b174d0f37f674208e0115ddb3c0caa0f Mon Sep 17 00:00:00 2001 From: Rasmus Bahbah Nielsen <114926145+RasmusBahbah@users.noreply.github.com> Date: Wed, 18 Jan 2023 10:26:49 +0100 Subject: [PATCH] Fixed dimensions for .csv export --- carra2py.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)