Skip to content

measurementStopDate_1, time_1 and time_difference are wrong for S1 L2 OCN products #24

Description

@vincelhx

measurementStopDate_1 returns the start date and time_difference is affected (tens of seconds). Indeed the SAR acquisition dates are recomputed after passing start date in every cell and after resampling.

here

ds["time"] = xr.DataArray(
data=np.full(ds["lon"].shape, t),
dims=("owiAzSize", "owiRaSize"),
attrs={"long_name": "time", "standard_name": "time"},
)

here
# FIXME astype unknown effect on bool or else

and here
unique_time = np.unique(ds[meta.time_name])

unique_time = np.unique(ds[meta.time_name])
ds.attrs["measurementStartDate"] = str(np.nanmin(unique_time))
ds.attrs["measurementStopDate"]  = str(np.nanmax(unique_time))
  • solution : keep time_1 as a constant, remove it from variables and ensure that time attributes are kept

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions