Skip to content

Commit 2aeb78b

Browse files
committed
fix minor typos
1 parent 3ebb93b commit 2aeb78b

File tree

11 files changed

+24
-24
lines changed

11 files changed

+24
-24
lines changed

Diff for: Changelog

+7-7
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
version 1.6.5 (tag v1.6.5rel)
2424
===============================
25-
* fix for issue #1271 (mask ignored if bool MA assinged to uint8 var)
25+
* fix for issue #1271 (mask ignored if bool MA assigned to uint8 var)
2626
* include information on specific object when reporting errors from netcdf-c
2727
* python 3.12 wheels added, support for python 3.7 removed.
2828

@@ -341,7 +341,7 @@
341341
* Fix for auto scaling and masking when _Unsigned attribute set (create
342342
view as unsigned type after scaling and masking). Issue #671.
343343
* Always mask values outside valid_min, valid_max (not just when
344-
missing_value attribue present). Issue #672.
344+
missing_value attribute present). Issue #672.
345345
* Fix setup.py so pip install doesn't fail if cython not installed.
346346
setuptools >= 18.0 now required for installation (Issue #666).
347347

@@ -415,7 +415,7 @@
415415
reading, a vlen string array attribute is returned as a list of
416416
strings. To write, use var.setncattr_string("name", ["two", "strings"]).)
417417
* Fix for issue #596 - julian day calculations wrong for negative years,
418-
caused incorrect rountrip num2date(date2num(date)) roundtrip for dates with year
418+
caused incorrect roundtrip num2date(date2num(date)) roundtrip for dates with year
419419
< 0.
420420
* Make sure negative years work in utime.num2date (issue #596).
421421
* raise NotImplementedError when trying to pickle Dataset, Variable,
@@ -958,7 +958,7 @@
958958
lib after the 4.2 release). Controlled by kwarg 'diskless' to
959959
netCDF4.Dataset (default False). diskless=True when creating a file
960960
results in a file that exists only in memory, closing the file
961-
makes the data disapper, except if persist=True keyword given in
961+
makes the data disappear, except if persist=True keyword given in
962962
which case it is persisted to a disk file on close. diskless=True
963963
when opening a file creates an in-memory copy of the file for faster access.
964964

@@ -1196,7 +1196,7 @@ version 0.8.1 (svn revision 744)
11961196

11971197
* Experimental variable-length (vlen) data type support added.
11981198

1199-
* changes to accomodate compound types in netcdf-4.1-beta snapshots.
1199+
* changes to accommodate compound types in netcdf-4.1-beta snapshots.
12001200
Compound types now work correctly for snapshots >= 20090603.
12011201

12021202
* Added __len__ method and 'size' property to Variable class.
@@ -1207,7 +1207,7 @@ version 0.8.1 (svn revision 744)
12071207

12081208
* Fixed bug occurring when indexing with a numpy array of length 1.
12091209

1210-
* Fixed bug that occured when -1 was used as a variable index.
1210+
* Fixed bug that occurred when -1 was used as a variable index.
12111211

12121212
* enabled 'shared access' mode for NETCDF3 formatted files (mode='ws',
12131213
'r+s' or 'as'). Writes in shared mode are unbuffered, which can
@@ -1376,7 +1376,7 @@ version 0.7.3 (svn revision 501)
13761376
to work as slice indices.
13771377

13781378
* (netCDF4_classic only) try to make sure file is not left in 'define mode'
1379-
when execption is raised.
1379+
when exception is raised.
13801380

