-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxgroup.py
More file actions
27 lines (24 loc) · 717 Bytes
/
Copy pathxgroup.py
File metadata and controls
27 lines (24 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env python
# -*- coding: utf-8 -*-
###########################################################################
# Copyright (C) 2022 The HDF Group
#
# Author: Hyo-Kyung Lee (hyoklee@hdfgroup.org)
#
# Last Update: 2022/12/16
###########################################################################
"""
Read a specific group using xarray from Kerchunk.
"""
import glob
import xarray as xr
for f in glob.glob("ATL08*.h*5.json"):
print(f)
backend_args = {"consolidated": False, "storage_options": {"fo": f}}
ds = xr.open_dataset(
"reference://",
engine="zarr",
backend_kwargs=backend_args,
group="/METADATA/AcquisitionInformation/platform",
)
print(ds)