-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xr.open_dataset user experience on S1-SLC #4
Comments
For acquisition modes with multiple bursts (all but stripmap), bursts "live" in separate spaces, because they differ at least in the range or in the azimuth dimension. Thus, we cannot put them in a single dataset. When Xarray will devise a data structure including multiple datasets we will be able to exploit it but, for the moment, we will expose each bursts as one group. We are left with the problem of how to tell the user which groups are available.
|
I just realised there is a possible:
Example usage: >>> slc = xr.open_dataset(".../manifes.safe", engine="sentinel1")
>>> list(slc.sentinel.swaths)
["IW1", "IW2", "IW3"]
>>> iw1 = slc.sentinel.swaths["IW1"]
>>> iw1
<xarray.Dataset>
...
>>> list(iw1.sentinel.bursts)
["N430_W0120_VV", ...]
>>> iw1.sentinel.bursts["N430_W0120_VV"]
<xarray.Dataset>
...
>>> Or for a flatter experience: >>> slc = xr.open_dataset(".../manifes.safe", engine="sentinel1")
>>> list(slc.sentinel.dataset)
[“IW1/orbit", “IW1/gcp", “IW1/N430_W0120_VV", ...]
>>> slc.sentinel.dataset[“IW1/N430_W0120_VV"]
<xarray.Dataset>
...
>>> |
Option 4 looks nice, but AFAIK it has a main drawback: the accessor will be present on every dataset, independetly on whether it has been opened with |
W00t! You are right. That makes option 4 quite ugly, indeed. |
Current agreement with @aurghs is to map the data to Once xarray solves pydata/xarray#4118 we may reassess (tracked by #60). I would propose to close this issue. |
Issue to analyse the possible behaviour when calling
xr.open_dataset
on Sentinel 1 SLC data.The text was updated successfully, but these errors were encountered: