Files

An instance of class pnetcdf.File is a high-level object representing a netCDF file. The class methods provide a set of Pythonic interfaces to create, read and write a netCDF file. A File instance serves as the root container for dimensions, variables, and attributes. Together they describe the meaning of data and relations among data objects stored in a netCDF file.

Read-only python fields of class pnetcdf.File

The following class fields are read-only and should not be modified by the user.

dimensions

The dimensions dictionary maps the names of dimensions defined in this file as an instance of the pnetcdf.Dimension.

Type: dict

variables

The variables dictionary maps the names of variables defined in this file as an instance of the pnetcdf.Variable.

Type: dict

file_format

The file format of the netCDF file. Possible values are one of the following strings. “CLASSIC”, “CDF2”, “64BIT_OFFSET”, “64BIT”, “CDF5”, “64BIT_DATA”, “NETCDF4” and “BP”.

Type: str