You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Open multiple granules as a single virtual xarray Dataset.
@@ -30,14 +36,10 @@ def open_virtual_mfdataset(
30
36
Path to the netCDF4 group in the given file to open. If None, the root group will be opened. If the DMR++ file does not have groups, this parameter is ignored.
31
37
access:
32
38
The access method to use. One of "direct" or "indirect". Use direct when running on AWS, use indirect when running on a local machine.
33
-
load:
34
-
Create an xarray dataset with indexes and lazy loaded data.
35
-
36
-
When true, creates a lazy loaded, numpy/dask backed xarray dataset with indexes. Note that when `load=True` all the data is now available to access but not loaded into memory. When `load=False` a virtual xarray dataset is created with ManifestArrays. This virtual dataset is a view over the underlying metadata and chunks and allows creation and concatenation of zarr reference files. This virtual dataset cannot load data on it's own and see https://virtualizarr.readthedocs.io/en/latest/ for more information on virtual xarray datasets.
37
39
preprocess:
38
40
A function to apply to each virtual dataset before combining
39
41
parallel:
40
-
Open the virtual datasets in parallel (using dask.delayed)
42
+
Open the virtual datasets in parallel (using dask.delayed or lithops)
41
43
xr_combine_nested_kwargs:
42
44
Xarray arguments describing how to concatenate the datasets. Keyword arguments for xarray.combine_nested.
43
45
See [https://docs.xarray.dev/en/stable/generated/xarray.combine_nested.html](https://docs.xarray.dev/en/stable/generated/xarray.combine_nested.html)
"""Open a granule as a single virtual xarray Dataset.
154
154
@@ -163,18 +163,14 @@ def open_virtual_dataset(
163
163
Path to the netCDF4 group in the given file to open. If None, the root group will be opened. If the DMR++ file does not have groups, this parameter is ignored.
164
164
access:
165
165
The access method to use. One of "direct" or "indirect". Use direct when running on AWS, use indirect when running on a local machine.
166
-
load:
167
-
Create an xarray dataset with indexes and lazy loaded data.
168
-
169
-
When true, creates a lazy loaded, numpy/dask backed xarray dataset with indexes. Note that when `load=True` all the data is now available to access but not loaded into memory. When `load=False` a virtual xarray dataset is created with ManifestArrays. This virtual dataset is a view over the underlying metadata and chunks and allows creation and concatenation of zarr reference files. This virtual dataset cannot load data on it's own and see https://virtualizarr.readthedocs.io/en/latest/ for more information on virtual xarray datasets.
"""Retrieve credentials endpoint for direct access granule link.
202
+
203
+
Parameters:
204
+
granule:
205
+
The first granule being included in the virtual dataset.
206
+
207
+
Returns:
208
+
credentials_endpoint:
209
+
The S3 credentials endpoint. If this information is in the UMM-G record, then it is used from there. If not, a query for the collection is performed and the information is taken from the UMM-C record.
210
+
region:
211
+
Region for the data. Defaults to us-west-2. If the credentials endpoint is retrieved from the UMM-C record for the collection, the Region information is also used from UMM-C.
0 commit comments