Skip to content

Commit

Permalink
adding csv format into persist dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
gtramonte committed Jun 20, 2024
1 parent 3e924b5 commit faf79ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions executor/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ def _persist_single_datacube(dataframe_item, base_path, format, format_args=None
case "jpeg":
full_path = os.path.join(base_path, f"{path}.jpg")
dcube.to_image(full_path, **format_args)
case "csv":
full_path = os.path.join(base_path, f"{path}.csv")
dcube.to_csv(full_path)
return full_path

if isinstance(message.content, GeoQuery):
Expand Down

0 comments on commit faf79ec

Please sign in to comment.