Skip to content

Commit

Permalink
Fixed dimensions for .csv export
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusBahbah committed Jan 18, 2023
1 parent 07ace16 commit 448f5a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions carra2py.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 448f5a3

Please sign in to comment.