-
Notifications
You must be signed in to change notification settings - Fork 271
Expand file tree
/
Copy path__init__.py
More file actions
27 lines (27 loc) · 1.53 KB
/
__init__.py
File metadata and controls
27 lines (27 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# init for netCDF4. package
# Docstring comes from extension module _netCDF4.
from ._netCDF4 import *
# Need explicit imports for names beginning with underscores
from ._netCDF4 import __doc__
from ._netCDF4 import (__version__, __netcdf4libversion__, __hdf5libversion__,
__has_rename_grp__, __has_nc_inq_path__,
__has_nc_inq_format_extended__, __has_nc_open_mem__,
__has_nc_create_mem__, __has_cdf5_format__,
__has_parallel4_support__, __has_pnetcdf_support__,
__has_quantization_support__, __has_zstandard_support__,
__has_bzip2_support__, __has_blosc_support__, __has_szip_support__,
__has_set_alignment__, __has_parallel_support__, __has_ncfilter__, __has_nc_rc_set__)
import os
__all__ = [
'Dataset', 'Variable', 'Dimension', 'Group', 'MFDataset', 'MFTime', 'CompoundType',
'VLType', 'date2num', 'num2date', 'date2index', 'stringtochar', 'chartostring',
'stringtoarr', 'getlibversion', 'EnumType', 'get_chunk_cache', 'set_chunk_cache',
'set_alignment', 'get_alignment', 'nc_get', 'nc_set',
]
__pdoc__ = {'utils': False}
# if HDF5_PLUGIN_PATH not set, point to package path if plugins live there
pluginpath = os.path.join(__path__[0],'plugins')
if 'HDF5_PLUGIN_PATH' not in os.environ and\
(os.path.exists(os.path.join(pluginpath,'lib__nczhdf5filters.so')) or\
os.path.exists(os.path.join(pluginpath,'lib__nczhdf5filters.dylib'))):
os.environ['HDF5_PLUGIN_PATH']=pluginpath