Skip to content

Commit

Permalink
Update mosaic.py (#236)
Browse files Browse the repository at this point in the history
changing count to rowsize for mosaic dataset
  • Loading branch information
selipot authored Aug 23, 2023
1 parent 6cdc191 commit 135ebbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clouddrift/adapters/mosaic.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def get_dataframes() -> tuple[pd.DataFrame, pd.DataFrame]:

# Use the index of the concatenated DataFrame to determine the count/rowsize
zero_indices = [n for n, val in enumerate(list(obs_df.index)) if val == 0]
sensors["count"] = np.diff(zero_indices + [len(obs_df)])
sensors["rowsize"] = np.diff(zero_indices + [len(obs_df)])

# Make the time column the index of the DataFrame, which will make it a
# coordinate in the xarray Dataset.
Expand Down

0 comments on commit 135ebbf

Please sign in to comment.