Skip to content

Commit 0e06ba0

Browse files
committed
dev
1 parent 6849ef8 commit 0e06ba0

File tree

5 files changed

+168
-15
lines changed

5 files changed

+168
-15
lines changed

cf/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@
288288
RaggedIndexedContiguousArray,
289289
SubsampledArray,
290290
UMArray,
291+
ZarrArray,
291292
)
292293

293294
from .aggregate import aggregate, climatology_cells

cf/read_write/read.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -152,28 +152,28 @@ class read(cfdm.read):
152152
153153
{{read cdl_string: `bool`, optional}}
154154
155-
{{read external: (sequence of) `str`, optional}}
155+
{{read dataset_type: `None` or (sequence of) `str`, optional}}
156156
157-
{{read extra: (sequence of) `str`, optional}}
157+
Valid file types are:
158158
159-
{{read verbose: `int` or `str` or `None`, optional}}
159+
============== ==========================================
160+
*dataset_type* Description
161+
============== ==========================================
162+
``'netCDF'`` A netCDF-3 or netCDF-4 dataset
163+
``'CDL'`` A text CDL file of a netCDF dataset
164+
``'Zarr'`` A Zarr v2 (xarray) or Zarr v3 dataset
165+
``'UM'`` A UM fields file or PP dataset
166+
============== ==========================================
160167
161-
{{read warnings: `bool`, optional}}
168+
.. versionadded:: NEXTVERSION
162169
163-
{{read dataset_type: (sequence of) `str`, optional}}
170+
{{read external: (sequence of) `str`, optional}}
164171
165-
Valid file types are:
172+
{{read extra: (sequence of) `str`, optional}}
166173
167-
============ ============================================
168-
file type Description
169-
============ ============================================
170-
``'netCDF'`` A netCDF-3 or netCDF-4 dataset
171-
``'CDL'`` A text CDL file of a netCDF dataset
172-
``'Zarr'`` A Zarr v2 (xarray-style) or Zarr v3 dataset
173-
``'UM'`` A UM fields file or PP dataset
174-
============ ============================================
174+
{{read verbose: `int` or `str` or `None`, optional}}
175175
176-
.. versionadded:: NEXTVERSION
176+
{{read warnings: `bool`, optional}}
177177
178178
um: `dict`, optional
179179
For Met Office (UK) PP files and Met Office (UK) fields

docs/source/class.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ Data classes
8383
cf.NetCDF4Array
8484
cf.FullArray
8585
cf.UMArray
86+
cf.ZarrArray
8687

8788
Data compression classes
8889
------------------------

docs/source/class/cf.ZarrArray.rst

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
.. currentmodule:: cf
2+
.. default-role:: obj
3+
4+
cf.ZarrArray
5+
============
6+
7+
----
8+
9+
.. autoclass:: cf.ZarrArray
10+
:no-members:
11+
:no-inherited-members:
12+
13+
Inspection
14+
----------
15+
16+
.. rubric:: Methods
17+
18+
.. autosummary::
19+
:nosignatures:
20+
:toctree: ../method/
21+
:template: method.rst
22+
23+
~cf.ZarrArray.get_compression_type
24+
~cf.ZarrArray.get_subspace
25+
~cf.ZarrArray.get_attributes
26+
~cf.ZarrArray.index
27+
~cf.ZarrArray.is_subspace
28+
29+
.. rubric:: Attributes
30+
31+
.. autosummary::
32+
:nosignatures:
33+
:toctree: ../attribute/
34+
:template: attribute.rst
35+
36+
~cf.ZarrArray.array
37+
~cf.ZarrArray.astype
38+
~cf.ZarrArray.dtype
39+
~cf.ZarrArray.ndim
40+
~cf.ZarrArray.shape
41+
~cf.ZarrArray.size
42+
~cf.ZarrArray.original_shape
43+
~cf.ZarrArray.reference_shape
44+
45+
Units
46+
-----
47+
48+
.. rubric:: Methods
49+
50+
.. autosummary::
51+
:nosignatures:
52+
:toctree: ../method/
53+
:template: method.rst
54+
55+
~cf.ZarrArray.get_calendar
56+
~cf.ZarrArray.get_units
57+
~cf.ZarrArray.Units
58+
59+
60+
61+
File
62+
----
63+
64+
.. rubric:: Methods
65+
66+
.. autosummary::
67+
:nosignatures:
68+
:toctree: ../method/
69+
:template: method.rst
70+
71+
~cf.ZarrArray.get_address
72+
~cf.ZarrArray.get_addresses
73+
~cf.ZarrArray.close
74+
~cf.ZarrArray.open
75+
~cf.ZarrArray.get_filename
76+
~cf.ZarrArray.get_filenames
77+
~cf.ZarrArray.get_format
78+
~cf.ZarrArray.get_formats
79+
~cf.ZarrArray.get_groups
80+
~cf.ZarrArray.get_mask
81+
~cf.ZarrArray.get_unpack
82+
~cf.ZarrArray.get_storage_options
83+
~cf.ZarrArray.add_file_location
84+
~cf.ZarrArray.del_file_location
85+
~cf.ZarrArray.file_locations
86+
~cf.ZarrArray.file_directory
87+
~cf.ZarrArray.replace_directory
88+
~cf.ZarrArray.replace_filename
89+
~cf.ZarrArray._lock
90+
91+
92+
Miscellaneous
93+
-------------
94+
95+
.. autosummary::
96+
:nosignatures:
97+
:toctree: ../method/
98+
:template: method.rst
99+
100+
~cf.ZarrArray.copy
101+
~cf.ZarrArray.to_memory
102+
103+
Active storage
104+
--------------
105+
106+
.. autosummary::
107+
:nosignatures:
108+
:toctree: ../method/
109+
:template: method.rst
110+
111+
~cf.ZarrArray.active_storage
112+
113+
Special
114+
-------
115+
116+
.. autosummary::
117+
:nosignatures:
118+
:toctree: ../method/
119+
:template: method.rst
120+
121+
~cf.ZarrArray.__dask_tokenize__
122+
~cf.ZarrArray.__getitem__
123+
124+
Docstring substitutions
125+
-----------------------
126+
127+
.. rubric:: Methods
128+
129+
.. autosummary::
130+
:nosignatures:
131+
:toctree: ../method/
132+
:template: method.rst
133+
134+
~cf.ZarrArray._docstring_special_substitutions
135+
~cf.ZarrArray._docstring_substitutions
136+
~cf.ZarrArray._docstring_package_depth
137+
~cf.ZarrArray._docstring_method_exclusions
138+
139+
Deprecated
140+
----------
141+
142+
.. rubric:: Methods
143+
144+
.. autosummary::
145+
:nosignatures:
146+
:toctree: ../method/
147+
:template: method.rst
148+
149+
~cf.ZarrArray.filename
150+
~cf.ZarrArray.get_missing_values

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ def _get_date():
157157
"matplotlib": ("https://matplotlib.org/stable/", None),
158158
# REVIEW: h5: new intersphinx mapping
159159
"h5netcdf": ("https://h5netcdf.org", None),
160+
"zarr": ("https://zarr.readthedocs.io", None),
160161
}
161162

162163
# This extension is meant to help with the common pattern of having

0 commit comments

Comments
 (0)