From 135ebbf2a14b71ed4172813c89267a29e687bf1b Mon Sep 17 00:00:00 2001 From: Shane Elipot Date: Wed, 23 Aug 2023 18:29:20 -0400 Subject: [PATCH] Update mosaic.py (#236) changing count to rowsize for mosaic dataset --- clouddrift/adapters/mosaic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clouddrift/adapters/mosaic.py b/clouddrift/adapters/mosaic.py index 1f0b29aa..5f366ed5 100644 --- a/clouddrift/adapters/mosaic.py +++ b/clouddrift/adapters/mosaic.py @@ -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.