File tree Expand file tree Collapse file tree 4 files changed +30
-10
lines changed Expand file tree Collapse file tree 4 files changed +30
-10
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,17 @@ operational modes.
18
18
+ Classic file format (CDF-1) -- The ESDS Community Standard defined the file format
19
19
to be used in the NetCDF user community in 1989. The file header bears a
20
20
signature of character string 'CDF-1' and now is commonly referred to as
21
- 'CDF-1' file format.
21
+ [ CDF-1] ( https://parallel-netcdf.github.io/doc/c-reference/pnetcdf-c/CDF_002d1-file-format-specification.html )
22
+ file format.
22
23
* 'CDF-2' format -- The CDF-1 format was later extended to support large
23
24
file size (i.e. larger than 2GB) in 2004. See its specification in
24
25
[ ESDS-RFC-011v2.0] ( https://cdn.earthdata.nasa.gov/conduit/upload/496/ESDS-RFC-011v2.00.pdf ) .
25
26
Because its file header bears a signature of 'CDF-2' and the format is
26
- also commonly referred to as 'CDF-2' format.
27
- * 'CDF-5' format -- The CDF-2 format was extended by PnetCDF developer team
27
+ also commonly referred to as
28
+ [ CDF-2] ( https://parallel-netcdf.github.io/doc/c-reference/pnetcdf-c/CDF_002d2-file-format-specification.html )
29
+ format.
30
+ * [ CDF-5] ( https://parallel-netcdf.github.io/doc/c-reference/pnetcdf-c/CDF_002d5-file-format-specification.html )
31
+ format -- The CDF-2 format was extended by PnetCDF developer team
28
32
in 2009 to support large variables and additional large data types, such
29
33
as 64-bit integer.
30
34
+ HDF5-based file format -- Starting from its version 4.0.0, NetCDF includes
Original file line number Diff line number Diff line change @@ -20,8 +20,12 @@ Creating/Opening/Closing a netCDF file
20
20
This is also the method used to open an existing netCDF file. If the file is
21
21
open for write access (mode='w', 'r+' or 'a'), you may write any type of data
22
22
including new dimensions, variables and attributes. Currently, netCDF files
23
- can be created in classic formats, specifically the formats of CDF-1, 2, and
24
- 5. When creating a new file, the format may be specified using the format
23
+ can be created in classic formats, specifically the formats of
24
+ `CDF-1 <https://parallel-netcdf.github.io/doc/c-reference/pnetcdf-c/CDF_002d1-file-format-specification.html >`_,
25
+ `CDF-2 <https://parallel-netcdf.github.io/doc/c-reference/pnetcdf-c/CDF_002d2-file-format-specification.html >`_,
26
+ and
27
+ `CDF-5 <https://parallel-netcdf.github.io/doc/c-reference/pnetcdf-c/CDF_002d5-file-format-specification.html >`_.
28
+ When creating a new file, the format may be specified using the format
25
29
keyword in the ``File `` constructor. The default format is CDF-1. To see how a
26
30
given file is formatted, you can examine the ``file_format `` attribute.
27
31
Closing the netCDF file is accomplished via the :meth: `File.close ` method of
Original file line number Diff line number Diff line change @@ -4,7 +4,10 @@ Data type
4
4
5
5
NetCDF Variable Data Types
6
6
The following table gives the netCDF external data types defined in CDF-1 and
7
- CDF-2 and the corresponding type constants for defining variables in the
7
+ `CDF-1 <https://parallel-netcdf.github.io/doc/c-reference/pnetcdf-c/CDF_002d1-file-format-specification.html >`_
8
+ and
9
+ `CDF-2 <https://parallel-netcdf.github.io/doc/c-reference/pnetcdf-c/CDF_002d2-file-format-specification.html >`_
10
+ and the corresponding type constants for defining variables in the
8
11
python interface. All these data types have direct numpy quivalent.
9
12
10
13
@@ -26,7 +29,10 @@ NetCDF Variable Data Types
26
29
+-------+----------------+-------+----------------------------------------+---------------------+
27
30
28
31
29
- Additional data types supported in CDF-5 format:
32
+ Additional data types supported in
33
+ `CDF-5 <https://parallel-netcdf.github.io/doc/c-reference/pnetcdf-c/CDF_002d5-file-format-specification.html >`_.
34
+ format:
35
+
30
36
31
37
+---------------------+----------------+-------+----------------------------------------+---------------------+
32
38
| Type | C #define | Bits | Intent of use | Numpy Equivalent |
@@ -41,3 +47,4 @@ NetCDF Variable Data Types
41
47
+---------------------+----------------+-------+----------------------------------------+---------------------+
42
48
| unsigned long long | NC_UINT64 | 64 | unsigned 8-byte integer | np.uint64 or 'u8' |
43
49
+---------------------+----------------+-------+----------------------------------------+---------------------+
50
+
Original file line number Diff line number Diff line change @@ -52,10 +52,15 @@ cdef class File:
52
52
:param str format: [Optional] underlying file format. Only relevant
53
53
when creating a new file.
54
54
55
- - ``NETCDF3_64BIT_OFFSET`` or ``NC_64BIT_OFFSET``: CDF-2 format
56
- - ``NETCDF3_64BIT_DATA`` or ``NC_64BIT_DATA``: CDF-5 format
55
+ - ``NETCDF3_64BIT_OFFSET`` or ``NC_64BIT_OFFSET``:
56
+ `CDF-2 <https://parallel-netcdf.github.io/doc/c-reference/pnetcdf-c/CDF_002d2-file-format-specification.html>`_
57
+ format
58
+ - ``NETCDF3_64BIT_DATA`` or ``NC_64BIT_DATA``:
59
+ `CDF-5 <https://parallel-netcdf.github.io/doc/c-reference/pnetcdf-c/CDF_002d5-file-format-specification.html>`_
60
+ format
57
61
- ``NETCDF3_CLASSIC`` or `None` defaults to default file format
58
- (CDF-1 format)
62
+ (`CDF-1 <https://parallel-netcdf.github.io/doc/c-reference/pnetcdf-c/CDF_002d1-file-format-specification.html>`_
63
+ format)
59
64
60
65
:param comm: [Optional]
61
66
MPI communicator to use for file access. `None` defaults to
You can’t perform that action at this time.
0 commit comments