Skip to content

Commit 4816b48

Browse files
authored
Merge pull request #49 from wkliao/unsupported
Remove codes for unsupported features: mask and scale
2 parents 8f8f08f + 5db2ffa commit 4816b48

File tree

3 files changed

+5
-385
lines changed

3 files changed

+5
-385
lines changed

docs/source/api/variable_api.rst

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ function-call style methods or indexer-style (numpy-like) syntax.
1313

1414
.. autoclass:: pnetcdf::Variable
1515
:members: ncattrs, put_att, get_att, del_att, rename_att, get_dims, def_fill,
16-
inq_fill, fill_rec, set_auto_chartostring, set_auto_scale, set_auto_mask,
17-
set_auto_maskandscale, put_var, put_var_all, get_var, get_var_all, iput_var, bput_var
18-
iget_var, inq_offset
16+
inq_fill, fill_rec, set_auto_chartostring, put_var, put_var_all, get_var,
17+
get_var_all, iput_var, bput_var iget_var, inq_offset
1918
:exclude-members: name, shape, size
2019

2120

@@ -31,7 +30,7 @@ Variable Attributes
3130
.. attribute:: dtype
3231

3332

34-
Return the mapped numpy data type of the variable netCDF datatype. A numpy dtype object
33+
Return the mapped numpy data type of the variable netCDF datatype. A numpy dtype object
3534
describing the variable's data type.
3635
**Type:** ``numpy.dtype``
3736

@@ -44,7 +43,7 @@ Variable Attributes
4443
.. attribute:: shape
4544

4645

47-
Return the shape of the variable, which is the current sizes of all variable
46+
Return the shape of the variable, which is the current sizes of all variable
4847
dimensions
4948
**Type:** `Tuple[int, int]`
5049

@@ -66,26 +65,8 @@ Variable Attributes
6665
Return the variable's dimension names
6766
**Type:** `List[str]`
6867

69-
.. attribute:: scale
70-
71-
Only relevant when using indexer syntax to read from or write to netCDF variable.
72-
If True, `scale_factor` and `add_offset` are applied, and signed integer data is
73-
automatically converted to unsigned integer data if the `_Unsigned` attribute is set.
74-
Default is `True`, can be reset using :meth:`Variable.set_auto_scale` and
75-
:meth:`Variable.set_auto_maskandscale` methods.
76-
**Type:** `bool`
77-
78-
.. attribute:: mask
79-
80-
Only relevant when using indexer syntax to read from netCDF variable. If `True`,
81-
data is automatically converted to/from masked arrays when missing values or fill
82-
values are present. Default is `True`, can be reset using :meth:`Variable.set_auto_mask`
83-
and :meth:`Variable.set_auto_maskandscale` methods.
84-
**Type:** `bool`
85-
8668
.. attribute:: chartostring
8769

88-
8970
If `True`, data is automatically converted to/from character
9071
arrays to string arrays when the `_Encoding` variable attribute is set.
9172
Default is `True`, can be reset using :meth:`Variable.set_auto_chartostring` method.

src/pnetcdf/_Variable.pxd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ from._Dimension cimport Dimension
1111
cdef class Variable:
1212
cdef public int _varid, _file_id, _nunlimdim
1313
cdef public File _file
14-
cdef public _name, ndim, dtype, xtype, mask, scale, always_mask, chartostring
14+
cdef public _name, ndim, dtype, xtype, chartostring

0 commit comments

Comments
 (0)