Repository navigation
Replies: 2 comments
|
In fact, we may even implement this for the DataFetcher, that would make it easily lazy ! ArgoSet = argopy.DataFetcher(ds='bgc', src='erddap', mode='expert').region([-55, -47, 55, 57, 0, 10])
ArgoSet.sel(PLATFORM_NUMBER=1902605, CYCLE_NUMBER=4)
ArgoSet.sel(wmo=1902605, cyc=4)
ArgoSet.isel(PLATFORM_NUMBER=2, CYCLE_NUMBER=1)
ArgoSet.isel(n_prof=12)
ArgoSet.isel(wmo=2, cyc=1)
ArgoSet[12] # n-th profile
ArgoSet[3, 123] # i-th float, j-th profileAlthough this raises the question of what is the n-th profile for a data selection with an increasing number of profiles over time ... |
0 replies
|
Seems like xarray provides custom indexing methods see here: |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Given a standard xarray dataset loaded with argopy as a collection of samples, i.e. with a single dimension
N_POINTS.Would it be nice to have an easy indexing and selecting API for Argo profiles using our
argoaccessor ?This may look like this:
This should require an efficient way to naviguate the ragged array structure of Argo samples.
May be Akward Array could be used here.
All reactions