Skip to content

Commit dd3c0bf

Browse files
committed
rename file put_vara.py to put_var.py, get_vara.py to get_var.py
1 parent c6b0e6e commit dd3c0bf

File tree

9 files changed

+20
-20
lines changed

9 files changed

+20
-20
lines changed

docs/nc4_vs_pnetcdf.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,9 @@ collective.
280280
## Blocking vs Nonblocking APIs
281281
* Blocking APIs -- All NetCDF4 APIs are blocking APIs. A blocking API means the
282282
call to the API will not return until the operation is completed. For
283-
example, `nc_put_vara_float()` will return only when the write data has been
284-
stored at the system space, e.g. file systems. Similarly,
285-
`nc_get_vara_float()` will only return when the user read buffer containing
283+
example, a call to `Variable.put_var()` will return only when the write data
284+
has been stored at the system space, e.g. file systems. Similarly, a call to
285+
`Variable.get_var()` will only return when the user read buffer containing
286286
the data retrieved from the file. Therefore, when a series of `put/get`
287287
blocking APIs are called, these calls will be committed by the NetCDF4
288288
library one at a time, following the same order of the calls.

docs/source/tutorial/compare_netcdf4.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Alternative Reads and Writes Methods
6262
as read/write buffer, which is a prerequisite non-blocking I/O as introduced
6363
below.
6464

65-
An example program can be found in ``examples/get_vara.py``.
65+
An example program can be found in ``examples/get_var.py``.
6666

6767
Nonblocking I/O
6868
------------------------------------------

docs/source/tutorial/read_write.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Read from netCDF variables
7777
f.end_indep()
7878
buf = var.get_var(start = [0, 0], count = [5, 25], stride = [2,2])
7979
80-
For full example program, see ``examples/get_vara.py``.
80+
For full example program, see ``examples/get_var.py``.
8181

8282
Write to netCDF variables
8383
For writing, the behavior of :meth:`Variable.put_var` depends on the following
@@ -111,6 +111,6 @@ Write to netCDF variables
111111
f.end_indep()
112112
var.put_var(buff, start = [0, 0], count = [5, 25], stride = [2,2])
113113
114-
For the full example program, see ``examples/put_vara.py`` and ``examples/collective_write.py``.
114+
For the full example program, see ``examples/put_var.py`` and ``examples/collective_write.py``.
115115

116116

examples/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ check_PROGRAMS = collective_write.py \
1414
put_varn_int.py \
1515
transpose2D.py \
1616
transpose.py \
17-
put_vara.py \
18-
get_vara.py
17+
put_var.py \
18+
get_var.py
1919

2020

2121
TESTS_ENVIRONMENT = export check_PROGRAMS="${check_PROGRAMS}";

examples/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ instructions can be found at the beginning of each file.
4848
+ This example shows how to use `File` class constructor to create a NetCDF
4949
file and to open the file for read only.
5050

51-
* [put_vara.py](./put_vara.py)
51+
* [put_var.py](./put_var.py)
5252
+ This example shows how to use `Variable` method put_var() to write a 2D
5353
integer array in parallel. The data partitioning pattern is a column-wise
5454
partitioning across all processes.
5555

56-
* [get_vara.py](./get_vara.py)
57-
+ This example is the read counterpart of [put_vara.py](./put_vara.py), which
56+
* [get_var.py](./get_var.py)
57+
+ This example is the read counterpart of [put_var.py](./put_var.py), which
5858
shows how to use to `Variable` method get_var() read a 2D 4-byte integer
5959
array in parallel.
6060

@@ -72,7 +72,7 @@ instructions can be found at the beginning of each file.
7272
* `set_fill()` to enable fill mode of the file
7373
* `def_fill()` to enable fill mode and define the variable's fill value
7474
* `inq_var_fill()` to inquire the variable's fill mode information
75-
* `put_vara_all()` to write two 2D 4-byte integer array in parallel.
75+
* `put_var_all()` to write two 2D 4-byte integer array in parallel.
7676

7777
* [global_attribute.py](./global_attribute.py)
7878
+ This example shows how to use `File` method `put_att()` to write a global

examples/fill_mode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* 1. set_fill() to enable fill mode of the file
1010
* 2. def_fill() to enable fill mode and define the variable's fill value
1111
* 3. inq_var_fill() to inquire the variable's fill mode information
12-
* 4. put_vara_all() to write two 2D 4-byte integer array in parallel.
12+
* 4. put_var_all() to write two 2D 4-byte integer array in parallel.
1313
1414
Example commands for MPI run and outputs from running ncmpidump on the
1515
netCDF file produced by this example program:

examples/get_vara.py renamed to examples/get_var.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
#
55

66
"""
7-
This example is the read counterpart of example put_vara.py. It shows how to
7+
This example is the read counterpart of example put_var.py. It shows how to
88
use to `Variable` method get_var() read a 2D 4-byte integer array in parallel.
99
It also reads a global attribute and two attribute of variable named "var".
1010
The data partitioning pattern is a column-wise partitioning across all
1111
processes. Each process reads a subarray of size local_ny * local_nx.
1212
1313
To run:
14-
% mpiexec -n num_process python3 get_vara.py [put_vara_output_filename]
14+
% mpiexec -n num_process python3 get_var.py [put_var_output_filename]
1515
16-
Input file is the output file produced by put_vara.c. Here is the CDL dumped
16+
Input file is the output file produced by put_var.c. Here is the CDL dumped
1717
from running ncmpidump.
1818
1919
% ncmpidump /tmp/test1.nc

examples/parallel_run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ for prog in $check_PROGRAMS; do
6060

6161
printf '%-60s' "Testing $prog"
6262

63-
if test $prog = "get_vara.py" ; then
64-
CMD="mpiexec -n $NPROC python $prog -q $OUT_DIR/put_vara.nc"
63+
if test $prog = "get_var.py" ; then
64+
CMD="mpiexec -n $NPROC python $prog -q $OUT_DIR/put_var.nc"
6565
else
6666
CMD="mpiexec -n $NPROC python $prog -q $OUT_DIR/${prog%.*}.nc"
6767
fi

examples/put_vara.py renamed to examples/put_var.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
processes. Each process writes a subarray of size ny * nx.
1414
1515
To run:
16-
% mpiexec -n num_process python3 put_vara.py [test_file_name]
16+
% mpiexec -n num_process python3 put_var.py [test_file_name]
1717
1818
Example commands for MPI run and outputs from running ncmpidump on the
1919
output netCDF file produced by this example program:
2020
21-
% mpiexec -n num_process python3 put_vara.py /tmp/test1.nc
21+
% mpiexec -n num_process python3 put_var.py /tmp/test1.nc
2222
2323
% ncmpidump /tmp/test1.nc
2424
netcdf test1 {

0 commit comments

Comments
 (0)