13811381
* if slicing a variable results in a array with shape (1,), just return
13821382
a scalar (except for compound types).

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ For details on the latest updates, see the [Changelog](https://github.com/Unidat
1515
06/13/2024: Version [1.7.0](https://pypi.python.org/pypi/netCDF4/1.7.0) released. Add support for complex numbers via `auto_complex` keyword to `Dataset` ([PR #1295](https://github.com/Unidata/netcdf4-python/pull/1295))
1616

1717
10/20/2023: Version [1.6.5](https://pypi.python.org/pypi/netCDF4/1.6.5) released.
18-
Fix for issue #1271 (mask ignored if bool MA assinged to uint8 var),
18+
Fix for issue #1271 (mask ignored if bool MA assigned to uint8 var),
1919
support for python 3.12 (removal of python 3.7 support), more
2020
informative error messages.
2121

Diff for: docs/index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ <h2 id="dimensions-in-a-netcdf-file">Dimensions in a netCDF file</h2>
289289
&lt;class 'netCDF4._netCDF4.Dimension'&gt;: name = 'lon', size = 144
290290
</code></pre>
291291
<p><code><a title="netCDF4.Dimension" href="#netCDF4.Dimension">Dimension</a></code> names can be changed using the
292-
<code>Datatset.renameDimension</code> method of a <code><a title="netCDF4.Dataset" href="#netCDF4.Dataset">Dataset</a></code> or
292+
<code>Dataset.renameDimension</code> method of a <code><a title="netCDF4.Dataset" href="#netCDF4.Dataset">Dataset</a></code> or
293293
<code><a title="netCDF4.Group" href="#netCDF4.Group">Group</a></code> instance.</p>
294294
<h2 id="variables-in-a-netcdf-file">Variables in a netCDF file</h2>
295295
<p>netCDF variables behave much like python multidimensional array objects
@@ -901,7 +901,7 @@ <h2 id="parallel-io">Parallel IO</h2>
901901
<p>The optional <code>comm</code> keyword may be used to specify a particular
902902
MPI communicator (<code>MPI_COMM_WORLD</code> is used by default).
903903
Each process (or rank)
904-
can now write to the file indepedently.
904+
can now write to the file independently.
905905
In this example the process rank is
906906
written to a different variable index on each task</p>
907907
<pre><code class="language-python">&gt;&gt;&gt; d = nc.createDimension('dim',4)
@@ -1164,7 +1164,7 @@ <h2 class="section-title" id="header-functions">Functions</h2>
11641164
Will be converted to a array of strings, where each string has a fixed
11651165
length of <code>b.shape[-1]</code> characters.</p>
11661166
<p>optional kwarg <code>encoding</code> can be used to specify character encoding (default
1167-
<code>utf-8</code>). If <code>encoding</code> is 'none' or 'bytes', a <code>numpy.string_</code> btye array is
1167+
<code>utf-8</code>). If <code>encoding</code> is 'none' or 'bytes', a <code>numpy.string_</code> byte array is
11681168
returned.</p>
11691169
<p>returns a numpy string array with datatype <code>'UN'</code> (or <code>'SN'</code>) and shape
11701170
<code>b.shape[:-1]</code> where where <code>N=b.shape[-1]</code>.</p></div>
@@ -2884,7 +2884,7 @@ <h3>Methods</h3>
28842884
The value of <code>_Encoding</code>
28852885
is the unicode encoding that is used to decode the bytes into strings.</p>
28862886
<p>When numpy string data is written to a variable it is converted back to
2887-
indiviual bytes, with the number of bytes in each string equalling the
2887+
individual bytes, with the number of bytes in each string equalling the
28882888
rightmost dimension of the variable.</p>
28892889
<p>The default value of <code><a title="netCDF4.chartostring" href="#netCDF4.chartostring">chartostring()</a></code> is <code>True</code>
28902890
(automatic conversions are performed).</p></div>

Diff for: examples/reading_netCDF.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@
479479
"### Finding the latitude and longitude indices of 50N, 140W\n",
480480
"\n",
481481
"- The `X` and `Y` dimensions don't look like longitudes and latitudes\n",
482-
"- Use the auxilary coordinate variables named in the `coordinates` variable attribute, `Latitude` and `Longitude`"
482+
"- Use the auxiliary coordinate variables named in the `coordinates` variable attribute, `Latitude` and `Longitude`"
483483
]
484484
},
485485
{

Diff for: examples/writing_netCDF.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@
710710
"\n",
711711
"netCDF version 4 added support for organizing data in hierarchical groups.\n",
712712
"\n",
713-
"- analagous to directories in a filesystem. \n",
713+
"- analogous to directories in a filesystem. \n",
714714
"- Groups serve as containers for variables, dimensions and attributes, as well as other groups. \n",
715715
"- A `netCDF4.Dataset` creates a special group, called the 'root group', which is similar to the root directory in a unix filesystem. \n",
716716
"\n",

Diff for: include/membuf.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ cdef memview_fromptr(void *memory, size_t size):
1212
buf.size = size # size of pointer in bytes
1313
return memoryview(buf)
1414

15-
# private extension type that implements buffer protocal.
15+
# private extension type that implements buffer protocol.
1616
cdef class _MemBuf:
1717
cdef const void *memory
1818
cdef size_t size

Diff for: include/netCDF4.pxi

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ cdef extern from "netcdf.h":
5555
NC_NETCDF4 # Use netCDF-4/HDF5 format
5656
NC_CLASSIC_MODEL # Enforce strict netcdf-3 rules.
5757
# Use these 'mode' flags for both nc_create and nc_open.
58-
NC_SHARE # Share updates, limit cacheing
58+
NC_SHARE # Share updates, limit caching
5959
# The following flag currently is ignored, but use in
6060
# nc_open() or nc_create() may someday support use of advisory
6161
# locking to prevent multiple writers from clobbering a file
@@ -111,7 +111,7 @@ cdef extern from "netcdf.h":
111111
NC_FILL
112112
NC_NOFILL
113113
# Starting with version 3.6, there are different format netCDF
114-
# files. 4.0 instroduces the third one. These defines are only for
114+
# files. 4.0 introduces the third one. These defines are only for
115115
# the nc_set_default_format function.
116116
NC_FORMAT_CLASSIC
117117
NC_FORMAT_64BIT

Diff for: setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ use_ncconfig=True
3232
# use szip_libdir and szip_incdir.
3333
#szip_dir = /usr/local
3434
# if netcdf lib was build statically with HDF4 support,
35-
# uncomment and set to hdf4 lib (libmfhdf and libdf) nstall location.
35+
# uncomment and set to hdf4 lib (libmfhdf and libdf) install location.
3636
# If the libraries and include files are installed in separate locations,
3737
# use hdf4_libdir and hdf4_incdir.
3838
#hdf4_dir = /usr/local

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def extract_version(CYTHON_FNAME):
182182
HAS_NCCONFIG = False
183183

184184
# make sure USE_NCCONFIG from environment takes
185-
# precendence over use_ncconfig from setup.cfg (issue #341).
185+
# precedence over use_ncconfig from setup.cfg (issue #341).
186186
if use_ncconfig and not USE_NCCONFIG:
187187
USE_NCCONFIG = use_ncconfig
188188
elif not USE_NCCONFIG:

Diff for: src/netCDF4/_netCDF4.pyx

+4-4
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ and whether it is unlimited.
285285
```
286286
287287
`Dimension` names can be changed using the
288-
`Datatset.renameDimension` method of a `Dataset` or
288+
`Dataset.renameDimension` method of a `Dataset` or
289289
`Group` instance.
290290
291291
## Variables in a netCDF file
@@ -997,7 +997,7 @@ use the `parallel` keyword to enable parallel access.
997997
998998
The optional `comm` keyword may be used to specify a particular
999999
MPI communicator (`MPI_COMM_WORLD` is used by default). Each process (or rank)
1000-
can now write to the file indepedently. In this example the process rank is
1000+
can now write to the file independently. In this example the process rank is
10011001
written to a different variable index on each task
10021002
10031003
```python
@@ -5625,7 +5625,7 @@ of the the rightmost dimension of the variable). The value of `_Encoding`
56255625
is the unicode encoding that is used to decode the bytes into strings.
56265626
56275627
When numpy string data is written to a variable it is converted back to
5628-
indiviual bytes, with the number of bytes in each string equalling the
5628+
individual bytes, with the number of bytes in each string equalling the
56295629
rightmost dimension of the variable.
56305630
56315631
The default value of `chartostring` is `True`
@@ -6751,7 +6751,7 @@ Will be converted to a array of strings, where each string has a fixed
67516751
length of `b.shape[-1]` characters.
67526752
67536753
optional kwarg `encoding` can be used to specify character encoding (default
6754-
`utf-8`). If `encoding` is 'none' or 'bytes', a `numpy.string_` btye array is
6754+
`utf-8`). If `encoding` is 'none' or 'bytes', a `numpy.string_` byte array is
67556755
returned.
67566756
67576757
returns a numpy string array with datatype `'UN'` (or `'SN'`) and shape

Diff for: test/test_alignment.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def test_setting_alignment(self):
134134
for line in h5ls_results.split('\n'):
135135
if not line.startswith(' '):
136136
data_variable = line.split(' ')[0]
137-
# only process the data variables we care to inpsect
137+
# only process the data variables we care to inspect
138138
if data_variable not in addresses:
139139
continue
140140
line = line.strip()

0 commit comments

Comments
 (0)