diff --git a/.gitignore b/.gitignore index 567609b12..a88e065e8 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ build/ +*.pyc +dist/ +*.egg-info/ diff --git a/Changelog b/Changelog index 655a3ea9e..df6648e5f 100644 --- a/Changelog +++ b/Changelog @@ -27,6 +27,10 @@ Not installed by setup.py (contributed by Ross Gammon, issue #383). * replace tabs with spaces by running reindent.py on all *.py and *.pyx files (issue #378). + * refactor netCDF4_utils and netCDF4 module into netCDF4 package. + Refactoring effectively removes netCDF4 utils private attributes from + netCDF4 namespace, so has the potential to break code using private + attributes (issue #409). version 1.1.7 (tag v1.1.7rel) ============================= diff --git a/MANIFEST.in b/MANIFEST.in index 49095c5d7..0c02bd13f 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,17 +1,12 @@ recursive-include docs * recursive-include man * +recursive-include include * include MANIFEST.in include README.md include COPYING include Changelog include setup.cfg include setup.cfg.template -include netCDF4.pyx -include netCDF4_utils.py -include netCDF4.pxi -include netCDF4.c -include utils.pyx -include constants.pyx include examples/*py include examples/*ipynb include examples/README.md diff --git a/create_docs.sh b/create_docs.sh index 9fa1ae14a..e2ae30d89 100644 --- a/create_docs.sh +++ b/create_docs.sh @@ -1,2 +1,2 @@ # svn propset svn:mime-type text/html docs/*html -epydoc -v --no-frames --no-private --introspect-only -o docs netCDF4 +epydoc -v --no-frames --no-private --introspect-only --name netcdf4-python -o docs netCDF4._netCDF4 diff --git a/constants.pyx b/include/constants.pyx similarity index 100% rename from constants.pyx rename to include/constants.pyx diff --git a/netCDF4.pxi b/include/netCDF4.pxi similarity index 100% rename from netCDF4.pxi rename to include/netCDF4.pxi diff --git a/utils.pyx b/include/utils.pyx similarity index 100% rename from utils.pyx rename to include/utils.pyx diff --git a/netCDF4/__init__.py b/netCDF4/__init__.py new file mode 100644 index 000000000..5e881d5e9 --- /dev/null +++ b/netCDF4/__init__.py @@ -0,0 +1,8 @@ +# 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__) diff --git a/netCDF4.c b/netCDF4/_netCDF4.c similarity index 88% rename from netCDF4.c rename to netCDF4/_netCDF4.c index 8d6ed495e..e0d2b761c 100644 --- a/netCDF4.c +++ b/netCDF4/_netCDF4.c @@ -242,8 +242,8 @@ class __Pyx_FakeReference { #define _USE_MATH_DEFINES #endif #include -#define __PYX_HAVE__netCDF4 -#define __PYX_HAVE_API__netCDF4 +#define __PYX_HAVE__netCDF4___netCDF4 +#define __PYX_HAVE_API__netCDF4___netCDF4 #include "stdlib.h" #include "H5public.h" #include "netcdf.h" @@ -430,56 +430,56 @@ static const char *__pyx_filename; static const char *__pyx_f[] = { - "netCDF4.pyx", - "utils.pyx", - "netCDF4.pxi", + "netCDF4/_netCDF4.pyx", + "include/utils.pyx", + "include/netCDF4.pxi", }; /*--- Type declarations ---*/ -struct __pyx_obj_7netCDF4_Dataset; -struct __pyx_obj_7netCDF4_Group; -struct __pyx_obj_7netCDF4_Dimension; -struct __pyx_obj_7netCDF4_Variable; -struct __pyx_obj_7netCDF4_CompoundType; -struct __pyx_obj_7netCDF4_VLType; -struct __pyx_opt_args_7netCDF4__read_compound; -struct __pyx_opt_args_7netCDF4__read_vlen; -struct __pyx_opt_args_7netCDF4__strencode; +struct __pyx_obj_7netCDF4_8_netCDF4_Dataset; +struct __pyx_obj_7netCDF4_8_netCDF4_Group; +struct __pyx_obj_7netCDF4_8_netCDF4_Dimension; +struct __pyx_obj_7netCDF4_8_netCDF4_Variable; +struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType; +struct __pyx_obj_7netCDF4_8_netCDF4_VLType; +struct __pyx_opt_args_7netCDF4_8_netCDF4__read_compound; +struct __pyx_opt_args_7netCDF4_8_netCDF4__read_vlen; +struct __pyx_opt_args_7netCDF4_8_netCDF4__strencode; struct __pyx_defaults; typedef struct __pyx_defaults __pyx_defaults; -/* "netCDF4.pyx":4019 +/* "netCDF4/_netCDF4.pyx":4019 * return xtype * * cdef _read_compound(group, nc_type xtype, endian=None): # <<<<<<<<<<<<<< * # read a compound data type id from an existing file, * # construct a corresponding numpy dtype instance, */ -struct __pyx_opt_args_7netCDF4__read_compound { +struct __pyx_opt_args_7netCDF4_8_netCDF4__read_compound { int __pyx_n; PyObject *endian; }; -/* "netCDF4.pyx":4177 +/* "netCDF4/_netCDF4.pyx":4177 * return xtype, dt * * cdef _read_vlen(group, nc_type xtype, endian=None): # <<<<<<<<<<<<<< * # read a VLEN data type id from an existing file, * # construct a corresponding numpy dtype instance, */ -struct __pyx_opt_args_7netCDF4__read_vlen { +struct __pyx_opt_args_7netCDF4_8_netCDF4__read_vlen { int __pyx_n; PyObject *endian; }; -/* "netCDF4.pyx":4204 +/* "netCDF4/_netCDF4.pyx":4204 * return VLType(group, dt, name, typeid=xtype) * * cdef _strencode(pystr,encoding=None): # <<<<<<<<<<<<<< * # encode a string into bytes. If already bytes, do nothing. * # uses default_encoding module variable for default encoding. */ -struct __pyx_opt_args_7netCDF4__strencode { +struct __pyx_opt_args_7netCDF4_8_netCDF4__strencode { int __pyx_n; PyObject *encoding; }; @@ -487,14 +487,14 @@ struct __pyx_defaults { PyObject *__pyx_arg_exclude; }; -/* "netCDF4.pyx":1308 +/* "netCDF4/_netCDF4.pyx":1308 * * * cdef class Dataset: # <<<<<<<<<<<<<< * """ * Dataset(self, filename, mode="r", clobber=True, diskless=False, persist=False, keepweakref=False, format='NETCDF4') */ -struct __pyx_obj_7netCDF4_Dataset { +struct __pyx_obj_7netCDF4_8_netCDF4_Dataset { PyObject_HEAD PyObject *__weakref__; int _grpid; @@ -514,26 +514,26 @@ struct __pyx_obj_7netCDF4_Dataset { }; -/* "netCDF4.pyx":2098 +/* "netCDF4/_netCDF4.pyx":2098 * * * cdef class Group(Dataset): # <<<<<<<<<<<<<< * """ * Group(self, parent, name) */ -struct __pyx_obj_7netCDF4_Group { - struct __pyx_obj_7netCDF4_Dataset __pyx_base; +struct __pyx_obj_7netCDF4_8_netCDF4_Group { + struct __pyx_obj_7netCDF4_8_netCDF4_Dataset __pyx_base; }; -/* "netCDF4.pyx":2188 +/* "netCDF4/_netCDF4.pyx":2188 * * * cdef class Dimension: # <<<<<<<<<<<<<< * """ * Dimension(self, group, name, size=None) */ -struct __pyx_obj_7netCDF4_Dimension { +struct __pyx_obj_7netCDF4_8_netCDF4_Dimension { PyObject_HEAD int _dimid; int _grpid; @@ -543,14 +543,14 @@ struct __pyx_obj_7netCDF4_Dimension { }; -/* "netCDF4.pyx":2332 +/* "netCDF4/_netCDF4.pyx":2332 * return False * * cdef class Variable: # <<<<<<<<<<<<<< * """ * Variable(self, group, name, datatype, dimensions=(), zlib=False, complevel=4, shuffle=True, fletcher32=False, contiguous=False, chunksizes=None, endian='native', least_significant_digit=None,fill_value=None) */ -struct __pyx_obj_7netCDF4_Variable { +struct __pyx_obj_7netCDF4_8_netCDF4_Variable { PyObject_HEAD int _varid; int _grpid; @@ -570,14 +570,14 @@ struct __pyx_obj_7netCDF4_Variable { }; -/* "netCDF4.pyx":3860 +/* "netCDF4/_netCDF4.pyx":3860 * # Compound datatype support. * * cdef class CompoundType: # <<<<<<<<<<<<<< * """ * A L{CompoundType} instance is used to describe a compound data type. */ -struct __pyx_obj_7netCDF4_CompoundType { +struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType { PyObject_HEAD nc_type _nc_type; PyObject *dtype; @@ -585,14 +585,14 @@ struct __pyx_obj_7netCDF4_CompoundType { }; -/* "netCDF4.pyx":4090 +/* "netCDF4/_netCDF4.pyx":4090 * # VLEN datatype support. * * cdef class VLType: # <<<<<<<<<<<<<< * """ * A L{VLType} instance is used to describe a variable length (VLEN) data type. */ -struct __pyx_obj_7netCDF4_VLType { +struct __pyx_obj_7netCDF4_8_netCDF4_VLType { PyObject_HEAD nc_type _nc_type; PyObject *dtype; @@ -1053,33 +1053,33 @@ static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /* Module declarations from 'numpy' */ -/* Module declarations from 'netCDF4' */ -static PyTypeObject *__pyx_ptype_7netCDF4_ndarray = 0; -static PyTypeObject *__pyx_ptype_7netCDF4_Dataset = 0; -static PyTypeObject *__pyx_ptype_7netCDF4_Group = 0; -static PyTypeObject *__pyx_ptype_7netCDF4_Dimension = 0; -static PyTypeObject *__pyx_ptype_7netCDF4_Variable = 0; -static PyTypeObject *__pyx_ptype_7netCDF4_CompoundType = 0; -static PyTypeObject *__pyx_ptype_7netCDF4_VLType = 0; -static PyObject *__pyx_f_7netCDF4__get_att_names(int, int); /*proto*/ -static PyObject *__pyx_f_7netCDF4__get_att(PyObject *, int, PyObject *); /*proto*/ -static PyObject *__pyx_f_7netCDF4__get_format(int); /*proto*/ -static PyObject *__pyx_f_7netCDF4__get_full_format(int); /*proto*/ -static PyObject *__pyx_f_7netCDF4__set_att(PyObject *, int, PyObject *, PyObject *); /*proto*/ -static PyObject *__pyx_f_7netCDF4__get_types(PyObject *); /*proto*/ -static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *); /*proto*/ -static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *); /*proto*/ -static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *); /*proto*/ -static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *, PyObject *, PyObject *); /*proto*/ -static PyObject *__pyx_f_7netCDF4__find_cmptype(PyObject *, PyObject *); /*proto*/ -static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *, nc_type, struct __pyx_opt_args_7netCDF4__read_compound *__pyx_optional_args); /*proto*/ -static PyObject *__pyx_f_7netCDF4__def_vlen(PyObject *, PyObject *, PyObject *); /*proto*/ -static PyObject *__pyx_f_7netCDF4__read_vlen(PyObject *, nc_type, struct __pyx_opt_args_7netCDF4__read_vlen *__pyx_optional_args); /*proto*/ -static PyObject *__pyx_f_7netCDF4__strencode(PyObject *, struct __pyx_opt_args_7netCDF4__strencode *__pyx_optional_args); /*proto*/ -#define __Pyx_MODULE_NAME "netCDF4" -int __pyx_module_is_main_netCDF4 = 0; - -/* Implementation of 'netCDF4' */ +/* Module declarations from 'netCDF4._netCDF4' */ +static PyTypeObject *__pyx_ptype_7netCDF4_8_netCDF4_ndarray = 0; +static PyTypeObject *__pyx_ptype_7netCDF4_8_netCDF4_Dataset = 0; +static PyTypeObject *__pyx_ptype_7netCDF4_8_netCDF4_Group = 0; +static PyTypeObject *__pyx_ptype_7netCDF4_8_netCDF4_Dimension = 0; +static PyTypeObject *__pyx_ptype_7netCDF4_8_netCDF4_Variable = 0; +static PyTypeObject *__pyx_ptype_7netCDF4_8_netCDF4_CompoundType = 0; +static PyTypeObject *__pyx_ptype_7netCDF4_8_netCDF4_VLType = 0; +static PyObject *__pyx_f_7netCDF4_8_netCDF4__get_att_names(int, int); /*proto*/ +static PyObject *__pyx_f_7netCDF4_8_netCDF4__get_att(PyObject *, int, PyObject *); /*proto*/ +static PyObject *__pyx_f_7netCDF4_8_netCDF4__get_format(int); /*proto*/ +static PyObject *__pyx_f_7netCDF4_8_netCDF4__get_full_format(int); /*proto*/ +static PyObject *__pyx_f_7netCDF4_8_netCDF4__set_att(PyObject *, int, PyObject *, PyObject *); /*proto*/ +static PyObject *__pyx_f_7netCDF4_8_netCDF4__get_types(PyObject *); /*proto*/ +static PyObject *__pyx_f_7netCDF4_8_netCDF4__get_dims(PyObject *); /*proto*/ +static PyObject *__pyx_f_7netCDF4_8_netCDF4__get_grps(PyObject *); /*proto*/ +static PyObject *__pyx_f_7netCDF4_8_netCDF4__get_vars(PyObject *); /*proto*/ +static PyObject *__pyx_f_7netCDF4_8_netCDF4__def_compound(PyObject *, PyObject *, PyObject *); /*proto*/ +static PyObject *__pyx_f_7netCDF4_8_netCDF4__find_cmptype(PyObject *, PyObject *); /*proto*/ +static PyObject *__pyx_f_7netCDF4_8_netCDF4__read_compound(PyObject *, nc_type, struct __pyx_opt_args_7netCDF4_8_netCDF4__read_compound *__pyx_optional_args); /*proto*/ +static PyObject *__pyx_f_7netCDF4_8_netCDF4__def_vlen(PyObject *, PyObject *, PyObject *); /*proto*/ +static PyObject *__pyx_f_7netCDF4_8_netCDF4__read_vlen(PyObject *, nc_type, struct __pyx_opt_args_7netCDF4_8_netCDF4__read_vlen *__pyx_optional_args); /*proto*/ +static PyObject *__pyx_f_7netCDF4_8_netCDF4__strencode(PyObject *, struct __pyx_opt_args_7netCDF4_8_netCDF4__strencode *__pyx_optional_args); /*proto*/ +#define __Pyx_MODULE_NAME "netCDF4._netCDF4" +int __pyx_module_is_main_netCDF4___netCDF4 = 0; + +/* Implementation of 'netCDF4._netCDF4' */ static PyObject *__pyx_builtin_ImportError; static PyObject *__pyx_builtin_object; static PyObject *__pyx_builtin_ValueError; @@ -1093,249 +1093,249 @@ static PyObject *__pyx_builtin_RuntimeError; static PyObject *__pyx_builtin_KeyError; static PyObject *__pyx_builtin_TypeError; static PyObject *__pyx_builtin_UnicodeDecodeError; -static PyObject *__pyx_pf_7netCDF4__dateparse(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_timestr); /* proto */ -static PyObject *__pyx_pf_7netCDF4_2stringtoarr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_string, PyObject *__pyx_v_NUMCHARS, PyObject *__pyx_v_dtype); /* proto */ -static PyObject *__pyx_pf_7netCDF4_4stringtochar(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_a); /* proto */ -static PyObject *__pyx_pf_7netCDF4_6chartostring(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_b); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dates, PyObject *__pyx_v_units, PyObject *__pyx_v_calendar); /* proto */ -static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_times, PyObject *__pyx_v_units, PyObject *__pyx_v_calendar); /* proto */ -static PyObject *__pyx_pf_7netCDF4_12date2index(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dates, PyObject *__pyx_v_nctime, PyObject *__pyx_v_calendar, PyObject *__pyx_v_select); /* proto */ -static PyObject *__pyx_pf_7netCDF4_14getlibversion(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9MFDataset_12__defaults__(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_files, PyObject *__pyx_v_check, PyObject *__pyx_v_aggdim, PyObject *__pyx_v_exclude); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9MFDataset_2__setattr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9MFDataset_4__getattribute__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_name); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9MFDataset_6ncattrs(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9MFDataset_8close(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9MFDataset_10__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_10_Dimension___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_dimname, CYTHON_UNUSED PyObject *__pyx_v_dim, PyObject *__pyx_v_dimlens, PyObject *__pyx_v_dimtotlen); /* proto */ -static PyObject *__pyx_pf_7netCDF4_10_Dimension_2__len__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_10_Dimension_4isunlimited(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_10_Dimension_6__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9_Variable___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_dset, PyObject *__pyx_v_varname, PyObject *__pyx_v_var, PyObject *__pyx_v_recdimname); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9_Variable_2typecode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9_Variable_4ncattrs(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9_Variable_6__getattr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_name); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9_Variable_8__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9_Variable_10__len__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9_Variable_12_shape(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9_Variable_14set_auto_maskandscale(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_val); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_elem); /* proto */ -static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_time, PyObject *__pyx_v_units); /* proto */ -static PyObject *__pyx_pf_7netCDF4_6MFTime_2__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_elem); /* proto */ -static PyObject *__pyx_pf_7netCDF4_16_gethdf5libversion(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_18_set_default_format(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_format); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_filename, PyObject *__pyx_v_mode, PyObject *__pyx_v_clobber, PyObject *__pyx_v_format, PyObject *__pyx_v_diskless, PyObject *__pyx_v_persist, PyObject *__pyx_v_keepweakref, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_2__enter__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_4__exit__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_atype, CYTHON_UNUSED PyObject *__pyx_v_value, CYTHON_UNUSED PyObject *__pyx_v_traceback); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_6filepath(CYTHON_UNUSED struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_8__repr__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_12close(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static void __pyx_pf_7netCDF4_7Dataset_14__dealloc__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_16sync(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_18_redef(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_20_enddef(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_22set_fill_on(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_24set_fill_off(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_26createDimension(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_dimname, PyObject *__pyx_v_size); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_28renameDimension(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_oldname, PyObject *__pyx_v_newname); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_30createCompoundType(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_datatype, PyObject *__pyx_v_datatype_name); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_32createVLType(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_datatype, PyObject *__pyx_v_datatype_name); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_34createVariable(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_varname, PyObject *__pyx_v_datatype, PyObject *__pyx_v_dimensions, PyObject *__pyx_v_zlib, PyObject *__pyx_v_complevel, PyObject *__pyx_v_shuffle, PyObject *__pyx_v_fletcher32, PyObject *__pyx_v_contiguous, PyObject *__pyx_v_chunksizes, PyObject *__pyx_v_endian, PyObject *__pyx_v_least_significant_digit, PyObject *__pyx_v_fill_value, PyObject *__pyx_v_chunk_cache); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_36renameVariable(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_oldname, PyObject *__pyx_v_newname); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_38createGroup(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_groupname); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_40ncattrs(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_42setncattr(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_44setncatts(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_attdict); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_46getncattr(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_name); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_48__delattr__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_name); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_50delncattr(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_name); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_52__setattr__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_54__getattr__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_name); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_56renameAttribute(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_oldname, PyObject *__pyx_v_newname); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_58renameGroup(CYTHON_UNUSED struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_oldname, CYTHON_UNUSED PyObject *__pyx_v_newname); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_60set_auto_maskandscale(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_62set_auto_mask(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_64set_auto_scale(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_6_grpid___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_6_grpid_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_7_isopen___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_7_isopen_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_6groups___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_6groups_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_6groups_4__del__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_10dimensions___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_10dimensions_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_10dimensions_4__del__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_9variables___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_9variables_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_9variables_4__del__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_11disk_format___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_11disk_format_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_11disk_format_4__del__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_4path___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_4path_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_4path_4__del__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_6parent___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_6parent_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_6parent_4__del__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_11file_format___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_11file_format_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_11file_format_4__del__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_10data_model___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_10data_model_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_10data_model_4__del__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_8cmptypes___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_8cmptypes_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_8cmptypes_4__del__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_7vltypes___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_7vltypes_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_7vltypes_4__del__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_11keepweakref___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_11keepweakref_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_11keepweakref_4__del__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_7Dataset_23__orthogonal_indexing_____get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_23__orthogonal_indexing___2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_7Dataset_23__orthogonal_indexing___4__del__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__pyx_v_self, PyObject *__pyx_v_parent, PyObject *__pyx_v_name, PyObject *__pyx_v_kwargs); /* proto */ -static PyObject *__pyx_pf_7netCDF4_5Group_2close(CYTHON_UNUSED struct __pyx_obj_7netCDF4_Group *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_5Group_4_getname(struct __pyx_obj_7netCDF4_Group *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_5Group_4name___get__(struct __pyx_obj_7netCDF4_Group *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_5Group_4name_2__set__(CYTHON_UNUSED struct __pyx_obj_7netCDF4_Group *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_9Dimension___init__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self, PyObject *__pyx_v_grp, PyObject *__pyx_v_name, PyObject *__pyx_v_size, PyObject *__pyx_v_kwargs); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9Dimension_2_getname(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9Dimension_4name___get__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_9Dimension_4name_2__set__(CYTHON_UNUSED struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_value); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9Dimension_4__repr__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9Dimension_6__unicode__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self); /* proto */ -static Py_ssize_t __pyx_pf_7netCDF4_9Dimension_8__len__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9Dimension_10group(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9Dimension_6_dimid___get__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_9Dimension_6_dimid_2__set__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9Dimension_6_grpid___get__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_9Dimension_6_grpid_2__set__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9Dimension_11_data_model___get__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_9Dimension_11_data_model_2__set__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_9Dimension_11_data_model_4__del__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9Dimension_5_name___get__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_9Dimension_5_name_2__set__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_9Dimension_5_name_4__del__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_9Dimension_4_grp___get__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_9Dimension_4_grp_2__set__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_9Dimension_4_grp_4__del__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_grp, PyObject *__pyx_v_name, PyObject *__pyx_v_datatype, PyObject *__pyx_v_dimensions, PyObject *__pyx_v_zlib, PyObject *__pyx_v_complevel, PyObject *__pyx_v_shuffle, PyObject *__pyx_v_fletcher32, PyObject *__pyx_v_contiguous, PyObject *__pyx_v_chunksizes, PyObject *__pyx_v_endian, PyObject *__pyx_v_least_significant_digit, PyObject *__pyx_v_fill_value, PyObject *__pyx_v_chunk_cache, PyObject *__pyx_v_kwargs); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_2__array__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_4__repr__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_10_getname(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_4name___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_4name_2__set__(CYTHON_UNUSED struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_value); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_8datatype___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_5shape___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_5shape_2__set__(CYTHON_UNUSED struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_value); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_4size___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_10dimensions___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_10dimensions_2__set__(CYTHON_UNUSED struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_value); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_12group(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_14ncattrs(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_16setncattr(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_18setncatts(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_attdict); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_20getncattr(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_name); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_22delncattr(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_name); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_26endian(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_28chunking(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_30get_var_chunk_cache(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_32set_var_chunk_cache(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_size, PyObject *__pyx_v_nelems, PyObject *__pyx_v_preemption); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_34__delattr__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_name); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_36__setattr__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_38__getattr__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_name); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_40renameAttribute(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_oldname, PyObject *__pyx_v_newname); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_elem); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_elem, PyObject *__pyx_v_data); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_elem, PyObject *__pyx_v_data); /* proto */ -static Py_ssize_t __pyx_pf_7netCDF4_8Variable_50__len__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_52assignValue(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_val); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_54getValue(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_56set_auto_maskandscale(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_maskandscale); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_58set_auto_scale(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_scale); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_60set_auto_mask(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_mask); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyArrayObject *__pyx_v_data, PyObject *__pyx_v_start, PyObject *__pyx_v_count, PyObject *__pyx_v_stride); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_start, PyObject *__pyx_v_count, PyObject *__pyx_v_stride); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_6_varid___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_6_varid_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_6_grpid___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_6_grpid_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_10_nunlimdim___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_10_nunlimdim_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_5_name___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_5_name_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_5_name_4__del__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_4ndim___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_4ndim_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_4ndim_4__del__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_5dtype___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_5dtype_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_5dtype_4__del__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_4mask___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_4mask_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_4mask_4__del__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_5scale___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_5scale_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_5scale_4__del__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_12_isprimitive___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_12_isprimitive_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_12_isprimitive_4__del__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_11_iscompound___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_11_iscompound_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_11_iscompound_4__del__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_7_isvlen___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_7_isvlen_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_7_isvlen_4__del__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_4_grp___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_4_grp_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_4_grp_4__del__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_8_cmptype___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_8_cmptype_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_8_cmptype_4__del__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_7_vltype___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_7_vltype_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_7_vltype_4__del__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_8Variable_23__orthogonal_indexing_____get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_23__orthogonal_indexing___2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_8Variable_23__orthogonal_indexing___4__del__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_12CompoundType___init__(struct __pyx_obj_7netCDF4_CompoundType *__pyx_v_self, PyObject *__pyx_v_grp, PyObject *__pyx_v_dt, PyObject *__pyx_v_dtype_name, PyObject *__pyx_v_kwargs); /* proto */ -static PyObject *__pyx_pf_7netCDF4_12CompoundType_2__repr__(struct __pyx_obj_7netCDF4_CompoundType *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_12CompoundType_4__unicode__(struct __pyx_obj_7netCDF4_CompoundType *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_12CompoundType_8_nc_type___get__(struct __pyx_obj_7netCDF4_CompoundType *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_12CompoundType_8_nc_type_2__set__(struct __pyx_obj_7netCDF4_CompoundType *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static PyObject *__pyx_pf_7netCDF4_12CompoundType_5dtype___get__(struct __pyx_obj_7netCDF4_CompoundType *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_12CompoundType_5dtype_2__set__(struct __pyx_obj_7netCDF4_CompoundType *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_12CompoundType_5dtype_4__del__(struct __pyx_obj_7netCDF4_CompoundType *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_12CompoundType_4name___get__(struct __pyx_obj_7netCDF4_CompoundType *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_12CompoundType_4name_2__set__(struct __pyx_obj_7netCDF4_CompoundType *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_12CompoundType_4name_4__del__(struct __pyx_obj_7netCDF4_CompoundType *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_6VLType___init__(struct __pyx_obj_7netCDF4_VLType *__pyx_v_self, PyObject *__pyx_v_grp, PyObject *__pyx_v_dt, PyObject *__pyx_v_dtype_name, PyObject *__pyx_v_kwargs); /* proto */ -static PyObject *__pyx_pf_7netCDF4_6VLType_2__repr__(struct __pyx_obj_7netCDF4_VLType *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_6VLType_4__unicode__(struct __pyx_obj_7netCDF4_VLType *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_6VLType_8_nc_type___get__(struct __pyx_obj_7netCDF4_VLType *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_6VLType_8_nc_type_2__set__(struct __pyx_obj_7netCDF4_VLType *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static PyObject *__pyx_pf_7netCDF4_6VLType_5dtype___get__(struct __pyx_obj_7netCDF4_VLType *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_6VLType_5dtype_2__set__(struct __pyx_obj_7netCDF4_VLType *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_6VLType_5dtype_4__del__(struct __pyx_obj_7netCDF4_VLType *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_7netCDF4_6VLType_4name___get__(struct __pyx_obj_7netCDF4_VLType *__pyx_v_self); /* proto */ -static int __pyx_pf_7netCDF4_6VLType_4name_2__set__(struct __pyx_obj_7netCDF4_VLType *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ -static int __pyx_pf_7netCDF4_6VLType_4name_4__del__(struct __pyx_obj_7netCDF4_VLType *__pyx_v_self); /* proto */ -static PyObject *__pyx_tp_new_7netCDF4_Dataset(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ -static PyObject *__pyx_tp_new_7netCDF4_Group(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ -static PyObject *__pyx_tp_new_7netCDF4_Dimension(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ -static PyObject *__pyx_tp_new_7netCDF4_Variable(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ -static PyObject *__pyx_tp_new_7netCDF4_CompoundType(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ -static PyObject *__pyx_tp_new_7netCDF4_VLType(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4__dateparse(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_timestr); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_2stringtoarr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_string, PyObject *__pyx_v_NUMCHARS, PyObject *__pyx_v_dtype); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_4stringtochar(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_a); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_6chartostring(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_b); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dates, PyObject *__pyx_v_units, PyObject *__pyx_v_calendar); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_times, PyObject *__pyx_v_units, PyObject *__pyx_v_calendar); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_12date2index(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dates, PyObject *__pyx_v_nctime, PyObject *__pyx_v_calendar, PyObject *__pyx_v_select); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_14getlibversion(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9MFDataset_12__defaults__(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_files, PyObject *__pyx_v_check, PyObject *__pyx_v_aggdim, PyObject *__pyx_v_exclude); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9MFDataset_2__setattr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9MFDataset_4__getattribute__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_name); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9MFDataset_6ncattrs(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9MFDataset_8close(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9MFDataset_10__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_10_Dimension___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_dimname, CYTHON_UNUSED PyObject *__pyx_v_dim, PyObject *__pyx_v_dimlens, PyObject *__pyx_v_dimtotlen); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_10_Dimension_2__len__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_10_Dimension_4isunlimited(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_10_Dimension_6__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9_Variable___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_dset, PyObject *__pyx_v_varname, PyObject *__pyx_v_var, PyObject *__pyx_v_recdimname); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9_Variable_2typecode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9_Variable_4ncattrs(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9_Variable_6__getattr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_name); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9_Variable_8__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9_Variable_10__len__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9_Variable_12_shape(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9_Variable_14set_auto_maskandscale(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_val); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_elem); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_time, PyObject *__pyx_v_units); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_6MFTime_2__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_elem); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_16_gethdf5libversion(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_18_set_default_format(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_format); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_filename, PyObject *__pyx_v_mode, PyObject *__pyx_v_clobber, PyObject *__pyx_v_format, PyObject *__pyx_v_diskless, PyObject *__pyx_v_persist, PyObject *__pyx_v_keepweakref, CYTHON_UNUSED PyObject *__pyx_v_kwargs); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_2__enter__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_4__exit__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_atype, CYTHON_UNUSED PyObject *__pyx_v_value, CYTHON_UNUSED PyObject *__pyx_v_traceback); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_6filepath(CYTHON_UNUSED struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_8__repr__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_12close(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static void __pyx_pf_7netCDF4_8_netCDF4_7Dataset_14__dealloc__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_16sync(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_18_redef(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_20_enddef(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_22set_fill_on(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_24set_fill_off(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_26createDimension(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_dimname, PyObject *__pyx_v_size); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_28renameDimension(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_oldname, PyObject *__pyx_v_newname); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_30createCompoundType(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_datatype, PyObject *__pyx_v_datatype_name); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_32createVLType(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_datatype, PyObject *__pyx_v_datatype_name); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_34createVariable(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_varname, PyObject *__pyx_v_datatype, PyObject *__pyx_v_dimensions, PyObject *__pyx_v_zlib, PyObject *__pyx_v_complevel, PyObject *__pyx_v_shuffle, PyObject *__pyx_v_fletcher32, PyObject *__pyx_v_contiguous, PyObject *__pyx_v_chunksizes, PyObject *__pyx_v_endian, PyObject *__pyx_v_least_significant_digit, PyObject *__pyx_v_fill_value, PyObject *__pyx_v_chunk_cache); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_36renameVariable(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_oldname, PyObject *__pyx_v_newname); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_38createGroup(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_groupname); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_40ncattrs(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_42setncattr(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_44setncatts(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_attdict); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_46getncattr(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_name); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_48__delattr__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_name); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_50delncattr(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_name); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_52__setattr__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_54__getattr__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_name); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_56renameAttribute(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_oldname, PyObject *__pyx_v_newname); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_58renameGroup(CYTHON_UNUSED struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_oldname, CYTHON_UNUSED PyObject *__pyx_v_newname); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_60set_auto_maskandscale(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_62set_auto_mask(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_64set_auto_scale(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_6_grpid___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_6_grpid_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_7_isopen___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_7_isopen_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_6groups___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_6groups_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_6groups_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_10dimensions___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_10dimensions_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_10dimensions_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_9variables___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_9variables_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_9variables_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_11disk_format___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_11disk_format_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_11disk_format_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_4path___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_4path_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_4path_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_6parent___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_6parent_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_6parent_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_11file_format___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_11file_format_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_11file_format_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_10data_model___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_10data_model_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_10data_model_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_8cmptypes___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_8cmptypes_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_8cmptypes_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_7vltypes___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_7vltypes_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_7vltypes_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_11keepweakref___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_11keepweakref_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_11keepweakref_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_23__orthogonal_indexing_____get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_23__orthogonal_indexing___2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_23__orthogonal_indexing___4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_8_netCDF4_Group *__pyx_v_self, PyObject *__pyx_v_parent, PyObject *__pyx_v_name, PyObject *__pyx_v_kwargs); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_5Group_2close(CYTHON_UNUSED struct __pyx_obj_7netCDF4_8_netCDF4_Group *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_5Group_4_getname(struct __pyx_obj_7netCDF4_8_netCDF4_Group *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_5Group_4name___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Group *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_5Group_4name_2__set__(CYTHON_UNUSED struct __pyx_obj_7netCDF4_8_netCDF4_Group *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_9Dimension___init__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self, PyObject *__pyx_v_grp, PyObject *__pyx_v_name, PyObject *__pyx_v_size, PyObject *__pyx_v_kwargs); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9Dimension_2_getname(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9Dimension_4name___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_9Dimension_4name_2__set__(CYTHON_UNUSED struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_value); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9Dimension_4__repr__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9Dimension_6__unicode__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self); /* proto */ +static Py_ssize_t __pyx_pf_7netCDF4_8_netCDF4_9Dimension_8__len__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9Dimension_10group(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9Dimension_6_dimid___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_9Dimension_6_dimid_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9Dimension_6_grpid___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_9Dimension_6_grpid_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9Dimension_11_data_model___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_9Dimension_11_data_model_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_9Dimension_11_data_model_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9Dimension_5_name___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_9Dimension_5_name_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_9Dimension_5_name_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9Dimension_4_grp___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_9Dimension_4_grp_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_9Dimension_4_grp_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_grp, PyObject *__pyx_v_name, PyObject *__pyx_v_datatype, PyObject *__pyx_v_dimensions, PyObject *__pyx_v_zlib, PyObject *__pyx_v_complevel, PyObject *__pyx_v_shuffle, PyObject *__pyx_v_fletcher32, PyObject *__pyx_v_contiguous, PyObject *__pyx_v_chunksizes, PyObject *__pyx_v_endian, PyObject *__pyx_v_least_significant_digit, PyObject *__pyx_v_fill_value, PyObject *__pyx_v_chunk_cache, PyObject *__pyx_v_kwargs); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_2__array__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_4__repr__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_10_getname(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_4name___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_4name_2__set__(CYTHON_UNUSED struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_value); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_8datatype___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_5shape___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_5shape_2__set__(CYTHON_UNUSED struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_value); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_4size___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_10dimensions___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_10dimensions_2__set__(CYTHON_UNUSED struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_value); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_12group(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_14ncattrs(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_16setncattr(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_18setncatts(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_attdict); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_20getncattr(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_name); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_22delncattr(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_name); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_26endian(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_28chunking(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_30get_var_chunk_cache(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_32set_var_chunk_cache(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_size, PyObject *__pyx_v_nelems, PyObject *__pyx_v_preemption); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_34__delattr__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_name); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_36__setattr__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_38__getattr__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_name); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_40renameAttribute(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_oldname, PyObject *__pyx_v_newname); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_42__getitem__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_elem); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_data); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_elem, PyObject *__pyx_v_data); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_elem, PyObject *__pyx_v_data); /* proto */ +static Py_ssize_t __pyx_pf_7netCDF4_8_netCDF4_8Variable_50__len__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_52assignValue(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_val); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_54getValue(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_56set_auto_maskandscale(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_maskandscale); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_58set_auto_scale(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_scale); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_60set_auto_mask(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_mask); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyArrayObject *__pyx_v_data, PyObject *__pyx_v_start, PyObject *__pyx_v_count, PyObject *__pyx_v_stride); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_start, PyObject *__pyx_v_count, PyObject *__pyx_v_stride); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_6_varid___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_6_varid_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_6_grpid___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_6_grpid_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_10_nunlimdim___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_10_nunlimdim_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_5_name___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_5_name_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_5_name_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_4ndim___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_4ndim_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_4ndim_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_5dtype___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_5dtype_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_5dtype_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_4mask___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_4mask_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_4mask_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_5scale___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_5scale_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_5scale_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_12_isprimitive___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_12_isprimitive_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_12_isprimitive_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_11_iscompound___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_11_iscompound_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_11_iscompound_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_7_isvlen___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_7_isvlen_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_7_isvlen_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_4_grp___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_4_grp_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_4_grp_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_8_cmptype___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_8_cmptype_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_8_cmptype_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_7_vltype___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_7_vltype_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_7_vltype_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_23__orthogonal_indexing_____get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_23__orthogonal_indexing___2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_23__orthogonal_indexing___4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_12CompoundType___init__(struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *__pyx_v_self, PyObject *__pyx_v_grp, PyObject *__pyx_v_dt, PyObject *__pyx_v_dtype_name, PyObject *__pyx_v_kwargs); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_12CompoundType_2__repr__(struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_12CompoundType_4__unicode__(struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_12CompoundType_8_nc_type___get__(struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_12CompoundType_8_nc_type_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_12CompoundType_5dtype___get__(struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_12CompoundType_5dtype_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_12CompoundType_5dtype_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_12CompoundType_4name___get__(struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_12CompoundType_4name_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_12CompoundType_4name_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_6VLType___init__(struct __pyx_obj_7netCDF4_8_netCDF4_VLType *__pyx_v_self, PyObject *__pyx_v_grp, PyObject *__pyx_v_dt, PyObject *__pyx_v_dtype_name, PyObject *__pyx_v_kwargs); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_6VLType_2__repr__(struct __pyx_obj_7netCDF4_8_netCDF4_VLType *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_6VLType_4__unicode__(struct __pyx_obj_7netCDF4_8_netCDF4_VLType *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_6VLType_8_nc_type___get__(struct __pyx_obj_7netCDF4_8_netCDF4_VLType *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_6VLType_8_nc_type_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_VLType *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_6VLType_5dtype___get__(struct __pyx_obj_7netCDF4_8_netCDF4_VLType *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_6VLType_5dtype_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_VLType *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_6VLType_5dtype_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_VLType *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_6VLType_4name___get__(struct __pyx_obj_7netCDF4_8_netCDF4_VLType *__pyx_v_self); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_6VLType_4name_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_VLType *__pyx_v_self, PyObject *__pyx_v_value); /* proto */ +static int __pyx_pf_7netCDF4_8_netCDF4_6VLType_4name_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_VLType *__pyx_v_self); /* proto */ +static PyObject *__pyx_tp_new_7netCDF4_8_netCDF4_Dataset(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ +static PyObject *__pyx_tp_new_7netCDF4_8_netCDF4_Group(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ +static PyObject *__pyx_tp_new_7netCDF4_8_netCDF4_Dimension(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ +static PyObject *__pyx_tp_new_7netCDF4_8_netCDF4_Variable(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ +static PyObject *__pyx_tp_new_7netCDF4_8_netCDF4_CompoundType(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ +static PyObject *__pyx_tp_new_7netCDF4_8_netCDF4_VLType(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/ static char __pyx_k_1[] = "1"; static char __pyx_k_O[] = "O"; static char __pyx_k_S[] = "S"; @@ -1527,6 +1527,7 @@ static char __pyx_k_tostr[] = "_tostr"; static char __pyx_k_tsecs[] = "tsecs"; static char __pyx_k_units[] = "units"; static char __pyx_k_utf_8[] = "utf-8"; +static char __pyx_k_utils[] = "utils"; static char __pyx_k_utime[] = "utime"; static char __pyx_k_vInst[] = "vInst"; static char __pyx_k_vName[] = "vName"; @@ -1601,7 +1602,6 @@ static char __pyx_k_getname[] = "_getname"; static char __pyx_k_group_s[] = "group %s:\n"; static char __pyx_k_nc_type[] = "_nc_type"; static char __pyx_k_ncattrs[] = "ncattrs"; -static char __pyx_k_netCDF4[] = "netCDF4"; static char __pyx_k_newname[] = "newname"; static char __pyx_k_offsets[] = "offsets"; static char __pyx_k_oldname[] = "oldname"; @@ -1771,7 +1771,6 @@ static char __pyx_k_getlibversion[] = "getlibversion"; static char __pyx_k_is_native_big[] = "is_native_big"; static char __pyx_k_missing_value[] = "missing_value"; static char __pyx_k_name_s_size_s[] = ": name = '%s', size = %s\n"; -static char __pyx_k_netCDF4_utils[] = "netCDF4_utils"; static char __pyx_k_set_auto_mask[] = "set_auto_mask"; static char __pyx_k_timestr_split[] = "timestr_split"; static char __pyx_k_unicode_error[] = "unicode_error"; @@ -1804,10 +1803,12 @@ static char __pyx_k_Variable_ncattrs[] = "_Variable.ncattrs"; static char __pyx_k_default_encoding[] = "default_encoding"; static char __pyx_k_default_fillvals[] = "default_fillvals"; static char __pyx_k_is_native_little[] = "is_native_little"; +static char __pyx_k_netCDF4__netCDF4[] = "netCDF4._netCDF4"; static char __pyx_k_vlen_data_type_s[] = "vlen data type: %s\n"; static char __pyx_k_MFDataset_ncattrs[] = "MFDataset.ncattrs"; static char __pyx_k_Variable_typecode[] = "_Variable.typecode"; static char __pyx_k_gethdf5libversion[] = "_gethdf5libversion"; +static char __pyx_k_include_utils_pyx[] = "include/utils.pyx"; static char __pyx_k_netcdf4libversion[] = "__netcdf4libversion__"; static char __pyx_k_UnicodeDecodeError[] = "UnicodeDecodeError"; static char __pyx_k_Variable___getattr[] = "_Variable.__getattr__"; @@ -1845,7 +1846,6 @@ static char __pyx_k_FillValue_attribute_must_be_set[] = "_FillValue attribute mu static char __pyx_k_Introduction_Python_interface_t[] = "\nIntroduction\n============\n\nPython interface to the netCDF version 4 library. U{netCDF version 4\n} has many features\nnot found in earlier versions of the library and is implemented on top of\nU{HDF5 }. This module can read and write\nfiles in both the new netCDF 4 and the old netCDF 3 format, and can create\nfiles that are readable by HDF5 clients. The API modelled after\nU{Scientific.IO.NetCDF\n}, and should be\nfamiliar to users of that module.\n\nMost new features of netCDF 4 are implemented, such as multiple\nunlimited dimensions, groups and zlib data compression. All the new\nnumeric data types (such as 64 bit and unsigned integer types) are\nimplemented. Compound and variable length (vlen) data types are supported,\nbut the enum and opaque data types are not. Mixtures of compound and vlen\ndata types (compound types containing vlens, and vlens containing compound\ntypes) are not supported.\n\nDownload\n========\n\n - Latest bleeding-edge code from the U{github repository\n }.\n - Latest U{releases }\n (source code and windows installers).\n\nRequires\n========\n\n - Python 2.5 or later (python 3 works too).\n - numpy array module U{http://numpy.scipy.org}, version 1.7.0 or later.\n - U{Cython }, version 0.19 or later, is optional - if it is installed setup.py will\n use it to recompile the Cython source code into C, using conditional compilation\n to enable features in the netCDF API that have been added since version 4.1.1. If\n Cython is not installed, these features (such as the ability to rename Group objects)\n will be disabled to preserve backward compatibility with older versions of the netCDF\n library.\n - For python < 2.7, the ordereddict module U{http://python.org/pypi/ordereddict}.""\n - The HDF5 C library version 1.8.4-patch1 or higher (1.8.8 or higher\n recommended) from U{ftp://ftp.hdfgroup.org/HDF5/current/src}.\n Be sure to build with 'C{--enable-hl --enable-shared}'.\n - U{Libcurl }, if you want\n U{OPeNDAP} support.\n - U{HDF4 }, if you want\n to be able to read HDF4 \"Scientific Dataset\" (SD) files.\n - The netCDF-4 C library from U{ftp://ftp.unidata.ucar.edu/pub/netcdf}.\n Version 4.1.1 or higher is required (4.2 or higher recommended).\n Be sure to build with 'C{--enable-netcdf-4 --enable-shared}', and set\n C{CPPFLAGS=\"-I $HDF5_DIR/include\"} and C{LDFLAGS=\"-L $HDF5_DIR/lib\"},\n where C{$HDF5_DIR} is the directory where HDF5 was installed.\n If you want U{OPeNDAP} support, add 'C{--enable-dap}'.\n If you want HDF4 SD support, add 'C{--enable-hdf4}' and add\n the location of the HDF4 headers and library to C{CPPFLAGS} and C{LDFLAGS}.\n\n\nInstall\n=======\n\n - install the requisite python modules and C libraries (see above). It's\n easiest if all the C libs are built as shared libraries.\n - By default, the utility C{nc-config}, installed with netcdf 4.1.2 or higher,\n will be run used to determine where all the dependencies live.\n - If C{nc-config} is not in your default C{PATH}, rename the\n file C{setup.cfg.template} to C{setup.cfg}, then edit\n in a text editor (follow the instructions in the comments).\n In addition to specifying the path to C{nc-config},\n you can manually set the paths to all the libraries and their include files\n (in case C{nc-config} does not do the right thing).\n - run C{python setup.py build}, then C{python setup.py install} (as root if\n necessary).\n - run the tests in the 'test' directory by running C{python run_all.py}.\n\nTutorial\n========\n\n1) Creating/Opening/Closing a netCDF file\n-----------------------------------------\n\nTo create a netCDF file from python, you simply call th""e L{Dataset}\nconstructor. This is also the method used to open an existing netCDF\nfile. If the file is open for write access (C{w, r+} or C{a}), you may\nwrite any type of data including new dimensions, groups, variables and\nattributes. netCDF files come in several flavors (C{NETCDF3_CLASSIC,\nNETCDF3_64BIT, NETCDF4_CLASSIC}, and C{NETCDF4}). The first two flavors\nare supported by version 3 of the netCDF library. C{NETCDF4_CLASSIC}\nfiles use the version 4 disk format (HDF5), but do not use any features\nnot found in the version 3 API. They can be read by netCDF 3 clients\nonly if they have been relinked against the netCDF 4 library. They can\nalso be read by HDF5 clients. C{NETCDF4} files use the version 4 disk\nformat (HDF5) and use the new features of the version 4 API. The\nC{netCDF4} module can read and write files in any of these formats. When\ncreating a new file, the format may be specified using the C{format}\nkeyword in the C{Dataset} constructor. The default format is\nC{NETCDF4}. To see how a given file is formatted, you can examine the\nC{data_model} L{Dataset} attribute. Closing the netCDF file is\naccomplished via the L{close} method of the L{Dataset}\ninstance.\n\nHere's an example:\n\n>>> from netCDF4 import Dataset\n>>> rootgrp = Dataset('test.nc', 'w', format='NETCDF4')\n>>> print rootgrp.data_model\nNETCDF4\n>>>\n>>> rootgrp.close()\n\nRemote U{OPeNDAP}-hosted datasets can be accessed for\nreading over http if a URL is provided to the L{Dataset} constructor instead of a\nfilename. However, this requires that the netCDF library be built with\nOPenDAP support, via the C{--enable-dap} configure option (added in\nversion 4.0.1).\n\n\n2) Groups in a netCDF file\n--------------------------\n\nnetCDF version 4 added support for organizing data in hierarchical\ngroups, which are analagous to directories in a filesystem. Groups serve\nas containers for variables, dimensions and attributes, as well as other\ngro""ups. A C{netCDF4.Dataset} defines creates a special group, called\nthe 'root group', which is similar to the root directory in a unix\nfilesystem. To create L{Group} instances, use the\nL{createGroup} method of a L{Dataset} or L{Group}\ninstance. L{createGroup} takes a single argument, a\npython string containing the name of the new group. The new L{Group}\ninstances contained within the root group can be accessed by name using\nthe C{groups} dictionary attribute of the L{Dataset} instance. Only\nC{NETCDF4} formatted files support Groups, if you try to create a Group\nin a netCDF 3 file you will get an error message.\n\n>>> rootgrp = Dataset('test.nc', 'a')\n>>> fcstgrp = rootgrp.createGroup('forecasts')\n>>> analgrp = rootgrp.createGroup('analyses')\n>>> print rootgrp.groups\nOrderedDict([('forecasts', ),\n ('analyses', )])\n>>>\n\nGroups can exist within groups in a L{Dataset}, just as directories\nexist within directories in a unix filesystem. Each L{Group} instance\nhas a C{'groups'} attribute dictionary containing all of the group\ninstances contained within that group. Each L{Group} instance also has a\nC{'path'} attribute that contains a simulated unix directory path to\nthat group.\n\nHere's an example that shows how to navigate all the groups in a\nL{Dataset}. The function C{walktree} is a Python generator that is used\nto walk the directory tree. Note that printing the L{Dataset} or L{Group}\nobject yields summary information about it's contents.\n\n>>> fcstgrp1 = fcstgrp.createGroup('model1')\n>>> fcstgrp2 = fcstgrp.createGroup('model2')\n>>> def walktree(top):\n>>> values = top.groups.values()\n>>> yield values\n>>> for value in top.groups.values():\n>>> for children in walktree(value):\n>>> yield children\n>>> print rootgrp\n>>> for children in walktree(rootgrp):\n>>> for child in children:""\n>>> print child\n\nroot group (NETCDF4 file format):\n dimensions:\n variables:\n groups: forecasts, analyses\n\ngroup /forecasts:\n dimensions:\n variables:\n groups: model1, model2\n\ngroup /analyses:\n dimensions:\n variables:\n groups:\n\ngroup /forecasts/model1:\n dimensions:\n variables:\n groups:\n\ngroup /forecasts/model2:\n dimensions:\n variables:\n groups:\n>>>\n\n3) Dimensions in a netCDF file\n------------------------------\n\nnetCDF defines the sizes of all variables in terms of dimensions, so\nbefore any variables can be created the dimensions they use must be\ncreated first. A special case, not often used in practice, is that of a\nscalar variable, which has no dimensions. A dimension is created using\nthe L{createDimension} method of a L{Dataset}\nor L{Group} instance. A Python string is used to set the name of the\ndimension, and an integer value is used to set the size. To create an\nunlimited dimension (a dimension that can be appended to), the size\nvalue is set to C{None} or 0. In this example, there both the C{time} and\nC{level} dimensions are unlimited. Having more than one unlimited\ndimension is a new netCDF 4 feature, in netCDF 3 files there may be only\none, and it must be the first (leftmost) dimension of the variable.\n\n>>> level = rootgrp.createDimension('level', None)\n>>> time = rootgrp.createDimension('time', None)\n>>> lat = rootgrp.createDimension('lat', 73)\n>>> lon = rootgrp.createDimension('lon', 144)\n\n\nAll of the L{Dimension} instances are stored in a python dictionary.\n\n>>> print rootgrp.dimensions\nOrderedDict([('level', ),\n ('time', ),\n ('lat', ),\n ('lon', )])\n>>>\n\nCalling the python C{len} function with a L{Dimension} instance returns\nthe current size of that dimension.\nThe L{isunlimited} method of a L{Dimension} instance\ncan be used to determine if the dimensions is unlimited, or appendable.\n\n>>> print len(lon)\n144\n>>> print len.is_unlimited()\nFalse\n>>> print time.is_unlimited()\nTrue\n>>>\n\nPrinting the L{Dimension} object\nprovides useful summary info, including the name and length of the dimension,\nand whether it is unlimited.\n\n>>> for dimobj in rootgrp.dimensions.values():\n>>> print dimobj\n (unlimited): name = 'level', size = 0\n (unlimited): name = 'time', size = 0\n: name = 'lat', size = 73\n: name = 'lon', size = 144\n (unlimited): name = 'time', size = 0\n>>>\n\nL{Dimension} names can be changed using the\nL{renameDimension} method of a L{Dataset} or\nL{Group} instance.\n\n4) Variables in a netCDF file\n-----------------------------\n\nnetCDF variables behave much like python multidimensional array objects\nsupplied by the U{numpy module }. However,\nunlike numpy arrays, netCDF4 variables can be appended to along one or\nmore 'unlimited' dimensions. To create a netCDF variable, use the\nL{createVariable} method of a L{Dataset} or\nL{Group} instance. The L{createVariable} method\nhas two mandatory arguments, the variable name (a Python string), and\nthe variable datatype. The variable's dimensions are given by a tuple\ncontaining the dimension names (defined previously with\nL{createDimension}). To create a scalar\nvariable, simply leave out the dimensions keyword. The variable\nprimitive datatypes correspond to the dtype attribute of a numpy array.\nYou can specify the datatype as a numpy dty""pe object, or anything that\ncan be converted to a numpy dtype object. Valid datatype specifiers\ninclude: C{'f4'} (32-bit floating point), C{'f8'} (64-bit floating\npoint), C{'i4'} (32-bit signed integer), C{'i2'} (16-bit signed\ninteger), C{'i8'} (64-bit singed integer), C{'i1'} (8-bit signed\ninteger), C{'u1'} (8-bit unsigned integer), C{'u2'} (16-bit unsigned\ninteger), C{'u4'} (32-bit unsigned integer), C{'u8'} (64-bit unsigned\ninteger), or C{'S1'} (single-character string). The old Numeric\nsingle-character typecodes (C{'f'},C{'d'},C{'h'},\nC{'s'},C{'b'},C{'B'},C{'c'},C{'i'},C{'l'}), corresponding to\n(C{'f4'},C{'f8'},C{'i2'},C{'i2'},C{'i1'},C{'i1'},C{'S1'},C{'i4'},C{'i4'}),\nwill also work. The unsigned integer types and the 64-bit integer type\ncan only be used if the file format is C{NETCDF4}.\n\nThe dimensions themselves are usually also defined as variables, called\ncoordinate variables. The L{createVariable}\nmethod returns an instance of the L{Variable} class whose methods can be\nused later to access and set variable data and attributes.\n\n>>> times = rootgrp.createVariable('time','f8',('time',))\n>>> levels = rootgrp.createVariable('level','i4',('level',))\n>>> latitudes = rootgrp.createVariable('latitude','f4',('lat',))\n>>> longitudes = rootgrp.createVariable('longitude','f4',('lon',))\n>>> # two dimensions unlimited.\n>>> temp = rootgrp.createVariable('temp','f4',('time','level','lat','lon',))\n\nAll of the variables in the L{Dataset} or L{Group} are stored in a\nPython dictionary, in the same way as the dimensions:\n\n>>> print rootgrp.variables\nOrderedDict([('time', ),\n ('level', ),\n ('latitude', ),\n ('longitude', ),\n ('temp', )])\n>>>\n\nTo get summary info on a L{Variable} insta""nce in an interactive session, just print it.\n\n>>> print rootgrp.variables['temp']\n\nfloat32 temp(time, level, lat, lon)\n least_significant_digit: 3\n units: K\nunlimited dimensions: time, level\ncurrent shape = (0, 0, 73, 144)\n>>>\n\nL{Variable} names can be changed using the\nL{renameVariable} method of a L{Dataset}\ninstance.\n\n\n5) Attributes in a netCDF file\n------------------------------\n\nThere are two types of attributes in a netCDF file, global and variable.\nGlobal attributes provide information about a group, or the entire\ndataset, as a whole. L{Variable} attributes provide information about\none of the variables in a group. Global attributes are set by assigning\nvalues to L{Dataset} or L{Group} instance variables. L{Variable}\nattributes are set by assigning values to L{Variable} instances\nvariables. Attributes can be strings, numbers or sequences. Returning to\nour example,\n\n>>> import time\n>>> rootgrp.description = 'bogus example script'\n>>> rootgrp.history = 'Created ' + time.ctime(time.time())\n>>> rootgrp.source = 'netCDF4 python module tutorial'\n>>> latitudes.units = 'degrees north'\n>>> longitudes.units = 'degrees east'\n>>> levels.units = 'hPa'\n>>> temp.units = 'K'\n>>> times.units = 'hours since 0001-01-01 00:00:00.0'\n>>> times.calendar = 'gregorian'\n\nThe L{ncattrs} method of a L{Dataset}, L{Group} or\nL{Variable} instance can be used to retrieve the names of all the netCDF\nattributes. This method is provided as a convenience, since using the\nbuilt-in C{dir} Python function will return a bunch of private methods\nand attributes that cannot (or should not) be modified by the user.\n\n>>> for name in rootgrp.ncattrs():\n>>> print 'Global attr', name, '=', getattr(rootgrp,name)\nGlobal attr description = bogus example script\nGlobal attr history = Created Mon Nov 7 10.30:56 2005\nGlobal attr source = netCDF4 python module tutorial\n\nThe C{__dict__} a""ttribute of a L{Dataset}, L{Group} or L{Variable}\ninstance provides all the netCDF attribute name/value pairs in a python\ndictionary:\n\n>>> print rootgrp.__dict__\nOrderedDict([(u'description', u'bogus example script'),\n (u'history', u'Created Thu Mar 3 19:30:33 2011'),\n (u'source', u'netCDF4 python module tutorial')])\n\nAttributes can be deleted from a netCDF L{Dataset}, L{Group} or\nL{Variable} using the python C{del} statement (i.e. C{del grp.foo}\nremoves the attribute C{foo} the the group C{grp}).\n\n6) Writing data to and retrieving data from a netCDF variable\n-------------------------------------------------------------\n\nNow that you have a netCDF L{Variable} instance, how do you put data\ninto it? You can just treat it like an array and assign data to a slice.\n\n>>> import numpy\n>>> lats = numpy.arange(-90,91,2.5)\n>>> lons = numpy.arange(-180,180,2.5)\n>>> latitudes[:] = lats\n>>> longitudes[:] = lons\n>>> print 'latitudes =\\n',latitudes[:]\nlatitudes =\n[-90. -87.5 -85. -82.5 -80. -77.5 -75. -72.5 -70. -67.5 -65. -62.5\n -60. -57.5 -55. -52.5 -50. -47.5 -45. -42.5 -40. -37.5 -35. -32.5\n -30. -27.5 -25. -22.5 -20. -17.5 -15. -12.5 -10. -7.5 -5. -2.5\n 0. 2.5 5. 7.5 10. 12.5 15. 17.5 20. 22.5 25. 27.5\n 30. 32.5 35. 37.5 40. 42.5 45. 47.5 50. 52.5 55. 57.5\n 60. 62.5 65. 67.5 70. 72.5 75. 77.5 80. 82.5 85. 87.5\n 90. ]\n>>>\n\nUnlike NumPy's array objects, netCDF L{Variable}\nobjects with unlimited dimensions will grow along those dimensions if you\nassign data outside the currently defined range of indices.\n\n>>> # append along two unlimited dimensions by assigning to slice.\n>>> nlats = len(rootgrp.dimensions['lat'])\n>>> nlons = len(rootgrp.dimensions['lon'])\n>>> print 'temp shape before adding data = ',temp.shape\ntemp shape before adding data = (0, 0, 73, 144)\n>>>\n>>> from numpy.random import uniform\n>>> temp[0:5,0:10,:,:] = unif""orm(size=(5,10,nlats,nlons))\n>>> print 'temp shape after adding data = ',temp.shape\ntemp shape after adding data = (6, 10, 73, 144)\n>>>\n>>> # levels have grown, but no values yet assigned.\n>>> print 'levels shape after adding pressure data = ',levels.shape\nlevels shape after adding pressure data = (10,)\n>>>\n\nNote that the size of the levels variable grows when data is appended\nalong the C{level} dimension of the variable C{temp}, even though no\ndata has yet been assigned to levels.\n\n>>> # now, assign data to levels dimension variable.\n>>> levels[:] = [1000.,850.,700.,500.,300.,250.,200.,150.,100.,50.]\n\nHowever, that there are some differences between NumPy and netCDF\nvariable slicing rules. Slices behave as usual, being specified as a\nC{start:stop:step} triplet. Using a scalar integer index C{i} takes the ith\nelement and reduces the rank of the output array by one. Boolean array and\ninteger sequence indexing behaves differently for netCDF variables\nthan for numpy arrays. Only 1-d boolean arrays and integer sequences are\nallowed, and these indices work independently along each dimension (similar\nto the way vector subscripts work in fortran). This means that\n\n>>> temp[0, 0, [0,1,2,3], [0,1,2,3]]\n\nreturns an array of shape (4,4) when slicing a netCDF variable, but for a\nnumpy array it returns an array of shape (4,).\nSimilarly, a netCDF variable of shape C{(2,3,4,5)} indexed\nwith C{[0, array([True, False, True]), array([False, True, True, True]), :]}\nwould return a C{(2, 3, 5)} array. In NumPy, this would raise an error since\nit would be equivalent to C{[0, [0,1], [1,2,3], :]}. When slicing with integer\nsequences, the indices must be sorted in increasing order and contain no duplicates.\nWhile this behaviour may cause some confusion for those used to NumPy's 'fancy indexing' rules,\nit provides a very powerful way to extract data from multidimensional netCDF\nvariables by using logical operations on the dimension arrays to create sl""ices.\n\nFor example,\n\n>>> tempdat = temp[::2, [1,3,6], lats>0, lons>0]\n\nwill extract time indices 0,2 and 4, pressure levels\n850, 500 and 200 hPa, all Northern Hemisphere latitudes and Eastern\nHemisphere longitudes, resulting in a numpy array of shape (3, 3, 36, 71).\n\n>>> print 'shape of fancy temp slice = ',tempdat.shape\nshape of fancy temp slice = (3, 3, 36, 71)\n>>>\n\nTime coordinate values pose a special challenge to netCDF users. Most\nmetadata standards (such as CF and COARDS) specify that time should be\nmeasure relative to a fixed date using a certain calendar, with units\nspecified like C{hours since YY:MM:DD hh-mm-ss}. These units can be\nawkward to deal with, without a utility to convert the values to and\nfrom calendar dates. The functione called L{num2date} and L{date2num} are\nprovided with this package to do just that. Here's an example of how they\ncan be used:\n\n>>> # fill in times.\n>>> from datetime import datetime, timedelta\n>>> from netCDF4 import num2date, date2num\n>>> dates = [datetime(2001,3,1)+n*timedelta(hours=12) for n in range(temp.shape[0])]\n>>> times[:] = date2num(dates,units=times.units,calendar=times.calendar)\n>>> print 'time values (in units %s): ' % times.units+'\\n',times[:]\ntime values (in units hours since January 1, 0001):\n[ 17533056. 17533068. 17533080. 17533092. 17533104.]\n>>>\n>>> dates = num2date(times[:],units=times.units,calendar=times.calendar)\n>>> print 'dates corresponding to time values:\\n',dates\ndates corresponding to time values:\n[2001-03-01 00:00:00 2001-03-01 12:00:00 2001-03-02 00:00:00\n 2001-03-02 12:00:00 2001-03-03 00:00:00]\n>>>\n\nL{num2date} converts numeric values of time in the specified C{units}\nand C{calendar} to datetime objects, and L{date2num} does the reverse.\nAll the calendars currently defined in the U{CF metadata convention\n} are supported.\nA function called L{date2index} is also provided which returns the in""dices\nof a netCDF time variable corresponding to a sequence of datetime instances.\n\n\n7) Reading data from a multi-file netCDF dataset.\n-------------------------------------------------\n\nIf you want to read data from a variable that spans multiple netCDF files,\nyou can use the L{MFDataset} class to read the data as if it were\ncontained in a single file. Instead of using a single filename to create\na L{Dataset} instance, create a L{MFDataset} instance with either a list\nof filenames, or a string with a wildcard (which is then converted to\na sorted list of files using the python glob module).\nVariables in the list of files that share the same unlimited\ndimension are aggregated together, and can be sliced across multiple\nfiles. To illustrate this, let's first create a bunch of netCDF files with\nthe same variable (with the same unlimited dimension). The files\nmust in be in C{NETCDF3_64BIT}, C{NETCDF3_CLASSIC} or\nC{NETCDF4_CLASSIC format} (C{NETCDF4} formatted multi-file\ndatasets are not supported).\n\n>>> for nfile in range(10):\n>>> f = Dataset('mftest'+repr(nfile)+'.nc','w',format='NETCDF4_CLASSIC')\n>>> f.createDimension('x',None)\n>>> x = f.createVariable('x','i',('x',))\n>>> x[0:10] = numpy.arange(nfile*10,10*(nfile+1))\n>>> f.close()\n\nNow read all the files back in at once with L{MFDataset}\n\n>>> from netCDF4 import MFDataset\n>>> f = MFDataset('mftest*nc')\n>>> print f.variables['x'][:]\n[ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24\n 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49\n 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74\n 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99]\n>>>\n\nNote that MFDataset can only be used to read, not write, multi-file\ndatasets.\n\n8) Efficient compression of netCDF variables\n--------------------------------------------\n\nData stored in netCDF 4 L{Variable} objects can be ""compressed and\ndecompressed on the fly. The parameters for the compression are\ndetermined by the C{zlib}, C{complevel} and C{shuffle} keyword arguments\nto the L{createVariable} method. To turn on\ncompression, set C{zlib=True}. The C{complevel} keyword regulates the\nspeed and efficiency of the compression (1 being fastest, but lowest\ncompression ratio, 9 being slowest but best compression ratio). The\ndefault value of C{complevel} is 4. Setting C{shuffle=False} will turn\noff the HDF5 shuffle filter, which de-interlaces a block of data before\ncompression by reordering the bytes. The shuffle filter can\nsignificantly improve compression ratios, and is on by default. Setting\nC{fletcher32} keyword argument to\nL{createVariable} to C{True} (it's C{False} by\ndefault) enables the Fletcher32 checksum algorithm for error detection.\nIt's also possible to set the HDF5 chunking parameters and endian-ness\nof the binary data stored in the HDF5 file with the C{chunksizes}\nand C{endian} keyword arguments to\nL{createVariable}. These keyword arguments only\nare relevant for C{NETCDF4} and C{NETCDF4_CLASSIC} files (where the\nunderlying file format is HDF5) and are silently ignored if the file\nformat is C{NETCDF3_CLASSIC} or C{NETCDF3_64BIT},\n\nIf your data only has a certain number of digits of precision (say for\nexample, it is temperature data that was measured with a precision of\n0.1 degrees), you can dramatically improve zlib compression by\nquantizing (or truncating) the data using the C{least_significant_digit}\nkeyword argument to L{createVariable}. The least\nsignificant digit is the power of ten of the smallest decimal place in\nthe data that is a reliable value. For example if the data has a\nprecision of 0.1, then setting C{least_significant_digit=1} will cause\ndata the data to be quantized using C{numpy.around(scale*data)/scale}, where\nscale = 2**bits, and"" bits is determined so that a precision of 0.1 is\nretained (in this case bits=4). Effectively, this makes the compression\n'lossy' instead of 'lossless', that is some precision in the data is\nsacrificed for the sake of disk space.\n\nIn our example, try replacing the line\n\n>>> temp = rootgrp.createVariable('temp','f4',('time','level','lat','lon',))\n\nwith\n\n>>> temp = dataset.createVariable('temp','f4',('time','level','lat','lon',),zlib=True)\n\nand then\n\n>>> temp = dataset.createVariable('temp','f4',('time','level','lat','lon',),zlib=True,least_significant_digit=3)\n\nand see how much smaller the resulting files are.\n\n9) Beyond homogenous arrays of a fixed type - compound data types\n-----------------------------------------------------------------\n\nCompound data types map directly to numpy structured (a.k.a 'record'\narrays). Structured arrays are akin to C structs, or derived types\nin Fortran. They allow for the construction of table-like structures\ncomposed of combinations of other data types, including other\ncompound types. Compound types might be useful for representing multiple\nparameter values at each point on a grid, or at each time and space\nlocation for scattered (point) data. You can then access all the\ninformation for a point by reading one variable, instead of reading\ndifferent parameters from different variables. Compound data types\nare created from the corresponding numpy data type using the\nL{createCompoundType} method of a L{Dataset} or L{Group} instance.\nSince there is no native complex data type in netcdf, compound types are handy\nfor storing numpy complex arrays. Here's an example:\n\n>>> f = Dataset('complex.nc','w')\n>>> size = 3 # length of 1-d complex array\n>>> # create sample complex data.\n>>> datac = numpy.exp(1j*(1.+numpy.linspace(0, numpy.pi, size)))\n>>> # create complex128 compound data type.\n>>> complex128 = numpy.dtype([('real',numpy.float64),('imag',numpy.float64)])\n>>> comp""lex128_t = f.createCompoundType(complex128,'complex128')\n>>> # create a variable with this data type, write some data to it.\n>>> f.createDimension('x_dim',None)\n>>> v = f.createVariable('cmplx_var',complex128_t,'x_dim')\n>>> data = numpy.empty(size,complex128) # numpy structured array\n>>> data['real'] = datac.real; data['imag'] = datac.imag\n>>> v[:] = data # write numpy structured array to netcdf compound var\n>>> # close and reopen the file, check the contents.\n>>> f.close(); f = Dataset('complex.nc')\n>>> v = f.variables['cmplx_var']\n>>> datain = v[:] # read in all the data into a numpy structured array\n>>> # create an empty numpy complex array\n>>> datac2 = numpy.empty(datain.shape,numpy.complex128)\n>>> # .. fill it with contents of structured array.\n>>> datac2.real = datain['real']; datac2.imag = datain['imag']\n>>> print datac.dtype,datac # original data\ncomplex128 [ 0.54030231+0.84147098j -0.84147098+0.54030231j -0.54030231-0.84147098j]\n>>>\n>>> print datac2.dtype,datac2 # data from file\ncomplex128 [ 0.54030231+0.84147098j -0.84147098+0.54030231j -0.54030231-0.84147098j]\n>>>\n\nCompound types can be nested, but you must create the 'inner'\nones first. All of the compound types defined for a L{Dataset} or L{Group} are stored in a\nPython dictionary, just like variables and dimensions. As always, printing\nobjects gives useful summary information in an interactive session:\n\n>>> print f\n\nroot group (NETCDF4 file format):\n dimensions: x_dim\n variables: cmplx_var\n groups:\n\n>>> print f.variables['cmplx_var']\ncompound cmplx_var(x_dim)\ncompound data type: [('real', '>> print f.cmptypes\nOrderedDict([('complex128', )])\n>>> print f.cmptypes['complex128']\n: name = 'complex128', numpy dtype = [(u'real','>>\n\n10)"" Variable-length (vlen) data types.\n--------------------------------------\n\nNetCDF 4 has support for variable-length or \"ragged\" arrays. These are arrays\nof variable length sequences having the same type. To create a variable-length\ndata type, use the L{createVLType} method\nmethod of a L{Dataset} or L{Group} instance.\n\n>>> f = Dataset('tst_vlen.nc','w')\n>>> vlen_t = f.createVLType(numpy.int32, 'phony_vlen')\n\nThe numpy datatype of the variable-length sequences and the name of the\nnew datatype must be specified. Any of the primitive datatypes can be\nused (signed and unsigned integers, 32 and 64 bit floats, and characters),\nbut compound data types cannot.\nA new variable can then be created using this datatype.\n\n>>> x = f.createDimension('x',3)\n>>> y = f.createDimension('y',4)\n>>> vlvar = f.createVariable('phony_vlen_var', vlen_t, ('y','x'))\n\nSince there is no native vlen datatype in numpy, vlen arrays are represented\nin python as object arrays (arrays of dtype C{object}). These are arrays whose\nelements are Python object pointers, and can contain any type of python object.\nFor this application, they must contain 1-D numpy arrays all of the same type\nbut of varying length.\nIn this case, they contain 1-D numpy C{int32} arrays of random length betwee\n1 and 10.\n\n>>> import random\n>>> data = numpy.empty(len(y)*len(x),object)\n>>> for n in range(len(y)*len(x)):\n>>> data[n] = numpy.arange(random.randint(1,10),dtype='int32')+1\n>>> data = numpy.reshape(data,(len(y),len(x)))\n>>> vlvar[:] = data\n>>> print 'vlen variable =\\n',vlvar[:]\nvlen variable =\n[[[ 1 2 3 4 5 6 7 8 9 10] [1 2 3 4 5] [1 2 3 4 5 6 7 8]]\n [[1 2 3 4 5 6 7] [1 2 3 4 5 6] [1 2 3 4 5]]\n [[1 2 3 4 5] [1 2 3 4] [1]]\n [[ 1 2 3 4 5 6 7 8 9 10] [ 1 2 3 4 5 6 7 8 9 10]\n [1 2 3 4 5 6 7 8]]]\n>>> print f\n\nroot group (NETCDF4 file format):\n dimensions: x, y\n variables: phony_vlen_var\n groups:""\n>>> print f.variables['phony_vlen_var']\n\nvlen phony_vlen_var(y, x)\nvlen data type: int32\nunlimited dimensions:\ncurrent shape = (4, 3)\n>>> print f.VLtypes['phony_vlen']\n: name = 'phony_vlen', numpy dtype = int32\n>>>\n\nNumpy object arrays containing python strings can also be written as vlen\nvariables, For vlen strings, you don't need to create a vlen data type.\nInstead, simply use the python C{str} builtin (or a numpy string datatype\nwith fixed length greater than 1) when calling the\nL{createVariable} method.\n\n>>> z = f.createDimension('z',10)\n>>> strvar = rootgrp.createVariable('strvar', str, 'z')\n\nIn this example, an object array is filled with random python strings with\nrandom lengths between 2 and 12 characters, and the data in the object\narray is assigned to the vlen string variable.\n\n>>> chars = '1234567890aabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'\n>>> data = numpy.empty(10,'O')\n>>> for n in range(10):\n>>> stringlen = random.randint(2,12)\n>>> data[n] = ''.join([random.choice(chars) for i in range(stringlen)])\n>>> strvar[:] = data\n>>> print 'variable-length string variable:\\n',strvar[:]\nvariable-length string variable:\n[aDy29jPt jd7aplD b8t4RM jHh8hq KtaPWF9cQj Q1hHN5WoXSiT MMxsVeq td LUzvVTzj\n 5DS9X8S]\n>>> print f\n\nroot group (NETCDF4 file format):\n dimensions: x, y, z\n variables: phony_vlen_var, strvar\n groups:\n>>> print f.variables['strvar']\n\nvlen strvar(z)\nvlen data type: \nunlimited dimensions:\ncurrent size = (10,)\n>>>\n\nIt is also possible to set contents of vlen string variables with numpy arrays\nof any string or unicode data type. Note, however, that accessing the contents\nof such variables will always return numpy arrays with dtype C{object}.\n\nAll of the code in this tutorial is available in C{examples/tutorial.py},\nUnit tests are in the C{te""st} directory.\n\n@contact: Jeffrey Whitaker \n\n@copyright: 2008 by Jeffrey Whitaker.\n\n@license: Permission to use, copy, modify, and distribute this software and\nits documentation for any purpose and without fee is hereby granted,\nprovided that the above copyright notice appear in all copies and that\nboth the copyright notice and this permission notice appear in\nsupporting documentation.\nTHE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,\nINCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO\nEVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR\nCONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF\nUSE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE."; static char __pyx_k_MFDataset_self_files_check_Fals[] = "\nMFDataset(self, files, check=False, aggdim=None, exclude=[])\n\nClass for reading multi-file netCDF Datasets, making variables\nspanning multiple files appear as if they were in one file.\n\nDatasets must be in C{NETCDF4_CLASSIC, NETCDF3_CLASSIC or NETCDF3_64BIT}\nformat (C{NETCDF4} Datasets won't work).\n\nAdapted from U{pycdf } by Andre Gosselin.\n\nExample usage:\n\n>>> import numpy\n>>> # create a series of netCDF files with a variable sharing\n>>> # the same unlimited dimension.\n>>> for nfile in range(10):\n>>> f = Dataset('mftest'+repr(nfile)+'.nc','w')\n>>> f.createDimension('x',None)\n>>> x = f.createVariable('x','i',('x',))\n>>> x[0:10] = numpy.arange(nfile*10,10*(nfile+1))\n>>> f.close()\n>>> # now read all those files in at once, in one Dataset.\n>>> f = MFDataset('mftest*nc')\n>>> print f.variables['x'][:]\n[ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24\n 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49\n 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74\n 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99]\n "; static char __pyx_k_MFTime_self_time_units_None_Cla[] = "\nMFTime(self, time, units=None)\n\nClass providing an interface to a MFDataset time Variable by imposing a unique common\ntime unit to all files.\n\nExample usage:\n\n>>> import numpy\n>>> f1 = Dataset('mftest_1.nc','w', format='NETCDF4_CLASSIC')\n>>> f2 = Dataset('mftest_2.nc','w', format='NETCDF4_CLASSIC')\n>>> f1.createDimension('time',None)\n>>> f2.createDimension('time',None)\n>>> t1 = f1.createVariable('time','i',('time',))\n>>> t2 = f2.createVariable('time','i',('time',))\n>>> t1.units = 'days since 2000-01-01'\n>>> t2.units = 'days since 2000-02-01'\n>>> t1.calendar = 'standard'\n>>> t2.calendar = 'standard'\n>>> t1[:] = numpy.arange(31)\n>>> t2[:] = numpy.arange(30)\n>>> f1.close()\n>>> f2.close()\n>>> # Read the two files in at once, in one Dataset.\n>>> f = MFDataset('mftest*nc')\n>>> t = f.variables['time']\n>>> print t.units\ndays since 2000-01-01\n>>> print t[32] # The value written in the file, inconsistent with the MF time units.\n1\n>>> T = MFTime(t)\n>>> print T[32]\n32\n "; -static char __pyx_k_Users_jsw_python_netcdf4_python[] = "/Users/jsw/python/netcdf4-python.git/utils.pyx"; static char __pyx_k_Variable_object_no_longer_valid[] = "Variable object no longer valid"; static char __pyx_k_assign_vlen_method_only_for_use[] = "_assign_vlen method only for use with VLEN variables"; static char __pyx_k_cannot_set__FillValue_attribute[] = "cannot set _FillValue attribute for VLEN or compound variable"; @@ -1853,6 +1853,7 @@ static char __pyx_k_cannot_specify_chunksizes_for_a[] = "cannot specify chunksiz static char __pyx_k_endian_keyword_argument_must_be[] = "'endian' keyword argument must be 'little','big' or 'native', got '%s'"; static char __pyx_k_endian_ness_of_dtype_and_endian[] = "endian-ness of dtype and endian kwarg do not match, using endian kwarg"; static char __pyx_k_get_variables_s_dimension_names[] = "get variables's dimension names"; +static char __pyx_k_home_mb312_dev_trees_netcdf4_py[] = "/home/mb312/dev_trees/netcdf4-python/netCDF4/_netCDF4.pyx"; static char __pyx_k_illegal_data_type_for_attribute[] = "illegal data type for attribute, must be one of %s, got %s"; static char __pyx_k_s_is_one_of_the_reserved_attrib[] = "'%s' is one of the reserved attributes %s, cannot delete. Use delncattr instead."; static char __pyx_k_single_element_VLEN_slices_must[] = "single element VLEN slices must be specified by integers only"; @@ -1906,7 +1907,6 @@ static char __pyx_k_variable_s_dimensions_mismatch_b[] = "variable %s : dimensio static char __pyx_k_variable_s_rank_mismatch_between[] = "variable %s : rank mismatch between master %s (%s) and extension %s (%s)"; static char __pyx_k_variable_s_shape_mismatch_betwee[] = "variable %s : shape mismatch between master %s (%s) and extension %s (%s)"; static char __pyx_k_vlen_string_array_attributes_not[] = "vlen string array attributes not supported"; -static char __pyx_k_Users_jsw_python_netcdf4_python_2[] = "/Users/jsw/python/netcdf4-python.git/netCDF4.pyx"; static char __pyx_k_s_is_one_of_the_reserved_attrib_2[] = "'%s' is one of the reserved attributes %s, cannot rebind. Use setncattr instead."; static char __pyx_k_filling_on_default__FillValue_of_2[] = "filling on, default _FillValue of %s used\n"; static char __pyx_k_master_dataset_s_does_not_have_a_2[] = "master dataset %s does not have any variables to aggregate"; @@ -1966,8 +1966,6 @@ static PyObject *__pyx_n_s_U1; static PyObject *__pyx_n_s_UNDEFINED; static PyObject *__pyx_n_s_UnicodeDecodeError; static PyObject *__pyx_kp_s_Unsupported_compound_type_elemen; -static PyObject *__pyx_kp_s_Users_jsw_python_netcdf4_python; -static PyObject *__pyx_kp_s_Users_jsw_python_netcdf4_python_2; static PyObject *__pyx_n_s_V; static PyObject *__pyx_n_s_ValueError; static PyObject *__pyx_n_s_Variable; @@ -2178,6 +2176,7 @@ static PyObject *__pyx_n_s_has_nc_inq_format_extended; static PyObject *__pyx_n_s_has_nc_inq_path; static PyObject *__pyx_n_s_has_rename_grp; static PyObject *__pyx_n_s_hdf5libversion; +static PyObject *__pyx_kp_s_home_mb312_dev_trees_netcdf4_py; static PyObject *__pyx_n_s_hour; static PyObject *__pyx_n_s_hr_units; static PyObject *__pyx_n_s_http; @@ -2193,6 +2192,7 @@ static PyObject *__pyx_kp_s_illegal_data_type_for_attribute; static PyObject *__pyx_kp_s_illegal_primitive_data_type_must; static PyObject *__pyx_n_s_import; static PyObject *__pyx_n_s_in1d; +static PyObject *__pyx_kp_s_include_utils_pyx; static PyObject *__pyx_n_s_ind; static PyObject *__pyx_n_s_init; static PyObject *__pyx_kp_s_invalid_scale_factor_or_add_offs; @@ -2270,8 +2270,7 @@ static PyObject *__pyx_n_s_nctonptype; static PyObject *__pyx_n_s_ndim; static PyObject *__pyx_kp_s_negative_strides_not_allowed_whe; static PyObject *__pyx_n_s_nelems; -static PyObject *__pyx_n_s_netCDF4; -static PyObject *__pyx_n_s_netCDF4_utils; +static PyObject *__pyx_n_s_netCDF4__netCDF4; static PyObject *__pyx_n_s_netcdf4libversion; static PyObject *__pyx_n_s_netcdftime; static PyObject *__pyx_n_s_newSlice; @@ -2434,6 +2433,7 @@ static PyObject *__pyx_kp_s_unsupported_datatype_specified_f; static PyObject *__pyx_kp_s_unsupported_time_units; static PyObject *__pyx_n_s_utc_offset; static PyObject *__pyx_kp_s_utf_8; +static PyObject *__pyx_n_s_utils; static PyObject *__pyx_n_s_utime; static PyObject *__pyx_n_s_v; static PyObject *__pyx_n_s_vInst; @@ -2670,7 +2670,7 @@ static PyObject *__pyx_codeobj__177; static PyObject *__pyx_codeobj__179; static PyObject *__pyx_codeobj__183; -/* "utils.pyx":8 +/* "include/utils.pyx":8 * gregorian = datetime(1582,10,15) * * def _dateparse(timestr): # <<<<<<<<<<<<<< @@ -2679,21 +2679,21 @@ static PyObject *__pyx_codeobj__183; */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_1_dateparse(PyObject *__pyx_self, PyObject *__pyx_v_timestr); /*proto*/ -static char __pyx_doc_7netCDF4__dateparse[] = "parse a string of the form time-units since yyyy-mm-dd hh:mm:ss,\n return a datetime instance"; -static PyMethodDef __pyx_mdef_7netCDF4_1_dateparse = {"_dateparse", (PyCFunction)__pyx_pw_7netCDF4_1_dateparse, METH_O, __pyx_doc_7netCDF4__dateparse}; -static PyObject *__pyx_pw_7netCDF4_1_dateparse(PyObject *__pyx_self, PyObject *__pyx_v_timestr) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_1_dateparse(PyObject *__pyx_self, PyObject *__pyx_v_timestr); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4__dateparse[] = "parse a string of the form time-units since yyyy-mm-dd hh:mm:ss,\n return a datetime instance"; +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_1_dateparse = {"_dateparse", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_1_dateparse, METH_O, __pyx_doc_7netCDF4_8_netCDF4__dateparse}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_1_dateparse(PyObject *__pyx_self, PyObject *__pyx_v_timestr) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_dateparse (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4__dateparse(__pyx_self, ((PyObject *)__pyx_v_timestr)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4__dateparse(__pyx_self, ((PyObject *)__pyx_v_timestr)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4__dateparse(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_timestr) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4__dateparse(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_timestr) { PyObject *__pyx_v_timestr_split = NULL; CYTHON_UNUSED PyObject *__pyx_v_units = NULL; PyObject *__pyx_v_n = NULL; @@ -2725,7 +2725,7 @@ static PyObject *__pyx_pf_7netCDF4__dateparse(CYTHON_UNUSED PyObject *__pyx_self int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_dateparse", 0); - /* "utils.pyx":13 + /* "include/utils.pyx":13 * # same as version in netcdftime, but returns a timezone naive * # python datetime instance with the utc_offset included. * timestr_split = timestr.split() # <<<<<<<<<<<<<< @@ -2755,7 +2755,7 @@ static PyObject *__pyx_pf_7netCDF4__dateparse(CYTHON_UNUSED PyObject *__pyx_self __pyx_v_timestr_split = __pyx_t_1; __pyx_t_1 = 0; - /* "utils.pyx":14 + /* "include/utils.pyx":14 * # python datetime instance with the utc_offset included. * timestr_split = timestr.split() * units = timestr_split[0].lower() # <<<<<<<<<<<<<< @@ -2788,7 +2788,7 @@ static PyObject *__pyx_pf_7netCDF4__dateparse(CYTHON_UNUSED PyObject *__pyx_self __pyx_v_units = __pyx_t_1; __pyx_t_1 = 0; - /* "utils.pyx":15 + /* "include/utils.pyx":15 * timestr_split = timestr.split() * units = timestr_split[0].lower() * if timestr_split[1].lower() != 'since': # <<<<<<<<<<<<<< @@ -2822,7 +2822,7 @@ static PyObject *__pyx_pf_7netCDF4__dateparse(CYTHON_UNUSED PyObject *__pyx_self __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_4) { - /* "utils.pyx":16 + /* "include/utils.pyx":16 * units = timestr_split[0].lower() * if timestr_split[1].lower() != 'since': * raise ValueError("no 'since' in unit_string") # <<<<<<<<<<<<<< @@ -2836,7 +2836,7 @@ static PyObject *__pyx_pf_7netCDF4__dateparse(CYTHON_UNUSED PyObject *__pyx_self {__pyx_filename = __pyx_f[1]; __pyx_lineno = 16; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "utils.pyx":18 + /* "include/utils.pyx":18 * raise ValueError("no 'since' in unit_string") * # parse the date string. * n = timestr.find('since')+6 # <<<<<<<<<<<<<< @@ -2854,7 +2854,7 @@ static PyObject *__pyx_pf_7netCDF4__dateparse(CYTHON_UNUSED PyObject *__pyx_self __pyx_v_n = __pyx_t_1; __pyx_t_1 = 0; - /* "utils.pyx":19 + /* "include/utils.pyx":19 * # parse the date string. * n = timestr.find('since')+6 * isostring = timestr[n:] # <<<<<<<<<<<<<< @@ -2866,7 +2866,7 @@ static PyObject *__pyx_pf_7netCDF4__dateparse(CYTHON_UNUSED PyObject *__pyx_self __pyx_v_isostring = __pyx_t_1; __pyx_t_1 = 0; - /* "utils.pyx":21 + /* "include/utils.pyx":21 * isostring = timestr[n:] * year, month, day, hour, minute, second, utc_offset =\ * _parse_date( isostring.strip() ) # <<<<<<<<<<<<<< @@ -2994,7 +2994,7 @@ static PyObject *__pyx_pf_7netCDF4__dateparse(CYTHON_UNUSED PyObject *__pyx_self __pyx_L5_unpacking_done:; } - /* "utils.pyx":20 + /* "include/utils.pyx":20 * n = timestr.find('since')+6 * isostring = timestr[n:] * year, month, day, hour, minute, second, utc_offset =\ # <<<<<<<<<<<<<< @@ -3016,7 +3016,7 @@ static PyObject *__pyx_pf_7netCDF4__dateparse(CYTHON_UNUSED PyObject *__pyx_self __pyx_v_utc_offset = __pyx_t_9; __pyx_t_9 = 0; - /* "utils.pyx":22 + /* "include/utils.pyx":22 * year, month, day, hour, minute, second, utc_offset =\ * _parse_date( isostring.strip() ) * basedate = datetime(year, month, day, hour, minute, second) # <<<<<<<<<<<<<< @@ -3067,7 +3067,7 @@ static PyObject *__pyx_pf_7netCDF4__dateparse(CYTHON_UNUSED PyObject *__pyx_self __pyx_v_basedate = __pyx_t_1; __pyx_t_1 = 0; - /* "utils.pyx":24 + /* "include/utils.pyx":24 * basedate = datetime(year, month, day, hour, minute, second) * # add utc_offset to basedate time instance (which is timezone naive) * basedate += timedelta(days=utc_offset/1440.) # <<<<<<<<<<<<<< @@ -3092,7 +3092,7 @@ static PyObject *__pyx_pf_7netCDF4__dateparse(CYTHON_UNUSED PyObject *__pyx_self __Pyx_DECREF_SET(__pyx_v_basedate, __pyx_t_9); __pyx_t_9 = 0; - /* "utils.pyx":25 + /* "include/utils.pyx":25 * # add utc_offset to basedate time instance (which is timezone naive) * basedate += timedelta(days=utc_offset/1440.) * return basedate # <<<<<<<<<<<<<< @@ -3104,7 +3104,7 @@ static PyObject *__pyx_pf_7netCDF4__dateparse(CYTHON_UNUSED PyObject *__pyx_self __pyx_r = __pyx_v_basedate; goto __pyx_L0; - /* "utils.pyx":8 + /* "include/utils.pyx":8 * gregorian = datetime(1582,10,15) * * def _dateparse(timestr): # <<<<<<<<<<<<<< @@ -3123,7 +3123,7 @@ static PyObject *__pyx_pf_7netCDF4__dateparse(CYTHON_UNUSED PyObject *__pyx_self __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); - __Pyx_AddTraceback("netCDF4._dateparse", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._dateparse", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_timestr_split); @@ -3143,7 +3143,7 @@ static PyObject *__pyx_pf_7netCDF4__dateparse(CYTHON_UNUSED PyObject *__pyx_self return __pyx_r; } -/* "utils.pyx":29 +/* "include/utils.pyx":29 * # utility functions (visible from python). * * def stringtoarr(string,NUMCHARS,dtype='S'): # <<<<<<<<<<<<<< @@ -3152,10 +3152,10 @@ static PyObject *__pyx_pf_7netCDF4__dateparse(CYTHON_UNUSED PyObject *__pyx_self */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_3stringtoarr(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_7netCDF4_2stringtoarr[] = "\nstringtoarr(a, NUMCHARS,dtype='S')\n\nconvert a string to a character array of length NUMCHARS\n\n@param a: Input python string.\n\n@param NUMCHARS: number of characters used to represent string\n(if len(a) < NUMCHARS, it will be padded on the right with blanks).\n\n@keyword dtype: type of numpy array to return. Default is 'S', which\nmeans an array of dtype 'S1' will be returned. If dtype='U', a\nunicode array (dtype = 'U1') will be returned.\n\n@return: A rank 1 numpy character array of length NUMCHARS with datatype 'S1'\n(default) or 'U1' (if dtype='U')"; -static PyMethodDef __pyx_mdef_7netCDF4_3stringtoarr = {"stringtoarr", (PyCFunction)__pyx_pw_7netCDF4_3stringtoarr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_2stringtoarr}; -static PyObject *__pyx_pw_7netCDF4_3stringtoarr(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_3stringtoarr(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_2stringtoarr[] = "\nstringtoarr(a, NUMCHARS,dtype='S')\n\nconvert a string to a character array of length NUMCHARS\n\n@param a: Input python string.\n\n@param NUMCHARS: number of characters used to represent string\n(if len(a) < NUMCHARS, it will be padded on the right with blanks).\n\n@keyword dtype: type of numpy array to return. Default is 'S', which\nmeans an array of dtype 'S1' will be returned. If dtype='U', a\nunicode array (dtype = 'U1') will be returned.\n\n@return: A rank 1 numpy character array of length NUMCHARS with datatype 'S1'\n(default) or 'U1' (if dtype='U')"; +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_3stringtoarr = {"stringtoarr", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_3stringtoarr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8_netCDF4_2stringtoarr}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_3stringtoarr(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_string = 0; PyObject *__pyx_v_NUMCHARS = 0; PyObject *__pyx_v_dtype = 0; @@ -3215,18 +3215,18 @@ static PyObject *__pyx_pw_7netCDF4_3stringtoarr(PyObject *__pyx_self, PyObject * __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("stringtoarr", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4.stringtoarr", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.stringtoarr", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_2stringtoarr(__pyx_self, __pyx_v_string, __pyx_v_NUMCHARS, __pyx_v_dtype); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_2stringtoarr(__pyx_self, __pyx_v_string, __pyx_v_NUMCHARS, __pyx_v_dtype); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_2stringtoarr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_string, PyObject *__pyx_v_NUMCHARS, PyObject *__pyx_v_dtype) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_2stringtoarr(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_string, PyObject *__pyx_v_NUMCHARS, PyObject *__pyx_v_dtype) { PyObject *__pyx_v_arr = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations @@ -3243,7 +3243,7 @@ static PyObject *__pyx_pf_7netCDF4_2stringtoarr(CYTHON_UNUSED PyObject *__pyx_se int __pyx_clineno = 0; __Pyx_RefNannySetupContext("stringtoarr", 0); - /* "utils.pyx":46 + /* "include/utils.pyx":46 * @return: A rank 1 numpy character array of length NUMCHARS with datatype 'S1' * (default) or 'U1' (if dtype='U')""" * if dtype not in ["S","U"]: # <<<<<<<<<<<<<< @@ -3265,7 +3265,7 @@ static PyObject *__pyx_pf_7netCDF4_2stringtoarr(CYTHON_UNUSED PyObject *__pyx_se __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "utils.pyx":47 + /* "include/utils.pyx":47 * (default) or 'U1' (if dtype='U')""" * if dtype not in ["S","U"]: * raise ValueError("dtype must string or unicode ('S' or 'U')") # <<<<<<<<<<<<<< @@ -3279,7 +3279,7 @@ static PyObject *__pyx_pf_7netCDF4_2stringtoarr(CYTHON_UNUSED PyObject *__pyx_se {__pyx_filename = __pyx_f[1]; __pyx_lineno = 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "utils.pyx":48 + /* "include/utils.pyx":48 * if dtype not in ["S","U"]: * raise ValueError("dtype must string or unicode ('S' or 'U')") * arr = numpy.zeros(NUMCHARS,dtype+'1') # <<<<<<<<<<<<<< @@ -3323,7 +3323,7 @@ static PyObject *__pyx_pf_7netCDF4_2stringtoarr(CYTHON_UNUSED PyObject *__pyx_se __pyx_v_arr = __pyx_t_1; __pyx_t_1 = 0; - /* "utils.pyx":49 + /* "include/utils.pyx":49 * raise ValueError("dtype must string or unicode ('S' or 'U')") * arr = numpy.zeros(NUMCHARS,dtype+'1') * arr[0:len(string)] = tuple(string) # <<<<<<<<<<<<<< @@ -3336,7 +3336,7 @@ static PyObject *__pyx_pf_7netCDF4_2stringtoarr(CYTHON_UNUSED PyObject *__pyx_se if (__Pyx_PyObject_SetSlice(__pyx_v_arr, __pyx_t_1, 0, __pyx_t_7, NULL, NULL, NULL, 1, 1, 1) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":50 + /* "include/utils.pyx":50 * arr = numpy.zeros(NUMCHARS,dtype+'1') * arr[0:len(string)] = tuple(string) * return arr # <<<<<<<<<<<<<< @@ -3348,7 +3348,7 @@ static PyObject *__pyx_pf_7netCDF4_2stringtoarr(CYTHON_UNUSED PyObject *__pyx_se __pyx_r = __pyx_v_arr; goto __pyx_L0; - /* "utils.pyx":29 + /* "include/utils.pyx":29 * # utility functions (visible from python). * * def stringtoarr(string,NUMCHARS,dtype='S'): # <<<<<<<<<<<<<< @@ -3363,7 +3363,7 @@ static PyObject *__pyx_pf_7netCDF4_2stringtoarr(CYTHON_UNUSED PyObject *__pyx_se __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); - __Pyx_AddTraceback("netCDF4.stringtoarr", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.stringtoarr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_arr); @@ -3372,7 +3372,7 @@ static PyObject *__pyx_pf_7netCDF4_2stringtoarr(CYTHON_UNUSED PyObject *__pyx_se return __pyx_r; } -/* "utils.pyx":52 +/* "include/utils.pyx":52 * return arr * * def stringtochar(a): # <<<<<<<<<<<<<< @@ -3381,21 +3381,21 @@ static PyObject *__pyx_pf_7netCDF4_2stringtoarr(CYTHON_UNUSED PyObject *__pyx_se */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_5stringtochar(PyObject *__pyx_self, PyObject *__pyx_v_a); /*proto*/ -static char __pyx_doc_7netCDF4_4stringtochar[] = "\nstringtochar(a)\n\nconvert a string array to a character array with one extra dimension\n\n@param a: Input numpy string array with numpy datatype 'SN' or 'UN', where N\nis the number of characters in each string. Will be converted to\nan array of characters (datatype 'S1' or 'U1') of shape a.shape + (N,).\n\n@return: A numpy character array with datatype 'S1' or 'U1'\nand shape a.shape + (N,), where N is the length of each string in a."; -static PyMethodDef __pyx_mdef_7netCDF4_5stringtochar = {"stringtochar", (PyCFunction)__pyx_pw_7netCDF4_5stringtochar, METH_O, __pyx_doc_7netCDF4_4stringtochar}; -static PyObject *__pyx_pw_7netCDF4_5stringtochar(PyObject *__pyx_self, PyObject *__pyx_v_a) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_5stringtochar(PyObject *__pyx_self, PyObject *__pyx_v_a); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_4stringtochar[] = "\nstringtochar(a)\n\nconvert a string array to a character array with one extra dimension\n\n@param a: Input numpy string array with numpy datatype 'SN' or 'UN', where N\nis the number of characters in each string. Will be converted to\nan array of characters (datatype 'S1' or 'U1') of shape a.shape + (N,).\n\n@return: A numpy character array with datatype 'S1' or 'U1'\nand shape a.shape + (N,), where N is the length of each string in a."; +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_5stringtochar = {"stringtochar", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_5stringtochar, METH_O, __pyx_doc_7netCDF4_8_netCDF4_4stringtochar}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_5stringtochar(PyObject *__pyx_self, PyObject *__pyx_v_a) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("stringtochar (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_4stringtochar(__pyx_self, ((PyObject *)__pyx_v_a)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_4stringtochar(__pyx_self, ((PyObject *)__pyx_v_a)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_4stringtochar(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_a) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_4stringtochar(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_a) { PyObject *__pyx_v_dtype = NULL; PyObject *__pyx_v_b = NULL; PyObject *__pyx_r = NULL; @@ -3415,7 +3415,7 @@ static PyObject *__pyx_pf_7netCDF4_4stringtochar(CYTHON_UNUSED PyObject *__pyx_s int __pyx_clineno = 0; __Pyx_RefNannySetupContext("stringtochar", 0); - /* "utils.pyx":64 + /* "include/utils.pyx":64 * @return: A numpy character array with datatype 'S1' or 'U1' * and shape a.shape + (N,), where N is the length of each string in a.""" * dtype = a.dtype.kind # <<<<<<<<<<<<<< @@ -3430,7 +3430,7 @@ static PyObject *__pyx_pf_7netCDF4_4stringtochar(CYTHON_UNUSED PyObject *__pyx_s __pyx_v_dtype = __pyx_t_2; __pyx_t_2 = 0; - /* "utils.pyx":65 + /* "include/utils.pyx":65 * and shape a.shape + (N,), where N is the length of each string in a.""" * dtype = a.dtype.kind * if dtype not in ["S","U"]: # <<<<<<<<<<<<<< @@ -3452,7 +3452,7 @@ static PyObject *__pyx_pf_7netCDF4_4stringtochar(CYTHON_UNUSED PyObject *__pyx_s __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { - /* "utils.pyx":66 + /* "include/utils.pyx":66 * dtype = a.dtype.kind * if dtype not in ["S","U"]: * raise ValueError("type must string or unicode ('S' or 'U')") # <<<<<<<<<<<<<< @@ -3466,7 +3466,7 @@ static PyObject *__pyx_pf_7netCDF4_4stringtochar(CYTHON_UNUSED PyObject *__pyx_s {__pyx_filename = __pyx_f[1]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "utils.pyx":67 + /* "include/utils.pyx":67 * if dtype not in ["S","U"]: * raise ValueError("type must string or unicode ('S' or 'U')") * b = numpy.array(tuple(a.tostring().decode(default_encoding)),dtype+'1') # <<<<<<<<<<<<<< @@ -3564,7 +3564,7 @@ static PyObject *__pyx_pf_7netCDF4_4stringtochar(CYTHON_UNUSED PyObject *__pyx_s __pyx_v_b = __pyx_t_2; __pyx_t_2 = 0; - /* "utils.pyx":68 + /* "include/utils.pyx":68 * raise ValueError("type must string or unicode ('S' or 'U')") * b = numpy.array(tuple(a.tostring().decode(default_encoding)),dtype+'1') * b.shape = a.shape + (a.itemsize,) # <<<<<<<<<<<<<< @@ -3587,7 +3587,7 @@ static PyObject *__pyx_pf_7netCDF4_4stringtochar(CYTHON_UNUSED PyObject *__pyx_s if (__Pyx_PyObject_SetAttrStr(__pyx_v_b, __pyx_n_s_shape, __pyx_t_5) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "utils.pyx":69 + /* "include/utils.pyx":69 * b = numpy.array(tuple(a.tostring().decode(default_encoding)),dtype+'1') * b.shape = a.shape + (a.itemsize,) * return b # <<<<<<<<<<<<<< @@ -3599,7 +3599,7 @@ static PyObject *__pyx_pf_7netCDF4_4stringtochar(CYTHON_UNUSED PyObject *__pyx_s __pyx_r = __pyx_v_b; goto __pyx_L0; - /* "utils.pyx":52 + /* "include/utils.pyx":52 * return arr * * def stringtochar(a): # <<<<<<<<<<<<<< @@ -3616,7 +3616,7 @@ static PyObject *__pyx_pf_7netCDF4_4stringtochar(CYTHON_UNUSED PyObject *__pyx_s __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); - __Pyx_AddTraceback("netCDF4.stringtochar", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.stringtochar", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_dtype); @@ -3626,7 +3626,7 @@ static PyObject *__pyx_pf_7netCDF4_4stringtochar(CYTHON_UNUSED PyObject *__pyx_s return __pyx_r; } -/* "utils.pyx":71 +/* "include/utils.pyx":71 * return b * * def chartostring(b): # <<<<<<<<<<<<<< @@ -3635,21 +3635,21 @@ static PyObject *__pyx_pf_7netCDF4_4stringtochar(CYTHON_UNUSED PyObject *__pyx_s */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7chartostring(PyObject *__pyx_self, PyObject *__pyx_v_b); /*proto*/ -static char __pyx_doc_7netCDF4_6chartostring[] = "\nchartostring(b)\n\nconvert a character array to a string array with one less dimension.\n\n@param b: Input character array (numpy datatype 'S1' or 'U1').\nWill be converted to a array of strings, where each string has a fixed\nlength of b.shape[-1] characters.\n\n@return: A numpy string array with datatype 'SN' or 'UN' and shape b.shape[:-1],\nwhere N=b.shape[-1]."; -static PyMethodDef __pyx_mdef_7netCDF4_7chartostring = {"chartostring", (PyCFunction)__pyx_pw_7netCDF4_7chartostring, METH_O, __pyx_doc_7netCDF4_6chartostring}; -static PyObject *__pyx_pw_7netCDF4_7chartostring(PyObject *__pyx_self, PyObject *__pyx_v_b) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7chartostring(PyObject *__pyx_self, PyObject *__pyx_v_b); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_6chartostring[] = "\nchartostring(b)\n\nconvert a character array to a string array with one less dimension.\n\n@param b: Input character array (numpy datatype 'S1' or 'U1').\nWill be converted to a array of strings, where each string has a fixed\nlength of b.shape[-1] characters.\n\n@return: A numpy string array with datatype 'SN' or 'UN' and shape b.shape[:-1],\nwhere N=b.shape[-1]."; +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_7chartostring = {"chartostring", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7chartostring, METH_O, __pyx_doc_7netCDF4_8_netCDF4_6chartostring}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7chartostring(PyObject *__pyx_self, PyObject *__pyx_v_b) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("chartostring (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_6chartostring(__pyx_self, ((PyObject *)__pyx_v_b)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_6chartostring(__pyx_self, ((PyObject *)__pyx_v_b)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_6chartostring(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_b) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_6chartostring(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_b) { PyObject *__pyx_v_dtype = NULL; PyObject *__pyx_v_bs = NULL; PyObject *__pyx_v_slen = NULL; @@ -3672,7 +3672,7 @@ static PyObject *__pyx_pf_7netCDF4_6chartostring(CYTHON_UNUSED PyObject *__pyx_s int __pyx_clineno = 0; __Pyx_RefNannySetupContext("chartostring", 0); - /* "utils.pyx":83 + /* "include/utils.pyx":83 * @return: A numpy string array with datatype 'SN' or 'UN' and shape b.shape[:-1], * where N=b.shape[-1].""" * dtype = b.dtype.kind # <<<<<<<<<<<<<< @@ -3687,7 +3687,7 @@ static PyObject *__pyx_pf_7netCDF4_6chartostring(CYTHON_UNUSED PyObject *__pyx_s __pyx_v_dtype = __pyx_t_2; __pyx_t_2 = 0; - /* "utils.pyx":84 + /* "include/utils.pyx":84 * where N=b.shape[-1].""" * dtype = b.dtype.kind * if dtype not in ["S","U"]: # <<<<<<<<<<<<<< @@ -3709,7 +3709,7 @@ static PyObject *__pyx_pf_7netCDF4_6chartostring(CYTHON_UNUSED PyObject *__pyx_s __pyx_t_4 = (__pyx_t_3 != 0); if (__pyx_t_4) { - /* "utils.pyx":85 + /* "include/utils.pyx":85 * dtype = b.dtype.kind * if dtype not in ["S","U"]: * raise ValueError("type must string or unicode ('S' or 'U')") # <<<<<<<<<<<<<< @@ -3723,7 +3723,7 @@ static PyObject *__pyx_pf_7netCDF4_6chartostring(CYTHON_UNUSED PyObject *__pyx_s {__pyx_filename = __pyx_f[1]; __pyx_lineno = 85; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "utils.pyx":86 + /* "include/utils.pyx":86 * if dtype not in ["S","U"]: * raise ValueError("type must string or unicode ('S' or 'U')") * bs = b.tostring().decode(default_encoding) # <<<<<<<<<<<<<< @@ -3784,7 +3784,7 @@ static PyObject *__pyx_pf_7netCDF4_6chartostring(CYTHON_UNUSED PyObject *__pyx_s __pyx_v_bs = __pyx_t_2; __pyx_t_2 = 0; - /* "utils.pyx":87 + /* "include/utils.pyx":87 * raise ValueError("type must string or unicode ('S' or 'U')") * bs = b.tostring().decode(default_encoding) * slen = int(b.shape[-1]) # <<<<<<<<<<<<<< @@ -3802,7 +3802,7 @@ static PyObject *__pyx_pf_7netCDF4_6chartostring(CYTHON_UNUSED PyObject *__pyx_s __pyx_v_slen = __pyx_t_2; __pyx_t_2 = 0; - /* "utils.pyx":88 + /* "include/utils.pyx":88 * bs = b.tostring().decode(default_encoding) * slen = int(b.shape[-1]) * a = numpy.array([bs[n1:n1+slen] for n1 in range(0,len(bs),slen)],dtype+repr(slen)) # <<<<<<<<<<<<<< @@ -3917,7 +3917,7 @@ static PyObject *__pyx_pf_7netCDF4_6chartostring(CYTHON_UNUSED PyObject *__pyx_s __pyx_v_a = __pyx_t_2; __pyx_t_2 = 0; - /* "utils.pyx":89 + /* "include/utils.pyx":89 * slen = int(b.shape[-1]) * a = numpy.array([bs[n1:n1+slen] for n1 in range(0,len(bs),slen)],dtype+repr(slen)) * a.shape = b.shape[:-1] # <<<<<<<<<<<<<< @@ -3932,7 +3932,7 @@ static PyObject *__pyx_pf_7netCDF4_6chartostring(CYTHON_UNUSED PyObject *__pyx_s if (__Pyx_PyObject_SetAttrStr(__pyx_v_a, __pyx_n_s_shape, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 89; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "utils.pyx":90 + /* "include/utils.pyx":90 * a = numpy.array([bs[n1:n1+slen] for n1 in range(0,len(bs),slen)],dtype+repr(slen)) * a.shape = b.shape[:-1] * return a # <<<<<<<<<<<<<< @@ -3944,7 +3944,7 @@ static PyObject *__pyx_pf_7netCDF4_6chartostring(CYTHON_UNUSED PyObject *__pyx_s __pyx_r = __pyx_v_a; goto __pyx_L0; - /* "utils.pyx":71 + /* "include/utils.pyx":71 * return b * * def chartostring(b): # <<<<<<<<<<<<<< @@ -3960,7 +3960,7 @@ static PyObject *__pyx_pf_7netCDF4_6chartostring(CYTHON_UNUSED PyObject *__pyx_s __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_10); - __Pyx_AddTraceback("netCDF4.chartostring", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.chartostring", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_dtype); @@ -3973,7 +3973,7 @@ static PyObject *__pyx_pf_7netCDF4_6chartostring(CYTHON_UNUSED PyObject *__pyx_s return __pyx_r; } -/* "utils.pyx":92 +/* "include/utils.pyx":92 * return a * * def date2num(dates,units,calendar='standard'): # <<<<<<<<<<<<<< @@ -3982,10 +3982,10 @@ static PyObject *__pyx_pf_7netCDF4_6chartostring(CYTHON_UNUSED PyObject *__pyx_s */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9date2num(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_7netCDF4_8date2num[] = "\ndate2num(dates,units,calendar='standard')\n\nReturn numeric time values given datetime objects. The units\nof the numeric time values are described by the L{units} argument\nand the L{calendar} keyword. The datetime objects must\nbe in UTC with no time-zone offset. If there is a\ntime-zone offset in C{units}, it will be applied to the\nreturned numeric values.\n\n@param dates: A datetime object or a sequence of datetime objects.\nThe datetime objects should not include a time-zone offset.\n\n@param units: a string of the form C{'B{time units} since B{reference time}}'\ndescribing the time units. B{C{time units}} can be days, hours, minutes,\nseconds, milliseconds or microseconds. B{C{reference time}} is the time\norigin. Accuracy is somewhere between a millisecond and a microsecond,\ndepending on the time interval and the calendar used.\n\n@param calendar: describes the calendar used in the time calculations.\nAll the values currently defined in the U{CF metadata convention\n} are supported.\nValid calendars C{'standard', 'gregorian', 'proleptic_gregorian'\n'noleap', '365_day', '360_day', 'julian', 'all_leap', '366_day'}.\nDefault is C{'standard'}, which is a mixed Julian/Gregorian calendar.\n\n@return: a numeric time value, or an array of numeric time values.\n "; -static PyMethodDef __pyx_mdef_7netCDF4_9date2num = {"date2num", (PyCFunction)__pyx_pw_7netCDF4_9date2num, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8date2num}; -static PyObject *__pyx_pw_7netCDF4_9date2num(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9date2num(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_8date2num[] = "\ndate2num(dates,units,calendar='standard')\n\nReturn numeric time values given datetime objects. The units\nof the numeric time values are described by the L{units} argument\nand the L{calendar} keyword. The datetime objects must\nbe in UTC with no time-zone offset. If there is a\ntime-zone offset in C{units}, it will be applied to the\nreturned numeric values.\n\n@param dates: A datetime object or a sequence of datetime objects.\nThe datetime objects should not include a time-zone offset.\n\n@param units: a string of the form C{'B{time units} since B{reference time}}'\ndescribing the time units. B{C{time units}} can be days, hours, minutes,\nseconds, milliseconds or microseconds. B{C{reference time}} is the time\norigin. Accuracy is somewhere between a millisecond and a microsecond,\ndepending on the time interval and the calendar used.\n\n@param calendar: describes the calendar used in the time calculations.\nAll the values currently defined in the U{CF metadata convention\n} are supported.\nValid calendars C{'standard', 'gregorian', 'proleptic_gregorian'\n'noleap', '365_day', '360_day', 'julian', 'all_leap', '366_day'}.\nDefault is C{'standard'}, which is a mixed Julian/Gregorian calendar.\n\n@return: a numeric time value, or an array of numeric time values.\n "; +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_9date2num = {"date2num", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_9date2num, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8_netCDF4_8date2num}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9date2num(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_dates = 0; PyObject *__pyx_v_units = 0; PyObject *__pyx_v_calendar = 0; @@ -4045,18 +4045,18 @@ static PyObject *__pyx_pw_7netCDF4_9date2num(PyObject *__pyx_self, PyObject *__p __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("date2num", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 92; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4.date2num", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.date2num", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_8date2num(__pyx_self, __pyx_v_dates, __pyx_v_units, __pyx_v_calendar); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8date2num(__pyx_self, __pyx_v_dates, __pyx_v_units, __pyx_v_calendar); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dates, PyObject *__pyx_v_units, PyObject *__pyx_v_calendar) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dates, PyObject *__pyx_v_units, PyObject *__pyx_v_calendar) { PyObject *__pyx_v_basedate = NULL; PyObject *__pyx_v_unit = NULL; int __pyx_v_isscalar; @@ -4091,7 +4091,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, __Pyx_RefNannySetupContext("date2num", 0); __Pyx_INCREF(__pyx_v_dates); - /* "utils.pyx":121 + /* "include/utils.pyx":121 * @return: a numeric time value, or an array of numeric time values. * """ * basedate = _dateparse(units) # <<<<<<<<<<<<<< @@ -4128,7 +4128,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, __pyx_v_basedate = __pyx_t_1; __pyx_t_1 = 0; - /* "utils.pyx":122 + /* "include/utils.pyx":122 * """ * basedate = _dateparse(units) * unit = units.split()[0].lower() # <<<<<<<<<<<<<< @@ -4182,7 +4182,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, __pyx_v_unit = __pyx_t_1; __pyx_t_1 = 0; - /* "utils.pyx":124 + /* "include/utils.pyx":124 * unit = units.split()[0].lower() * * if (calendar == 'proleptic_gregorian' and basedate.year >= MINYEAR) or \ # <<<<<<<<<<<<<< @@ -4210,7 +4210,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, } __pyx_L5_next_or:; - /* "utils.pyx":125 + /* "include/utils.pyx":125 * * if (calendar == 'proleptic_gregorian' and basedate.year >= MINYEAR) or \ * (calendar in ['gregorian','standard'] and basedate > gregorian): # <<<<<<<<<<<<<< @@ -4245,7 +4245,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, __pyx_L4_bool_binop_done:; if (__pyx_t_5) { - /* "utils.pyx":127 + /* "include/utils.pyx":127 * (calendar in ['gregorian','standard'] and basedate > gregorian): * # use python datetime module, * isscalar = False # <<<<<<<<<<<<<< @@ -4254,7 +4254,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, */ __pyx_v_isscalar = 0; - /* "utils.pyx":128 + /* "include/utils.pyx":128 * # use python datetime module, * isscalar = False * try: # <<<<<<<<<<<<<< @@ -4268,7 +4268,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, __Pyx_XGOTREF(__pyx_t_10); /*try:*/ { - /* "utils.pyx":129 + /* "include/utils.pyx":129 * isscalar = False * try: * dates[0] # <<<<<<<<<<<<<< @@ -4289,7 +4289,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":130 + /* "include/utils.pyx":130 * try: * dates[0] * except: # <<<<<<<<<<<<<< @@ -4297,13 +4297,13 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, * if isscalar: */ /*except:*/ { - __Pyx_AddTraceback("netCDF4.date2num", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.date2num", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_4, &__pyx_t_1) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 130; __pyx_clineno = __LINE__; goto __pyx_L12_except_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_4); __Pyx_GOTREF(__pyx_t_1); - /* "utils.pyx":131 + /* "include/utils.pyx":131 * dates[0] * except: * isscalar = True # <<<<<<<<<<<<<< @@ -4330,7 +4330,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, __pyx_L17_try_end:; } - /* "utils.pyx":132 + /* "include/utils.pyx":132 * except: * isscalar = True * if isscalar: # <<<<<<<<<<<<<< @@ -4340,7 +4340,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, __pyx_t_5 = (__pyx_v_isscalar != 0); if (__pyx_t_5) { - /* "utils.pyx":133 + /* "include/utils.pyx":133 * isscalar = True * if isscalar: * dates = numpy.array([dates]) # <<<<<<<<<<<<<< @@ -4389,7 +4389,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, } /*else*/ { - /* "utils.pyx":135 + /* "include/utils.pyx":135 * dates = numpy.array([dates]) * else: * dates = numpy.array(dates) # <<<<<<<<<<<<<< @@ -4429,7 +4429,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, __Pyx_DECREF_SET(__pyx_v_dates, __pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":136 + /* "include/utils.pyx":136 * else: * dates = numpy.array(dates) * shape = dates.shape # <<<<<<<<<<<<<< @@ -4443,7 +4443,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, } __pyx_L20:; - /* "utils.pyx":137 + /* "include/utils.pyx":137 * dates = numpy.array(dates) * shape = dates.shape * ismasked = False # <<<<<<<<<<<<<< @@ -4452,7 +4452,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, */ __pyx_v_ismasked = 0; - /* "utils.pyx":138 + /* "include/utils.pyx":138 * shape = dates.shape * ismasked = False * if hasattr(dates,'mask'): # <<<<<<<<<<<<<< @@ -4463,7 +4463,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, __pyx_t_7 = (__pyx_t_5 != 0); if (__pyx_t_7) { - /* "utils.pyx":139 + /* "include/utils.pyx":139 * ismasked = False * if hasattr(dates,'mask'): * mask = dates.mask # <<<<<<<<<<<<<< @@ -4475,7 +4475,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, __pyx_v_mask = __pyx_t_1; __pyx_t_1 = 0; - /* "utils.pyx":140 + /* "include/utils.pyx":140 * if hasattr(dates,'mask'): * mask = dates.mask * ismasked = True # <<<<<<<<<<<<<< @@ -4487,7 +4487,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, } __pyx_L21:; - /* "utils.pyx":141 + /* "include/utils.pyx":141 * mask = dates.mask * ismasked = True * times = [] # <<<<<<<<<<<<<< @@ -4499,7 +4499,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, __pyx_v_times = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":142 + /* "include/utils.pyx":142 * ismasked = True * times = [] * for date in dates.flat: # <<<<<<<<<<<<<< @@ -4549,7 +4549,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, __Pyx_XDECREF_SET(__pyx_v_date, __pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":143 + /* "include/utils.pyx":143 * times = [] * for date in dates.flat: * if ismasked and not date: # <<<<<<<<<<<<<< @@ -4568,7 +4568,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, __pyx_L25_bool_binop_done:; if (__pyx_t_7) { - /* "utils.pyx":144 + /* "include/utils.pyx":144 * for date in dates.flat: * if ismasked and not date: * times.append(None) # <<<<<<<<<<<<<< @@ -4580,7 +4580,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, } /*else*/ { - /* "utils.pyx":146 + /* "include/utils.pyx":146 * times.append(None) * else: * td = date - basedate # <<<<<<<<<<<<<< @@ -4592,7 +4592,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, __Pyx_XDECREF_SET(__pyx_v_td, __pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":148 + /* "include/utils.pyx":148 * td = date - basedate * # total time in microseconds. * totaltime = td.microseconds + (td.seconds + td.days * 24 * 3600) * 1.e6 # <<<<<<<<<<<<<< @@ -4625,7 +4625,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, __Pyx_XDECREF_SET(__pyx_v_totaltime, __pyx_t_3); __pyx_t_3 = 0; - /* "utils.pyx":149 + /* "include/utils.pyx":149 * # total time in microseconds. * totaltime = td.microseconds + (td.seconds + td.days * 24 * 3600) * 1.e6 * if unit in microsec_units: # <<<<<<<<<<<<<< @@ -4639,7 +4639,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, __pyx_t_6 = (__pyx_t_7 != 0); if (__pyx_t_6) { - /* "utils.pyx":150 + /* "include/utils.pyx":150 * totaltime = td.microseconds + (td.seconds + td.days * 24 * 3600) * 1.e6 * if unit in microsec_units: * times.append(totaltime) # <<<<<<<<<<<<<< @@ -4650,7 +4650,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, goto __pyx_L27; } - /* "utils.pyx":151 + /* "include/utils.pyx":151 * if unit in microsec_units: * times.append(totaltime) * elif unit in millisec_units: # <<<<<<<<<<<<<< @@ -4664,7 +4664,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, __pyx_t_7 = (__pyx_t_6 != 0); if (__pyx_t_7) { - /* "utils.pyx":152 + /* "include/utils.pyx":152 * times.append(totaltime) * elif unit in millisec_units: * times.append(totaltime/1.e3) # <<<<<<<<<<<<<< @@ -4678,7 +4678,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, goto __pyx_L27; } - /* "utils.pyx":153 + /* "include/utils.pyx":153 * elif unit in millisec_units: * times.append(totaltime/1.e3) * elif unit in sec_units: # <<<<<<<<<<<<<< @@ -4692,7 +4692,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, __pyx_t_6 = (__pyx_t_7 != 0); if (__pyx_t_6) { - /* "utils.pyx":154 + /* "include/utils.pyx":154 * times.append(totaltime/1.e3) * elif unit in sec_units: * times.append(totaltime/1.e6) # <<<<<<<<<<<<<< @@ -4706,7 +4706,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, goto __pyx_L27; } - /* "utils.pyx":155 + /* "include/utils.pyx":155 * elif unit in sec_units: * times.append(totaltime/1.e6) * elif unit in min_units: # <<<<<<<<<<<<<< @@ -4720,7 +4720,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, __pyx_t_7 = (__pyx_t_6 != 0); if (__pyx_t_7) { - /* "utils.pyx":156 + /* "include/utils.pyx":156 * times.append(totaltime/1.e6) * elif unit in min_units: * times.append(totaltime/1.e6/60) # <<<<<<<<<<<<<< @@ -4737,7 +4737,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, goto __pyx_L27; } - /* "utils.pyx":157 + /* "include/utils.pyx":157 * elif unit in min_units: * times.append(totaltime/1.e6/60) * elif unit in hr_units: # <<<<<<<<<<<<<< @@ -4751,7 +4751,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, __pyx_t_6 = (__pyx_t_7 != 0); if (__pyx_t_6) { - /* "utils.pyx":158 + /* "include/utils.pyx":158 * times.append(totaltime/1.e6/60) * elif unit in hr_units: * times.append(totaltime/1.e6/3600) # <<<<<<<<<<<<<< @@ -4768,7 +4768,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, goto __pyx_L27; } - /* "utils.pyx":159 + /* "include/utils.pyx":159 * elif unit in hr_units: * times.append(totaltime/1.e6/3600) * elif unit in day_units: # <<<<<<<<<<<<<< @@ -4782,7 +4782,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, __pyx_t_7 = (__pyx_t_6 != 0); if (__pyx_t_7) { - /* "utils.pyx":160 + /* "include/utils.pyx":160 * times.append(totaltime/1.e6/3600) * elif unit in day_units: * times.append(totaltime/1.e6/3600./24.) # <<<<<<<<<<<<<< @@ -4803,7 +4803,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, } /*else*/ { - /* "utils.pyx":162 + /* "include/utils.pyx":162 * times.append(totaltime/1.e6/3600./24.) * else: * raise ValueError('unsupported time units') # <<<<<<<<<<<<<< @@ -4820,7 +4820,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, } __pyx_L24:; - /* "utils.pyx":142 + /* "include/utils.pyx":142 * ismasked = True * times = [] * for date in dates.flat: # <<<<<<<<<<<<<< @@ -4830,7 +4830,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, } __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "utils.pyx":163 + /* "include/utils.pyx":163 * else: * raise ValueError('unsupported time units') * if isscalar: # <<<<<<<<<<<<<< @@ -4840,7 +4840,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, __pyx_t_7 = (__pyx_v_isscalar != 0); if (__pyx_t_7) { - /* "utils.pyx":164 + /* "include/utils.pyx":164 * raise ValueError('unsupported time units') * if isscalar: * return times[0] # <<<<<<<<<<<<<< @@ -4856,7 +4856,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, } /*else*/ { - /* "utils.pyx":166 + /* "include/utils.pyx":166 * return times[0] * else: * return numpy.reshape(numpy.array(times), shape) # <<<<<<<<<<<<<< @@ -4934,7 +4934,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, } /*else*/ { - /* "utils.pyx":168 + /* "include/utils.pyx":168 * return numpy.reshape(numpy.array(times), shape) * else: # use netcdftime module for other calendars * cdftime = netcdftime.utime(units,calendar=calendar) # <<<<<<<<<<<<<< @@ -4962,7 +4962,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, __pyx_v_cdftime = __pyx_t_3; __pyx_t_3 = 0; - /* "utils.pyx":169 + /* "include/utils.pyx":169 * else: # use netcdftime module for other calendars * cdftime = netcdftime.utime(units,calendar=calendar) * return cdftime.date2num(dates) # <<<<<<<<<<<<<< @@ -5002,7 +5002,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, goto __pyx_L0; } - /* "utils.pyx":92 + /* "include/utils.pyx":92 * return a * * def date2num(dates,units,calendar='standard'): # <<<<<<<<<<<<<< @@ -5018,7 +5018,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_11); __Pyx_XDECREF(__pyx_t_15); - __Pyx_AddTraceback("netCDF4.date2num", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.date2num", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_basedate); @@ -5036,7 +5036,7 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, return __pyx_r; } -/* "utils.pyx":171 +/* "include/utils.pyx":171 * return cdftime.date2num(dates) * * def num2date(times,units,calendar='standard'): # <<<<<<<<<<<<<< @@ -5045,10 +5045,10 @@ static PyObject *__pyx_pf_7netCDF4_8date2num(CYTHON_UNUSED PyObject *__pyx_self, */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_11num2date(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_7netCDF4_10num2date[] = "\nnum2date(times,units,calendar='standard')\n\nReturn datetime objects given numeric time values. The units\nof the numeric time values are described by the C{units} argument\nand the C{calendar} keyword. The returned datetime objects represent\nUTC with no time-zone offset, even if the specified\nC{units} contain a time-zone offset.\n\n@param times: numeric time values.\n\n@param units: a string of the form C{'B{time units} since B{reference time}}'\ndescribing the time units. B{C{time units}} can be days, hours, minutes,\nseconds, milliseconds or microseconds. B{C{reference time}} is the time\norigin. Accuracy is somewhere between a millisecond and a microsecond,\ndepending on the time interval and the calendar used.\n\n@keyword calendar: describes the calendar used in the time calculations.\nAll the values currently defined in the U{CF metadata convention\n} are supported.\nValid calendars C{'standard', 'gregorian', 'proleptic_gregorian'\n'noleap', '365_day', '360_day', 'julian', 'all_leap', '366_day'}.\nDefault is C{'standard'}, which is a mixed Julian/Gregorian calendar.\n\n@return: a datetime instance, or an array of datetime instances.\n\nThe datetime instances returned are 'real' python datetime\nobjects if C{calendar='proleptic_gregorian'}, or\nC{calendar = 'standard'} or C{'gregorian'}\nand the date is after the breakpoint between the Julian and\nGregorian calendars (1582-10-15). Otherwise, they are 'phony' datetime\nobjects which support some but not all the methods of 'real' python\ndatetime objects. The datetime instances\ndo not contain a time-zone offset, even if the specified C{units}\ncontains one.\n "; -static PyMethodDef __pyx_mdef_7netCDF4_11num2date = {"num2date", (PyCFunction)__pyx_pw_7netCDF4_11num2date, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_10num2date}; -static PyObject *__pyx_pw_7netCDF4_11num2date(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_11num2date(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_10num2date[] = "\nnum2date(times,units,calendar='standard')\n\nReturn datetime objects given numeric time values. The units\nof the numeric time values are described by the C{units} argument\nand the C{calendar} keyword. The returned datetime objects represent\nUTC with no time-zone offset, even if the specified\nC{units} contain a time-zone offset.\n\n@param times: numeric time values.\n\n@param units: a string of the form C{'B{time units} since B{reference time}}'\ndescribing the time units. B{C{time units}} can be days, hours, minutes,\nseconds, milliseconds or microseconds. B{C{reference time}} is the time\norigin. Accuracy is somewhere between a millisecond and a microsecond,\ndepending on the time interval and the calendar used.\n\n@keyword calendar: describes the calendar used in the time calculations.\nAll the values currently defined in the U{CF metadata convention\n} are supported.\nValid calendars C{'standard', 'gregorian', 'proleptic_gregorian'\n'noleap', '365_day', '360_day', 'julian', 'all_leap', '366_day'}.\nDefault is C{'standard'}, which is a mixed Julian/Gregorian calendar.\n\n@return: a datetime instance, or an array of datetime instances.\n\nThe datetime instances returned are 'real' python datetime\nobjects if C{calendar='proleptic_gregorian'}, or\nC{calendar = 'standard'} or C{'gregorian'}\nand the date is after the breakpoint between the Julian and\nGregorian calendars (1582-10-15). Otherwise, they are 'phony' datetime\nobjects which support some but not all the methods of 'real' python\ndatetime objects. The datetime instances\ndo not contain a time-zone offset, even if the specified C{units}\ncontains one.\n "; +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_11num2date = {"num2date", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_11num2date, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8_netCDF4_10num2date}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_11num2date(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_times = 0; PyObject *__pyx_v_units = 0; PyObject *__pyx_v_calendar = 0; @@ -5108,18 +5108,18 @@ static PyObject *__pyx_pw_7netCDF4_11num2date(PyObject *__pyx_self, PyObject *__ __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("num2date", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 171; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4.num2date", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.num2date", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_10num2date(__pyx_self, __pyx_v_times, __pyx_v_units, __pyx_v_calendar); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_10num2date(__pyx_self, __pyx_v_times, __pyx_v_units, __pyx_v_calendar); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_times, PyObject *__pyx_v_units, PyObject *__pyx_v_calendar) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_times, PyObject *__pyx_v_units, PyObject *__pyx_v_calendar) { PyObject *__pyx_v_basedate = NULL; PyObject *__pyx_v_unit = NULL; int __pyx_v_isscalar; @@ -5160,7 +5160,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __Pyx_INCREF(__pyx_v_times); __Pyx_INCREF(__pyx_v_calendar); - /* "utils.pyx":208 + /* "include/utils.pyx":208 * contains one. * """ * calendar = calendar.lower() # <<<<<<<<<<<<<< @@ -5190,7 +5190,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __Pyx_DECREF_SET(__pyx_v_calendar, __pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":209 + /* "include/utils.pyx":209 * """ * calendar = calendar.lower() * basedate = _dateparse(units) # <<<<<<<<<<<<<< @@ -5227,7 +5227,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __pyx_v_basedate = __pyx_t_1; __pyx_t_1 = 0; - /* "utils.pyx":210 + /* "include/utils.pyx":210 * calendar = calendar.lower() * basedate = _dateparse(units) * unit = units.split()[0].lower() # <<<<<<<<<<<<<< @@ -5281,7 +5281,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __pyx_v_unit = __pyx_t_1; __pyx_t_1 = 0; - /* "utils.pyx":212 + /* "include/utils.pyx":212 * unit = units.split()[0].lower() * * if (calendar == 'proleptic_gregorian' and basedate.year >= MINYEAR) or \ # <<<<<<<<<<<<<< @@ -5309,7 +5309,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self } __pyx_L5_next_or:; - /* "utils.pyx":213 + /* "include/utils.pyx":213 * * if (calendar == 'proleptic_gregorian' and basedate.year >= MINYEAR) or \ * (calendar in ['gregorian','standard'] and basedate > gregorian): # <<<<<<<<<<<<<< @@ -5344,7 +5344,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __pyx_L4_bool_binop_done:; if (__pyx_t_5) { - /* "utils.pyx":215 + /* "include/utils.pyx":215 * (calendar in ['gregorian','standard'] and basedate > gregorian): * # use python datetime module, * isscalar = False # <<<<<<<<<<<<<< @@ -5353,7 +5353,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self */ __pyx_v_isscalar = 0; - /* "utils.pyx":216 + /* "include/utils.pyx":216 * # use python datetime module, * isscalar = False * try: # <<<<<<<<<<<<<< @@ -5367,7 +5367,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __Pyx_XGOTREF(__pyx_t_10); /*try:*/ { - /* "utils.pyx":217 + /* "include/utils.pyx":217 * isscalar = False * try: * times[0] # <<<<<<<<<<<<<< @@ -5388,7 +5388,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":218 + /* "include/utils.pyx":218 * try: * times[0] * except: # <<<<<<<<<<<<<< @@ -5396,13 +5396,13 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self * if isscalar: */ /*except:*/ { - __Pyx_AddTraceback("netCDF4.num2date", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.num2date", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_4, &__pyx_t_1) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L12_except_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_4); __Pyx_GOTREF(__pyx_t_1); - /* "utils.pyx":219 + /* "include/utils.pyx":219 * times[0] * except: * isscalar = True # <<<<<<<<<<<<<< @@ -5429,7 +5429,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __pyx_L17_try_end:; } - /* "utils.pyx":220 + /* "include/utils.pyx":220 * except: * isscalar = True * if isscalar: # <<<<<<<<<<<<<< @@ -5439,7 +5439,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __pyx_t_5 = (__pyx_v_isscalar != 0); if (__pyx_t_5) { - /* "utils.pyx":221 + /* "include/utils.pyx":221 * isscalar = True * if isscalar: * times = numpy.array([times],dtype='d') # <<<<<<<<<<<<<< @@ -5475,7 +5475,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self } /*else*/ { - /* "utils.pyx":223 + /* "include/utils.pyx":223 * times = numpy.array([times],dtype='d') * else: * times = numpy.array(times, dtype='d') # <<<<<<<<<<<<<< @@ -5503,7 +5503,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __Pyx_DECREF_SET(__pyx_v_times, __pyx_t_4); __pyx_t_4 = 0; - /* "utils.pyx":224 + /* "include/utils.pyx":224 * else: * times = numpy.array(times, dtype='d') * shape = times.shape # <<<<<<<<<<<<<< @@ -5517,7 +5517,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self } __pyx_L20:; - /* "utils.pyx":225 + /* "include/utils.pyx":225 * times = numpy.array(times, dtype='d') * shape = times.shape * ismasked = False # <<<<<<<<<<<<<< @@ -5526,7 +5526,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self */ __pyx_v_ismasked = 0; - /* "utils.pyx":226 + /* "include/utils.pyx":226 * shape = times.shape * ismasked = False * if hasattr(times,'mask'): # <<<<<<<<<<<<<< @@ -5537,7 +5537,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __pyx_t_7 = (__pyx_t_5 != 0); if (__pyx_t_7) { - /* "utils.pyx":227 + /* "include/utils.pyx":227 * ismasked = False * if hasattr(times,'mask'): * mask = times.mask # <<<<<<<<<<<<<< @@ -5549,7 +5549,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __pyx_v_mask = __pyx_t_4; __pyx_t_4 = 0; - /* "utils.pyx":228 + /* "include/utils.pyx":228 * if hasattr(times,'mask'): * mask = times.mask * ismasked = True # <<<<<<<<<<<<<< @@ -5561,7 +5561,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self } __pyx_L21:; - /* "utils.pyx":229 + /* "include/utils.pyx":229 * mask = times.mask * ismasked = True * dates = [] # <<<<<<<<<<<<<< @@ -5573,7 +5573,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __pyx_v_dates = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; - /* "utils.pyx":230 + /* "include/utils.pyx":230 * ismasked = True * dates = [] * for time in times.flat: # <<<<<<<<<<<<<< @@ -5623,7 +5623,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __Pyx_XDECREF_SET(__pyx_v_time, __pyx_t_4); __pyx_t_4 = 0; - /* "utils.pyx":231 + /* "include/utils.pyx":231 * dates = [] * for time in times.flat: * if ismasked and not time: # <<<<<<<<<<<<<< @@ -5642,7 +5642,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __pyx_L25_bool_binop_done:; if (__pyx_t_7) { - /* "utils.pyx":232 + /* "include/utils.pyx":232 * for time in times.flat: * if ismasked and not time: * dates.append(None) # <<<<<<<<<<<<<< @@ -5654,7 +5654,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self } /*else*/ { - /* "utils.pyx":235 + /* "include/utils.pyx":235 * else: * # convert to total seconds * if unit in microsec_units: # <<<<<<<<<<<<<< @@ -5668,7 +5668,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __pyx_t_6 = (__pyx_t_7 != 0); if (__pyx_t_6) { - /* "utils.pyx":236 + /* "include/utils.pyx":236 * # convert to total seconds * if unit in microsec_units: * tsecs = time/1.e6 # <<<<<<<<<<<<<< @@ -5682,7 +5682,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self goto __pyx_L27; } - /* "utils.pyx":237 + /* "include/utils.pyx":237 * if unit in microsec_units: * tsecs = time/1.e6 * elif unit in millisec_units: # <<<<<<<<<<<<<< @@ -5696,7 +5696,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __pyx_t_7 = (__pyx_t_6 != 0); if (__pyx_t_7) { - /* "utils.pyx":238 + /* "include/utils.pyx":238 * tsecs = time/1.e6 * elif unit in millisec_units: * tsecs = time/1.e3 # <<<<<<<<<<<<<< @@ -5710,7 +5710,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self goto __pyx_L27; } - /* "utils.pyx":239 + /* "include/utils.pyx":239 * elif unit in millisec_units: * tsecs = time/1.e3 * elif unit in sec_units: # <<<<<<<<<<<<<< @@ -5724,7 +5724,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __pyx_t_6 = (__pyx_t_7 != 0); if (__pyx_t_6) { - /* "utils.pyx":240 + /* "include/utils.pyx":240 * tsecs = time/1.e3 * elif unit in sec_units: * tsecs = time # <<<<<<<<<<<<<< @@ -5736,7 +5736,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self goto __pyx_L27; } - /* "utils.pyx":241 + /* "include/utils.pyx":241 * elif unit in sec_units: * tsecs = time * elif unit in min_units: # <<<<<<<<<<<<<< @@ -5750,7 +5750,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __pyx_t_7 = (__pyx_t_6 != 0); if (__pyx_t_7) { - /* "utils.pyx":242 + /* "include/utils.pyx":242 * tsecs = time * elif unit in min_units: * tsecs = time*60. # <<<<<<<<<<<<<< @@ -5764,7 +5764,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self goto __pyx_L27; } - /* "utils.pyx":243 + /* "include/utils.pyx":243 * elif unit in min_units: * tsecs = time*60. * elif unit in hr_units: # <<<<<<<<<<<<<< @@ -5778,7 +5778,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __pyx_t_6 = (__pyx_t_7 != 0); if (__pyx_t_6) { - /* "utils.pyx":244 + /* "include/utils.pyx":244 * tsecs = time*60. * elif unit in hr_units: * tsecs = time*3600. # <<<<<<<<<<<<<< @@ -5792,7 +5792,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self goto __pyx_L27; } - /* "utils.pyx":245 + /* "include/utils.pyx":245 * elif unit in hr_units: * tsecs = time*3600. * elif unit in day_units: # <<<<<<<<<<<<<< @@ -5806,7 +5806,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __pyx_t_7 = (__pyx_t_6 != 0); if (__pyx_t_7) { - /* "utils.pyx":246 + /* "include/utils.pyx":246 * tsecs = time*3600. * elif unit in day_units: * tsecs = time*86400. # <<<<<<<<<<<<<< @@ -5821,7 +5821,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self } /*else*/ { - /* "utils.pyx":248 + /* "include/utils.pyx":248 * tsecs = time*86400. * else: * raise ValueError('unsupported time units') # <<<<<<<<<<<<<< @@ -5836,7 +5836,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self } __pyx_L27:; - /* "utils.pyx":250 + /* "include/utils.pyx":250 * raise ValueError('unsupported time units') * # compute time delta. * days = tsecs // 86400. # <<<<<<<<<<<<<< @@ -5848,7 +5848,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __Pyx_XDECREF_SET(__pyx_v_days, __pyx_t_4); __pyx_t_4 = 0; - /* "utils.pyx":251 + /* "include/utils.pyx":251 * # compute time delta. * days = tsecs // 86400. * msecsd = tsecs*1.e6 - days*86400.*1.e6 # <<<<<<<<<<<<<< @@ -5869,7 +5869,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __Pyx_XDECREF_SET(__pyx_v_msecsd, __pyx_t_3); __pyx_t_3 = 0; - /* "utils.pyx":252 + /* "include/utils.pyx":252 * days = tsecs // 86400. * msecsd = tsecs*1.e6 - days*86400.*1.e6 * secs = msecsd // 1.e6 # <<<<<<<<<<<<<< @@ -5881,7 +5881,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __Pyx_XDECREF_SET(__pyx_v_secs, __pyx_t_3); __pyx_t_3 = 0; - /* "utils.pyx":253 + /* "include/utils.pyx":253 * msecsd = tsecs*1.e6 - days*86400.*1.e6 * secs = msecsd // 1.e6 * msecs = numpy.round(msecsd - secs*1.e6) # <<<<<<<<<<<<<< @@ -5927,7 +5927,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __Pyx_XDECREF_SET(__pyx_v_msecs, __pyx_t_3); __pyx_t_3 = 0; - /* "utils.pyx":254 + /* "include/utils.pyx":254 * secs = msecsd // 1.e6 * msecs = numpy.round(msecsd - secs*1.e6) * td = timedelta(days=days,seconds=secs,microseconds=msecs) # <<<<<<<<<<<<<< @@ -5948,7 +5948,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __Pyx_XDECREF_SET(__pyx_v_td, __pyx_t_15); __pyx_t_15 = 0; - /* "utils.pyx":256 + /* "include/utils.pyx":256 * td = timedelta(days=days,seconds=secs,microseconds=msecs) * # add time delta to base date. * date = basedate + td # <<<<<<<<<<<<<< @@ -5960,7 +5960,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __Pyx_XDECREF_SET(__pyx_v_date, __pyx_t_15); __pyx_t_15 = 0; - /* "utils.pyx":257 + /* "include/utils.pyx":257 * # add time delta to base date. * date = basedate + td * dates.append(date) # <<<<<<<<<<<<<< @@ -5971,7 +5971,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self } __pyx_L24:; - /* "utils.pyx":230 + /* "include/utils.pyx":230 * ismasked = True * dates = [] * for time in times.flat: # <<<<<<<<<<<<<< @@ -5981,7 +5981,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":258 + /* "include/utils.pyx":258 * date = basedate + td * dates.append(date) * if isscalar: # <<<<<<<<<<<<<< @@ -5991,7 +5991,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __pyx_t_7 = (__pyx_v_isscalar != 0); if (__pyx_t_7) { - /* "utils.pyx":259 + /* "include/utils.pyx":259 * dates.append(date) * if isscalar: * return dates[0] # <<<<<<<<<<<<<< @@ -6007,7 +6007,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self } /*else*/ { - /* "utils.pyx":261 + /* "include/utils.pyx":261 * return dates[0] * else: * return numpy.reshape(numpy.array(dates), shape) # <<<<<<<<<<<<<< @@ -6085,7 +6085,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self } /*else*/ { - /* "utils.pyx":263 + /* "include/utils.pyx":263 * return numpy.reshape(numpy.array(dates), shape) * else: # use netcdftime for other calendars * cdftime = netcdftime.utime(units,calendar=calendar) # <<<<<<<<<<<<<< @@ -6113,7 +6113,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __pyx_v_cdftime = __pyx_t_15; __pyx_t_15 = 0; - /* "utils.pyx":264 + /* "include/utils.pyx":264 * else: # use netcdftime for other calendars * cdftime = netcdftime.utime(units,calendar=calendar) * return cdftime.num2date(times) # <<<<<<<<<<<<<< @@ -6153,7 +6153,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self goto __pyx_L0; } - /* "utils.pyx":171 + /* "include/utils.pyx":171 * return cdftime.date2num(dates) * * def num2date(times,units,calendar='standard'): # <<<<<<<<<<<<<< @@ -6169,7 +6169,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_14); __Pyx_XDECREF(__pyx_t_15); - __Pyx_AddTraceback("netCDF4.num2date", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.num2date", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_basedate); @@ -6193,7 +6193,7 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self return __pyx_r; } -/* "utils.pyx":266 +/* "include/utils.pyx":266 * return cdftime.num2date(times) * * def date2index(dates, nctime, calendar=None, select='exact'): # <<<<<<<<<<<<<< @@ -6202,10 +6202,10 @@ static PyObject *__pyx_pf_7netCDF4_10num2date(CYTHON_UNUSED PyObject *__pyx_self */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_13date2index(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_7netCDF4_12date2index[] = "\ndate2index(dates, nctime, calendar=None, select='exact')\n\nReturn indices of a netCDF time variable corresponding to the given dates.\n\n@param dates: A datetime object or a sequence of datetime objects.\nThe datetime objects should not include a time-zone offset.\n\n@param nctime: A netCDF time variable object. The nctime object must have a\nC{units} attribute.\n\n@keyword calendar: Describes the calendar used in the time calculation.\nValid calendars C{'standard', 'gregorian', 'proleptic_gregorian'\n'noleap', '365_day', '360_day', 'julian', 'all_leap', '366_day'}.\nDefault is C{'standard'}, which is a mixed Julian/Gregorian calendar\nIf C{calendar} is None, its value is given by C{nctime.calendar} or\nC{standard} if no such attribute exists.\n\n@keyword select: C{'exact', 'before', 'after', 'nearest'}\nThe index selection method. C{exact} will return the indices perfectly\nmatching the dates given. C{before} and C{after} will return the indices\ncorresponding to the dates just before or just after the given dates if\nan exact match cannot be found. C{nearest} will return the indices that\ncorrespond to the closest dates.\n\n@return: an index (indices) of the netCDF time variable corresponding\nto the given datetime object(s).\n "; -static PyMethodDef __pyx_mdef_7netCDF4_13date2index = {"date2index", (PyCFunction)__pyx_pw_7netCDF4_13date2index, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_12date2index}; -static PyObject *__pyx_pw_7netCDF4_13date2index(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_13date2index(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_12date2index[] = "\ndate2index(dates, nctime, calendar=None, select='exact')\n\nReturn indices of a netCDF time variable corresponding to the given dates.\n\n@param dates: A datetime object or a sequence of datetime objects.\nThe datetime objects should not include a time-zone offset.\n\n@param nctime: A netCDF time variable object. The nctime object must have a\nC{units} attribute.\n\n@keyword calendar: Describes the calendar used in the time calculation.\nValid calendars C{'standard', 'gregorian', 'proleptic_gregorian'\n'noleap', '365_day', '360_day', 'julian', 'all_leap', '366_day'}.\nDefault is C{'standard'}, which is a mixed Julian/Gregorian calendar\nIf C{calendar} is None, its value is given by C{nctime.calendar} or\nC{standard} if no such attribute exists.\n\n@keyword select: C{'exact', 'before', 'after', 'nearest'}\nThe index selection method. C{exact} will return the indices perfectly\nmatching the dates given. C{before} and C{after} will return the indices\ncorresponding to the dates just before or just after the given dates if\nan exact match cannot be found. C{nearest} will return the indices that\ncorrespond to the closest dates.\n\n@return: an index (indices) of the netCDF time variable corresponding\nto the given datetime object(s).\n "; +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_13date2index = {"date2index", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_13date2index, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8_netCDF4_12date2index}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_13date2index(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_dates = 0; PyObject *__pyx_v_nctime = 0; PyObject *__pyx_v_calendar = 0; @@ -6275,18 +6275,18 @@ static PyObject *__pyx_pw_7netCDF4_13date2index(PyObject *__pyx_self, PyObject * __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("date2index", 0, 2, 4, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 266; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4.date2index", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.date2index", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_12date2index(__pyx_self, __pyx_v_dates, __pyx_v_nctime, __pyx_v_calendar, __pyx_v_select); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_12date2index(__pyx_self, __pyx_v_dates, __pyx_v_nctime, __pyx_v_calendar, __pyx_v_select); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_12date2index(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dates, PyObject *__pyx_v_nctime, PyObject *__pyx_v_calendar, PyObject *__pyx_v_select) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_12date2index(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_dates, PyObject *__pyx_v_nctime, PyObject *__pyx_v_calendar, PyObject *__pyx_v_select) { PyObject *__pyx_v_basedate = NULL; PyObject *__pyx_v_times = NULL; PyObject *__pyx_r = NULL; @@ -6306,7 +6306,7 @@ static PyObject *__pyx_pf_7netCDF4_12date2index(CYTHON_UNUSED PyObject *__pyx_se __Pyx_RefNannySetupContext("date2index", 0); __Pyx_INCREF(__pyx_v_calendar); - /* "utils.pyx":295 + /* "include/utils.pyx":295 * to the given datetime object(s). * """ * if calendar == None: # <<<<<<<<<<<<<< @@ -6318,7 +6318,7 @@ static PyObject *__pyx_pf_7netCDF4_12date2index(CYTHON_UNUSED PyObject *__pyx_se __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { - /* "utils.pyx":296 + /* "include/utils.pyx":296 * """ * if calendar == None: * calendar = getattr(nctime, 'calendar', 'standard') # <<<<<<<<<<<<<< @@ -6333,7 +6333,7 @@ static PyObject *__pyx_pf_7netCDF4_12date2index(CYTHON_UNUSED PyObject *__pyx_se } __pyx_L3:; - /* "utils.pyx":297 + /* "include/utils.pyx":297 * if calendar == None: * calendar = getattr(nctime, 'calendar', 'standard') * calendar = calendar.lower() # <<<<<<<<<<<<<< @@ -6363,7 +6363,7 @@ static PyObject *__pyx_pf_7netCDF4_12date2index(CYTHON_UNUSED PyObject *__pyx_se __Pyx_DECREF_SET(__pyx_v_calendar, __pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":298 + /* "include/utils.pyx":298 * calendar = getattr(nctime, 'calendar', 'standard') * calendar = calendar.lower() * basedate = _dateparse(nctime.units) # <<<<<<<<<<<<<< @@ -6403,7 +6403,7 @@ static PyObject *__pyx_pf_7netCDF4_12date2index(CYTHON_UNUSED PyObject *__pyx_se __pyx_v_basedate = __pyx_t_1; __pyx_t_1 = 0; - /* "utils.pyx":300 + /* "include/utils.pyx":300 * basedate = _dateparse(nctime.units) * * if (calendar == 'proleptic_gregorian' and basedate.year >= MINYEAR) or \ # <<<<<<<<<<<<<< @@ -6431,7 +6431,7 @@ static PyObject *__pyx_pf_7netCDF4_12date2index(CYTHON_UNUSED PyObject *__pyx_se } __pyx_L6_next_or:; - /* "utils.pyx":301 + /* "include/utils.pyx":301 * * if (calendar == 'proleptic_gregorian' and basedate.year >= MINYEAR) or \ * (calendar in ['gregorian','standard'] and basedate > gregorian): # <<<<<<<<<<<<<< @@ -6466,7 +6466,7 @@ static PyObject *__pyx_pf_7netCDF4_12date2index(CYTHON_UNUSED PyObject *__pyx_se __pyx_L5_bool_binop_done:; if (__pyx_t_2) { - /* "utils.pyx":303 + /* "include/utils.pyx":303 * (calendar in ['gregorian','standard'] and basedate > gregorian): * # use python datetime * times = date2num(dates,nctime.units,calendar=calendar) # <<<<<<<<<<<<<< @@ -6496,7 +6496,7 @@ static PyObject *__pyx_pf_7netCDF4_12date2index(CYTHON_UNUSED PyObject *__pyx_se __pyx_v_times = __pyx_t_4; __pyx_t_4 = 0; - /* "utils.pyx":304 + /* "include/utils.pyx":304 * # use python datetime * times = date2num(dates,nctime.units,calendar=calendar) * return netcdftime.time2index(times, nctime, calendar, select) # <<<<<<<<<<<<<< @@ -6548,7 +6548,7 @@ static PyObject *__pyx_pf_7netCDF4_12date2index(CYTHON_UNUSED PyObject *__pyx_se } /*else*/ { - /* "utils.pyx":306 + /* "include/utils.pyx":306 * return netcdftime.time2index(times, nctime, calendar, select) * else: # use netcdftime module for other cases * return netcdftime.date2index(dates, nctime, calendar, select) # <<<<<<<<<<<<<< @@ -6599,7 +6599,7 @@ static PyObject *__pyx_pf_7netCDF4_12date2index(CYTHON_UNUSED PyObject *__pyx_se goto __pyx_L0; } - /* "utils.pyx":266 + /* "include/utils.pyx":266 * return cdftime.num2date(times) * * def date2index(dates, nctime, calendar=None, select='exact'): # <<<<<<<<<<<<<< @@ -6614,7 +6614,7 @@ static PyObject *__pyx_pf_7netCDF4_12date2index(CYTHON_UNUSED PyObject *__pyx_se __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); - __Pyx_AddTraceback("netCDF4.date2index", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.date2index", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_basedate); @@ -6625,7 +6625,7 @@ static PyObject *__pyx_pf_7netCDF4_12date2index(CYTHON_UNUSED PyObject *__pyx_se return __pyx_r; } -/* "utils.pyx":308 +/* "include/utils.pyx":308 * return netcdftime.date2index(dates, nctime, calendar, select) * * def getlibversion(): # <<<<<<<<<<<<<< @@ -6634,21 +6634,21 @@ static PyObject *__pyx_pf_7netCDF4_12date2index(CYTHON_UNUSED PyObject *__pyx_se */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_15getlibversion(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static char __pyx_doc_7netCDF4_14getlibversion[] = "\ngetlibversion()\n\nreturns a string describing the version of the netcdf library\nused to build the module, and when it was built.\n "; -static PyMethodDef __pyx_mdef_7netCDF4_15getlibversion = {"getlibversion", (PyCFunction)__pyx_pw_7netCDF4_15getlibversion, METH_NOARGS, __pyx_doc_7netCDF4_14getlibversion}; -static PyObject *__pyx_pw_7netCDF4_15getlibversion(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_15getlibversion(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_14getlibversion[] = "\ngetlibversion()\n\nreturns a string describing the version of the netcdf library\nused to build the module, and when it was built.\n "; +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_15getlibversion = {"getlibversion", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_15getlibversion, METH_NOARGS, __pyx_doc_7netCDF4_8_netCDF4_14getlibversion}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_15getlibversion(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("getlibversion (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_14getlibversion(__pyx_self); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_14getlibversion(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_14getlibversion(CYTHON_UNUSED PyObject *__pyx_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_14getlibversion(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations char *__pyx_t_1; @@ -6658,7 +6658,7 @@ static PyObject *__pyx_pf_7netCDF4_14getlibversion(CYTHON_UNUSED PyObject *__pyx int __pyx_clineno = 0; __Pyx_RefNannySetupContext("getlibversion", 0); - /* "utils.pyx":315 + /* "include/utils.pyx":315 * used to build the module, and when it was built. * """ * return (nc_inq_libvers()).decode('ascii') # <<<<<<<<<<<<<< @@ -6674,7 +6674,7 @@ static PyObject *__pyx_pf_7netCDF4_14getlibversion(CYTHON_UNUSED PyObject *__pyx __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; goto __pyx_L0; - /* "utils.pyx":308 + /* "include/utils.pyx":308 * return netcdftime.date2index(dates, nctime, calendar, select) * * def getlibversion(): # <<<<<<<<<<<<<< @@ -6685,7 +6685,7 @@ static PyObject *__pyx_pf_7netCDF4_14getlibversion(CYTHON_UNUSED PyObject *__pyx /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); - __Pyx_AddTraceback("netCDF4.getlibversion", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.getlibversion", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -6693,7 +6693,7 @@ static PyObject *__pyx_pf_7netCDF4_14getlibversion(CYTHON_UNUSED PyObject *__pyx return __pyx_r; } -/* "utils.pyx":349 +/* "include/utils.pyx":349 * """ * * def __init__(self, files, check=False, aggdim=None, exclude=[]): # <<<<<<<<<<<<<< @@ -6701,7 +6701,7 @@ static PyObject *__pyx_pf_7netCDF4_14getlibversion(CYTHON_UNUSED PyObject *__pyx * Open a Dataset spanning multiple files, making it look as if it was a */ -static PyObject *__pyx_pf_7netCDF4_9MFDataset_12__defaults__(CYTHON_UNUSED PyObject *__pyx_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9MFDataset_12__defaults__(CYTHON_UNUSED PyObject *__pyx_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -6738,7 +6738,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_12__defaults__(CYTHON_UNUSED PyObj __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); - __Pyx_AddTraceback("netCDF4.MFDataset.__defaults__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.MFDataset.__defaults__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -6747,10 +6747,10 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_12__defaults__(CYTHON_UNUSED PyObj } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9MFDataset_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_7netCDF4_9MFDataset___init__[] = "\nOpen a Dataset spanning multiple files, making it look as if it was a\nsingle file. Variables in the list of files that share the same\ndimension (specified with the keyword C{aggdim}) are aggregated. If\nC{aggdim} is not specified, the unlimited is aggregated. Currently,\nC{aggdim} must be the leftmost (slowest varying) dimension of each\nof the variables to be aggregated.\n\nAdapted from U{pycdf } by Andre Gosselin.\n\nUsage:\n\nnc = MFDataset(files, check=False, aggdim=None, exclude=[])\n\n@param files: either a sequence of netCDF files or a string with a\nwildcard (converted to a sorted list of files using glob) The first file\nin the list will become the \"master\" file, defining all the\nvariables with an aggregation dimension which may span\nsubsequent files. Attribute access returns attributes only from \"master\"\nfile. The files are always opened in read-only mode.\n\n@keyword check: True if you want to do consistency checking to ensure the\ncorrect variables structure for all of the netcdf files. Checking makes\nthe initialization of the MFDataset instance much slower. Default is\nFalse.\n\n@keyword aggdim: The name of the dimension to aggregate over (must\nbe the leftmost dimension of each of the variables to be aggregated).\nIf None (default), aggregate over the unlimited dimension.\n\n@keyword exclude: A list of variable names to exclude from aggregation.\nDefault is an empty list.\n "; -static PyMethodDef __pyx_mdef_7netCDF4_9MFDataset_1__init__ = {"__init__", (PyCFunction)__pyx_pw_7netCDF4_9MFDataset_1__init__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_9MFDataset___init__}; -static PyObject *__pyx_pw_7netCDF4_9MFDataset_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9MFDataset_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_9MFDataset___init__[] = "\nOpen a Dataset spanning multiple files, making it look as if it was a\nsingle file. Variables in the list of files that share the same\ndimension (specified with the keyword C{aggdim}) are aggregated. If\nC{aggdim} is not specified, the unlimited is aggregated. Currently,\nC{aggdim} must be the leftmost (slowest varying) dimension of each\nof the variables to be aggregated.\n\nAdapted from U{pycdf } by Andre Gosselin.\n\nUsage:\n\nnc = MFDataset(files, check=False, aggdim=None, exclude=[])\n\n@param files: either a sequence of netCDF files or a string with a\nwildcard (converted to a sorted list of files using glob) The first file\nin the list will become the \"master\" file, defining all the\nvariables with an aggregation dimension which may span\nsubsequent files. Attribute access returns attributes only from \"master\"\nfile. The files are always opened in read-only mode.\n\n@keyword check: True if you want to do consistency checking to ensure the\ncorrect variables structure for all of the netcdf files. Checking makes\nthe initialization of the MFDataset instance much slower. Default is\nFalse.\n\n@keyword aggdim: The name of the dimension to aggregate over (must\nbe the leftmost dimension of each of the variables to be aggregated).\nIf None (default), aggregate over the unlimited dimension.\n\n@keyword exclude: A list of variable names to exclude from aggregation.\nDefault is an empty list.\n "; +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_9MFDataset_1__init__ = {"__init__", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_9MFDataset_1__init__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8_netCDF4_9MFDataset___init__}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9MFDataset_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_files = 0; PyObject *__pyx_v_check = 0; @@ -6831,21 +6831,21 @@ static PyObject *__pyx_pw_7netCDF4_9MFDataset_1__init__(PyObject *__pyx_self, Py __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 2, 5, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 349; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4.MFDataset.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.MFDataset.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_9MFDataset___init__(__pyx_self, __pyx_v_self, __pyx_v_files, __pyx_v_check, __pyx_v_aggdim, __pyx_v_exclude); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9MFDataset___init__(__pyx_self, __pyx_v_self, __pyx_v_files, __pyx_v_check, __pyx_v_aggdim, __pyx_v_exclude); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_files, PyObject *__pyx_v_check, PyObject *__pyx_v_aggdim, PyObject *__pyx_v_exclude) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_files, PyObject *__pyx_v_check, PyObject *__pyx_v_aggdim, PyObject *__pyx_v_exclude) { PyObject *__pyx_v_msg = NULL; PyObject *__pyx_v_master = NULL; - struct __pyx_obj_7netCDF4_Dataset *__pyx_v_cdfm = NULL; + struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_cdfm = NULL; PyObject *__pyx_v_name = NULL; PyObject *__pyx_v_value = NULL; PyObject *__pyx_v_aggDimId = NULL; @@ -6862,7 +6862,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ PyObject *__pyx_v_cdfVLen = NULL; PyObject *__pyx_v_cdfRecVar = NULL; PyObject *__pyx_v_f = NULL; - struct __pyx_obj_7netCDF4_Dataset *__pyx_v_part = NULL; + struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_part = NULL; PyObject *__pyx_v_varInfo = NULL; PyObject *__pyx_v_masterDims = NULL; PyObject *__pyx_v_masterShape = NULL; @@ -6899,7 +6899,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_RefNannySetupContext("__init__", 0); __Pyx_INCREF(__pyx_v_files); - /* "utils.pyx":386 + /* "include/utils.pyx":386 * # Open the master file in the base class, so that the CDFMF instance * # can be used like a CDF instance. * if isinstance(files, str): # <<<<<<<<<<<<<< @@ -6910,7 +6910,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "utils.pyx":387 + /* "include/utils.pyx":387 * # can be used like a CDF instance. * if isinstance(files, str): * if files.startswith('http'): # <<<<<<<<<<<<<< @@ -6926,7 +6926,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_2) { - /* "utils.pyx":388 + /* "include/utils.pyx":388 * if isinstance(files, str): * if files.startswith('http'): * msg='cannot using file globbing for remote (OPeNDAP) datasets' # <<<<<<<<<<<<<< @@ -6936,7 +6936,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_INCREF(__pyx_kp_s_cannot_using_file_globbing_for_r); __pyx_v_msg = __pyx_kp_s_cannot_using_file_globbing_for_r; - /* "utils.pyx":389 + /* "include/utils.pyx":389 * if files.startswith('http'): * msg='cannot using file globbing for remote (OPeNDAP) datasets' * raise ValueError(msg) # <<<<<<<<<<<<<< @@ -6957,7 +6957,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ } /*else*/ { - /* "utils.pyx":391 + /* "include/utils.pyx":391 * raise ValueError(msg) * else: * files = sorted(glob(files)) # <<<<<<<<<<<<<< @@ -7004,7 +7004,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ } __pyx_L3:; - /* "utils.pyx":393 + /* "include/utils.pyx":393 * files = sorted(glob(files)) * * master = files[0] # <<<<<<<<<<<<<< @@ -7016,7 +7016,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __pyx_v_master = __pyx_t_3; __pyx_t_3 = 0; - /* "utils.pyx":397 + /* "include/utils.pyx":397 * # Open the master again, this time as a classic CDF instance. This will avoid * # calling methods of the CDFMF subclass when querying the master file. * cdfm = Dataset(master) # <<<<<<<<<<<<<< @@ -7028,13 +7028,13 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_INCREF(__pyx_v_master); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_master); __Pyx_GIVEREF(__pyx_v_master); - __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_Dataset)), __pyx_t_3, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_Dataset)), __pyx_t_3, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_v_cdfm = ((struct __pyx_obj_7netCDF4_Dataset *)__pyx_t_5); + __pyx_v_cdfm = ((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_t_5); __pyx_t_5 = 0; - /* "utils.pyx":399 + /* "include/utils.pyx":399 * cdfm = Dataset(master) * # copy attributes from master. * for name, value in cdfm.__dict__.items(): # <<<<<<<<<<<<<< @@ -7157,7 +7157,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_7); __pyx_t_7 = 0; - /* "utils.pyx":400 + /* "include/utils.pyx":400 * # copy attributes from master. * for name, value in cdfm.__dict__.items(): * self.__dict__[name] = value # <<<<<<<<<<<<<< @@ -7169,7 +7169,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ if (unlikely(PyObject_SetItem(__pyx_t_5, __pyx_v_name, __pyx_v_value) < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "utils.pyx":399 + /* "include/utils.pyx":399 * cdfm = Dataset(master) * # copy attributes from master. * for name, value in cdfm.__dict__.items(): # <<<<<<<<<<<<<< @@ -7179,7 +7179,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "utils.pyx":404 + /* "include/utils.pyx":404 * # Make sure the master defines a dim with name aggdim, * # or an unlimited dimension. * aggDimId = None # <<<<<<<<<<<<<< @@ -7189,7 +7189,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_INCREF(Py_None); __pyx_v_aggDimId = Py_None; - /* "utils.pyx":405 + /* "include/utils.pyx":405 * # or an unlimited dimension. * aggDimId = None * for dimname,dim in cdfm.dimensions.items(): # <<<<<<<<<<<<<< @@ -7309,7 +7309,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_XDECREF_SET(__pyx_v_dim, __pyx_t_3); __pyx_t_3 = 0; - /* "utils.pyx":406 + /* "include/utils.pyx":406 * aggDimId = None * for dimname,dim in cdfm.dimensions.items(): * if aggdim is None: # <<<<<<<<<<<<<< @@ -7320,7 +7320,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "utils.pyx":407 + /* "include/utils.pyx":407 * for dimname,dim in cdfm.dimensions.items(): * if aggdim is None: * if dim.isunlimited(): # <<<<<<<<<<<<<< @@ -7351,7 +7351,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_1) { - /* "utils.pyx":408 + /* "include/utils.pyx":408 * if aggdim is None: * if dim.isunlimited(): * aggDimId = dim # <<<<<<<<<<<<<< @@ -7361,7 +7361,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_INCREF(__pyx_v_dim); __Pyx_DECREF_SET(__pyx_v_aggDimId, __pyx_v_dim); - /* "utils.pyx":409 + /* "include/utils.pyx":409 * if dim.isunlimited(): * aggDimId = dim * aggDimName = dimname # <<<<<<<<<<<<<< @@ -7377,7 +7377,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ } /*else*/ { - /* "utils.pyx":411 + /* "include/utils.pyx":411 * aggDimName = dimname * else: * if dimname == aggdim: # <<<<<<<<<<<<<< @@ -7389,7 +7389,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_1) { - /* "utils.pyx":412 + /* "include/utils.pyx":412 * else: * if dimname == aggdim: * aggDimId = dim # <<<<<<<<<<<<<< @@ -7399,7 +7399,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_INCREF(__pyx_v_dim); __Pyx_DECREF_SET(__pyx_v_aggDimId, __pyx_v_dim); - /* "utils.pyx":413 + /* "include/utils.pyx":413 * if dimname == aggdim: * aggDimId = dim * aggDimName = dimname # <<<<<<<<<<<<<< @@ -7414,7 +7414,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ } __pyx_L13:; - /* "utils.pyx":405 + /* "include/utils.pyx":405 * # or an unlimited dimension. * aggDimId = None * for dimname,dim in cdfm.dimensions.items(): # <<<<<<<<<<<<<< @@ -7424,7 +7424,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "utils.pyx":414 + /* "include/utils.pyx":414 * aggDimId = dim * aggDimName = dimname * if aggDimId is None: # <<<<<<<<<<<<<< @@ -7435,7 +7435,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "utils.pyx":415 + /* "include/utils.pyx":415 * aggDimName = dimname * if aggDimId is None: * raise IOError("master dataset %s does not have a aggregation dimension" % master) # <<<<<<<<<<<<<< @@ -7457,7 +7457,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ {__pyx_filename = __pyx_f[1]; __pyx_lineno = 415; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "utils.pyx":419 + /* "include/utils.pyx":419 * # Get info on all aggregation variables defined in the master. * # Make sure the master defines at least one aggregation variable. * masterRecVar = {} # <<<<<<<<<<<<<< @@ -7469,7 +7469,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __pyx_v_masterRecVar = ((PyObject*)__pyx_t_5); __pyx_t_5 = 0; - /* "utils.pyx":420 + /* "include/utils.pyx":420 * # Make sure the master defines at least one aggregation variable. * masterRecVar = {} * for vName,v in cdfm.variables.items(): # <<<<<<<<<<<<<< @@ -7589,7 +7589,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_XDECREF_SET(__pyx_v_v, __pyx_t_7); __pyx_t_7 = 0; - /* "utils.pyx":422 + /* "include/utils.pyx":422 * for vName,v in cdfm.variables.items(): * # skip variables specified in exclude list. * if vName in exclude: continue # <<<<<<<<<<<<<< @@ -7602,7 +7602,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ goto __pyx_L17_continue; } - /* "utils.pyx":423 + /* "include/utils.pyx":423 * # skip variables specified in exclude list. * if vName in exclude: continue * dims = v.dimensions # <<<<<<<<<<<<<< @@ -7614,7 +7614,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_XDECREF_SET(__pyx_v_dims, __pyx_t_5); __pyx_t_5 = 0; - /* "utils.pyx":424 + /* "include/utils.pyx":424 * if vName in exclude: continue * dims = v.dimensions * shape = v.shape # <<<<<<<<<<<<<< @@ -7626,7 +7626,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_XDECREF_SET(__pyx_v_shape, __pyx_t_5); __pyx_t_5 = 0; - /* "utils.pyx":425 + /* "include/utils.pyx":425 * dims = v.dimensions * shape = v.shape * dtype = v.dtype # <<<<<<<<<<<<<< @@ -7638,7 +7638,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_XDECREF_SET(__pyx_v_dtype, __pyx_t_5); __pyx_t_5 = 0; - /* "utils.pyx":428 + /* "include/utils.pyx":428 * # Be carefull: we may deal with a scalar (dimensionless) variable. * # Unlimited dimension always occupies index 0. * if (len(dims) > 0 and aggDimName == dims[0]): # <<<<<<<<<<<<<< @@ -7663,7 +7663,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __pyx_L23_bool_binop_done:; if (__pyx_t_1) { - /* "utils.pyx":429 + /* "include/utils.pyx":429 * # Unlimited dimension always occupies index 0. * if (len(dims) > 0 and aggDimName == dims[0]): * masterRecVar[vName] = (dims, shape, dtype) # <<<<<<<<<<<<<< @@ -7687,7 +7687,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ } __pyx_L22:; - /* "utils.pyx":420 + /* "include/utils.pyx":420 * # Make sure the master defines at least one aggregation variable. * masterRecVar = {} * for vName,v in cdfm.variables.items(): # <<<<<<<<<<<<<< @@ -7698,7 +7698,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "utils.pyx":430 + /* "include/utils.pyx":430 * if (len(dims) > 0 and aggDimName == dims[0]): * masterRecVar[vName] = (dims, shape, dtype) * if len(masterRecVar) == 0: # <<<<<<<<<<<<<< @@ -7709,7 +7709,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __pyx_t_1 = ((__pyx_t_9 == 0) != 0); if (__pyx_t_1) { - /* "utils.pyx":431 + /* "include/utils.pyx":431 * masterRecVar[vName] = (dims, shape, dtype) * if len(masterRecVar) == 0: * raise IOError("master dataset %s does not have any variables to aggregate" % master) # <<<<<<<<<<<<<< @@ -7731,7 +7731,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ {__pyx_filename = __pyx_f[1]; __pyx_lineno = 431; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "utils.pyx":439 + /* "include/utils.pyx":439 * # a list of the corresponding Variable instance, one for each * # cdf file of the file set * cdf = [cdfm] # <<<<<<<<<<<<<< @@ -7746,7 +7746,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __pyx_v_cdf = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; - /* "utils.pyx":440 + /* "include/utils.pyx":440 * # cdf file of the file set * cdf = [cdfm] * self._cdf = cdf # Store this now, because dim() method needs it # <<<<<<<<<<<<<< @@ -7755,7 +7755,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_cdf, __pyx_v_cdf) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":441 + /* "include/utils.pyx":441 * cdf = [cdfm] * self._cdf = cdf # Store this now, because dim() method needs it * cdfVLen = [len(aggDimId)] # <<<<<<<<<<<<<< @@ -7773,7 +7773,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __pyx_v_cdfVLen = ((PyObject*)__pyx_t_7); __pyx_t_7 = 0; - /* "utils.pyx":442 + /* "include/utils.pyx":442 * self._cdf = cdf # Store this now, because dim() method needs it * cdfVLen = [len(aggDimId)] * cdfRecVar = {} # <<<<<<<<<<<<<< @@ -7785,7 +7785,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __pyx_v_cdfRecVar = ((PyObject*)__pyx_t_7); __pyx_t_7 = 0; - /* "utils.pyx":443 + /* "include/utils.pyx":443 * cdfVLen = [len(aggDimId)] * cdfRecVar = {} * for v in masterRecVar.keys(): # <<<<<<<<<<<<<< @@ -7835,7 +7835,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_XDECREF_SET(__pyx_v_v, __pyx_t_7); __pyx_t_7 = 0; - /* "utils.pyx":444 + /* "include/utils.pyx":444 * cdfRecVar = {} * for v in masterRecVar.keys(): * cdfRecVar[v] = [cdfm.variables[v]] # <<<<<<<<<<<<<< @@ -7852,7 +7852,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ if (unlikely(PyDict_SetItem(__pyx_v_cdfRecVar, __pyx_v_v, __pyx_t_5) < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 444; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "utils.pyx":443 + /* "include/utils.pyx":443 * cdfVLen = [len(aggDimId)] * cdfRecVar = {} * for v in masterRecVar.keys(): # <<<<<<<<<<<<<< @@ -7862,7 +7862,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "utils.pyx":449 + /* "include/utils.pyx":449 * # Make sure each file defines the same aggregation variables as the master * # and that the variables are defined in the same way (name, shape and type) * for f in files[1:]: # <<<<<<<<<<<<<< @@ -7912,7 +7912,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_XDECREF_SET(__pyx_v_f, __pyx_t_4); __pyx_t_4 = 0; - /* "utils.pyx":450 + /* "include/utils.pyx":450 * # and that the variables are defined in the same way (name, shape and type) * for f in files[1:]: * part = Dataset(f) # <<<<<<<<<<<<<< @@ -7924,13 +7924,13 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_INCREF(__pyx_v_f); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_f); __Pyx_GIVEREF(__pyx_v_f); - __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_Dataset)), __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_Dataset)), __pyx_t_4, NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __Pyx_XDECREF_SET(__pyx_v_part, ((struct __pyx_obj_7netCDF4_Dataset *)__pyx_t_7)); + __Pyx_XDECREF_SET(__pyx_v_part, ((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_t_7)); __pyx_t_7 = 0; - /* "utils.pyx":451 + /* "include/utils.pyx":451 * for f in files[1:]: * part = Dataset(f) * varInfo = part.variables # <<<<<<<<<<<<<< @@ -7942,7 +7942,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_XDECREF_SET(__pyx_v_varInfo, __pyx_t_7); __pyx_t_7 = 0; - /* "utils.pyx":452 + /* "include/utils.pyx":452 * part = Dataset(f) * varInfo = part.variables * for v in masterRecVar.keys(): # <<<<<<<<<<<<<< @@ -7992,7 +7992,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_XDECREF_SET(__pyx_v_v, __pyx_t_7); __pyx_t_7 = 0; - /* "utils.pyx":453 + /* "include/utils.pyx":453 * varInfo = part.variables * for v in masterRecVar.keys(): * if check: # <<<<<<<<<<<<<< @@ -8002,7 +8002,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_check); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 453; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "utils.pyx":455 + /* "include/utils.pyx":455 * if check: * # Make sure master rec var is also defined here. * if v not in varInfo.keys(): # <<<<<<<<<<<<<< @@ -8034,7 +8034,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "utils.pyx":456 + /* "include/utils.pyx":456 * # Make sure master rec var is also defined here. * if v not in varInfo.keys(): * raise IOError("aggregation variable %s not defined in %s" % (v, f)) # <<<<<<<<<<<<<< @@ -8065,7 +8065,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ {__pyx_filename = __pyx_f[1]; __pyx_lineno = 456; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "utils.pyx":460 + /* "include/utils.pyx":460 * #if not vInst.dimensions[0] != aggDimName: * * masterDims, masterShape, masterType = masterRecVar[v][:3] # <<<<<<<<<<<<<< @@ -8141,7 +8141,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_XDECREF_SET(__pyx_v_masterType, __pyx_t_14); __pyx_t_14 = 0; - /* "utils.pyx":461 + /* "include/utils.pyx":461 * * masterDims, masterShape, masterType = masterRecVar[v][:3] * extDims = varInfo[v].dimensions # <<<<<<<<<<<<<< @@ -8156,7 +8156,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_XDECREF_SET(__pyx_v_extDims, __pyx_t_14); __pyx_t_14 = 0; - /* "utils.pyx":462 + /* "include/utils.pyx":462 * masterDims, masterShape, masterType = masterRecVar[v][:3] * extDims = varInfo[v].dimensions * extShape = varInfo[v].shape # <<<<<<<<<<<<<< @@ -8171,7 +8171,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_XDECREF_SET(__pyx_v_extShape, __pyx_t_7); __pyx_t_7 = 0; - /* "utils.pyx":463 + /* "include/utils.pyx":463 * extDims = varInfo[v].dimensions * extShape = varInfo[v].shape * extType = varInfo[v].dtype # <<<<<<<<<<<<<< @@ -8186,7 +8186,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_XDECREF_SET(__pyx_v_extType, __pyx_t_14); __pyx_t_14 = 0; - /* "utils.pyx":465 + /* "include/utils.pyx":465 * extType = varInfo[v].dtype * # Check that dimension names are identical. * if masterDims != extDims: # <<<<<<<<<<<<<< @@ -8198,7 +8198,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; if (__pyx_t_2) { - /* "utils.pyx":468 + /* "include/utils.pyx":468 * raise IOError("variable %s : dimensions mismatch between " * "master %s (%s) and extension %s (%s)" % * (v, master, masterDims, f, extDims)) # <<<<<<<<<<<<<< @@ -8223,7 +8223,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ PyTuple_SET_ITEM(__pyx_t_14, 4, __pyx_v_extDims); __Pyx_GIVEREF(__pyx_v_extDims); - /* "utils.pyx":467 + /* "include/utils.pyx":467 * if masterDims != extDims: * raise IOError("variable %s : dimensions mismatch between " * "master %s (%s) and extension %s (%s)" % # <<<<<<<<<<<<<< @@ -8234,7 +8234,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; - /* "utils.pyx":466 + /* "include/utils.pyx":466 * # Check that dimension names are identical. * if masterDims != extDims: * raise IOError("variable %s : dimensions mismatch between " # <<<<<<<<<<<<<< @@ -8254,7 +8254,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ {__pyx_filename = __pyx_f[1]; __pyx_lineno = 466; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "utils.pyx":473 + /* "include/utils.pyx":473 * # identical (except for that of the unlimited dimension, which of * # course may vary. * if len(masterShape) != len(extShape): # <<<<<<<<<<<<<< @@ -8266,7 +8266,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __pyx_t_2 = ((__pyx_t_16 != __pyx_t_17) != 0); if (__pyx_t_2) { - /* "utils.pyx":476 + /* "include/utils.pyx":476 * raise IOError("variable %s : rank mismatch between " * "master %s (%s) and extension %s (%s)" % * (v, master, len(masterShape), f, len(extShape))) # <<<<<<<<<<<<<< @@ -8297,7 +8297,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __pyx_t_7 = 0; __pyx_t_14 = 0; - /* "utils.pyx":475 + /* "include/utils.pyx":475 * if len(masterShape) != len(extShape): * raise IOError("variable %s : rank mismatch between " * "master %s (%s) and extension %s (%s)" % # <<<<<<<<<<<<<< @@ -8308,7 +8308,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_GOTREF(__pyx_t_14); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "utils.pyx":474 + /* "include/utils.pyx":474 * # course may vary. * if len(masterShape) != len(extShape): * raise IOError("variable %s : rank mismatch between " # <<<<<<<<<<<<<< @@ -8328,7 +8328,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ {__pyx_filename = __pyx_f[1]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "utils.pyx":477 + /* "include/utils.pyx":477 * "master %s (%s) and extension %s (%s)" % * (v, master, len(masterShape), f, len(extShape))) * if masterShape[1:] != extShape[1:]: # <<<<<<<<<<<<<< @@ -8346,7 +8346,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__pyx_t_2) { - /* "utils.pyx":480 + /* "include/utils.pyx":480 * raise IOError("variable %s : shape mismatch between " * "master %s (%s) and extension %s (%s)" % * (v, master, masterShape, f, extShape)) # <<<<<<<<<<<<<< @@ -8371,7 +8371,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ PyTuple_SET_ITEM(__pyx_t_7, 4, __pyx_v_extShape); __Pyx_GIVEREF(__pyx_v_extShape); - /* "utils.pyx":479 + /* "include/utils.pyx":479 * if masterShape[1:] != extShape[1:]: * raise IOError("variable %s : shape mismatch between " * "master %s (%s) and extension %s (%s)" % # <<<<<<<<<<<<<< @@ -8382,7 +8382,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "utils.pyx":478 + /* "include/utils.pyx":478 * (v, master, len(masterShape), f, len(extShape))) * if masterShape[1:] != extShape[1:]: * raise IOError("variable %s : shape mismatch between " # <<<<<<<<<<<<<< @@ -8402,7 +8402,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ {__pyx_filename = __pyx_f[1]; __pyx_lineno = 478; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "utils.pyx":483 + /* "include/utils.pyx":483 * * # Check that the data types are identical. * if masterType != extType: # <<<<<<<<<<<<<< @@ -8414,7 +8414,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_2) { - /* "utils.pyx":486 + /* "include/utils.pyx":486 * raise IOError("variable %s : data type mismatch between " * "master %s (%s) and extension %s (%s)" % * (v, master, masterType, f, extType)) # <<<<<<<<<<<<<< @@ -8439,7 +8439,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ PyTuple_SET_ITEM(__pyx_t_6, 4, __pyx_v_extType); __Pyx_GIVEREF(__pyx_v_extType); - /* "utils.pyx":485 + /* "include/utils.pyx":485 * if masterType != extType: * raise IOError("variable %s : data type mismatch between " * "master %s (%s) and extension %s (%s)" % # <<<<<<<<<<<<<< @@ -8450,7 +8450,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "utils.pyx":484 + /* "include/utils.pyx":484 * # Check that the data types are identical. * if masterType != extType: * raise IOError("variable %s : data type mismatch between " # <<<<<<<<<<<<<< @@ -8470,7 +8470,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ {__pyx_filename = __pyx_f[1]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "utils.pyx":489 + /* "include/utils.pyx":489 * * # Everythig ok. * vInst = part.variables[v] # <<<<<<<<<<<<<< @@ -8482,7 +8482,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_XDECREF_SET(__pyx_v_vInst, __pyx_t_7); __pyx_t_7 = 0; - /* "utils.pyx":490 + /* "include/utils.pyx":490 * # Everythig ok. * vInst = part.variables[v] * cdfRecVar[v].append(vInst) # <<<<<<<<<<<<<< @@ -8497,7 +8497,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ } /*else*/ { - /* "utils.pyx":493 + /* "include/utils.pyx":493 * else: * # No making sure of anything -- assume this is ok.. * vInst = part.variables[v] # <<<<<<<<<<<<<< @@ -8509,7 +8509,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_XDECREF_SET(__pyx_v_vInst, __pyx_t_7); __pyx_t_7 = 0; - /* "utils.pyx":494 + /* "include/utils.pyx":494 * # No making sure of anything -- assume this is ok.. * vInst = part.variables[v] * cdfRecVar[v].append(vInst) # <<<<<<<<<<<<<< @@ -8523,7 +8523,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ } __pyx_L32:; - /* "utils.pyx":452 + /* "include/utils.pyx":452 * part = Dataset(f) * varInfo = part.variables * for v in masterRecVar.keys(): # <<<<<<<<<<<<<< @@ -8533,7 +8533,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "utils.pyx":496 + /* "include/utils.pyx":496 * cdfRecVar[v].append(vInst) * * cdf.append(part) # <<<<<<<<<<<<<< @@ -8542,7 +8542,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ */ __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_cdf, ((PyObject *)__pyx_v_part)); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 496; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":497 + /* "include/utils.pyx":497 * * cdf.append(part) * cdfVLen.append(len(part.dimensions[aggDimName])) # <<<<<<<<<<<<<< @@ -8559,7 +8559,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_cdfVLen, __pyx_t_4); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "utils.pyx":449 + /* "include/utils.pyx":449 * # Make sure each file defines the same aggregation variables as the master * # and that the variables are defined in the same way (name, shape and type) * for f in files[1:]: # <<<<<<<<<<<<<< @@ -8569,7 +8569,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "utils.pyx":501 + /* "include/utils.pyx":501 * # Attach attributes to the MFDataset instance. * # A local __setattr__() method is required for them. * self._files = files # list of cdf file names in the set # <<<<<<<<<<<<<< @@ -8578,7 +8578,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_files_2, __pyx_v_files) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 501; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":502 + /* "include/utils.pyx":502 * # A local __setattr__() method is required for them. * self._files = files # list of cdf file names in the set * self._cdfVLen = cdfVLen # list of unlimited lengths # <<<<<<<<<<<<<< @@ -8587,7 +8587,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_cdfVLen, __pyx_v_cdfVLen) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 502; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":503 + /* "include/utils.pyx":503 * self._files = files # list of cdf file names in the set * self._cdfVLen = cdfVLen # list of unlimited lengths * self._cdfTLen = sum(cdfVLen) # total length # <<<<<<<<<<<<<< @@ -8605,7 +8605,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_cdfTLen, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 503; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "utils.pyx":504 + /* "include/utils.pyx":504 * self._cdfVLen = cdfVLen # list of unlimited lengths * self._cdfTLen = sum(cdfVLen) # total length * self._cdfRecVar = cdfRecVar # dictionary of Variable instances for all # <<<<<<<<<<<<<< @@ -8614,7 +8614,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_cdfRecVar, __pyx_v_cdfRecVar) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 504; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":506 + /* "include/utils.pyx":506 * self._cdfRecVar = cdfRecVar # dictionary of Variable instances for all * # the aggregation variables * self._dims = cdfm.dimensions # <<<<<<<<<<<<<< @@ -8626,7 +8626,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_dims, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 506; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "utils.pyx":507 + /* "include/utils.pyx":507 * # the aggregation variables * self._dims = cdfm.dimensions * self._grps = cdfm.groups # <<<<<<<<<<<<<< @@ -8638,7 +8638,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_grps, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 507; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "utils.pyx":508 + /* "include/utils.pyx":508 * self._dims = cdfm.dimensions * self._grps = cdfm.groups * for dimname, dim in self._dims.items(): # <<<<<<<<<<<<<< @@ -8761,7 +8761,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_XDECREF_SET(__pyx_v_dim, __pyx_t_6); __pyx_t_6 = 0; - /* "utils.pyx":509 + /* "include/utils.pyx":509 * self._grps = cdfm.groups * for dimname, dim in self._dims.items(): * if dimname == aggDimName: # <<<<<<<<<<<<<< @@ -8774,7 +8774,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_2) { - /* "utils.pyx":510 + /* "include/utils.pyx":510 * for dimname, dim in self._dims.items(): * if dimname == aggDimName: * self._dims[dimname] = _Dimension(dimname, dim, self._cdfVLen, self._cdfTLen) # <<<<<<<<<<<<<< @@ -8829,7 +8829,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ } __pyx_L44:; - /* "utils.pyx":508 + /* "include/utils.pyx":508 * self._dims = cdfm.dimensions * self._grps = cdfm.groups * for dimname, dim in self._dims.items(): # <<<<<<<<<<<<<< @@ -8839,7 +8839,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "utils.pyx":511 + /* "include/utils.pyx":511 * if dimname == aggDimName: * self._dims[dimname] = _Dimension(dimname, dim, self._cdfVLen, self._cdfTLen) * self._vars = cdfm.variables # <<<<<<<<<<<<<< @@ -8851,7 +8851,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_vars, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 511; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "utils.pyx":512 + /* "include/utils.pyx":512 * self._dims[dimname] = _Dimension(dimname, dim, self._cdfVLen, self._cdfTLen) * self._vars = cdfm.variables * for varname,var in self._vars.items(): # <<<<<<<<<<<<<< @@ -8974,7 +8974,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_XDECREF_SET(__pyx_v_var, __pyx_t_15); __pyx_t_15 = 0; - /* "utils.pyx":513 + /* "include/utils.pyx":513 * self._vars = cdfm.variables * for varname,var in self._vars.items(): * if varname in self._cdfRecVar.keys(): # <<<<<<<<<<<<<< @@ -9009,7 +9009,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "utils.pyx":514 + /* "include/utils.pyx":514 * for varname,var in self._vars.items(): * if varname in self._cdfRecVar.keys(): * self._vars[varname] = _Variable(self, varname, var, aggDimName) # <<<<<<<<<<<<<< @@ -9061,7 +9061,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ } __pyx_L49:; - /* "utils.pyx":512 + /* "include/utils.pyx":512 * self._dims[dimname] = _Dimension(dimname, dim, self._cdfVLen, self._cdfTLen) * self._vars = cdfm.variables * for varname,var in self._vars.items(): # <<<<<<<<<<<<<< @@ -9071,7 +9071,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "utils.pyx":515 + /* "include/utils.pyx":515 * if varname in self._cdfRecVar.keys(): * self._vars[varname] = _Variable(self, varname, var, aggDimName) * self._file_format = [] # <<<<<<<<<<<<<< @@ -9083,7 +9083,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_file_format, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "utils.pyx":516 + /* "include/utils.pyx":516 * self._vars[varname] = _Variable(self, varname, var, aggDimName) * self._file_format = [] * self._data_model = [] # <<<<<<<<<<<<<< @@ -9095,7 +9095,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_data_model, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 516; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "utils.pyx":517 + /* "include/utils.pyx":517 * self._file_format = [] * self._data_model = [] * self._disk_format = [] # <<<<<<<<<<<<<< @@ -9107,7 +9107,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_disk_format, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 517; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "utils.pyx":518 + /* "include/utils.pyx":518 * self._data_model = [] * self._disk_format = [] * for dset in self._cdf: # <<<<<<<<<<<<<< @@ -9157,7 +9157,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_XDECREF_SET(__pyx_v_dset, __pyx_t_6); __pyx_t_6 = 0; - /* "utils.pyx":519 + /* "include/utils.pyx":519 * self._disk_format = [] * for dset in self._cdf: * if dset.file_format == 'NETCDF4' or dset.data_model == 'NETCDF4': # <<<<<<<<<<<<<< @@ -9181,7 +9181,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __pyx_L53_bool_binop_done:; if (__pyx_t_1) { - /* "utils.pyx":520 + /* "include/utils.pyx":520 * for dset in self._cdf: * if dset.file_format == 'NETCDF4' or dset.data_model == 'NETCDF4': * raise ValueError('MFNetCDF4 only works with NETCDF3_CLASSIC, NETCDF3_64BIT and NETCDF4_CLASSIC formatted files, not NETCDF4') # <<<<<<<<<<<<<< @@ -9195,7 +9195,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ {__pyx_filename = __pyx_f[1]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "utils.pyx":521 + /* "include/utils.pyx":521 * if dset.file_format == 'NETCDF4' or dset.data_model == 'NETCDF4': * raise ValueError('MFNetCDF4 only works with NETCDF3_CLASSIC, NETCDF3_64BIT and NETCDF4_CLASSIC formatted files, not NETCDF4') * self._file_format.append(dset.file_format) # <<<<<<<<<<<<<< @@ -9210,7 +9210,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "utils.pyx":522 + /* "include/utils.pyx":522 * raise ValueError('MFNetCDF4 only works with NETCDF3_CLASSIC, NETCDF3_64BIT and NETCDF4_CLASSIC formatted files, not NETCDF4') * self._file_format.append(dset.file_format) * self._data_model.append(dset.data_model) # <<<<<<<<<<<<<< @@ -9225,7 +9225,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "utils.pyx":523 + /* "include/utils.pyx":523 * self._file_format.append(dset.file_format) * self._data_model.append(dset.data_model) * self._disk_format.append(dset.disk_format) # <<<<<<<<<<<<<< @@ -9240,7 +9240,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "utils.pyx":518 + /* "include/utils.pyx":518 * self._data_model = [] * self._disk_format = [] * for dset in self._cdf: # <<<<<<<<<<<<<< @@ -9250,7 +9250,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "utils.pyx":524 + /* "include/utils.pyx":524 * self._data_model.append(dset.data_model) * self._disk_format.append(dset.disk_format) * self._path = '/' # <<<<<<<<<<<<<< @@ -9259,7 +9259,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_path, __pyx_kp_s__15) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 524; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":349 + /* "include/utils.pyx":349 * """ * * def __init__(self, files, check=False, aggdim=None, exclude=[]): # <<<<<<<<<<<<<< @@ -9278,7 +9278,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_14); __Pyx_XDECREF(__pyx_t_15); - __Pyx_AddTraceback("netCDF4.MFDataset.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.MFDataset.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_msg); @@ -9318,7 +9318,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ return __pyx_r; } -/* "utils.pyx":526 +/* "include/utils.pyx":526 * self._path = '/' * * def __setattr__(self, name, value): # <<<<<<<<<<<<<< @@ -9327,10 +9327,10 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset___init__(CYTHON_UNUSED PyObject *_ */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9MFDataset_3__setattr__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_7netCDF4_9MFDataset_2__setattr__[] = "override base class attribute creation"; -static PyMethodDef __pyx_mdef_7netCDF4_9MFDataset_3__setattr__ = {"__setattr__", (PyCFunction)__pyx_pw_7netCDF4_9MFDataset_3__setattr__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_9MFDataset_2__setattr__}; -static PyObject *__pyx_pw_7netCDF4_9MFDataset_3__setattr__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9MFDataset_3__setattr__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_9MFDataset_2__setattr__[] = "override base class attribute creation"; +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_9MFDataset_3__setattr__ = {"__setattr__", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_9MFDataset_3__setattr__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8_netCDF4_9MFDataset_2__setattr__}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9MFDataset_3__setattr__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_name = 0; PyObject *__pyx_v_value = 0; @@ -9387,18 +9387,18 @@ static PyObject *__pyx_pw_7netCDF4_9MFDataset_3__setattr__(PyObject *__pyx_self, __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__setattr__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4.MFDataset.__setattr__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.MFDataset.__setattr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_9MFDataset_2__setattr__(__pyx_self, __pyx_v_self, __pyx_v_name, __pyx_v_value); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9MFDataset_2__setattr__(__pyx_self, __pyx_v_self, __pyx_v_name, __pyx_v_value); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9MFDataset_2__setattr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9MFDataset_2__setattr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -9407,7 +9407,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_2__setattr__(CYTHON_UNUSED PyObjec int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setattr__", 0); - /* "utils.pyx":528 + /* "include/utils.pyx":528 * def __setattr__(self, name, value): * """override base class attribute creation""" * self.__dict__[name] = value # <<<<<<<<<<<<<< @@ -9419,7 +9419,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_2__setattr__(CYTHON_UNUSED PyObjec if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_v_name, __pyx_v_value) < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 528; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":526 + /* "include/utils.pyx":526 * self._path = '/' * * def __setattr__(self, name, value): # <<<<<<<<<<<<<< @@ -9432,7 +9432,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_2__setattr__(CYTHON_UNUSED PyObjec goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("netCDF4.MFDataset.__setattr__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.MFDataset.__setattr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -9440,7 +9440,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_2__setattr__(CYTHON_UNUSED PyObjec return __pyx_r; } -/* "utils.pyx":530 +/* "include/utils.pyx":530 * self.__dict__[name] = value * * def __getattribute__(self, name): # <<<<<<<<<<<<<< @@ -9449,9 +9449,9 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_2__setattr__(CYTHON_UNUSED PyObjec */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9MFDataset_5__getattribute__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static PyMethodDef __pyx_mdef_7netCDF4_9MFDataset_5__getattribute__ = {"__getattribute__", (PyCFunction)__pyx_pw_7netCDF4_9MFDataset_5__getattribute__, METH_VARARGS|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_7netCDF4_9MFDataset_5__getattribute__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9MFDataset_5__getattribute__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_9MFDataset_5__getattribute__ = {"__getattribute__", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_9MFDataset_5__getattribute__, METH_VARARGS|METH_KEYWORDS, 0}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9MFDataset_5__getattribute__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_name = 0; int __pyx_lineno = 0; @@ -9499,18 +9499,18 @@ static PyObject *__pyx_pw_7netCDF4_9MFDataset_5__getattribute__(PyObject *__pyx_ __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__getattribute__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4.MFDataset.__getattribute__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.MFDataset.__getattribute__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_9MFDataset_4__getattribute__(__pyx_self, __pyx_v_self, __pyx_v_name); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9MFDataset_4__getattribute__(__pyx_self, __pyx_v_self, __pyx_v_name); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9MFDataset_4__getattribute__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_name) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9MFDataset_4__getattribute__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_name) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -9525,7 +9525,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_4__getattribute__(CYTHON_UNUSED Py int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__getattribute__", 0); - /* "utils.pyx":531 + /* "include/utils.pyx":531 * * def __getattribute__(self, name): * if name in ['variables','dimensions','file_format','groups',\ # <<<<<<<<<<<<<< @@ -9577,7 +9577,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_4__getattribute__(CYTHON_UNUSED Py __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "utils.pyx":533 + /* "include/utils.pyx":533 * if name in ['variables','dimensions','file_format','groups',\ * 'data_model','disk_format','path']: * if name == 'dimensions': return self._dims # <<<<<<<<<<<<<< @@ -9594,7 +9594,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_4__getattribute__(CYTHON_UNUSED Py goto __pyx_L0; } - /* "utils.pyx":534 + /* "include/utils.pyx":534 * 'data_model','disk_format','path']: * if name == 'dimensions': return self._dims * if name == 'variables': return self._vars # <<<<<<<<<<<<<< @@ -9611,7 +9611,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_4__getattribute__(CYTHON_UNUSED Py goto __pyx_L0; } - /* "utils.pyx":535 + /* "include/utils.pyx":535 * if name == 'dimensions': return self._dims * if name == 'variables': return self._vars * if name == 'file_format': return self._file_format # <<<<<<<<<<<<<< @@ -9628,7 +9628,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_4__getattribute__(CYTHON_UNUSED Py goto __pyx_L0; } - /* "utils.pyx":536 + /* "include/utils.pyx":536 * if name == 'variables': return self._vars * if name == 'file_format': return self._file_format * if name == 'data_model': return self._data_model # <<<<<<<<<<<<<< @@ -9645,7 +9645,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_4__getattribute__(CYTHON_UNUSED Py goto __pyx_L0; } - /* "utils.pyx":537 + /* "include/utils.pyx":537 * if name == 'file_format': return self._file_format * if name == 'data_model': return self._data_model * if name == 'disk_format': return self._disk_format # <<<<<<<<<<<<<< @@ -9662,7 +9662,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_4__getattribute__(CYTHON_UNUSED Py goto __pyx_L0; } - /* "utils.pyx":538 + /* "include/utils.pyx":538 * if name == 'data_model': return self._data_model * if name == 'disk_format': return self._disk_format * if name == 'path': return self._path # <<<<<<<<<<<<<< @@ -9679,7 +9679,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_4__getattribute__(CYTHON_UNUSED Py goto __pyx_L0; } - /* "utils.pyx":539 + /* "include/utils.pyx":539 * if name == 'disk_format': return self._disk_format * if name == 'path': return self._path * if name == 'groups': return self._grps # <<<<<<<<<<<<<< @@ -9699,7 +9699,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_4__getattribute__(CYTHON_UNUSED Py } /*else*/ { - /* "utils.pyx":541 + /* "include/utils.pyx":541 * if name == 'groups': return self._grps * else: * return Dataset.__getattribute__(self, name) # <<<<<<<<<<<<<< @@ -9707,7 +9707,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_4__getattribute__(CYTHON_UNUSED Py * def ncattrs(self): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_Dataset)), __pyx_n_s_getattribute); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_Dataset)), __pyx_n_s_getattribute); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __pyx_t_5 = NULL; __pyx_t_6 = 0; @@ -9742,7 +9742,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_4__getattribute__(CYTHON_UNUSED Py } __pyx_L3:; - /* "utils.pyx":530 + /* "include/utils.pyx":530 * self.__dict__[name] = value * * def __getattribute__(self, name): # <<<<<<<<<<<<<< @@ -9758,7 +9758,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_4__getattribute__(CYTHON_UNUSED Py __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); - __Pyx_AddTraceback("netCDF4.MFDataset.__getattribute__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.MFDataset.__getattribute__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -9766,7 +9766,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_4__getattribute__(CYTHON_UNUSED Py return __pyx_r; } -/* "utils.pyx":543 +/* "include/utils.pyx":543 * return Dataset.__getattribute__(self, name) * * def ncattrs(self): # <<<<<<<<<<<<<< @@ -9775,20 +9775,20 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_4__getattribute__(CYTHON_UNUSED Py */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9MFDataset_7ncattrs(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static PyMethodDef __pyx_mdef_7netCDF4_9MFDataset_7ncattrs = {"ncattrs", (PyCFunction)__pyx_pw_7netCDF4_9MFDataset_7ncattrs, METH_O, 0}; -static PyObject *__pyx_pw_7netCDF4_9MFDataset_7ncattrs(PyObject *__pyx_self, PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9MFDataset_7ncattrs(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_9MFDataset_7ncattrs = {"ncattrs", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_9MFDataset_7ncattrs, METH_O, 0}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9MFDataset_7ncattrs(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("ncattrs (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9MFDataset_6ncattrs(__pyx_self, ((PyObject *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9MFDataset_6ncattrs(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9MFDataset_6ncattrs(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9MFDataset_6ncattrs(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -9799,7 +9799,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_6ncattrs(CYTHON_UNUSED PyObject *_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("ncattrs", 0); - /* "utils.pyx":544 + /* "include/utils.pyx":544 * * def ncattrs(self): * return self._cdf[0].__dict__.keys() # <<<<<<<<<<<<<< @@ -9840,7 +9840,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_6ncattrs(CYTHON_UNUSED PyObject *_ __pyx_t_1 = 0; goto __pyx_L0; - /* "utils.pyx":543 + /* "include/utils.pyx":543 * return Dataset.__getattribute__(self, name) * * def ncattrs(self): # <<<<<<<<<<<<<< @@ -9853,7 +9853,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_6ncattrs(CYTHON_UNUSED PyObject *_ __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); - __Pyx_AddTraceback("netCDF4.MFDataset.ncattrs", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.MFDataset.ncattrs", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -9861,7 +9861,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_6ncattrs(CYTHON_UNUSED PyObject *_ return __pyx_r; } -/* "utils.pyx":546 +/* "include/utils.pyx":546 * return self._cdf[0].__dict__.keys() * * def close(self): # <<<<<<<<<<<<<< @@ -9870,20 +9870,20 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_6ncattrs(CYTHON_UNUSED PyObject *_ */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9MFDataset_9close(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static PyMethodDef __pyx_mdef_7netCDF4_9MFDataset_9close = {"close", (PyCFunction)__pyx_pw_7netCDF4_9MFDataset_9close, METH_O, 0}; -static PyObject *__pyx_pw_7netCDF4_9MFDataset_9close(PyObject *__pyx_self, PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9MFDataset_9close(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_9MFDataset_9close = {"close", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_9MFDataset_9close, METH_O, 0}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9MFDataset_9close(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("close (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9MFDataset_8close(__pyx_self, ((PyObject *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9MFDataset_8close(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9MFDataset_8close(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9MFDataset_8close(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_v_dset = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations @@ -9898,7 +9898,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_8close(CYTHON_UNUSED PyObject *__p int __pyx_clineno = 0; __Pyx_RefNannySetupContext("close", 0); - /* "utils.pyx":547 + /* "include/utils.pyx":547 * * def close(self): * for dset in self._cdf: # <<<<<<<<<<<<<< @@ -9948,7 +9948,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_8close(CYTHON_UNUSED PyObject *__p __Pyx_XDECREF_SET(__pyx_v_dset, __pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":548 + /* "include/utils.pyx":548 * def close(self): * for dset in self._cdf: * dset.close() # <<<<<<<<<<<<<< @@ -9977,7 +9977,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_8close(CYTHON_UNUSED PyObject *__p __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":547 + /* "include/utils.pyx":547 * * def close(self): * for dset in self._cdf: # <<<<<<<<<<<<<< @@ -9987,7 +9987,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_8close(CYTHON_UNUSED PyObject *__p } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":546 + /* "include/utils.pyx":546 * return self._cdf[0].__dict__.keys() * * def close(self): # <<<<<<<<<<<<<< @@ -10003,7 +10003,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_8close(CYTHON_UNUSED PyObject *__p __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); - __Pyx_AddTraceback("netCDF4.MFDataset.close", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.MFDataset.close", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_dset); @@ -10012,7 +10012,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_8close(CYTHON_UNUSED PyObject *__p return __pyx_r; } -/* "utils.pyx":550 +/* "include/utils.pyx":550 * dset.close() * * def __repr__(self): # <<<<<<<<<<<<<< @@ -10021,20 +10021,20 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_8close(CYTHON_UNUSED PyObject *__p */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9MFDataset_11__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static PyMethodDef __pyx_mdef_7netCDF4_9MFDataset_11__repr__ = {"__repr__", (PyCFunction)__pyx_pw_7netCDF4_9MFDataset_11__repr__, METH_O, 0}; -static PyObject *__pyx_pw_7netCDF4_9MFDataset_11__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9MFDataset_11__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_9MFDataset_11__repr__ = {"__repr__", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_9MFDataset_11__repr__, METH_O, 0}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9MFDataset_11__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9MFDataset_10__repr__(__pyx_self, ((PyObject *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9MFDataset_10__repr__(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9MFDataset_10__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9MFDataset_10__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_v_ncdump = NULL; PyObject *__pyx_v_dimnames = NULL; PyObject *__pyx_v_varnames = NULL; @@ -10058,7 +10058,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_10__repr__(CYTHON_UNUSED PyObject int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); - /* "utils.pyx":551 + /* "include/utils.pyx":551 * * def __repr__(self): * ncdump = ['%r\n' % type(self)] # <<<<<<<<<<<<<< @@ -10075,7 +10075,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_10__repr__(CYTHON_UNUSED PyObject __pyx_v_ncdump = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":552 + /* "include/utils.pyx":552 * def __repr__(self): * ncdump = ['%r\n' % type(self)] * dimnames = tuple([str(dimname) for dimname in self.dimensions.keys()]) # <<<<<<<<<<<<<< @@ -10165,7 +10165,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_10__repr__(CYTHON_UNUSED PyObject __pyx_v_dimnames = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; - /* "utils.pyx":553 + /* "include/utils.pyx":553 * ncdump = ['%r\n' % type(self)] * dimnames = tuple([str(dimname) for dimname in self.dimensions.keys()]) * varnames = tuple([str(varname) for varname in self.variables.keys()]) # <<<<<<<<<<<<<< @@ -10255,7 +10255,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_10__repr__(CYTHON_UNUSED PyObject __pyx_v_varnames = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":554 + /* "include/utils.pyx":554 * dimnames = tuple([str(dimname) for dimname in self.dimensions.keys()]) * varnames = tuple([str(varname) for varname in self.variables.keys()]) * grpnames = () # <<<<<<<<<<<<<< @@ -10265,7 +10265,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_10__repr__(CYTHON_UNUSED PyObject __Pyx_INCREF(__pyx_empty_tuple); __pyx_v_grpnames = __pyx_empty_tuple; - /* "utils.pyx":555 + /* "include/utils.pyx":555 * varnames = tuple([str(varname) for varname in self.variables.keys()]) * grpnames = () * if self.path == '/': # <<<<<<<<<<<<<< @@ -10278,7 +10278,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_10__repr__(CYTHON_UNUSED PyObject __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_7) { - /* "utils.pyx":557 + /* "include/utils.pyx":557 * if self.path == '/': * ncdump.append('root group (%s data model, file format %s):\n' % * (self.data_model[0], self.disk_format[0])) # <<<<<<<<<<<<<< @@ -10304,7 +10304,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_10__repr__(CYTHON_UNUSED PyObject __pyx_t_4 = 0; __pyx_t_3 = 0; - /* "utils.pyx":556 + /* "include/utils.pyx":556 * grpnames = () * if self.path == '/': * ncdump.append('root group (%s data model, file format %s):\n' % # <<<<<<<<<<<<<< @@ -10320,7 +10320,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_10__repr__(CYTHON_UNUSED PyObject } /*else*/ { - /* "utils.pyx":559 + /* "include/utils.pyx":559 * (self.data_model[0], self.disk_format[0])) * else: * ncdump.append('group %s:\n' % self.path) # <<<<<<<<<<<<<< @@ -10337,7 +10337,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_10__repr__(CYTHON_UNUSED PyObject } __pyx_L7:; - /* "utils.pyx":560 + /* "include/utils.pyx":560 * else: * ncdump.append('group %s:\n' % self.path) * attrs = [' %s: %s\n' % (name,self.__dict__[name]) for name in\ # <<<<<<<<<<<<<< @@ -10347,7 +10347,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_10__repr__(CYTHON_UNUSED PyObject __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 560; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - /* "utils.pyx":561 + /* "include/utils.pyx":561 * ncdump.append('group %s:\n' % self.path) * attrs = [' %s: %s\n' % (name,self.__dict__[name]) for name in\ * self.ncattrs()] # <<<<<<<<<<<<<< @@ -10415,7 +10415,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_10__repr__(CYTHON_UNUSED PyObject __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_3); __pyx_t_3 = 0; - /* "utils.pyx":560 + /* "include/utils.pyx":560 * else: * ncdump.append('group %s:\n' % self.path) * attrs = [' %s: %s\n' % (name,self.__dict__[name]) for name in\ # <<<<<<<<<<<<<< @@ -10445,7 +10445,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_10__repr__(CYTHON_UNUSED PyObject __pyx_v_attrs = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":562 + /* "include/utils.pyx":562 * attrs = [' %s: %s\n' % (name,self.__dict__[name]) for name in\ * self.ncattrs()] * ncdump = ncdump + attrs # <<<<<<<<<<<<<< @@ -10457,7 +10457,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_10__repr__(CYTHON_UNUSED PyObject __Pyx_DECREF_SET(__pyx_v_ncdump, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; - /* "utils.pyx":563 + /* "include/utils.pyx":563 * self.ncattrs()] * ncdump = ncdump + attrs * ncdump.append(' dimensions = %s\n' % str(dimnames)) # <<<<<<<<<<<<<< @@ -10478,7 +10478,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_10__repr__(CYTHON_UNUSED PyObject __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_ncdump, __pyx_t_1); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 563; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":564 + /* "include/utils.pyx":564 * ncdump = ncdump + attrs * ncdump.append(' dimensions = %s\n' % str(dimnames)) * ncdump.append(' variables = %s\n' % str(varnames)) # <<<<<<<<<<<<<< @@ -10499,7 +10499,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_10__repr__(CYTHON_UNUSED PyObject __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_ncdump, __pyx_t_1); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":565 + /* "include/utils.pyx":565 * ncdump.append(' dimensions = %s\n' % str(dimnames)) * ncdump.append(' variables = %s\n' % str(varnames)) * ncdump.append(' groups = %s\n' % str(grpnames)) # <<<<<<<<<<<<<< @@ -10520,7 +10520,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_10__repr__(CYTHON_UNUSED PyObject __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_ncdump, __pyx_t_1); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 565; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":566 + /* "include/utils.pyx":566 * ncdump.append(' variables = %s\n' % str(varnames)) * ncdump.append(' groups = %s\n' % str(grpnames)) * return ''.join(ncdump) # <<<<<<<<<<<<<< @@ -10534,7 +10534,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_10__repr__(CYTHON_UNUSED PyObject __pyx_t_1 = 0; goto __pyx_L0; - /* "utils.pyx":550 + /* "include/utils.pyx":550 * dset.close() * * def __repr__(self): # <<<<<<<<<<<<<< @@ -10548,7 +10548,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_10__repr__(CYTHON_UNUSED PyObject __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); - __Pyx_AddTraceback("netCDF4.MFDataset.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.MFDataset.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_ncdump); @@ -10564,7 +10564,7 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_10__repr__(CYTHON_UNUSED PyObject return __pyx_r; } -/* "utils.pyx":569 +/* "include/utils.pyx":569 * * class _Dimension(object): * def __init__(self, dimname, dim, dimlens, dimtotlen): # <<<<<<<<<<<<<< @@ -10573,9 +10573,9 @@ static PyObject *__pyx_pf_7netCDF4_9MFDataset_10__repr__(CYTHON_UNUSED PyObject */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_10_Dimension_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static PyMethodDef __pyx_mdef_7netCDF4_10_Dimension_1__init__ = {"__init__", (PyCFunction)__pyx_pw_7netCDF4_10_Dimension_1__init__, METH_VARARGS|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_7netCDF4_10_Dimension_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_10_Dimension_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_10_Dimension_1__init__ = {"__init__", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_10_Dimension_1__init__, METH_VARARGS|METH_KEYWORDS, 0}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_10_Dimension_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_dimname = 0; CYTHON_UNUSED PyObject *__pyx_v_dim = 0; @@ -10650,18 +10650,18 @@ static PyObject *__pyx_pw_7netCDF4_10_Dimension_1__init__(PyObject *__pyx_self, __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4._Dimension.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._Dimension.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_10_Dimension___init__(__pyx_self, __pyx_v_self, __pyx_v_dimname, __pyx_v_dim, __pyx_v_dimlens, __pyx_v_dimtotlen); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_10_Dimension___init__(__pyx_self, __pyx_v_self, __pyx_v_dimname, __pyx_v_dim, __pyx_v_dimlens, __pyx_v_dimtotlen); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_10_Dimension___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_dimname, CYTHON_UNUSED PyObject *__pyx_v_dim, PyObject *__pyx_v_dimlens, PyObject *__pyx_v_dimtotlen) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_10_Dimension___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_dimname, CYTHON_UNUSED PyObject *__pyx_v_dim, PyObject *__pyx_v_dimlens, PyObject *__pyx_v_dimtotlen) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_lineno = 0; @@ -10669,7 +10669,7 @@ static PyObject *__pyx_pf_7netCDF4_10_Dimension___init__(CYTHON_UNUSED PyObject int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 0); - /* "utils.pyx":570 + /* "include/utils.pyx":570 * class _Dimension(object): * def __init__(self, dimname, dim, dimlens, dimtotlen): * self.dimlens = dimlens # <<<<<<<<<<<<<< @@ -10678,7 +10678,7 @@ static PyObject *__pyx_pf_7netCDF4_10_Dimension___init__(CYTHON_UNUSED PyObject */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_dimlens, __pyx_v_dimlens) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 570; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":571 + /* "include/utils.pyx":571 * def __init__(self, dimname, dim, dimlens, dimtotlen): * self.dimlens = dimlens * self.dimtotlen = dimtotlen # <<<<<<<<<<<<<< @@ -10687,7 +10687,7 @@ static PyObject *__pyx_pf_7netCDF4_10_Dimension___init__(CYTHON_UNUSED PyObject */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_dimtotlen, __pyx_v_dimtotlen) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":572 + /* "include/utils.pyx":572 * self.dimlens = dimlens * self.dimtotlen = dimtotlen * self._name = dimname # <<<<<<<<<<<<<< @@ -10696,7 +10696,7 @@ static PyObject *__pyx_pf_7netCDF4_10_Dimension___init__(CYTHON_UNUSED PyObject */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_name_2, __pyx_v_dimname) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":569 + /* "include/utils.pyx":569 * * class _Dimension(object): * def __init__(self, dimname, dim, dimlens, dimtotlen): # <<<<<<<<<<<<<< @@ -10708,7 +10708,7 @@ static PyObject *__pyx_pf_7netCDF4_10_Dimension___init__(CYTHON_UNUSED PyObject __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; - __Pyx_AddTraceback("netCDF4._Dimension.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._Dimension.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -10716,7 +10716,7 @@ static PyObject *__pyx_pf_7netCDF4_10_Dimension___init__(CYTHON_UNUSED PyObject return __pyx_r; } -/* "utils.pyx":573 +/* "include/utils.pyx":573 * self.dimtotlen = dimtotlen * self._name = dimname * def __len__(self): # <<<<<<<<<<<<<< @@ -10725,20 +10725,20 @@ static PyObject *__pyx_pf_7netCDF4_10_Dimension___init__(CYTHON_UNUSED PyObject */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_10_Dimension_3__len__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static PyMethodDef __pyx_mdef_7netCDF4_10_Dimension_3__len__ = {"__len__", (PyCFunction)__pyx_pw_7netCDF4_10_Dimension_3__len__, METH_O, 0}; -static PyObject *__pyx_pw_7netCDF4_10_Dimension_3__len__(PyObject *__pyx_self, PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_10_Dimension_3__len__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_10_Dimension_3__len__ = {"__len__", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_10_Dimension_3__len__, METH_O, 0}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_10_Dimension_3__len__(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__len__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_10_Dimension_2__len__(__pyx_self, ((PyObject *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_10_Dimension_2__len__(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_10_Dimension_2__len__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_10_Dimension_2__len__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -10747,7 +10747,7 @@ static PyObject *__pyx_pf_7netCDF4_10_Dimension_2__len__(CYTHON_UNUSED PyObject int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__len__", 0); - /* "utils.pyx":574 + /* "include/utils.pyx":574 * self._name = dimname * def __len__(self): * return self.dimtotlen # <<<<<<<<<<<<<< @@ -10761,7 +10761,7 @@ static PyObject *__pyx_pf_7netCDF4_10_Dimension_2__len__(CYTHON_UNUSED PyObject __pyx_t_1 = 0; goto __pyx_L0; - /* "utils.pyx":573 + /* "include/utils.pyx":573 * self.dimtotlen = dimtotlen * self._name = dimname * def __len__(self): # <<<<<<<<<<<<<< @@ -10772,7 +10772,7 @@ static PyObject *__pyx_pf_7netCDF4_10_Dimension_2__len__(CYTHON_UNUSED PyObject /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("netCDF4._Dimension.__len__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._Dimension.__len__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -10780,7 +10780,7 @@ static PyObject *__pyx_pf_7netCDF4_10_Dimension_2__len__(CYTHON_UNUSED PyObject return __pyx_r; } -/* "utils.pyx":575 +/* "include/utils.pyx":575 * def __len__(self): * return self.dimtotlen * def isunlimited(self): # <<<<<<<<<<<<<< @@ -10789,25 +10789,25 @@ static PyObject *__pyx_pf_7netCDF4_10_Dimension_2__len__(CYTHON_UNUSED PyObject */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_10_Dimension_5isunlimited(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static PyMethodDef __pyx_mdef_7netCDF4_10_Dimension_5isunlimited = {"isunlimited", (PyCFunction)__pyx_pw_7netCDF4_10_Dimension_5isunlimited, METH_O, 0}; -static PyObject *__pyx_pw_7netCDF4_10_Dimension_5isunlimited(PyObject *__pyx_self, PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_10_Dimension_5isunlimited(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_10_Dimension_5isunlimited = {"isunlimited", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_10_Dimension_5isunlimited, METH_O, 0}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_10_Dimension_5isunlimited(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("isunlimited (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_10_Dimension_4isunlimited(__pyx_self, ((PyObject *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_10_Dimension_4isunlimited(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_10_Dimension_4isunlimited(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_10_Dimension_4isunlimited(CYTHON_UNUSED PyObject *__pyx_self, CYTHON_UNUSED PyObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("isunlimited", 0); - /* "utils.pyx":576 + /* "include/utils.pyx":576 * return self.dimtotlen * def isunlimited(self): * return True # <<<<<<<<<<<<<< @@ -10819,7 +10819,7 @@ static PyObject *__pyx_pf_7netCDF4_10_Dimension_4isunlimited(CYTHON_UNUSED PyObj __pyx_r = Py_True; goto __pyx_L0; - /* "utils.pyx":575 + /* "include/utils.pyx":575 * def __len__(self): * return self.dimtotlen * def isunlimited(self): # <<<<<<<<<<<<<< @@ -10834,7 +10834,7 @@ static PyObject *__pyx_pf_7netCDF4_10_Dimension_4isunlimited(CYTHON_UNUSED PyObj return __pyx_r; } -/* "utils.pyx":577 +/* "include/utils.pyx":577 * def isunlimited(self): * return True * def __repr__(self): # <<<<<<<<<<<<<< @@ -10843,20 +10843,20 @@ static PyObject *__pyx_pf_7netCDF4_10_Dimension_4isunlimited(CYTHON_UNUSED PyObj */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_10_Dimension_7__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static PyMethodDef __pyx_mdef_7netCDF4_10_Dimension_7__repr__ = {"__repr__", (PyCFunction)__pyx_pw_7netCDF4_10_Dimension_7__repr__, METH_O, 0}; -static PyObject *__pyx_pw_7netCDF4_10_Dimension_7__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_10_Dimension_7__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_10_Dimension_7__repr__ = {"__repr__", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_10_Dimension_7__repr__, METH_O, 0}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_10_Dimension_7__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_10_Dimension_6__repr__(__pyx_self, ((PyObject *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_10_Dimension_6__repr__(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_10_Dimension_6__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_10_Dimension_6__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -10870,7 +10870,7 @@ static PyObject *__pyx_pf_7netCDF4_10_Dimension_6__repr__(CYTHON_UNUSED PyObject int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); - /* "utils.pyx":578 + /* "include/utils.pyx":578 * return True * def __repr__(self): * if self.isunlimited(): # <<<<<<<<<<<<<< @@ -10901,7 +10901,7 @@ static PyObject *__pyx_pf_7netCDF4_10_Dimension_6__repr__(CYTHON_UNUSED PyObject __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_4) { - /* "utils.pyx":579 + /* "include/utils.pyx":579 * def __repr__(self): * if self.isunlimited(): * return repr(type(self))+" (unlimited): name = '%s', size = %s\n" % (self._name,len(self)) # <<<<<<<<<<<<<< @@ -10937,7 +10937,7 @@ static PyObject *__pyx_pf_7netCDF4_10_Dimension_6__repr__(CYTHON_UNUSED PyObject } /*else*/ { - /* "utils.pyx":581 + /* "include/utils.pyx":581 * return repr(type(self))+" (unlimited): name = '%s', size = %s\n" % (self._name,len(self)) * else: * return repr(type(self))+": name = '%s', size = %s\n" % (self._name,len(self)) # <<<<<<<<<<<<<< @@ -10972,7 +10972,7 @@ static PyObject *__pyx_pf_7netCDF4_10_Dimension_6__repr__(CYTHON_UNUSED PyObject goto __pyx_L0; } - /* "utils.pyx":577 + /* "include/utils.pyx":577 * def isunlimited(self): * return True * def __repr__(self): # <<<<<<<<<<<<<< @@ -10986,7 +10986,7 @@ static PyObject *__pyx_pf_7netCDF4_10_Dimension_6__repr__(CYTHON_UNUSED PyObject __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_6); - __Pyx_AddTraceback("netCDF4._Dimension.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._Dimension.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -10994,7 +10994,7 @@ static PyObject *__pyx_pf_7netCDF4_10_Dimension_6__repr__(CYTHON_UNUSED PyObject return __pyx_r; } -/* "utils.pyx":584 +/* "include/utils.pyx":584 * * class _Variable(object): * def __init__(self, dset, varname, var, recdimname): # <<<<<<<<<<<<<< @@ -11003,9 +11003,9 @@ static PyObject *__pyx_pf_7netCDF4_10_Dimension_6__repr__(CYTHON_UNUSED PyObject */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9_Variable_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static PyMethodDef __pyx_mdef_7netCDF4_9_Variable_1__init__ = {"__init__", (PyCFunction)__pyx_pw_7netCDF4_9_Variable_1__init__, METH_VARARGS|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_7netCDF4_9_Variable_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9_Variable_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_9_Variable_1__init__ = {"__init__", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_9_Variable_1__init__, METH_VARARGS|METH_KEYWORDS, 0}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9_Variable_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_dset = 0; PyObject *__pyx_v_varname = 0; @@ -11080,18 +11080,18 @@ static PyObject *__pyx_pw_7netCDF4_9_Variable_1__init__(PyObject *__pyx_self, Py __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 1, 5, 5, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4._Variable.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._Variable.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_9_Variable___init__(__pyx_self, __pyx_v_self, __pyx_v_dset, __pyx_v_varname, __pyx_v_var, __pyx_v_recdimname); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9_Variable___init__(__pyx_self, __pyx_v_self, __pyx_v_dset, __pyx_v_varname, __pyx_v_var, __pyx_v_recdimname); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9_Variable___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_dset, PyObject *__pyx_v_varname, PyObject *__pyx_v_var, PyObject *__pyx_v_recdimname) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9_Variable___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_dset, PyObject *__pyx_v_varname, PyObject *__pyx_v_var, PyObject *__pyx_v_recdimname) { PyObject *__pyx_v_name = NULL; PyObject *__pyx_v_value = NULL; PyObject *__pyx_r = NULL; @@ -11109,7 +11109,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable___init__(CYTHON_UNUSED PyObject *_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 0); - /* "utils.pyx":585 + /* "include/utils.pyx":585 * class _Variable(object): * def __init__(self, dset, varname, var, recdimname): * self.dimensions = var.dimensions # <<<<<<<<<<<<<< @@ -11121,7 +11121,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable___init__(CYTHON_UNUSED PyObject *_ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_dimensions, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":586 + /* "include/utils.pyx":586 * def __init__(self, dset, varname, var, recdimname): * self.dimensions = var.dimensions * self._dset = dset # <<<<<<<<<<<<<< @@ -11130,7 +11130,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable___init__(CYTHON_UNUSED PyObject *_ */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_dset_2, __pyx_v_dset) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 586; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":587 + /* "include/utils.pyx":587 * self.dimensions = var.dimensions * self._dset = dset * self._grp = dset # <<<<<<<<<<<<<< @@ -11139,7 +11139,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable___init__(CYTHON_UNUSED PyObject *_ */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_grp, __pyx_v_dset) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":588 + /* "include/utils.pyx":588 * self._dset = dset * self._grp = dset * self._mastervar = var # <<<<<<<<<<<<<< @@ -11148,7 +11148,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable___init__(CYTHON_UNUSED PyObject *_ */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_mastervar, __pyx_v_var) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 588; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":589 + /* "include/utils.pyx":589 * self._grp = dset * self._mastervar = var * self._recVar = dset._cdfRecVar[varname] # <<<<<<<<<<<<<< @@ -11163,7 +11163,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable___init__(CYTHON_UNUSED PyObject *_ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_recVar, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 589; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":590 + /* "include/utils.pyx":590 * self._mastervar = var * self._recVar = dset._cdfRecVar[varname] * self._recdimname = recdimname # <<<<<<<<<<<<<< @@ -11172,7 +11172,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable___init__(CYTHON_UNUSED PyObject *_ */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_recdimname_2, __pyx_v_recdimname) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 590; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":591 + /* "include/utils.pyx":591 * self._recVar = dset._cdfRecVar[varname] * self._recdimname = recdimname * self._recLen = dset._cdfVLen # <<<<<<<<<<<<<< @@ -11184,7 +11184,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable___init__(CYTHON_UNUSED PyObject *_ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_recLen, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 591; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":592 + /* "include/utils.pyx":592 * self._recdimname = recdimname * self._recLen = dset._cdfVLen * self.dtype = var.dtype # <<<<<<<<<<<<<< @@ -11196,7 +11196,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable___init__(CYTHON_UNUSED PyObject *_ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_dtype, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 592; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":593 + /* "include/utils.pyx":593 * self._recLen = dset._cdfVLen * self.dtype = var.dtype * self._name = var._name # <<<<<<<<<<<<<< @@ -11208,7 +11208,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable___init__(CYTHON_UNUSED PyObject *_ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_name_2, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 593; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":595 + /* "include/utils.pyx":595 * self._name = var._name * # copy attributes from master. * for name, value in var.__dict__.items(): # <<<<<<<<<<<<<< @@ -11331,7 +11331,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable___init__(CYTHON_UNUSED PyObject *_ __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_6); __pyx_t_6 = 0; - /* "utils.pyx":596 + /* "include/utils.pyx":596 * # copy attributes from master. * for name, value in var.__dict__.items(): * self.__dict__[name] = value # <<<<<<<<<<<<<< @@ -11343,7 +11343,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable___init__(CYTHON_UNUSED PyObject *_ if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_v_name, __pyx_v_value) < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 596; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":595 + /* "include/utils.pyx":595 * self._name = var._name * # copy attributes from master. * for name, value in var.__dict__.items(): # <<<<<<<<<<<<<< @@ -11353,7 +11353,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable___init__(CYTHON_UNUSED PyObject *_ } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "utils.pyx":584 + /* "include/utils.pyx":584 * * class _Variable(object): * def __init__(self, dset, varname, var, recdimname): # <<<<<<<<<<<<<< @@ -11370,7 +11370,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable___init__(CYTHON_UNUSED PyObject *_ __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); - __Pyx_AddTraceback("netCDF4._Variable.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._Variable.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_name); @@ -11380,7 +11380,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable___init__(CYTHON_UNUSED PyObject *_ return __pyx_r; } -/* "utils.pyx":597 +/* "include/utils.pyx":597 * for name, value in var.__dict__.items(): * self.__dict__[name] = value * def typecode(self): # <<<<<<<<<<<<<< @@ -11389,20 +11389,20 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable___init__(CYTHON_UNUSED PyObject *_ */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9_Variable_3typecode(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static PyMethodDef __pyx_mdef_7netCDF4_9_Variable_3typecode = {"typecode", (PyCFunction)__pyx_pw_7netCDF4_9_Variable_3typecode, METH_O, 0}; -static PyObject *__pyx_pw_7netCDF4_9_Variable_3typecode(PyObject *__pyx_self, PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9_Variable_3typecode(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_9_Variable_3typecode = {"typecode", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_9_Variable_3typecode, METH_O, 0}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9_Variable_3typecode(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("typecode (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9_Variable_2typecode(__pyx_self, ((PyObject *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9_Variable_2typecode(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9_Variable_2typecode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9_Variable_2typecode(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -11411,7 +11411,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_2typecode(CYTHON_UNUSED PyObject * int __pyx_clineno = 0; __Pyx_RefNannySetupContext("typecode", 0); - /* "utils.pyx":598 + /* "include/utils.pyx":598 * self.__dict__[name] = value * def typecode(self): * return self.dtype # <<<<<<<<<<<<<< @@ -11425,7 +11425,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_2typecode(CYTHON_UNUSED PyObject * __pyx_t_1 = 0; goto __pyx_L0; - /* "utils.pyx":597 + /* "include/utils.pyx":597 * for name, value in var.__dict__.items(): * self.__dict__[name] = value * def typecode(self): # <<<<<<<<<<<<<< @@ -11436,7 +11436,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_2typecode(CYTHON_UNUSED PyObject * /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("netCDF4._Variable.typecode", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._Variable.typecode", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -11444,7 +11444,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_2typecode(CYTHON_UNUSED PyObject * return __pyx_r; } -/* "utils.pyx":599 +/* "include/utils.pyx":599 * def typecode(self): * return self.dtype * def ncattrs(self): # <<<<<<<<<<<<<< @@ -11453,20 +11453,20 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_2typecode(CYTHON_UNUSED PyObject * */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9_Variable_5ncattrs(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static PyMethodDef __pyx_mdef_7netCDF4_9_Variable_5ncattrs = {"ncattrs", (PyCFunction)__pyx_pw_7netCDF4_9_Variable_5ncattrs, METH_O, 0}; -static PyObject *__pyx_pw_7netCDF4_9_Variable_5ncattrs(PyObject *__pyx_self, PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9_Variable_5ncattrs(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_9_Variable_5ncattrs = {"ncattrs", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_9_Variable_5ncattrs, METH_O, 0}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9_Variable_5ncattrs(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("ncattrs (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9_Variable_4ncattrs(__pyx_self, ((PyObject *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9_Variable_4ncattrs(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9_Variable_4ncattrs(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9_Variable_4ncattrs(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -11477,7 +11477,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_4ncattrs(CYTHON_UNUSED PyObject *_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("ncattrs", 0); - /* "utils.pyx":600 + /* "include/utils.pyx":600 * return self.dtype * def ncattrs(self): * return self._mastervar.__dict__.keys() # <<<<<<<<<<<<<< @@ -11515,7 +11515,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_4ncattrs(CYTHON_UNUSED PyObject *_ __pyx_t_1 = 0; goto __pyx_L0; - /* "utils.pyx":599 + /* "include/utils.pyx":599 * def typecode(self): * return self.dtype * def ncattrs(self): # <<<<<<<<<<<<<< @@ -11528,7 +11528,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_4ncattrs(CYTHON_UNUSED PyObject *_ __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); - __Pyx_AddTraceback("netCDF4._Variable.ncattrs", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._Variable.ncattrs", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -11536,7 +11536,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_4ncattrs(CYTHON_UNUSED PyObject *_ return __pyx_r; } -/* "utils.pyx":601 +/* "include/utils.pyx":601 * def ncattrs(self): * return self._mastervar.__dict__.keys() * def __getattr__(self,name): # <<<<<<<<<<<<<< @@ -11545,9 +11545,9 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_4ncattrs(CYTHON_UNUSED PyObject *_ */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9_Variable_7__getattr__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static PyMethodDef __pyx_mdef_7netCDF4_9_Variable_7__getattr__ = {"__getattr__", (PyCFunction)__pyx_pw_7netCDF4_9_Variable_7__getattr__, METH_VARARGS|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_7netCDF4_9_Variable_7__getattr__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9_Variable_7__getattr__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_9_Variable_7__getattr__ = {"__getattr__", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_9_Variable_7__getattr__, METH_VARARGS|METH_KEYWORDS, 0}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9_Variable_7__getattr__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_name = 0; int __pyx_lineno = 0; @@ -11595,18 +11595,18 @@ static PyObject *__pyx_pw_7netCDF4_9_Variable_7__getattr__(PyObject *__pyx_self, __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__getattr__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4._Variable.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._Variable.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_9_Variable_6__getattr__(__pyx_self, __pyx_v_self, __pyx_v_name); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9_Variable_6__getattr__(__pyx_self, __pyx_v_self, __pyx_v_name); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9_Variable_6__getattr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_name) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9_Variable_6__getattr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_name) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; @@ -11624,7 +11624,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_6__getattr__(CYTHON_UNUSED PyObjec int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__getattr__", 0); - /* "utils.pyx":602 + /* "include/utils.pyx":602 * return self._mastervar.__dict__.keys() * def __getattr__(self,name): * if name == 'shape': return self._shape() # <<<<<<<<<<<<<< @@ -11659,7 +11659,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_6__getattr__(CYTHON_UNUSED PyObjec goto __pyx_L0; } - /* "utils.pyx":603 + /* "include/utils.pyx":603 * def __getattr__(self,name): * if name == 'shape': return self._shape() * if name == 'ndim': return len(self._shape()) # <<<<<<<<<<<<<< @@ -11698,7 +11698,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_6__getattr__(CYTHON_UNUSED PyObjec goto __pyx_L0; } - /* "utils.pyx":604 + /* "include/utils.pyx":604 * if name == 'shape': return self._shape() * if name == 'ndim': return len(self._shape()) * try: # <<<<<<<<<<<<<< @@ -11712,7 +11712,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_6__getattr__(CYTHON_UNUSED PyObjec __Pyx_XGOTREF(__pyx_t_8); /*try:*/ { - /* "utils.pyx":605 + /* "include/utils.pyx":605 * if name == 'ndim': return len(self._shape()) * try: * return self.__dict__[name] # <<<<<<<<<<<<<< @@ -11734,7 +11734,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_6__getattr__(CYTHON_UNUSED PyObjec __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "utils.pyx":606 + /* "include/utils.pyx":606 * try: * return self.__dict__[name] * except: # <<<<<<<<<<<<<< @@ -11742,13 +11742,13 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_6__getattr__(CYTHON_UNUSED PyObjec * def __repr__(self): */ /*except:*/ { - __Pyx_AddTraceback("netCDF4._Variable.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._Variable.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_3, &__pyx_t_2, &__pyx_t_4) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 606; __pyx_clineno = __LINE__; goto __pyx_L7_except_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_4); - /* "utils.pyx":607 + /* "include/utils.pyx":607 * return self.__dict__[name] * except: * raise AttributeError(name) # <<<<<<<<<<<<<< @@ -11781,7 +11781,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_6__getattr__(CYTHON_UNUSED PyObjec goto __pyx_L0; } - /* "utils.pyx":601 + /* "include/utils.pyx":601 * def ncattrs(self): * return self._mastervar.__dict__.keys() * def __getattr__(self,name): # <<<<<<<<<<<<<< @@ -11796,7 +11796,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_6__getattr__(CYTHON_UNUSED PyObjec __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); - __Pyx_AddTraceback("netCDF4._Variable.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._Variable.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -11804,7 +11804,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_6__getattr__(CYTHON_UNUSED PyObjec return __pyx_r; } -/* "utils.pyx":608 +/* "include/utils.pyx":608 * except: * raise AttributeError(name) * def __repr__(self): # <<<<<<<<<<<<<< @@ -11813,20 +11813,20 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_6__getattr__(CYTHON_UNUSED PyObjec */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9_Variable_9__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static PyMethodDef __pyx_mdef_7netCDF4_9_Variable_9__repr__ = {"__repr__", (PyCFunction)__pyx_pw_7netCDF4_9_Variable_9__repr__, METH_O, 0}; -static PyObject *__pyx_pw_7netCDF4_9_Variable_9__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9_Variable_9__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_9_Variable_9__repr__ = {"__repr__", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_9_Variable_9__repr__, METH_O, 0}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9_Variable_9__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9_Variable_8__repr__(__pyx_self, ((PyObject *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9_Variable_8__repr__(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9_Variable_8__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9_Variable_8__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_v_ncdump_var = NULL; PyObject *__pyx_v_dimnames = NULL; PyObject *__pyx_v_attrs = NULL; @@ -11852,7 +11852,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_8__repr__(CYTHON_UNUSED PyObject * int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); - /* "utils.pyx":609 + /* "include/utils.pyx":609 * raise AttributeError(name) * def __repr__(self): * ncdump_var = ['%r\n' % type(self)] # <<<<<<<<<<<<<< @@ -11869,7 +11869,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_8__repr__(CYTHON_UNUSED PyObject * __pyx_v_ncdump_var = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":610 + /* "include/utils.pyx":610 * def __repr__(self): * ncdump_var = ['%r\n' % type(self)] * dimnames = tuple([str(dimname) for dimname in self.dimensions]) # <<<<<<<<<<<<<< @@ -11938,7 +11938,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_8__repr__(CYTHON_UNUSED PyObject * __pyx_v_dimnames = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; - /* "utils.pyx":611 + /* "include/utils.pyx":611 * ncdump_var = ['%r\n' % type(self)] * dimnames = tuple([str(dimname) for dimname in self.dimensions]) * attrs = [' %s: %s\n' % (name,self.__dict__[name]) for name in\ # <<<<<<<<<<<<<< @@ -11948,7 +11948,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_8__repr__(CYTHON_UNUSED PyObject * __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 611; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - /* "utils.pyx":612 + /* "include/utils.pyx":612 * dimnames = tuple([str(dimname) for dimname in self.dimensions]) * attrs = [' %s: %s\n' % (name,self.__dict__[name]) for name in\ * self.ncattrs()] # <<<<<<<<<<<<<< @@ -12016,7 +12016,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_8__repr__(CYTHON_UNUSED PyObject * __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":611 + /* "include/utils.pyx":611 * ncdump_var = ['%r\n' % type(self)] * dimnames = tuple([str(dimname) for dimname in self.dimensions]) * attrs = [' %s: %s\n' % (name,self.__dict__[name]) for name in\ # <<<<<<<<<<<<<< @@ -12046,7 +12046,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_8__repr__(CYTHON_UNUSED PyObject * __pyx_v_attrs = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; - /* "utils.pyx":614 + /* "include/utils.pyx":614 * self.ncattrs()] * ncdump_var.append('%s %s%s\n' %\ * (self.dtype,self._name,dimnames)) # <<<<<<<<<<<<<< @@ -12069,7 +12069,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_8__repr__(CYTHON_UNUSED PyObject * __pyx_t_3 = 0; __pyx_t_6 = 0; - /* "utils.pyx":613 + /* "include/utils.pyx":613 * attrs = [' %s: %s\n' % (name,self.__dict__[name]) for name in\ * self.ncattrs()] * ncdump_var.append('%s %s%s\n' %\ # <<<<<<<<<<<<<< @@ -12082,7 +12082,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_8__repr__(CYTHON_UNUSED PyObject * __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_ncdump_var, __pyx_t_6); if (unlikely(__pyx_t_7 == -1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 613; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "utils.pyx":615 + /* "include/utils.pyx":615 * ncdump_var.append('%s %s%s\n' %\ * (self.dtype,self._name,dimnames)) * ncdump_var = ncdump_var + attrs # <<<<<<<<<<<<<< @@ -12094,7 +12094,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_8__repr__(CYTHON_UNUSED PyObject * __Pyx_DECREF_SET(__pyx_v_ncdump_var, ((PyObject*)__pyx_t_6)); __pyx_t_6 = 0; - /* "utils.pyx":616 + /* "include/utils.pyx":616 * (self.dtype,self._name,dimnames)) * ncdump_var = ncdump_var + attrs * unlimdims = [] # <<<<<<<<<<<<<< @@ -12106,7 +12106,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_8__repr__(CYTHON_UNUSED PyObject * __pyx_v_unlimdims = ((PyObject*)__pyx_t_6); __pyx_t_6 = 0; - /* "utils.pyx":617 + /* "include/utils.pyx":617 * ncdump_var = ncdump_var + attrs * unlimdims = [] * for dimname in self.dimensions: # <<<<<<<<<<<<<< @@ -12156,7 +12156,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_8__repr__(CYTHON_UNUSED PyObject * __Pyx_XDECREF_SET(__pyx_v_dimname, __pyx_t_6); __pyx_t_6 = 0; - /* "utils.pyx":618 + /* "include/utils.pyx":618 * unlimdims = [] * for dimname in self.dimensions: * dim = _find_dim(self._grp, dimname) # <<<<<<<<<<<<<< @@ -12197,7 +12197,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_8__repr__(CYTHON_UNUSED PyObject * __Pyx_XDECREF_SET(__pyx_v_dim, __pyx_t_6); __pyx_t_6 = 0; - /* "utils.pyx":619 + /* "include/utils.pyx":619 * for dimname in self.dimensions: * dim = _find_dim(self._grp, dimname) * if dim.isunlimited(): # <<<<<<<<<<<<<< @@ -12228,7 +12228,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_8__repr__(CYTHON_UNUSED PyObject * __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (__pyx_t_11) { - /* "utils.pyx":620 + /* "include/utils.pyx":620 * dim = _find_dim(self._grp, dimname) * if dim.isunlimited(): * unlimdims.append(str(dimname)) # <<<<<<<<<<<<<< @@ -12249,7 +12249,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_8__repr__(CYTHON_UNUSED PyObject * } __pyx_L9:; - /* "utils.pyx":617 + /* "include/utils.pyx":617 * ncdump_var = ncdump_var + attrs * unlimdims = [] * for dimname in self.dimensions: # <<<<<<<<<<<<<< @@ -12259,7 +12259,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_8__repr__(CYTHON_UNUSED PyObject * } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":621 + /* "include/utils.pyx":621 * if dim.isunlimited(): * unlimdims.append(str(dimname)) * ncdump_var.append('unlimited dimensions = %s\n' % repr(tuple(unlimdims))) # <<<<<<<<<<<<<< @@ -12277,7 +12277,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_8__repr__(CYTHON_UNUSED PyObject * __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_ncdump_var, __pyx_t_1); if (unlikely(__pyx_t_7 == -1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 621; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":622 + /* "include/utils.pyx":622 * unlimdims.append(str(dimname)) * ncdump_var.append('unlimited dimensions = %s\n' % repr(tuple(unlimdims))) * ncdump_var.append('current size = %s\n' % repr(self.shape)) # <<<<<<<<<<<<<< @@ -12295,7 +12295,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_8__repr__(CYTHON_UNUSED PyObject * __pyx_t_7 = __Pyx_PyList_Append(__pyx_v_ncdump_var, __pyx_t_1); if (unlikely(__pyx_t_7 == -1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":623 + /* "include/utils.pyx":623 * ncdump_var.append('unlimited dimensions = %s\n' % repr(tuple(unlimdims))) * ncdump_var.append('current size = %s\n' % repr(self.shape)) * return ''.join(ncdump_var) # <<<<<<<<<<<<<< @@ -12309,7 +12309,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_8__repr__(CYTHON_UNUSED PyObject * __pyx_t_1 = 0; goto __pyx_L0; - /* "utils.pyx":608 + /* "include/utils.pyx":608 * except: * raise AttributeError(name) * def __repr__(self): # <<<<<<<<<<<<<< @@ -12325,7 +12325,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_8__repr__(CYTHON_UNUSED PyObject * __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_10); - __Pyx_AddTraceback("netCDF4._Variable.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._Variable.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_ncdump_var); @@ -12340,7 +12340,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_8__repr__(CYTHON_UNUSED PyObject * return __pyx_r; } -/* "utils.pyx":624 +/* "include/utils.pyx":624 * ncdump_var.append('current size = %s\n' % repr(self.shape)) * return ''.join(ncdump_var) * def __len__(self): # <<<<<<<<<<<<<< @@ -12349,20 +12349,20 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_8__repr__(CYTHON_UNUSED PyObject * */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9_Variable_11__len__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static PyMethodDef __pyx_mdef_7netCDF4_9_Variable_11__len__ = {"__len__", (PyCFunction)__pyx_pw_7netCDF4_9_Variable_11__len__, METH_O, 0}; -static PyObject *__pyx_pw_7netCDF4_9_Variable_11__len__(PyObject *__pyx_self, PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9_Variable_11__len__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_9_Variable_11__len__ = {"__len__", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_9_Variable_11__len__, METH_O, 0}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9_Variable_11__len__(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__len__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9_Variable_10__len__(__pyx_self, ((PyObject *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9_Variable_10__len__(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9_Variable_10__len__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9_Variable_10__len__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -12373,7 +12373,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_10__len__(CYTHON_UNUSED PyObject * int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__len__", 0); - /* "utils.pyx":625 + /* "include/utils.pyx":625 * return ''.join(ncdump_var) * def __len__(self): * return self._shape()[0] # <<<<<<<<<<<<<< @@ -12408,7 +12408,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_10__len__(CYTHON_UNUSED PyObject * __pyx_t_2 = 0; goto __pyx_L0; - /* "utils.pyx":624 + /* "include/utils.pyx":624 * ncdump_var.append('current size = %s\n' % repr(self.shape)) * return ''.join(ncdump_var) * def __len__(self): # <<<<<<<<<<<<<< @@ -12421,7 +12421,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_10__len__(CYTHON_UNUSED PyObject * __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); - __Pyx_AddTraceback("netCDF4._Variable.__len__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._Variable.__len__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -12429,7 +12429,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_10__len__(CYTHON_UNUSED PyObject * return __pyx_r; } -/* "utils.pyx":626 +/* "include/utils.pyx":626 * def __len__(self): * return self._shape()[0] * def _shape(self): # <<<<<<<<<<<<<< @@ -12438,20 +12438,20 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_10__len__(CYTHON_UNUSED PyObject * */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9_Variable_13_shape(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static PyMethodDef __pyx_mdef_7netCDF4_9_Variable_13_shape = {"_shape", (PyCFunction)__pyx_pw_7netCDF4_9_Variable_13_shape, METH_O, 0}; -static PyObject *__pyx_pw_7netCDF4_9_Variable_13_shape(PyObject *__pyx_self, PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9_Variable_13_shape(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_9_Variable_13_shape = {"_shape", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_9_Variable_13_shape, METH_O, 0}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9_Variable_13_shape(PyObject *__pyx_self, PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_shape (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9_Variable_12_shape(__pyx_self, ((PyObject *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9_Variable_12_shape(__pyx_self, ((PyObject *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9_Variable_12_shape(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9_Variable_12_shape(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { Py_ssize_t __pyx_v_recdimlen; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations @@ -12464,7 +12464,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_12_shape(CYTHON_UNUSED PyObject *_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_shape", 0); - /* "utils.pyx":627 + /* "include/utils.pyx":627 * return self._shape()[0] * def _shape(self): * recdimlen = len(self._dset.dimensions[self._recdimname]) # <<<<<<<<<<<<<< @@ -12486,7 +12486,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_12_shape(CYTHON_UNUSED PyObject *_ __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_recdimlen = __pyx_t_4; - /* "utils.pyx":628 + /* "include/utils.pyx":628 * def _shape(self): * recdimlen = len(self._dset.dimensions[self._recdimname]) * return (recdimlen,) + self._mastervar.shape[1:] # <<<<<<<<<<<<<< @@ -12517,7 +12517,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_12_shape(CYTHON_UNUSED PyObject *_ __pyx_t_2 = 0; goto __pyx_L0; - /* "utils.pyx":626 + /* "include/utils.pyx":626 * def __len__(self): * return self._shape()[0] * def _shape(self): # <<<<<<<<<<<<<< @@ -12530,7 +12530,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_12_shape(CYTHON_UNUSED PyObject *_ __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); - __Pyx_AddTraceback("netCDF4._Variable._shape", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._Variable._shape", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -12538,7 +12538,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_12_shape(CYTHON_UNUSED PyObject *_ return __pyx_r; } -/* "utils.pyx":629 +/* "include/utils.pyx":629 * recdimlen = len(self._dset.dimensions[self._recdimname]) * return (recdimlen,) + self._mastervar.shape[1:] * def set_auto_maskandscale(self,val): # <<<<<<<<<<<<<< @@ -12547,9 +12547,9 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_12_shape(CYTHON_UNUSED PyObject *_ */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9_Variable_15set_auto_maskandscale(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static PyMethodDef __pyx_mdef_7netCDF4_9_Variable_15set_auto_maskandscale = {"set_auto_maskandscale", (PyCFunction)__pyx_pw_7netCDF4_9_Variable_15set_auto_maskandscale, METH_VARARGS|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_7netCDF4_9_Variable_15set_auto_maskandscale(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9_Variable_15set_auto_maskandscale(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_9_Variable_15set_auto_maskandscale = {"set_auto_maskandscale", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_9_Variable_15set_auto_maskandscale, METH_VARARGS|METH_KEYWORDS, 0}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9_Variable_15set_auto_maskandscale(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_val = 0; int __pyx_lineno = 0; @@ -12597,18 +12597,18 @@ static PyObject *__pyx_pw_7netCDF4_9_Variable_15set_auto_maskandscale(PyObject * __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("set_auto_maskandscale", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4._Variable.set_auto_maskandscale", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._Variable.set_auto_maskandscale", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_9_Variable_14set_auto_maskandscale(__pyx_self, __pyx_v_self, __pyx_v_val); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9_Variable_14set_auto_maskandscale(__pyx_self, __pyx_v_self, __pyx_v_val); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9_Variable_14set_auto_maskandscale(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_val) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9_Variable_14set_auto_maskandscale(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_val) { PyObject *__pyx_v_v = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations @@ -12624,7 +12624,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_14set_auto_maskandscale(CYTHON_UNU int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_auto_maskandscale", 0); - /* "utils.pyx":630 + /* "include/utils.pyx":630 * return (recdimlen,) + self._mastervar.shape[1:] * def set_auto_maskandscale(self,val): * for v in self._recVar: # <<<<<<<<<<<<<< @@ -12674,7 +12674,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_14set_auto_maskandscale(CYTHON_UNU __Pyx_XDECREF_SET(__pyx_v_v, __pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":631 + /* "include/utils.pyx":631 * def set_auto_maskandscale(self,val): * for v in self._recVar: * v.set_auto_maskandscale(val) # <<<<<<<<<<<<<< @@ -12710,7 +12710,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_14set_auto_maskandscale(CYTHON_UNU __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":630 + /* "include/utils.pyx":630 * return (recdimlen,) + self._mastervar.shape[1:] * def set_auto_maskandscale(self,val): * for v in self._recVar: # <<<<<<<<<<<<<< @@ -12720,7 +12720,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_14set_auto_maskandscale(CYTHON_UNU } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":629 + /* "include/utils.pyx":629 * recdimlen = len(self._dset.dimensions[self._recdimname]) * return (recdimlen,) + self._mastervar.shape[1:] * def set_auto_maskandscale(self,val): # <<<<<<<<<<<<<< @@ -12737,7 +12737,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_14set_auto_maskandscale(CYTHON_UNU __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); - __Pyx_AddTraceback("netCDF4._Variable.set_auto_maskandscale", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._Variable.set_auto_maskandscale", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_v); @@ -12746,7 +12746,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_14set_auto_maskandscale(CYTHON_UNU return __pyx_r; } -/* "utils.pyx":632 +/* "include/utils.pyx":632 * for v in self._recVar: * v.set_auto_maskandscale(val) * def __getitem__(self, elem): # <<<<<<<<<<<<<< @@ -12755,10 +12755,10 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_14set_auto_maskandscale(CYTHON_UNU */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9_Variable_17__getitem__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_7netCDF4_9_Variable_16__getitem__[] = "Get records from a concatenated set of variables."; -static PyMethodDef __pyx_mdef_7netCDF4_9_Variable_17__getitem__ = {"__getitem__", (PyCFunction)__pyx_pw_7netCDF4_9_Variable_17__getitem__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_9_Variable_16__getitem__}; -static PyObject *__pyx_pw_7netCDF4_9_Variable_17__getitem__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9_Variable_17__getitem__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_9_Variable_16__getitem__[] = "Get records from a concatenated set of variables."; +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_9_Variable_17__getitem__ = {"__getitem__", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_9_Variable_17__getitem__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8_netCDF4_9_Variable_16__getitem__}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9_Variable_17__getitem__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_elem = 0; int __pyx_lineno = 0; @@ -12806,18 +12806,18 @@ static PyObject *__pyx_pw_7netCDF4_9_Variable_17__getitem__(PyObject *__pyx_self __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4._Variable.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._Variable.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_9_Variable_16__getitem__(__pyx_self, __pyx_v_self, __pyx_v_elem); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9_Variable_16__getitem__(__pyx_self, __pyx_v_self, __pyx_v_elem); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_elem) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_elem) { PyObject *__pyx_v_start = NULL; PyObject *__pyx_v_count = NULL; PyObject *__pyx_v_stride = NULL; @@ -12876,7 +12876,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__getitem__", 0); - /* "utils.pyx":641 + /* "include/utils.pyx":641 * # to use. * start, count, stride, put_ind =\ * _StartCountStride(elem, self.shape) # <<<<<<<<<<<<<< @@ -12978,7 +12978,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __pyx_L4_unpacking_done:; } - /* "utils.pyx":640 + /* "include/utils.pyx":640 * # arguments to the nc_get_var() function, and is much more easy * # to use. * start, count, stride, put_ind =\ # <<<<<<<<<<<<<< @@ -12994,7 +12994,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __pyx_v_put_ind = __pyx_t_4; __pyx_t_4 = 0; - /* "utils.pyx":642 + /* "include/utils.pyx":642 * start, count, stride, put_ind =\ * _StartCountStride(elem, self.shape) * datashape = _out_array_shape(count) # <<<<<<<<<<<<<< @@ -13031,7 +13031,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __pyx_v_datashape = __pyx_t_1; __pyx_t_1 = 0; - /* "utils.pyx":643 + /* "include/utils.pyx":643 * _StartCountStride(elem, self.shape) * datashape = _out_array_shape(count) * data = ma.empty(datashape, dtype=self.dtype) # <<<<<<<<<<<<<< @@ -13062,7 +13062,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __pyx_v_data = __pyx_t_3; __pyx_t_3 = 0; - /* "utils.pyx":649 + /* "include/utils.pyx":649 * # The convention used is that for those cases, * # put_ind for this dimension is set to -1 by _StartCountStride. * squeeze = data.ndim * [slice(None),] # <<<<<<<<<<<<<< @@ -13083,7 +13083,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __pyx_v_squeeze = __pyx_t_1; __pyx_t_1 = 0; - /* "utils.pyx":650 + /* "include/utils.pyx":650 * # put_ind for this dimension is set to -1 by _StartCountStride. * squeeze = data.ndim * [slice(None),] * for i,n in enumerate(put_ind.shape[:-1]): # <<<<<<<<<<<<<< @@ -13145,7 +13145,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __pyx_t_1 = __pyx_t_3; __pyx_t_3 = 0; - /* "utils.pyx":651 + /* "include/utils.pyx":651 * squeeze = data.ndim * [slice(None),] * for i,n in enumerate(put_ind.shape[:-1]): * if n == 1 and put_ind[...,i].ravel()[0] == -1: # <<<<<<<<<<<<<< @@ -13203,7 +13203,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __pyx_L8_bool_binop_done:; if (__pyx_t_10) { - /* "utils.pyx":652 + /* "include/utils.pyx":652 * for i,n in enumerate(put_ind.shape[:-1]): * if n == 1 and put_ind[...,i].ravel()[0] == -1: * squeeze[i] = 0 # <<<<<<<<<<<<<< @@ -13215,7 +13215,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje } __pyx_L7:; - /* "utils.pyx":650 + /* "include/utils.pyx":650 * # put_ind for this dimension is set to -1 by _StartCountStride. * squeeze = data.ndim * [slice(None),] * for i,n in enumerate(put_ind.shape[:-1]): # <<<<<<<<<<<<<< @@ -13226,7 +13226,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":655 + /* "include/utils.pyx":655 * * # Reshape the arrays so we can iterate over them. * strt = start.reshape((-1, self.ndim or 1)) # <<<<<<<<<<<<<< @@ -13288,7 +13288,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __pyx_v_strt = __pyx_t_1; __pyx_t_1 = 0; - /* "utils.pyx":656 + /* "include/utils.pyx":656 * # Reshape the arrays so we can iterate over them. * strt = start.reshape((-1, self.ndim or 1)) * cnt = count.reshape((-1, self.ndim or 1)) # <<<<<<<<<<<<<< @@ -13350,7 +13350,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __pyx_v_cnt = __pyx_t_1; __pyx_t_1 = 0; - /* "utils.pyx":657 + /* "include/utils.pyx":657 * strt = start.reshape((-1, self.ndim or 1)) * cnt = count.reshape((-1, self.ndim or 1)) * strd = stride.reshape((-1, self.ndim or 1)) # <<<<<<<<<<<<<< @@ -13412,7 +13412,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __pyx_v_strd = __pyx_t_1; __pyx_t_1 = 0; - /* "utils.pyx":658 + /* "include/utils.pyx":658 * cnt = count.reshape((-1, self.ndim or 1)) * strd = stride.reshape((-1, self.ndim or 1)) * put_ind = put_ind.reshape((-1, self.ndim or 1)) # <<<<<<<<<<<<<< @@ -13474,7 +13474,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __Pyx_DECREF_SET(__pyx_v_put_ind, __pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":662 + /* "include/utils.pyx":662 * # Fill output array with data chunks. * # Number of variables making up the MFVariable.Variable. * nv = len(self._recLen) # <<<<<<<<<<<<<< @@ -13487,7 +13487,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_nv = __pyx_t_5; - /* "utils.pyx":663 + /* "include/utils.pyx":663 * # Number of variables making up the MFVariable.Variable. * nv = len(self._recLen) * for (start,count,stride,ind) in zip(strt, cnt, strd, put_ind): # <<<<<<<<<<<<<< @@ -13639,7 +13639,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __Pyx_XDECREF_SET(__pyx_v_ind, __pyx_t_7); __pyx_t_7 = 0; - /* "utils.pyx":665 + /* "include/utils.pyx":665 * for (start,count,stride,ind) in zip(strt, cnt, strd, put_ind): * # make sure count=-1 becomes count=1 * count = [abs(cnt) for cnt in count] # <<<<<<<<<<<<<< @@ -13696,7 +13696,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __Pyx_DECREF_SET(__pyx_v_count, __pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":666 + /* "include/utils.pyx":666 * # make sure count=-1 becomes count=1 * count = [abs(cnt) for cnt in count] * if (numpy.array(stride) < 0).any(): # <<<<<<<<<<<<<< @@ -13760,7 +13760,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_10) { - /* "utils.pyx":667 + /* "include/utils.pyx":667 * count = [abs(cnt) for cnt in count] * if (numpy.array(stride) < 0).any(): * raise IndexError('negative strides not allowed when slicing MFVariable Variable instance') # <<<<<<<<<<<<<< @@ -13774,7 +13774,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje {__pyx_filename = __pyx_f[1]; __pyx_lineno = 667; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "utils.pyx":670 + /* "include/utils.pyx":670 * # Start, stop and step along 1st dimension, eg the unlimited * # dimension. * sta = start[0] # <<<<<<<<<<<<<< @@ -13786,7 +13786,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __Pyx_XDECREF_SET(__pyx_v_sta, __pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":671 + /* "include/utils.pyx":671 * # dimension. * sta = start[0] * step = stride[0] # <<<<<<<<<<<<<< @@ -13798,7 +13798,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __Pyx_XDECREF_SET(__pyx_v_step, __pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":672 + /* "include/utils.pyx":672 * sta = start[0] * step = stride[0] * stop = sta + count[0] * step # <<<<<<<<<<<<<< @@ -13816,7 +13816,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __Pyx_XDECREF_SET(__pyx_v_stop, __pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":679 + /* "include/utils.pyx":679 * # the record index inside the variables, from 0 to n * # the index of the Variable instance to which each record belongs * idx = [] # list of record indices # <<<<<<<<<<<<<< @@ -13828,7 +13828,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __Pyx_XDECREF_SET(__pyx_v_idx, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; - /* "utils.pyx":680 + /* "include/utils.pyx":680 * # the index of the Variable instance to which each record belongs * idx = [] # list of record indices * vid = [] # list of Variable indices # <<<<<<<<<<<<<< @@ -13840,7 +13840,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __Pyx_XDECREF_SET(__pyx_v_vid, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; - /* "utils.pyx":681 + /* "include/utils.pyx":681 * idx = [] # list of record indices * vid = [] # list of Variable indices * for n in range(nv): # <<<<<<<<<<<<<< @@ -13898,7 +13898,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __Pyx_XDECREF_SET(__pyx_v_n, __pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":682 + /* "include/utils.pyx":682 * vid = [] # list of Variable indices * for n in range(nv): * k = self._recLen[n] # number of records in this variable # <<<<<<<<<<<<<< @@ -13913,7 +13913,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __Pyx_XDECREF_SET(__pyx_v_k, __pyx_t_3); __pyx_t_3 = 0; - /* "utils.pyx":683 + /* "include/utils.pyx":683 * for n in range(nv): * k = self._recLen[n] # number of records in this variable * idx.extend(range(k)) # <<<<<<<<<<<<<< @@ -13931,7 +13931,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __pyx_t_15 = __Pyx_PyList_Extend(__pyx_v_idx, __pyx_t_1); if (unlikely(__pyx_t_15 == -1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 683; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":684 + /* "include/utils.pyx":684 * k = self._recLen[n] # number of records in this variable * idx.extend(range(k)) * vid.extend([n] * k) # <<<<<<<<<<<<<< @@ -13951,7 +13951,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __pyx_t_15 = __Pyx_PyList_Extend(__pyx_v_vid, __pyx_t_1); if (unlikely(__pyx_t_15 == -1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 684; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":681 + /* "include/utils.pyx":681 * idx = [] # list of record indices * vid = [] # list of Variable indices * for n in range(nv): # <<<<<<<<<<<<<< @@ -13961,7 +13961,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "utils.pyx":688 + /* "include/utils.pyx":688 * # Merge the two lists to get a list of 2-elem lists. * # Slice this list along the first dimension. * lst = list(zip(idx, vid)).__getitem__(slice(sta, stop, step)) # <<<<<<<<<<<<<< @@ -14034,7 +14034,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __Pyx_XDECREF_SET(__pyx_v_lst, __pyx_t_7); __pyx_t_7 = 0; - /* "utils.pyx":691 + /* "include/utils.pyx":691 * * # Rebuild the slicing expression for dimensions 1 and ssq. * newSlice = [slice(None, None, None)] # <<<<<<<<<<<<<< @@ -14049,7 +14049,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __Pyx_XDECREF_SET(__pyx_v_newSlice, ((PyObject*)__pyx_t_7)); __pyx_t_7 = 0; - /* "utils.pyx":692 + /* "include/utils.pyx":692 * # Rebuild the slicing expression for dimensions 1 and ssq. * newSlice = [slice(None, None, None)] * for n in range(1, len(start)): # skip dimension 0 # <<<<<<<<<<<<<< @@ -14111,7 +14111,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __Pyx_XDECREF_SET(__pyx_v_n, __pyx_t_7); __pyx_t_7 = 0; - /* "utils.pyx":693 + /* "include/utils.pyx":693 * newSlice = [slice(None, None, None)] * for n in range(1, len(start)): # skip dimension 0 * s = slice(start[n],start[n] + count[n] * stride[n], stride[n]) # <<<<<<<<<<<<<< @@ -14144,7 +14144,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __Pyx_XDECREF_SET(__pyx_v_s, ((PyObject*)__pyx_t_4)); __pyx_t_4 = 0; - /* "utils.pyx":694 + /* "include/utils.pyx":694 * for n in range(1, len(start)): # skip dimension 0 * s = slice(start[n],start[n] + count[n] * stride[n], stride[n]) * newSlice.append(s) # <<<<<<<<<<<<<< @@ -14153,7 +14153,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje */ __pyx_t_15 = __Pyx_PyList_Append(__pyx_v_newSlice, __pyx_v_s); if (unlikely(__pyx_t_15 == -1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 694; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":692 + /* "include/utils.pyx":692 * # Rebuild the slicing expression for dimensions 1 and ssq. * newSlice = [slice(None, None, None)] * for n in range(1, len(start)): # skip dimension 0 # <<<<<<<<<<<<<< @@ -14163,7 +14163,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":698 + /* "include/utils.pyx":698 * # Apply the slicing expression to each var in turn, extracting records * # in a list of arrays. * lstArr = [] # <<<<<<<<<<<<<< @@ -14175,7 +14175,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __Pyx_XDECREF_SET(__pyx_v_lstArr, __pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":699 + /* "include/utils.pyx":699 * # in a list of arrays. * lstArr = [] * ismasked = False # <<<<<<<<<<<<<< @@ -14184,7 +14184,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje */ __pyx_v_ismasked = 0; - /* "utils.pyx":700 + /* "include/utils.pyx":700 * lstArr = [] * ismasked = False * for n in range(nv): # <<<<<<<<<<<<<< @@ -14242,7 +14242,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __Pyx_XDECREF_SET(__pyx_v_n, __pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":702 + /* "include/utils.pyx":702 * for n in range(nv): * # Get the list of indices for variable 'n'. * idx = [i for i,numv in lst if numv == n] # <<<<<<<<<<<<<< @@ -14355,7 +14355,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __Pyx_DECREF_SET(__pyx_v_idx, ((PyObject*)__pyx_t_1)); __pyx_t_1 = 0; - /* "utils.pyx":703 + /* "include/utils.pyx":703 * # Get the list of indices for variable 'n'. * idx = [i for i,numv in lst if numv == n] * if idx: # <<<<<<<<<<<<<< @@ -14365,7 +14365,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __pyx_t_10 = (__pyx_v_idx != Py_None) && (PyList_GET_SIZE(__pyx_v_idx) != 0); if (__pyx_t_10) { - /* "utils.pyx":705 + /* "include/utils.pyx":705 * if idx: * # Rebuild slicing expression for dimension 0. * newSlice[0] = slice(idx[0], idx[-1] + 1, step) # <<<<<<<<<<<<<< @@ -14386,14 +14386,14 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje if (unlikely(__Pyx_SetItemInt(__pyx_v_newSlice, 0, __pyx_t_12, long, 1, __Pyx_PyInt_From_long, 1, 0, 1) < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 705; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; - /* "utils.pyx":708 + /* "include/utils.pyx":708 * # Extract records from the var, and append them to a list * # of arrays. * dat = Variable.__getitem__(self._recVar[n],tuple(newSlice)) # <<<<<<<<<<<<<< * if ma.isMA(dat) and not ismasked: * ismasked=True */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_Variable)), __pyx_n_s_getitem); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 708; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_Variable)), __pyx_n_s_getitem); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 708; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_recVar); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 708; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); @@ -14432,7 +14432,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __Pyx_XDECREF_SET(__pyx_v_dat, __pyx_t_12); __pyx_t_12 = 0; - /* "utils.pyx":709 + /* "include/utils.pyx":709 * # of arrays. * dat = Variable.__getitem__(self._recVar[n],tuple(newSlice)) * if ma.isMA(dat) and not ismasked: # <<<<<<<<<<<<<< @@ -14481,7 +14481,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __pyx_L38_bool_binop_done:; if (__pyx_t_10) { - /* "utils.pyx":710 + /* "include/utils.pyx":710 * dat = Variable.__getitem__(self._recVar[n],tuple(newSlice)) * if ma.isMA(dat) and not ismasked: * ismasked=True # <<<<<<<<<<<<<< @@ -14490,7 +14490,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje */ __pyx_v_ismasked = 1; - /* "utils.pyx":711 + /* "include/utils.pyx":711 * if ma.isMA(dat) and not ismasked: * ismasked=True * fill_value = dat.fill_value # <<<<<<<<<<<<<< @@ -14505,7 +14505,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje } __pyx_L37:; - /* "utils.pyx":712 + /* "include/utils.pyx":712 * ismasked=True * fill_value = dat.fill_value * lstArr.append(dat) # <<<<<<<<<<<<<< @@ -14517,7 +14517,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje } __pyx_L36:; - /* "utils.pyx":700 + /* "include/utils.pyx":700 * lstArr = [] * ismasked = False * for n in range(nv): # <<<<<<<<<<<<<< @@ -14527,7 +14527,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "utils.pyx":713 + /* "include/utils.pyx":713 * fill_value = dat.fill_value * lstArr.append(dat) * if ismasked: # <<<<<<<<<<<<<< @@ -14537,7 +14537,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __pyx_t_10 = (__pyx_v_ismasked != 0); if (__pyx_t_10) { - /* "utils.pyx":714 + /* "include/utils.pyx":714 * lstArr.append(dat) * if ismasked: * lstArr = ma.concatenate(lstArr) # <<<<<<<<<<<<<< @@ -14580,7 +14580,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje } /*else*/ { - /* "utils.pyx":716 + /* "include/utils.pyx":716 * lstArr = ma.concatenate(lstArr) * else: * lstArr = numpy.concatenate(lstArr) # <<<<<<<<<<<<<< @@ -14622,7 +14622,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje } __pyx_L40:; - /* "utils.pyx":717 + /* "include/utils.pyx":717 * else: * lstArr = numpy.concatenate(lstArr) * if lstArr.dtype != data.dtype: data = data.astype(lstArr.dtype) # <<<<<<<<<<<<<< @@ -14675,7 +14675,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje } __pyx_L41:; - /* "utils.pyx":721 + /* "include/utils.pyx":721 * # case the array shapes won't conform. If so, a ValueError will * # result, and no squeeze will be done. * try: # <<<<<<<<<<<<<< @@ -14689,7 +14689,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __Pyx_XGOTREF(__pyx_t_21); /*try:*/ { - /* "utils.pyx":722 + /* "include/utils.pyx":722 * # result, and no squeeze will be done. * try: * data[tuple(ind)] = lstArr.squeeze() # <<<<<<<<<<<<<< @@ -14735,7 +14735,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; - /* "utils.pyx":723 + /* "include/utils.pyx":723 * try: * data[tuple(ind)] = lstArr.squeeze() * except ValueError: # <<<<<<<<<<<<<< @@ -14744,13 +14744,13 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje */ __pyx_t_22 = PyErr_ExceptionMatches(__pyx_builtin_ValueError); if (__pyx_t_22) { - __Pyx_AddTraceback("netCDF4._Variable.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._Variable.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_12, &__pyx_t_1, &__pyx_t_2) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 723; __pyx_clineno = __LINE__; goto __pyx_L44_except_error;} __Pyx_GOTREF(__pyx_t_12); __Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_2); - /* "utils.pyx":724 + /* "include/utils.pyx":724 * data[tuple(ind)] = lstArr.squeeze() * except ValueError: * data[tuple(ind)] = lstArr # <<<<<<<<<<<<<< @@ -14781,7 +14781,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __pyx_L49_try_end:; } - /* "utils.pyx":663 + /* "include/utils.pyx":663 * # Number of variables making up the MFVariable.Variable. * nv = len(self._recLen) * for (start,count,stride,ind) in zip(strt, cnt, strd, put_ind): # <<<<<<<<<<<<<< @@ -14791,7 +14791,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "utils.pyx":727 + /* "include/utils.pyx":727 * * # Remove extra singleton dimensions. * data = data[tuple(squeeze)] # <<<<<<<<<<<<<< @@ -14806,7 +14806,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __Pyx_DECREF_SET(__pyx_v_data, __pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":730 + /* "include/utils.pyx":730 * * # if no masked elements, return numpy array. * if ma.isMA(data) and not data.mask.any(): # <<<<<<<<<<<<<< @@ -14880,7 +14880,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __pyx_L53_bool_binop_done:; if (__pyx_t_10) { - /* "utils.pyx":731 + /* "include/utils.pyx":731 * # if no masked elements, return numpy array. * if ma.isMA(data) and not data.mask.any(): * data = data.filled() # <<<<<<<<<<<<<< @@ -14913,7 +14913,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje } __pyx_L52:; - /* "utils.pyx":733 + /* "include/utils.pyx":733 * data = data.filled() * * return data # <<<<<<<<<<<<<< @@ -14925,7 +14925,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __pyx_r = __pyx_v_data; goto __pyx_L0; - /* "utils.pyx":632 + /* "include/utils.pyx":632 * for v in self._recVar: * v.set_auto_maskandscale(val) * def __getitem__(self, elem): # <<<<<<<<<<<<<< @@ -14943,7 +14943,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_12); __Pyx_XDECREF(__pyx_t_18); - __Pyx_AddTraceback("netCDF4._Variable.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._Variable.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_start); @@ -14977,7 +14977,7 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje return __pyx_r; } -/* "utils.pyx":772 +/* "include/utils.pyx":772 * """ * * def __init__(self, time, units=None): # <<<<<<<<<<<<<< @@ -14986,10 +14986,10 @@ static PyObject *__pyx_pf_7netCDF4_9_Variable_16__getitem__(CYTHON_UNUSED PyObje */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_6MFTime_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_7netCDF4_6MFTime___init__[] = "\nCreate a time Variable with units consistent across a multifile\ndataset.\n\n@param time: Time variable from a MFDataset.\n\n@keyword units: Time units, for example, 'days since 1979-01-01'. If None, use\nthe units from the master variable.\n "; -static PyMethodDef __pyx_mdef_7netCDF4_6MFTime_1__init__ = {"__init__", (PyCFunction)__pyx_pw_7netCDF4_6MFTime_1__init__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_6MFTime___init__}; -static PyObject *__pyx_pw_7netCDF4_6MFTime_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_6MFTime_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_6MFTime___init__[] = "\nCreate a time Variable with units consistent across a multifile\ndataset.\n\n@param time: Time variable from a MFDataset.\n\n@keyword units: Time units, for example, 'days since 1979-01-01'. If None, use\nthe units from the master variable.\n "; +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_6MFTime_1__init__ = {"__init__", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_6MFTime_1__init__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8_netCDF4_6MFTime___init__}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_6MFTime_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_time = 0; PyObject *__pyx_v_units = 0; @@ -15049,18 +15049,18 @@ static PyObject *__pyx_pw_7netCDF4_6MFTime_1__init__(PyObject *__pyx_self, PyObj __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__init__", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 772; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4.MFTime.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.MFTime.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_6MFTime___init__(__pyx_self, __pyx_v_self, __pyx_v_time, __pyx_v_units); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_6MFTime___init__(__pyx_self, __pyx_v_self, __pyx_v_time, __pyx_v_units); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_time, PyObject *__pyx_v_units) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_time, PyObject *__pyx_v_units) { PyObject *__pyx_v_datetime = NULL; PyObject *__pyx_v_name = NULL; PyObject *__pyx_v_value = NULL; @@ -15094,7 +15094,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 0); - /* "utils.pyx":782 + /* "include/utils.pyx":782 * the units from the master variable. * """ * import datetime # <<<<<<<<<<<<<< @@ -15106,7 +15106,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py __pyx_v_datetime = __pyx_t_1; __pyx_t_1 = 0; - /* "utils.pyx":783 + /* "include/utils.pyx":783 * """ * import datetime * self.__time = time # <<<<<<<<<<<<<< @@ -15115,7 +15115,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py */ if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_MFTime__time, __pyx_v_time) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 783; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":786 + /* "include/utils.pyx":786 * * # copy attributes from master time variable. * for name, value in time.__dict__.items(): # <<<<<<<<<<<<<< @@ -15238,7 +15238,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_6); __pyx_t_6 = 0; - /* "utils.pyx":787 + /* "include/utils.pyx":787 * # copy attributes from master time variable. * for name, value in time.__dict__.items(): * self.__dict__[name] = value # <<<<<<<<<<<<<< @@ -15250,7 +15250,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_v_name, __pyx_v_value) < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 787; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":786 + /* "include/utils.pyx":786 * * # copy attributes from master time variable. * for name, value in time.__dict__.items(): # <<<<<<<<<<<<<< @@ -15260,7 +15260,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "utils.pyx":790 + /* "include/utils.pyx":790 * * # make sure calendar attribute present in all files. * for t in self._recVar: # <<<<<<<<<<<<<< @@ -15310,7 +15310,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py __Pyx_XDECREF_SET(__pyx_v_t, __pyx_t_3); __pyx_t_3 = 0; - /* "utils.pyx":791 + /* "include/utils.pyx":791 * # make sure calendar attribute present in all files. * for t in self._recVar: * if not hasattr(t,'calendar'): # <<<<<<<<<<<<<< @@ -15321,7 +15321,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py __pyx_t_10 = ((!(__pyx_t_9 != 0)) != 0); if (__pyx_t_10) { - /* "utils.pyx":792 + /* "include/utils.pyx":792 * for t in self._recVar: * if not hasattr(t,'calendar'): * raise ValueError('MFTime requires that the time variable in all files have a calendar attribute') # <<<<<<<<<<<<<< @@ -15335,7 +15335,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py {__pyx_filename = __pyx_f[1]; __pyx_lineno = 792; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "utils.pyx":790 + /* "include/utils.pyx":790 * * # make sure calendar attribute present in all files. * for t in self._recVar: # <<<<<<<<<<<<<< @@ -15345,7 +15345,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":795 + /* "include/utils.pyx":795 * * # Check that calendar is the same in all files. * if len(set([t.calendar for t in self._recVar])) > 1: # <<<<<<<<<<<<<< @@ -15410,7 +15410,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py __pyx_t_10 = ((__pyx_t_4 > 1) != 0); if (__pyx_t_10) { - /* "utils.pyx":796 + /* "include/utils.pyx":796 * # Check that calendar is the same in all files. * if len(set([t.calendar for t in self._recVar])) > 1: * raise ValueError('MFTime requires that the same time calendar is used by all files.') # <<<<<<<<<<<<<< @@ -15424,7 +15424,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py {__pyx_filename = __pyx_f[1]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "utils.pyx":799 + /* "include/utils.pyx":799 * * # Override units if units is specified. * self.units = units or time.units # <<<<<<<<<<<<<< @@ -15447,7 +15447,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_units, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "utils.pyx":802 + /* "include/utils.pyx":802 * * # Reference date to compute the difference between different time units. * ref_date = datetime.datetime(1900,1,1) # <<<<<<<<<<<<<< @@ -15462,7 +15462,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py __pyx_v_ref_date = __pyx_t_1; __pyx_t_1 = 0; - /* "utils.pyx":803 + /* "include/utils.pyx":803 * # Reference date to compute the difference between different time units. * ref_date = datetime.datetime(1900,1,1) * ref_num = date2num(ref_date, self.units, self.calendar) # <<<<<<<<<<<<<< @@ -15508,7 +15508,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py __pyx_v_ref_num = __pyx_t_1; __pyx_t_1 = 0; - /* "utils.pyx":807 + /* "include/utils.pyx":807 * # Create delta vector: delta = ref_num(ref_date) - num(ref_date) * # So that ref_num(date) = num(date) + delta * self.__delta = numpy.empty(len(self), time.dtype) # <<<<<<<<<<<<<< @@ -15555,7 +15555,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_MFTime__delta, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 807; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":809 + /* "include/utils.pyx":809 * self.__delta = numpy.empty(len(self), time.dtype) * * i0 = 0; i1 = 0 # <<<<<<<<<<<<<< @@ -15567,7 +15567,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py __Pyx_INCREF(__pyx_int_0); __pyx_v_i1 = __pyx_int_0; - /* "utils.pyx":810 + /* "include/utils.pyx":810 * * i0 = 0; i1 = 0 * for i,v in enumerate(self._recVar): # <<<<<<<<<<<<<< @@ -15626,7 +15626,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py __pyx_t_1 = __pyx_t_11; __pyx_t_11 = 0; - /* "utils.pyx":811 + /* "include/utils.pyx":811 * i0 = 0; i1 = 0 * for i,v in enumerate(self._recVar): * n = self._recLen[i] # Length of time vector. # <<<<<<<<<<<<<< @@ -15641,7 +15641,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py __Pyx_XDECREF_SET(__pyx_v_n, __pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":812 + /* "include/utils.pyx":812 * for i,v in enumerate(self._recVar): * n = self._recLen[i] # Length of time vector. * num = date2num(ref_date, v.units, self.calendar) # <<<<<<<<<<<<<< @@ -15687,7 +15687,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py __Pyx_XDECREF_SET(__pyx_v_num, __pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":813 + /* "include/utils.pyx":813 * n = self._recLen[i] # Length of time vector. * num = date2num(ref_date, v.units, self.calendar) * i1 += n # <<<<<<<<<<<<<< @@ -15699,7 +15699,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py __Pyx_DECREF_SET(__pyx_v_i1, __pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":814 + /* "include/utils.pyx":814 * num = date2num(ref_date, v.units, self.calendar) * i1 += n * self.__delta[i0:i1] = ref_num - num # <<<<<<<<<<<<<< @@ -15714,7 +15714,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":815 + /* "include/utils.pyx":815 * i1 += n * self.__delta[i0:i1] = ref_num - num * i0 += n # <<<<<<<<<<<<<< @@ -15726,7 +15726,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py __Pyx_DECREF_SET(__pyx_v_i0, __pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":810 + /* "include/utils.pyx":810 * * i0 = 0; i1 = 0 * for i,v in enumerate(self._recVar): # <<<<<<<<<<<<<< @@ -15737,7 +15737,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "utils.pyx":772 + /* "include/utils.pyx":772 * """ * * def __init__(self, time, units=None): # <<<<<<<<<<<<<< @@ -15757,7 +15757,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py __Pyx_XDECREF(__pyx_t_11); __Pyx_XDECREF(__pyx_t_12); __Pyx_XDECREF(__pyx_t_14); - __Pyx_AddTraceback("netCDF4.MFTime.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.MFTime.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_datetime); @@ -15777,7 +15777,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py return __pyx_r; } -/* "utils.pyx":818 +/* "include/utils.pyx":818 * * * def __getitem__(self, elem): # <<<<<<<<<<<<<< @@ -15785,9 +15785,9 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime___init__(CYTHON_UNUSED PyObject *__py */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_6MFTime_3__getitem__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static PyMethodDef __pyx_mdef_7netCDF4_6MFTime_3__getitem__ = {"__getitem__", (PyCFunction)__pyx_pw_7netCDF4_6MFTime_3__getitem__, METH_VARARGS|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_7netCDF4_6MFTime_3__getitem__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_6MFTime_3__getitem__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_6MFTime_3__getitem__ = {"__getitem__", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_6MFTime_3__getitem__, METH_VARARGS|METH_KEYWORDS, 0}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_6MFTime_3__getitem__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_self = 0; PyObject *__pyx_v_elem = 0; int __pyx_lineno = 0; @@ -15835,18 +15835,18 @@ static PyObject *__pyx_pw_7netCDF4_6MFTime_3__getitem__(PyObject *__pyx_self, Py __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 818; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4.MFTime.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.MFTime.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_6MFTime_2__getitem__(__pyx_self, __pyx_v_self, __pyx_v_elem); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_6MFTime_2__getitem__(__pyx_self, __pyx_v_self, __pyx_v_elem); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_6MFTime_2__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_elem) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_6MFTime_2__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_elem) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -15857,7 +15857,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime_2__getitem__(CYTHON_UNUSED PyObject * int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__getitem__", 0); - /* "utils.pyx":819 + /* "include/utils.pyx":819 * * def __getitem__(self, elem): * return self.__time[elem] + self.__delta[elem] # <<<<<<<<<<<<<< @@ -15881,7 +15881,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime_2__getitem__(CYTHON_UNUSED PyObject * __pyx_t_1 = 0; goto __pyx_L0; - /* "utils.pyx":818 + /* "include/utils.pyx":818 * * * def __getitem__(self, elem): # <<<<<<<<<<<<<< @@ -15893,7 +15893,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime_2__getitem__(CYTHON_UNUSED PyObject * __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); - __Pyx_AddTraceback("netCDF4.MFTime.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.MFTime.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -15901,7 +15901,7 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime_2__getitem__(CYTHON_UNUSED PyObject * return __pyx_r; } -/* "netCDF4.pyx":811 +/* "netCDF4/_netCDF4.pyx":811 * # check for required version of netcdf-4 and hdf5. * * def _gethdf5libversion(): # <<<<<<<<<<<<<< @@ -15910,20 +15910,20 @@ static PyObject *__pyx_pf_7netCDF4_6MFTime_2__getitem__(CYTHON_UNUSED PyObject * */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_17_gethdf5libversion(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static PyMethodDef __pyx_mdef_7netCDF4_17_gethdf5libversion = {"_gethdf5libversion", (PyCFunction)__pyx_pw_7netCDF4_17_gethdf5libversion, METH_NOARGS, 0}; -static PyObject *__pyx_pw_7netCDF4_17_gethdf5libversion(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_17_gethdf5libversion(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_17_gethdf5libversion = {"_gethdf5libversion", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_17_gethdf5libversion, METH_NOARGS, 0}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_17_gethdf5libversion(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_gethdf5libversion (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_16_gethdf5libversion(__pyx_self); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_16_gethdf5libversion(__pyx_self); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_16_gethdf5libversion(CYTHON_UNUSED PyObject *__pyx_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_16_gethdf5libversion(CYTHON_UNUSED PyObject *__pyx_self) { int __pyx_v_majorvers; int __pyx_v_minorvers; int __pyx_v_releasevers; @@ -15941,7 +15941,7 @@ static PyObject *__pyx_pf_7netCDF4_16_gethdf5libversion(CYTHON_UNUSED PyObject * int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_gethdf5libversion", 0); - /* "netCDF4.pyx":812 + /* "netCDF4/_netCDF4.pyx":812 * * def _gethdf5libversion(): * majorvers = H5_VERS_MAJOR # <<<<<<<<<<<<<< @@ -15950,7 +15950,7 @@ static PyObject *__pyx_pf_7netCDF4_16_gethdf5libversion(CYTHON_UNUSED PyObject * */ __pyx_v_majorvers = H5_VERS_MAJOR; - /* "netCDF4.pyx":813 + /* "netCDF4/_netCDF4.pyx":813 * def _gethdf5libversion(): * majorvers = H5_VERS_MAJOR * minorvers = H5_VERS_MINOR # <<<<<<<<<<<<<< @@ -15959,7 +15959,7 @@ static PyObject *__pyx_pf_7netCDF4_16_gethdf5libversion(CYTHON_UNUSED PyObject * */ __pyx_v_minorvers = H5_VERS_MINOR; - /* "netCDF4.pyx":814 + /* "netCDF4/_netCDF4.pyx":814 * majorvers = H5_VERS_MAJOR * minorvers = H5_VERS_MINOR * releasevers = H5_VERS_RELEASE # <<<<<<<<<<<<<< @@ -15968,7 +15968,7 @@ static PyObject *__pyx_pf_7netCDF4_16_gethdf5libversion(CYTHON_UNUSED PyObject * */ __pyx_v_releasevers = H5_VERS_RELEASE; - /* "netCDF4.pyx":815 + /* "netCDF4/_netCDF4.pyx":815 * minorvers = H5_VERS_MINOR * releasevers = H5_VERS_RELEASE * patchstring = H5_VERS_SUBRELEASE.decode('ascii') # <<<<<<<<<<<<<< @@ -15980,7 +15980,7 @@ static PyObject *__pyx_pf_7netCDF4_16_gethdf5libversion(CYTHON_UNUSED PyObject * __pyx_v_patchstring = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":816 + /* "netCDF4/_netCDF4.pyx":816 * releasevers = H5_VERS_RELEASE * patchstring = H5_VERS_SUBRELEASE.decode('ascii') * if not patchstring: # <<<<<<<<<<<<<< @@ -15991,7 +15991,7 @@ static PyObject *__pyx_pf_7netCDF4_16_gethdf5libversion(CYTHON_UNUSED PyObject * __pyx_t_3 = ((!__pyx_t_2) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":817 + /* "netCDF4/_netCDF4.pyx":817 * patchstring = H5_VERS_SUBRELEASE.decode('ascii') * if not patchstring: * return '%d.%d.%d' % (majorvers,minorvers,releasevers) # <<<<<<<<<<<<<< @@ -16025,7 +16025,7 @@ static PyObject *__pyx_pf_7netCDF4_16_gethdf5libversion(CYTHON_UNUSED PyObject * } /*else*/ { - /* "netCDF4.pyx":819 + /* "netCDF4/_netCDF4.pyx":819 * return '%d.%d.%d' % (majorvers,minorvers,releasevers) * else: * return '%d.%d.%d-%s' % (majorvers,minorvers,releasevers,patchstring) # <<<<<<<<<<<<<< @@ -16061,7 +16061,7 @@ static PyObject *__pyx_pf_7netCDF4_16_gethdf5libversion(CYTHON_UNUSED PyObject * goto __pyx_L0; } - /* "netCDF4.pyx":811 + /* "netCDF4/_netCDF4.pyx":811 * # check for required version of netcdf-4 and hdf5. * * def _gethdf5libversion(): # <<<<<<<<<<<<<< @@ -16075,7 +16075,7 @@ static PyObject *__pyx_pf_7netCDF4_16_gethdf5libversion(CYTHON_UNUSED PyObject * __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); - __Pyx_AddTraceback("netCDF4._gethdf5libversion", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._gethdf5libversion", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_patchstring); @@ -16084,7 +16084,7 @@ static PyObject *__pyx_pf_7netCDF4_16_gethdf5libversion(CYTHON_UNUSED PyObject * return __pyx_r; } -/* "netCDF4.pyx":881 +/* "netCDF4/_netCDF4.pyx":881 * # internal C functions. * * cdef _get_att_names(int grpid, int varid): # <<<<<<<<<<<<<< @@ -16092,7 +16092,7 @@ static PyObject *__pyx_pf_7netCDF4_16_gethdf5libversion(CYTHON_UNUSED PyObject * * cdef int ierr, numatts, n */ -static PyObject *__pyx_f_7netCDF4__get_att_names(int __pyx_v_grpid, int __pyx_v_varid) { +static PyObject *__pyx_f_7netCDF4_8_netCDF4__get_att_names(int __pyx_v_grpid, int __pyx_v_varid) { int __pyx_v_ierr; int __pyx_v_numatts; int __pyx_v_n; @@ -16116,7 +16116,7 @@ static PyObject *__pyx_f_7netCDF4__get_att_names(int __pyx_v_grpid, int __pyx_v_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_get_att_names", 0); - /* "netCDF4.pyx":885 + /* "netCDF4/_netCDF4.pyx":885 * cdef int ierr, numatts, n * cdef char namstring[NC_MAX_NAME+1] * if varid == NC_GLOBAL: # <<<<<<<<<<<<<< @@ -16126,7 +16126,7 @@ static PyObject *__pyx_f_7netCDF4__get_att_names(int __pyx_v_grpid, int __pyx_v_ __pyx_t_1 = ((__pyx_v_varid == NC_GLOBAL) != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":886 + /* "netCDF4/_netCDF4.pyx":886 * cdef char namstring[NC_MAX_NAME+1] * if varid == NC_GLOBAL: * with nogil: # <<<<<<<<<<<<<< @@ -16140,7 +16140,7 @@ static PyObject *__pyx_f_7netCDF4__get_att_names(int __pyx_v_grpid, int __pyx_v_ #endif /*try:*/ { - /* "netCDF4.pyx":887 + /* "netCDF4/_netCDF4.pyx":887 * if varid == NC_GLOBAL: * with nogil: * ierr = nc_inq_natts(grpid, &numatts) # <<<<<<<<<<<<<< @@ -16150,7 +16150,7 @@ static PyObject *__pyx_f_7netCDF4__get_att_names(int __pyx_v_grpid, int __pyx_v_ __pyx_v_ierr = nc_inq_natts(__pyx_v_grpid, (&__pyx_v_numatts)); } - /* "netCDF4.pyx":886 + /* "netCDF4/_netCDF4.pyx":886 * cdef char namstring[NC_MAX_NAME+1] * if varid == NC_GLOBAL: * with nogil: # <<<<<<<<<<<<<< @@ -16171,7 +16171,7 @@ static PyObject *__pyx_f_7netCDF4__get_att_names(int __pyx_v_grpid, int __pyx_v_ } /*else*/ { - /* "netCDF4.pyx":889 + /* "netCDF4/_netCDF4.pyx":889 * ierr = nc_inq_natts(grpid, &numatts) * else: * with nogil: # <<<<<<<<<<<<<< @@ -16185,7 +16185,7 @@ static PyObject *__pyx_f_7netCDF4__get_att_names(int __pyx_v_grpid, int __pyx_v_ #endif /*try:*/ { - /* "netCDF4.pyx":890 + /* "netCDF4/_netCDF4.pyx":890 * else: * with nogil: * ierr = nc_inq_varnatts(grpid, varid, &numatts) # <<<<<<<<<<<<<< @@ -16195,7 +16195,7 @@ static PyObject *__pyx_f_7netCDF4__get_att_names(int __pyx_v_grpid, int __pyx_v_ __pyx_v_ierr = nc_inq_varnatts(__pyx_v_grpid, __pyx_v_varid, (&__pyx_v_numatts)); } - /* "netCDF4.pyx":889 + /* "netCDF4/_netCDF4.pyx":889 * ierr = nc_inq_natts(grpid, &numatts) * else: * with nogil: # <<<<<<<<<<<<<< @@ -16215,7 +16215,7 @@ static PyObject *__pyx_f_7netCDF4__get_att_names(int __pyx_v_grpid, int __pyx_v_ } __pyx_L3:; - /* "netCDF4.pyx":891 + /* "netCDF4/_netCDF4.pyx":891 * with nogil: * ierr = nc_inq_varnatts(grpid, varid, &numatts) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -16225,7 +16225,7 @@ static PyObject *__pyx_f_7netCDF4__get_att_names(int __pyx_v_grpid, int __pyx_v_ __pyx_t_1 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":892 + /* "netCDF4/_netCDF4.pyx":892 * ierr = nc_inq_varnatts(grpid, varid, &numatts) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -16249,7 +16249,7 @@ static PyObject *__pyx_f_7netCDF4__get_att_names(int __pyx_v_grpid, int __pyx_v_ {__pyx_filename = __pyx_f[0]; __pyx_lineno = 892; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":893 + /* "netCDF4/_netCDF4.pyx":893 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * attslist = [] # <<<<<<<<<<<<<< @@ -16261,7 +16261,7 @@ static PyObject *__pyx_f_7netCDF4__get_att_names(int __pyx_v_grpid, int __pyx_v_ __pyx_v_attslist = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":894 + /* "netCDF4/_netCDF4.pyx":894 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * attslist = [] * for n from 0 <= n < numatts: # <<<<<<<<<<<<<< @@ -16271,7 +16271,7 @@ static PyObject *__pyx_f_7netCDF4__get_att_names(int __pyx_v_grpid, int __pyx_v_ __pyx_t_5 = __pyx_v_numatts; for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_5; __pyx_v_n++) { - /* "netCDF4.pyx":895 + /* "netCDF4/_netCDF4.pyx":895 * attslist = [] * for n from 0 <= n < numatts: * with nogil: # <<<<<<<<<<<<<< @@ -16285,7 +16285,7 @@ static PyObject *__pyx_f_7netCDF4__get_att_names(int __pyx_v_grpid, int __pyx_v_ #endif /*try:*/ { - /* "netCDF4.pyx":896 + /* "netCDF4/_netCDF4.pyx":896 * for n from 0 <= n < numatts: * with nogil: * ierr = nc_inq_attname(grpid, varid, n, namstring) # <<<<<<<<<<<<<< @@ -16295,7 +16295,7 @@ static PyObject *__pyx_f_7netCDF4__get_att_names(int __pyx_v_grpid, int __pyx_v_ __pyx_v_ierr = nc_inq_attname(__pyx_v_grpid, __pyx_v_varid, __pyx_v_n, __pyx_v_namstring); } - /* "netCDF4.pyx":895 + /* "netCDF4/_netCDF4.pyx":895 * attslist = [] * for n from 0 <= n < numatts: * with nogil: # <<<<<<<<<<<<<< @@ -16313,7 +16313,7 @@ static PyObject *__pyx_f_7netCDF4__get_att_names(int __pyx_v_grpid, int __pyx_v_ } } - /* "netCDF4.pyx":897 + /* "netCDF4/_netCDF4.pyx":897 * with nogil: * ierr = nc_inq_attname(grpid, varid, n, namstring) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -16323,7 +16323,7 @@ static PyObject *__pyx_f_7netCDF4__get_att_names(int __pyx_v_grpid, int __pyx_v_ __pyx_t_1 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":898 + /* "netCDF4/_netCDF4.pyx":898 * ierr = nc_inq_attname(grpid, varid, n, namstring) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -16347,7 +16347,7 @@ static PyObject *__pyx_f_7netCDF4__get_att_names(int __pyx_v_grpid, int __pyx_v_ {__pyx_filename = __pyx_f[0]; __pyx_lineno = 898; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":899 + /* "netCDF4/_netCDF4.pyx":899 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * attslist.append(namstring.decode(default_encoding,unicode_error)) # <<<<<<<<<<<<<< @@ -16394,7 +16394,7 @@ static PyObject *__pyx_f_7netCDF4__get_att_names(int __pyx_v_grpid, int __pyx_v_ __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - /* "netCDF4.pyx":900 + /* "netCDF4/_netCDF4.pyx":900 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * attslist.append(namstring.decode(default_encoding,unicode_error)) * return attslist # <<<<<<<<<<<<<< @@ -16406,7 +16406,7 @@ static PyObject *__pyx_f_7netCDF4__get_att_names(int __pyx_v_grpid, int __pyx_v_ __pyx_r = __pyx_v_attslist; goto __pyx_L0; - /* "netCDF4.pyx":881 + /* "netCDF4/_netCDF4.pyx":881 * # internal C functions. * * cdef _get_att_names(int grpid, int varid): # <<<<<<<<<<<<<< @@ -16422,7 +16422,7 @@ static PyObject *__pyx_f_7netCDF4__get_att_names(int __pyx_v_grpid, int __pyx_v_ __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_10); - __Pyx_AddTraceback("netCDF4._get_att_names", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._get_att_names", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_attslist); @@ -16431,7 +16431,7 @@ static PyObject *__pyx_f_7netCDF4__get_att_names(int __pyx_v_grpid, int __pyx_v_ return __pyx_r; } -/* "netCDF4.pyx":902 +/* "netCDF4/_netCDF4.pyx":902 * return attslist * * cdef _get_att(grp, int varid, name): # <<<<<<<<<<<<<< @@ -16439,7 +16439,7 @@ static PyObject *__pyx_f_7netCDF4__get_att_names(int __pyx_v_grpid, int __pyx_v_ * cdef int ierr, n, _grpid */ -static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_varid, PyObject *__pyx_v_name) { +static PyObject *__pyx_f_7netCDF4_8_netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_varid, PyObject *__pyx_v_name) { int __pyx_v_ierr; int __pyx_v__grpid; size_t __pyx_v_att_len; @@ -16476,19 +16476,19 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_get_att", 0); - /* "netCDF4.pyx":910 + /* "netCDF4/_netCDF4.pyx":910 * cdef nc_type att_type * cdef ndarray value_arr * bytestr = _strencode(name) # <<<<<<<<<<<<<< * attname = bytestr * _grpid = grp._grpid */ - __pyx_t_1 = __pyx_f_7netCDF4__strencode(__pyx_v_name, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 910; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_7netCDF4_8_netCDF4__strencode(__pyx_v_name, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 910; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_v_bytestr = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":911 + /* "netCDF4/_netCDF4.pyx":911 * cdef ndarray value_arr * bytestr = _strencode(name) * attname = bytestr # <<<<<<<<<<<<<< @@ -16498,7 +16498,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_v_bytestr); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 911; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_attname = __pyx_t_2; - /* "netCDF4.pyx":912 + /* "netCDF4/_netCDF4.pyx":912 * bytestr = _strencode(name) * attname = bytestr * _grpid = grp._grpid # <<<<<<<<<<<<<< @@ -16511,7 +16511,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v__grpid = __pyx_t_3; - /* "netCDF4.pyx":913 + /* "netCDF4/_netCDF4.pyx":913 * attname = bytestr * _grpid = grp._grpid * with nogil: # <<<<<<<<<<<<<< @@ -16525,7 +16525,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va #endif /*try:*/ { - /* "netCDF4.pyx":914 + /* "netCDF4/_netCDF4.pyx":914 * _grpid = grp._grpid * with nogil: * ierr = nc_inq_att(_grpid, varid, attname, &att_type, &att_len) # <<<<<<<<<<<<<< @@ -16535,7 +16535,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_v_ierr = nc_inq_att(__pyx_v__grpid, __pyx_v_varid, __pyx_v_attname, (&__pyx_v_att_type), (&__pyx_v_att_len)); } - /* "netCDF4.pyx":913 + /* "netCDF4/_netCDF4.pyx":913 * attname = bytestr * _grpid = grp._grpid * with nogil: # <<<<<<<<<<<<<< @@ -16553,7 +16553,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va } } - /* "netCDF4.pyx":915 + /* "netCDF4/_netCDF4.pyx":915 * with nogil: * ierr = nc_inq_att(_grpid, varid, attname, &att_type, &att_len) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -16563,7 +16563,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_t_4 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_4) { - /* "netCDF4.pyx":916 + /* "netCDF4/_netCDF4.pyx":916 * ierr = nc_inq_att(_grpid, varid, attname, &att_type, &att_len) * if ierr != NC_NOERR: * raise AttributeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -16587,7 +16587,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va {__pyx_filename = __pyx_f[0]; __pyx_lineno = 916; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":932 + /* "netCDF4/_netCDF4.pyx":932 * value_arr.tostring().decode(default_encoding,unicode_error).replace('\x00','') * return pstring * elif att_type == NC_STRING: # <<<<<<<<<<<<<< @@ -16596,7 +16596,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va */ switch (__pyx_v_att_type) { - /* "netCDF4.pyx":918 + /* "netCDF4/_netCDF4.pyx":918 * raise AttributeError((nc_strerror(ierr)).decode('ascii')) * # attribute is a character or string ... * if att_type == NC_CHAR: # <<<<<<<<<<<<<< @@ -16605,7 +16605,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va */ case NC_CHAR: - /* "netCDF4.pyx":919 + /* "netCDF4/_netCDF4.pyx":919 * # attribute is a character or string ... * if att_type == NC_CHAR: * value_arr = numpy.empty(att_len,'S1') # <<<<<<<<<<<<<< @@ -16646,11 +16646,11 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_7netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 919; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_7netCDF4_8_netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 919; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_value_arr = ((PyArrayObject *)__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":920 + /* "netCDF4/_netCDF4.pyx":920 * if att_type == NC_CHAR: * value_arr = numpy.empty(att_len,'S1') * with nogil: # <<<<<<<<<<<<<< @@ -16664,7 +16664,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va #endif /*try:*/ { - /* "netCDF4.pyx":921 + /* "netCDF4/_netCDF4.pyx":921 * value_arr = numpy.empty(att_len,'S1') * with nogil: * ierr = nc_get_att_text(_grpid, varid, attname, value_arr.data) # <<<<<<<<<<<<<< @@ -16674,7 +16674,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_v_ierr = nc_get_att_text(__pyx_v__grpid, __pyx_v_varid, __pyx_v_attname, ((char *)__pyx_v_value_arr->data)); } - /* "netCDF4.pyx":920 + /* "netCDF4/_netCDF4.pyx":920 * if att_type == NC_CHAR: * value_arr = numpy.empty(att_len,'S1') * with nogil: # <<<<<<<<<<<<<< @@ -16692,7 +16692,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va } } - /* "netCDF4.pyx":922 + /* "netCDF4/_netCDF4.pyx":922 * with nogil: * ierr = nc_get_att_text(_grpid, varid, attname, value_arr.data) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -16702,7 +16702,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_t_4 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_4) { - /* "netCDF4.pyx":923 + /* "netCDF4/_netCDF4.pyx":923 * ierr = nc_get_att_text(_grpid, varid, attname, value_arr.data) * if ierr != NC_NOERR: * raise AttributeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -16726,7 +16726,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va {__pyx_filename = __pyx_f[0]; __pyx_lineno = 923; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":924 + /* "netCDF4/_netCDF4.pyx":924 * if ierr != NC_NOERR: * raise AttributeError((nc_strerror(ierr)).decode('ascii')) * if name == '_FillValue' and python3: # <<<<<<<<<<<<<< @@ -16747,7 +16747,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_L12_bool_binop_done:; if (__pyx_t_4) { - /* "netCDF4.pyx":927 + /* "netCDF4/_netCDF4.pyx":927 * # make sure _FillValue for character arrays is a byte on python 3 * # (issue 271). * pstring = bytes(value_arr) # <<<<<<<<<<<<<< @@ -16768,7 +16768,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va } /*else*/ { - /* "netCDF4.pyx":930 + /* "netCDF4/_netCDF4.pyx":930 * else: * pstring =\ * value_arr.tostring().decode(default_encoding,unicode_error).replace('\x00','') # <<<<<<<<<<<<<< @@ -16840,7 +16840,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va } __pyx_L11:; - /* "netCDF4.pyx":931 + /* "netCDF4/_netCDF4.pyx":931 * pstring =\ * value_arr.tostring().decode(default_encoding,unicode_error).replace('\x00','') * return pstring # <<<<<<<<<<<<<< @@ -16853,7 +16853,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va goto __pyx_L0; break; - /* "netCDF4.pyx":932 + /* "netCDF4/_netCDF4.pyx":932 * value_arr.tostring().decode(default_encoding,unicode_error).replace('\x00','') * return pstring * elif att_type == NC_STRING: # <<<<<<<<<<<<<< @@ -16862,7 +16862,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va */ case NC_STRING: - /* "netCDF4.pyx":933 + /* "netCDF4/_netCDF4.pyx":933 * return pstring * elif att_type == NC_STRING: * if att_len == 1: # <<<<<<<<<<<<<< @@ -16872,7 +16872,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_t_4 = ((__pyx_v_att_len == 1) != 0); if (__pyx_t_4) { - /* "netCDF4.pyx":934 + /* "netCDF4/_netCDF4.pyx":934 * elif att_type == NC_STRING: * if att_len == 1: * with nogil: # <<<<<<<<<<<<<< @@ -16886,7 +16886,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va #endif /*try:*/ { - /* "netCDF4.pyx":935 + /* "netCDF4/_netCDF4.pyx":935 * if att_len == 1: * with nogil: * ierr = nc_get_att_string(_grpid, varid, attname, &stratt) # <<<<<<<<<<<<<< @@ -16896,7 +16896,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_v_ierr = nc_get_att_string(__pyx_v__grpid, __pyx_v_varid, __pyx_v_attname, (&__pyx_v_stratt)); } - /* "netCDF4.pyx":934 + /* "netCDF4/_netCDF4.pyx":934 * elif att_type == NC_STRING: * if att_len == 1: * with nogil: # <<<<<<<<<<<<<< @@ -16914,7 +16914,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va } } - /* "netCDF4.pyx":936 + /* "netCDF4/_netCDF4.pyx":936 * with nogil: * ierr = nc_get_att_string(_grpid, varid, attname, &stratt) * pstring = stratt.decode(default_encoding,unicode_error).replace('\x00','') # <<<<<<<<<<<<<< @@ -16966,7 +16966,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_v_pstring = __pyx_t_6; __pyx_t_6 = 0; - /* "netCDF4.pyx":937 + /* "netCDF4/_netCDF4.pyx":937 * ierr = nc_get_att_string(_grpid, varid, attname, &stratt) * pstring = stratt.decode(default_encoding,unicode_error).replace('\x00','') * return pstring # <<<<<<<<<<<<<< @@ -16980,7 +16980,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va } /*else*/ { - /* "netCDF4.pyx":939 + /* "netCDF4/_netCDF4.pyx":939 * return pstring * else: * raise KeyError('vlen string array attributes not supported') # <<<<<<<<<<<<<< @@ -16996,7 +16996,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va break; default: - /* "netCDF4.pyx":942 + /* "netCDF4/_netCDF4.pyx":942 * else: * # a regular numeric or compound type. * if att_type == NC_LONG: # <<<<<<<<<<<<<< @@ -17006,7 +17006,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_t_4 = ((__pyx_v_att_type == NC_LONG) != 0); if (__pyx_t_4) { - /* "netCDF4.pyx":943 + /* "netCDF4/_netCDF4.pyx":943 * # a regular numeric or compound type. * if att_type == NC_LONG: * att_type = NC_INT # <<<<<<<<<<<<<< @@ -17018,7 +17018,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va } __pyx_L18:; - /* "netCDF4.pyx":944 + /* "netCDF4/_netCDF4.pyx":944 * if att_type == NC_LONG: * att_type = NC_INT * try: # <<<<<<<<<<<<<< @@ -17032,7 +17032,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va __Pyx_XGOTREF(__pyx_t_14); /*try:*/ { - /* "netCDF4.pyx":945 + /* "netCDF4/_netCDF4.pyx":945 * att_type = NC_INT * try: * type_att = _nctonptype[att_type] # see if it is a primitive type # <<<<<<<<<<<<<< @@ -17059,7 +17059,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; - /* "netCDF4.pyx":946 + /* "netCDF4/_netCDF4.pyx":946 * try: * type_att = _nctonptype[att_type] # see if it is a primitive type * except KeyError: # <<<<<<<<<<<<<< @@ -17068,13 +17068,13 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va */ __pyx_t_3 = PyErr_ExceptionMatches(__pyx_builtin_KeyError); if (__pyx_t_3) { - __Pyx_AddTraceback("netCDF4._get_att", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._get_att", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_11, &__pyx_t_6, &__pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 946; __pyx_clineno = __LINE__; goto __pyx_L21_except_error;} __Pyx_GOTREF(__pyx_t_11); __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_7); - /* "netCDF4.pyx":948 + /* "netCDF4/_netCDF4.pyx":948 * except KeyError: * # check if it's a compound * try: # <<<<<<<<<<<<<< @@ -17088,14 +17088,14 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va __Pyx_XGOTREF(__pyx_t_17); /*try:*/ { - /* "netCDF4.pyx":949 + /* "netCDF4/_netCDF4.pyx":949 * # check if it's a compound * try: * type_att = _read_compound(grp, att_type) # <<<<<<<<<<<<<< * except: * raise KeyError('attribute %s has unsupported datatype' % attname) */ - __pyx_t_5 = __pyx_f_7netCDF4__read_compound(__pyx_v_grp, __pyx_v_att_type, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 949; __pyx_clineno = __LINE__; goto __pyx_L29_error;} + __pyx_t_5 = __pyx_f_7netCDF4_8_netCDF4__read_compound(__pyx_v_grp, __pyx_v_att_type, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 949; __pyx_clineno = __LINE__; goto __pyx_L29_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_XDECREF_SET(__pyx_v_type_att, __pyx_t_5); __pyx_t_5 = 0; @@ -17109,7 +17109,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "netCDF4.pyx":950 + /* "netCDF4/_netCDF4.pyx":950 * try: * type_att = _read_compound(grp, att_type) * except: # <<<<<<<<<<<<<< @@ -17117,13 +17117,13 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va * value_arr = numpy.empty(att_len,type_att) */ /*except:*/ { - __Pyx_AddTraceback("netCDF4._get_att", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._get_att", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_9, &__pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 950; __pyx_clineno = __LINE__; goto __pyx_L31_except_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_GOTREF(__pyx_t_9); __Pyx_GOTREF(__pyx_t_1); - /* "netCDF4.pyx":951 + /* "netCDF4/_netCDF4.pyx":951 * type_att = _read_compound(grp, att_type) * except: * raise KeyError('attribute %s has unsupported datatype' % attname) # <<<<<<<<<<<<<< @@ -17175,7 +17175,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_L26_try_end:; } - /* "netCDF4.pyx":952 + /* "netCDF4/_netCDF4.pyx":952 * except: * raise KeyError('attribute %s has unsupported datatype' % attname) * value_arr = numpy.empty(att_len,type_att) # <<<<<<<<<<<<<< @@ -17216,11 +17216,11 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_7netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 952; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (!(likely(((__pyx_t_7) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_7, __pyx_ptype_7netCDF4_8_netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 952; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_value_arr = ((PyArrayObject *)__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":953 + /* "netCDF4/_netCDF4.pyx":953 * raise KeyError('attribute %s has unsupported datatype' % attname) * value_arr = numpy.empty(att_len,type_att) * with nogil: # <<<<<<<<<<<<<< @@ -17234,7 +17234,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va #endif /*try:*/ { - /* "netCDF4.pyx":954 + /* "netCDF4/_netCDF4.pyx":954 * value_arr = numpy.empty(att_len,type_att) * with nogil: * ierr = nc_get_att(_grpid, varid, attname, value_arr.data) # <<<<<<<<<<<<<< @@ -17244,7 +17244,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_v_ierr = nc_get_att(__pyx_v__grpid, __pyx_v_varid, __pyx_v_attname, __pyx_v_value_arr->data); } - /* "netCDF4.pyx":953 + /* "netCDF4/_netCDF4.pyx":953 * raise KeyError('attribute %s has unsupported datatype' % attname) * value_arr = numpy.empty(att_len,type_att) * with nogil: # <<<<<<<<<<<<<< @@ -17262,7 +17262,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va } } - /* "netCDF4.pyx":955 + /* "netCDF4/_netCDF4.pyx":955 * with nogil: * ierr = nc_get_att(_grpid, varid, attname, value_arr.data) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -17272,7 +17272,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_t_4 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_4) { - /* "netCDF4.pyx":956 + /* "netCDF4/_netCDF4.pyx":956 * ierr = nc_get_att(_grpid, varid, attname, value_arr.data) * if ierr != NC_NOERR: * raise AttributeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -17296,7 +17296,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va {__pyx_filename = __pyx_f[0]; __pyx_lineno = 956; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":957 + /* "netCDF4/_netCDF4.pyx":957 * if ierr != NC_NOERR: * raise AttributeError((nc_strerror(ierr)).decode('ascii')) * if value_arr.shape == (): # <<<<<<<<<<<<<< @@ -17311,7 +17311,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; if (__pyx_t_4) { - /* "netCDF4.pyx":959 + /* "netCDF4/_netCDF4.pyx":959 * if value_arr.shape == (): * # return a scalar for a scalar array * return value_arr.item() # <<<<<<<<<<<<<< @@ -17344,7 +17344,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va goto __pyx_L0; } - /* "netCDF4.pyx":960 + /* "netCDF4/_netCDF4.pyx":960 * # return a scalar for a scalar array * return value_arr.item() * elif att_len == 1: # <<<<<<<<<<<<<< @@ -17354,7 +17354,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_t_4 = ((__pyx_v_att_len == 1) != 0); if (__pyx_t_4) { - /* "netCDF4.pyx":962 + /* "netCDF4/_netCDF4.pyx":962 * elif att_len == 1: * # return a scalar for a single element array * return value_arr[0] # <<<<<<<<<<<<<< @@ -17370,7 +17370,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va } /*else*/ { - /* "netCDF4.pyx":964 + /* "netCDF4/_netCDF4.pyx":964 * return value_arr[0] * else: * return value_arr # <<<<<<<<<<<<<< @@ -17385,7 +17385,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va break; } - /* "netCDF4.pyx":902 + /* "netCDF4/_netCDF4.pyx":902 * return attslist * * cdef _get_att(grp, int varid, name): # <<<<<<<<<<<<<< @@ -17403,7 +17403,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va __Pyx_XDECREF(__pyx_t_11); __Pyx_XDECREF(__pyx_t_18); __Pyx_XDECREF(__pyx_t_19); - __Pyx_AddTraceback("netCDF4._get_att", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._get_att", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_value_arr); @@ -17415,7 +17415,7 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va return __pyx_r; } -/* "netCDF4.pyx":966 +/* "netCDF4/_netCDF4.pyx":966 * return value_arr * * def _set_default_format(object format='NETCDF4'): # <<<<<<<<<<<<<< @@ -17424,9 +17424,9 @@ static PyObject *__pyx_f_7netCDF4__get_att(PyObject *__pyx_v_grp, int __pyx_v_va */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_19_set_default_format(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static PyMethodDef __pyx_mdef_7netCDF4_19_set_default_format = {"_set_default_format", (PyCFunction)__pyx_pw_7netCDF4_19_set_default_format, METH_VARARGS|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_7netCDF4_19_set_default_format(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_19_set_default_format(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static PyMethodDef __pyx_mdef_7netCDF4_8_netCDF4_19_set_default_format = {"_set_default_format", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_19_set_default_format, METH_VARARGS|METH_KEYWORDS, 0}; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_19_set_default_format(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_format = 0; int __pyx_lineno = 0; const char *__pyx_filename = NULL; @@ -17470,18 +17470,18 @@ static PyObject *__pyx_pw_7netCDF4_19_set_default_format(PyObject *__pyx_self, P __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("_set_default_format", 0, 0, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 966; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4._set_default_format", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._set_default_format", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_18_set_default_format(__pyx_self, __pyx_v_format); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_18_set_default_format(__pyx_self, __pyx_v_format); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_18_set_default_format(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_format) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_18_set_default_format(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_format) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; @@ -17492,7 +17492,7 @@ static PyObject *__pyx_pf_7netCDF4_18_set_default_format(CYTHON_UNUSED PyObject int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_set_default_format", 0); - /* "netCDF4.pyx":968 + /* "netCDF4/_netCDF4.pyx":968 * def _set_default_format(object format='NETCDF4'): * # Private function to set the netCDF file format * if format == 'NETCDF4': # <<<<<<<<<<<<<< @@ -17502,7 +17502,7 @@ static PyObject *__pyx_pf_7netCDF4_18_set_default_format(CYTHON_UNUSED PyObject __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_format, __pyx_n_s_NETCDF4, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 968; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":969 + /* "netCDF4/_netCDF4.pyx":969 * # Private function to set the netCDF file format * if format == 'NETCDF4': * nc_set_default_format(NC_FORMAT_NETCDF4, NULL) # <<<<<<<<<<<<<< @@ -17513,7 +17513,7 @@ static PyObject *__pyx_pf_7netCDF4_18_set_default_format(CYTHON_UNUSED PyObject goto __pyx_L3; } - /* "netCDF4.pyx":970 + /* "netCDF4/_netCDF4.pyx":970 * if format == 'NETCDF4': * nc_set_default_format(NC_FORMAT_NETCDF4, NULL) * elif format == 'NETCDF4_CLASSIC': # <<<<<<<<<<<<<< @@ -17523,7 +17523,7 @@ static PyObject *__pyx_pf_7netCDF4_18_set_default_format(CYTHON_UNUSED PyObject __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_format, __pyx_n_s_NETCDF4_CLASSIC, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 970; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":971 + /* "netCDF4/_netCDF4.pyx":971 * nc_set_default_format(NC_FORMAT_NETCDF4, NULL) * elif format == 'NETCDF4_CLASSIC': * nc_set_default_format(NC_FORMAT_NETCDF4_CLASSIC, NULL) # <<<<<<<<<<<<<< @@ -17534,7 +17534,7 @@ static PyObject *__pyx_pf_7netCDF4_18_set_default_format(CYTHON_UNUSED PyObject goto __pyx_L3; } - /* "netCDF4.pyx":972 + /* "netCDF4/_netCDF4.pyx":972 * elif format == 'NETCDF4_CLASSIC': * nc_set_default_format(NC_FORMAT_NETCDF4_CLASSIC, NULL) * elif format == 'NETCDF3_64BIT': # <<<<<<<<<<<<<< @@ -17544,7 +17544,7 @@ static PyObject *__pyx_pf_7netCDF4_18_set_default_format(CYTHON_UNUSED PyObject __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_format, __pyx_n_s_NETCDF3_64BIT, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 972; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":973 + /* "netCDF4/_netCDF4.pyx":973 * nc_set_default_format(NC_FORMAT_NETCDF4_CLASSIC, NULL) * elif format == 'NETCDF3_64BIT': * nc_set_default_format(NC_FORMAT_64BIT, NULL) # <<<<<<<<<<<<<< @@ -17555,7 +17555,7 @@ static PyObject *__pyx_pf_7netCDF4_18_set_default_format(CYTHON_UNUSED PyObject goto __pyx_L3; } - /* "netCDF4.pyx":974 + /* "netCDF4/_netCDF4.pyx":974 * elif format == 'NETCDF3_64BIT': * nc_set_default_format(NC_FORMAT_64BIT, NULL) * elif format == 'NETCDF3_CLASSIC': # <<<<<<<<<<<<<< @@ -17565,7 +17565,7 @@ static PyObject *__pyx_pf_7netCDF4_18_set_default_format(CYTHON_UNUSED PyObject __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_format, __pyx_n_s_NETCDF3_CLASSIC, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 974; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":975 + /* "netCDF4/_netCDF4.pyx":975 * nc_set_default_format(NC_FORMAT_64BIT, NULL) * elif format == 'NETCDF3_CLASSIC': * nc_set_default_format(NC_FORMAT_CLASSIC, NULL) # <<<<<<<<<<<<<< @@ -17577,7 +17577,7 @@ static PyObject *__pyx_pf_7netCDF4_18_set_default_format(CYTHON_UNUSED PyObject } /*else*/ { - /* "netCDF4.pyx":977 + /* "netCDF4/_netCDF4.pyx":977 * nc_set_default_format(NC_FORMAT_CLASSIC, NULL) * else: * raise ValueError("format must be 'NETCDF4', 'NETCDF4_CLASSIC', 'NETCDF3_64BIT', or 'NETCDF3_CLASSIC', got '%s'" % format) # <<<<<<<<<<<<<< @@ -17600,7 +17600,7 @@ static PyObject *__pyx_pf_7netCDF4_18_set_default_format(CYTHON_UNUSED PyObject } __pyx_L3:; - /* "netCDF4.pyx":966 + /* "netCDF4/_netCDF4.pyx":966 * return value_arr * * def _set_default_format(object format='NETCDF4'): # <<<<<<<<<<<<<< @@ -17614,7 +17614,7 @@ static PyObject *__pyx_pf_7netCDF4_18_set_default_format(CYTHON_UNUSED PyObject __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); - __Pyx_AddTraceback("netCDF4._set_default_format", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._set_default_format", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -17622,7 +17622,7 @@ static PyObject *__pyx_pf_7netCDF4_18_set_default_format(CYTHON_UNUSED PyObject return __pyx_r; } -/* "netCDF4.pyx":979 +/* "netCDF4/_netCDF4.pyx":979 * raise ValueError("format must be 'NETCDF4', 'NETCDF4_CLASSIC', 'NETCDF3_64BIT', or 'NETCDF3_CLASSIC', got '%s'" % format) * * cdef _get_format(int grpid): # <<<<<<<<<<<<<< @@ -17630,7 +17630,7 @@ static PyObject *__pyx_pf_7netCDF4_18_set_default_format(CYTHON_UNUSED PyObject * cdef int ierr, formatp */ -static PyObject *__pyx_f_7netCDF4__get_format(int __pyx_v_grpid) { +static PyObject *__pyx_f_7netCDF4_8_netCDF4__get_format(int __pyx_v_grpid) { int __pyx_v_ierr; int __pyx_v_formatp; PyObject *__pyx_r = NULL; @@ -17644,7 +17644,7 @@ static PyObject *__pyx_f_7netCDF4__get_format(int __pyx_v_grpid) { int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_get_format", 0); - /* "netCDF4.pyx":982 + /* "netCDF4/_netCDF4.pyx":982 * # Private function to get the netCDF file format * cdef int ierr, formatp * with nogil: # <<<<<<<<<<<<<< @@ -17658,7 +17658,7 @@ static PyObject *__pyx_f_7netCDF4__get_format(int __pyx_v_grpid) { #endif /*try:*/ { - /* "netCDF4.pyx":983 + /* "netCDF4/_netCDF4.pyx":983 * cdef int ierr, formatp * with nogil: * ierr = nc_inq_format(grpid, &formatp) # <<<<<<<<<<<<<< @@ -17668,7 +17668,7 @@ static PyObject *__pyx_f_7netCDF4__get_format(int __pyx_v_grpid) { __pyx_v_ierr = nc_inq_format(__pyx_v_grpid, (&__pyx_v_formatp)); } - /* "netCDF4.pyx":982 + /* "netCDF4/_netCDF4.pyx":982 * # Private function to get the netCDF file format * cdef int ierr, formatp * with nogil: # <<<<<<<<<<<<<< @@ -17686,7 +17686,7 @@ static PyObject *__pyx_f_7netCDF4__get_format(int __pyx_v_grpid) { } } - /* "netCDF4.pyx":984 + /* "netCDF4/_netCDF4.pyx":984 * with nogil: * ierr = nc_inq_format(grpid, &formatp) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -17696,7 +17696,7 @@ static PyObject *__pyx_f_7netCDF4__get_format(int __pyx_v_grpid) { __pyx_t_1 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":985 + /* "netCDF4/_netCDF4.pyx":985 * ierr = nc_inq_format(grpid, &formatp) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -17720,7 +17720,7 @@ static PyObject *__pyx_f_7netCDF4__get_format(int __pyx_v_grpid) { {__pyx_filename = __pyx_f[0]; __pyx_lineno = 985; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":992 + /* "netCDF4/_netCDF4.pyx":992 * elif formatp == NC_FORMAT_64BIT: * return 'NETCDF3_64BIT' * elif formatp == NC_FORMAT_CLASSIC: # <<<<<<<<<<<<<< @@ -17729,7 +17729,7 @@ static PyObject *__pyx_f_7netCDF4__get_format(int __pyx_v_grpid) { */ switch (__pyx_v_formatp) { - /* "netCDF4.pyx":986 + /* "netCDF4/_netCDF4.pyx":986 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * if formatp == NC_FORMAT_NETCDF4: # <<<<<<<<<<<<<< @@ -17738,7 +17738,7 @@ static PyObject *__pyx_f_7netCDF4__get_format(int __pyx_v_grpid) { */ case NC_FORMAT_NETCDF4: - /* "netCDF4.pyx":987 + /* "netCDF4/_netCDF4.pyx":987 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * if formatp == NC_FORMAT_NETCDF4: * return 'NETCDF4' # <<<<<<<<<<<<<< @@ -17751,7 +17751,7 @@ static PyObject *__pyx_f_7netCDF4__get_format(int __pyx_v_grpid) { goto __pyx_L0; break; - /* "netCDF4.pyx":988 + /* "netCDF4/_netCDF4.pyx":988 * if formatp == NC_FORMAT_NETCDF4: * return 'NETCDF4' * elif formatp == NC_FORMAT_NETCDF4_CLASSIC: # <<<<<<<<<<<<<< @@ -17760,7 +17760,7 @@ static PyObject *__pyx_f_7netCDF4__get_format(int __pyx_v_grpid) { */ case NC_FORMAT_NETCDF4_CLASSIC: - /* "netCDF4.pyx":989 + /* "netCDF4/_netCDF4.pyx":989 * return 'NETCDF4' * elif formatp == NC_FORMAT_NETCDF4_CLASSIC: * return 'NETCDF4_CLASSIC' # <<<<<<<<<<<<<< @@ -17773,7 +17773,7 @@ static PyObject *__pyx_f_7netCDF4__get_format(int __pyx_v_grpid) { goto __pyx_L0; break; - /* "netCDF4.pyx":990 + /* "netCDF4/_netCDF4.pyx":990 * elif formatp == NC_FORMAT_NETCDF4_CLASSIC: * return 'NETCDF4_CLASSIC' * elif formatp == NC_FORMAT_64BIT: # <<<<<<<<<<<<<< @@ -17782,7 +17782,7 @@ static PyObject *__pyx_f_7netCDF4__get_format(int __pyx_v_grpid) { */ case NC_FORMAT_64BIT: - /* "netCDF4.pyx":991 + /* "netCDF4/_netCDF4.pyx":991 * return 'NETCDF4_CLASSIC' * elif formatp == NC_FORMAT_64BIT: * return 'NETCDF3_64BIT' # <<<<<<<<<<<<<< @@ -17795,7 +17795,7 @@ static PyObject *__pyx_f_7netCDF4__get_format(int __pyx_v_grpid) { goto __pyx_L0; break; - /* "netCDF4.pyx":992 + /* "netCDF4/_netCDF4.pyx":992 * elif formatp == NC_FORMAT_64BIT: * return 'NETCDF3_64BIT' * elif formatp == NC_FORMAT_CLASSIC: # <<<<<<<<<<<<<< @@ -17804,7 +17804,7 @@ static PyObject *__pyx_f_7netCDF4__get_format(int __pyx_v_grpid) { */ case NC_FORMAT_CLASSIC: - /* "netCDF4.pyx":993 + /* "netCDF4/_netCDF4.pyx":993 * return 'NETCDF3_64BIT' * elif formatp == NC_FORMAT_CLASSIC: * return 'NETCDF3_CLASSIC' # <<<<<<<<<<<<<< @@ -17819,7 +17819,7 @@ static PyObject *__pyx_f_7netCDF4__get_format(int __pyx_v_grpid) { default: break; } - /* "netCDF4.pyx":979 + /* "netCDF4/_netCDF4.pyx":979 * raise ValueError("format must be 'NETCDF4', 'NETCDF4_CLASSIC', 'NETCDF3_64BIT', or 'NETCDF3_CLASSIC', got '%s'" % format) * * cdef _get_format(int grpid): # <<<<<<<<<<<<<< @@ -17833,7 +17833,7 @@ static PyObject *__pyx_f_7netCDF4__get_format(int __pyx_v_grpid) { __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); - __Pyx_AddTraceback("netCDF4._get_format", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._get_format", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -17841,7 +17841,7 @@ static PyObject *__pyx_f_7netCDF4__get_format(int __pyx_v_grpid) { return __pyx_r; } -/* "netCDF4.pyx":995 +/* "netCDF4/_netCDF4.pyx":995 * return 'NETCDF3_CLASSIC' * * cdef _get_full_format(int grpid): # <<<<<<<<<<<<<< @@ -17849,12 +17849,12 @@ static PyObject *__pyx_f_7netCDF4__get_format(int __pyx_v_grpid) { * cdef int ierr, formatp, modep */ -static PyObject *__pyx_f_7netCDF4__get_full_format(CYTHON_UNUSED int __pyx_v_grpid) { +static PyObject *__pyx_f_7netCDF4_8_netCDF4__get_full_format(CYTHON_UNUSED int __pyx_v_grpid) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_get_full_format", 0); - /* "netCDF4.pyx":1018 + /* "netCDF4/_netCDF4.pyx":1018 * return 'UNDEFINED' * ELSE: * return 'UNDEFINED' # <<<<<<<<<<<<<< @@ -17866,7 +17866,7 @@ static PyObject *__pyx_f_7netCDF4__get_full_format(CYTHON_UNUSED int __pyx_v_grp __pyx_r = __pyx_n_s_UNDEFINED; goto __pyx_L0; - /* "netCDF4.pyx":995 + /* "netCDF4/_netCDF4.pyx":995 * return 'NETCDF3_CLASSIC' * * cdef _get_full_format(int grpid): # <<<<<<<<<<<<<< @@ -17881,7 +17881,7 @@ static PyObject *__pyx_f_7netCDF4__get_full_format(CYTHON_UNUSED int __pyx_v_grp return __pyx_r; } -/* "netCDF4.pyx":1020 +/* "netCDF4/_netCDF4.pyx":1020 * return 'UNDEFINED' * * cdef _set_att(grp, int varid, name, value): # <<<<<<<<<<<<<< @@ -17889,7 +17889,7 @@ static PyObject *__pyx_f_7netCDF4__get_full_format(CYTHON_UNUSED int __pyx_v_grp * cdef int i, ierr, lenarr, n */ -static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_varid, PyObject *__pyx_v_name, PyObject *__pyx_v_value) { +static PyObject *__pyx_f_7netCDF4_8_netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_varid, PyObject *__pyx_v_name, PyObject *__pyx_v_value) { int __pyx_v_ierr; int __pyx_v_lenarr; char *__pyx_v_attname; @@ -17919,19 +17919,19 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_set_att", 0); - /* "netCDF4.pyx":1026 + /* "netCDF4/_netCDF4.pyx":1026 * cdef char *datstring * cdef ndarray value_arr * bytestr = _strencode(name) # <<<<<<<<<<<<<< * attname = bytestr * # put attribute value into a numpy array. */ - __pyx_t_1 = __pyx_f_7netCDF4__strencode(__pyx_v_name, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1026; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_7netCDF4_8_netCDF4__strencode(__pyx_v_name, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1026; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_v_bytestr = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":1027 + /* "netCDF4/_netCDF4.pyx":1027 * cdef ndarray value_arr * bytestr = _strencode(name) * attname = bytestr # <<<<<<<<<<<<<< @@ -17941,7 +17941,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_v_bytestr); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1027; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_attname = __pyx_t_2; - /* "netCDF4.pyx":1029 + /* "netCDF4/_netCDF4.pyx":1029 * attname = bytestr * # put attribute value into a numpy array. * value_arr = numpy.array(value) # <<<<<<<<<<<<<< @@ -17978,11 +17978,11 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_7netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1029; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_7netCDF4_8_netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1029; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_value_arr = ((PyArrayObject *)__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":1032 + /* "netCDF4/_netCDF4.pyx":1032 * # if array is 64 bit integers or * # if 64-bit datatype not supported, cast to 32 bit integers. * fmt = _get_format(grp._grpid) # <<<<<<<<<<<<<< @@ -17993,12 +17993,12 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va __Pyx_GOTREF(__pyx_t_1); __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1032; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = __pyx_f_7netCDF4__get_format(__pyx_t_6); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1032; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_7netCDF4_8_netCDF4__get_format(__pyx_t_6); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1032; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_v_fmt = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":1033 + /* "netCDF4/_netCDF4.pyx":1033 * # if 64-bit datatype not supported, cast to 32 bit integers. * fmt = _get_format(grp._grpid) * is_netcdf3 = fmt.startswith('NETCDF3') or fmt == 'NETCDF4_CLASSIC' # <<<<<<<<<<<<<< @@ -18027,7 +18027,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_v_is_netcdf3 = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":1034 + /* "netCDF4/_netCDF4.pyx":1034 * fmt = _get_format(grp._grpid) * is_netcdf3 = fmt.startswith('NETCDF3') or fmt == 'NETCDF4_CLASSIC' * if value_arr.dtype.str[1:] == 'i8' and ('i8' not in _supportedtypes or\ # <<<<<<<<<<<<<< @@ -18060,7 +18060,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va goto __pyx_L6_bool_binop_done; } - /* "netCDF4.pyx":1035 + /* "netCDF4/_netCDF4.pyx":1035 * is_netcdf3 = fmt.startswith('NETCDF3') or fmt == 'NETCDF4_CLASSIC' * if value_arr.dtype.str[1:] == 'i8' and ('i8' not in _supportedtypes or\ * is_netcdf3): # <<<<<<<<<<<<<< @@ -18072,7 +18072,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_L6_bool_binop_done:; if (__pyx_t_7) { - /* "netCDF4.pyx":1036 + /* "netCDF4/_netCDF4.pyx":1036 * if value_arr.dtype.str[1:] == 'i8' and ('i8' not in _supportedtypes or\ * is_netcdf3): * value_arr = value_arr.astype('i4') # <<<<<<<<<<<<<< @@ -18084,14 +18084,14 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__31, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1036; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_7netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1036; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_7netCDF4_8_netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1036; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF_SET(__pyx_v_value_arr, ((PyArrayObject *)__pyx_t_5)); __pyx_t_5 = 0; goto __pyx_L5; } __pyx_L5:; - /* "netCDF4.pyx":1040 + /* "netCDF4/_netCDF4.pyx":1040 * # if array contains unicode strings, and data model is NETCDF4, * # write as a string. string arrays are concatenated into a single string. * if value_arr.dtype.char in ['S','U']: # <<<<<<<<<<<<<< @@ -18116,7 +18116,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_t_9 = (__pyx_t_7 != 0); if (__pyx_t_9) { - /* "netCDF4.pyx":1041 + /* "netCDF4/_netCDF4.pyx":1041 * # write as a string. string arrays are concatenated into a single string. * if value_arr.dtype.char in ['S','U']: * if not value_arr.shape: # <<<<<<<<<<<<<< @@ -18130,7 +18130,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_t_7 = ((!__pyx_t_9) != 0); if (__pyx_t_7) { - /* "netCDF4.pyx":1042 + /* "netCDF4/_netCDF4.pyx":1042 * if value_arr.dtype.char in ['S','U']: * if not value_arr.shape: * dats = _strencode(value_arr.item()) # <<<<<<<<<<<<<< @@ -18157,7 +18157,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = __pyx_f_7netCDF4__strencode(__pyx_t_1, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1042; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __pyx_f_7netCDF4_8_netCDF4__strencode(__pyx_t_1, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1042; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_dats = __pyx_t_5; @@ -18166,7 +18166,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va } /*else*/ { - /* "netCDF4.pyx":1044 + /* "netCDF4/_netCDF4.pyx":1044 * dats = _strencode(value_arr.item()) * else: * value_arr1 = value_arr.ravel() # <<<<<<<<<<<<<< @@ -18196,7 +18196,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_v_value_arr1 = __pyx_t_5; __pyx_t_5 = 0; - /* "netCDF4.pyx":1045 + /* "netCDF4/_netCDF4.pyx":1045 * else: * value_arr1 = value_arr.ravel() * dats = _strencode(''.join(value_arr1.tolist())) # <<<<<<<<<<<<<< @@ -18226,7 +18226,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_t_1 = __Pyx_PyString_Join(__pyx_kp_s__16, __pyx_t_5); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1045; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = __pyx_f_7netCDF4__strencode(__pyx_t_1, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1045; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __pyx_f_7netCDF4_8_netCDF4__strencode(__pyx_t_1, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1045; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_dats = __pyx_t_5; @@ -18234,7 +18234,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va } __pyx_L12:; - /* "netCDF4.pyx":1046 + /* "netCDF4/_netCDF4.pyx":1046 * value_arr1 = value_arr.ravel() * dats = _strencode(''.join(value_arr1.tolist())) * lenarr = len(dats) # <<<<<<<<<<<<<< @@ -18244,7 +18244,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_t_10 = PyObject_Length(__pyx_v_dats); if (unlikely(__pyx_t_10 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1046; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_lenarr = __pyx_t_10; - /* "netCDF4.pyx":1047 + /* "netCDF4/_netCDF4.pyx":1047 * dats = _strencode(''.join(value_arr1.tolist())) * lenarr = len(dats) * datstring = dats # <<<<<<<<<<<<<< @@ -18254,7 +18254,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_v_dats); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1047; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_datstring = __pyx_t_2; - /* "netCDF4.pyx":1048 + /* "netCDF4/_netCDF4.pyx":1048 * lenarr = len(dats) * datstring = dats * if lenarr == 0: # <<<<<<<<<<<<<< @@ -18264,7 +18264,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_t_7 = ((__pyx_v_lenarr == 0) != 0); if (__pyx_t_7) { - /* "netCDF4.pyx":1050 + /* "netCDF4/_netCDF4.pyx":1050 * if lenarr == 0: * # write null byte * lenarr=1; datstring = '\x00' # <<<<<<<<<<<<<< @@ -18277,7 +18277,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va } __pyx_L13:; - /* "netCDF4.pyx":1051 + /* "netCDF4/_netCDF4.pyx":1051 * # write null byte * lenarr=1; datstring = '\x00' * if value_arr.dtype.char == 'U' and not is_netcdf3: # <<<<<<<<<<<<<< @@ -18302,7 +18302,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_L15_bool_binop_done:; if (__pyx_t_7) { - /* "netCDF4.pyx":1053 + /* "netCDF4/_netCDF4.pyx":1053 * if value_arr.dtype.char == 'U' and not is_netcdf3: * # a unicode string, use put_att_string (if NETCDF4 file). * ierr = nc_put_att_string(grp._grpid, varid, attname, 1, &datstring) # <<<<<<<<<<<<<< @@ -18318,7 +18318,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va } /*else*/ { - /* "netCDF4.pyx":1055 + /* "netCDF4/_netCDF4.pyx":1055 * ierr = nc_put_att_string(grp._grpid, varid, attname, 1, &datstring) * else: * ierr = nc_put_att_text(grp._grpid, varid, attname, lenarr, datstring) # <<<<<<<<<<<<<< @@ -18333,7 +18333,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va } __pyx_L14:; - /* "netCDF4.pyx":1056 + /* "netCDF4/_netCDF4.pyx":1056 * else: * ierr = nc_put_att_text(grp._grpid, varid, attname, lenarr, datstring) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -18343,7 +18343,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_t_7 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_7) { - /* "netCDF4.pyx":1057 + /* "netCDF4/_netCDF4.pyx":1057 * ierr = nc_put_att_text(grp._grpid, varid, attname, lenarr, datstring) * if ierr != NC_NOERR: * raise AttributeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -18370,7 +18370,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va } /*else*/ { - /* "netCDF4.pyx":1060 + /* "netCDF4/_netCDF4.pyx":1060 * # a 'regular' array type ('f4','i4','f8' etc) * else: * if value_arr.dtype.kind == 'V': # compound attribute. # <<<<<<<<<<<<<< @@ -18386,7 +18386,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_7) { - /* "netCDF4.pyx":1061 + /* "netCDF4/_netCDF4.pyx":1061 * else: * if value_arr.dtype.kind == 'V': # compound attribute. * xtype = _find_cmptype(grp,value_arr.dtype) # <<<<<<<<<<<<<< @@ -18395,7 +18395,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va */ __pyx_t_5 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_value_arr), __pyx_n_s_dtype); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1061; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); - __pyx_t_1 = __pyx_f_7netCDF4__find_cmptype(__pyx_v_grp, __pyx_t_5); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1061; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_7netCDF4_8_netCDF4__find_cmptype(__pyx_v_grp, __pyx_t_5); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1061; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_xtype = __pyx_t_1; @@ -18403,7 +18403,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va goto __pyx_L18; } - /* "netCDF4.pyx":1062 + /* "netCDF4/_netCDF4.pyx":1062 * if value_arr.dtype.kind == 'V': # compound attribute. * xtype = _find_cmptype(grp,value_arr.dtype) * elif value_arr.dtype.str[1:] not in _supportedtypes: # <<<<<<<<<<<<<< @@ -18426,7 +18426,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_t_8 = (__pyx_t_7 != 0); if (__pyx_t_8) { - /* "netCDF4.pyx":1063 + /* "netCDF4/_netCDF4.pyx":1063 * xtype = _find_cmptype(grp,value_arr.dtype) * elif value_arr.dtype.str[1:] not in _supportedtypes: * raise TypeError, 'illegal data type for attribute, must be one of %s, got %s' % (_supportedtypes, value_arr.dtype.str[1:]) # <<<<<<<<<<<<<< @@ -18460,7 +18460,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va } /*else*/ { - /* "netCDF4.pyx":1065 + /* "netCDF4/_netCDF4.pyx":1065 * raise TypeError, 'illegal data type for attribute, must be one of %s, got %s' % (_supportedtypes, value_arr.dtype.str[1:]) * else: * xtype = _nptonctype[value_arr.dtype.str[1:]] # <<<<<<<<<<<<<< @@ -18486,7 +18486,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va } __pyx_L18:; - /* "netCDF4.pyx":1066 + /* "netCDF4/_netCDF4.pyx":1066 * else: * xtype = _nptonctype[value_arr.dtype.str[1:]] * lenarr = PyArray_SIZE(value_arr) # <<<<<<<<<<<<<< @@ -18495,7 +18495,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va */ __pyx_v_lenarr = PyArray_SIZE(__pyx_v_value_arr); - /* "netCDF4.pyx":1067 + /* "netCDF4/_netCDF4.pyx":1067 * xtype = _nptonctype[value_arr.dtype.str[1:]] * lenarr = PyArray_SIZE(value_arr) * ierr = nc_put_att(grp._grpid, varid, attname, xtype, lenarr, value_arr.data) # <<<<<<<<<<<<<< @@ -18509,7 +18509,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_t_11 = __Pyx_PyInt_As_nc_type(__pyx_v_xtype); if (unlikely((__pyx_t_11 == (nc_type)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1067; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_ierr = nc_put_att(__pyx_t_6, __pyx_v_varid, __pyx_v_attname, __pyx_t_11, __pyx_v_lenarr, __pyx_v_value_arr->data); - /* "netCDF4.pyx":1068 + /* "netCDF4/_netCDF4.pyx":1068 * lenarr = PyArray_SIZE(value_arr) * ierr = nc_put_att(grp._grpid, varid, attname, xtype, lenarr, value_arr.data) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -18519,7 +18519,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va __pyx_t_8 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_8) { - /* "netCDF4.pyx":1069 + /* "netCDF4/_netCDF4.pyx":1069 * ierr = nc_put_att(grp._grpid, varid, attname, xtype, lenarr, value_arr.data) * if ierr != NC_NOERR: * raise AttributeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -18545,7 +18545,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va } __pyx_L9:; - /* "netCDF4.pyx":1020 + /* "netCDF4/_netCDF4.pyx":1020 * return 'UNDEFINED' * * cdef _set_att(grp, int varid, name, value): # <<<<<<<<<<<<<< @@ -18561,7 +18561,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); - __Pyx_AddTraceback("netCDF4._set_att", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._set_att", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_value_arr); @@ -18576,7 +18576,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va return __pyx_r; } -/* "netCDF4.pyx":1071 +/* "netCDF4/_netCDF4.pyx":1071 * raise AttributeError((nc_strerror(ierr)).decode('ascii')) * * cdef _get_types(group): # <<<<<<<<<<<<<< @@ -18584,7 +18584,7 @@ static PyObject *__pyx_f_7netCDF4__set_att(PyObject *__pyx_v_grp, int __pyx_v_va * # compound or VLEN types in a L{Group} or L{Dataset}. */ -static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { +static PyObject *__pyx_f_7netCDF4_8_netCDF4__get_types(PyObject *__pyx_v_group) { int __pyx_v_ierr; int __pyx_v_ntypes; int __pyx_v_classp; @@ -18619,7 +18619,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_get_types", 0); - /* "netCDF4.pyx":1078 + /* "netCDF4/_netCDF4.pyx":1078 * cdef nc_type typeids[NC_MAX_VARS] * cdef char namstring[NC_MAX_NAME+1] * _grpid = group._grpid # <<<<<<<<<<<<<< @@ -18632,7 +18632,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v__grpid = __pyx_t_2; - /* "netCDF4.pyx":1080 + /* "netCDF4/_netCDF4.pyx":1080 * _grpid = group._grpid * # get the number of user defined types in this group. * with nogil: # <<<<<<<<<<<<<< @@ -18646,7 +18646,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { #endif /*try:*/ { - /* "netCDF4.pyx":1081 + /* "netCDF4/_netCDF4.pyx":1081 * # get the number of user defined types in this group. * with nogil: * ierr = nc_inq_typeids(_grpid, &ntypes, typeids) # <<<<<<<<<<<<<< @@ -18656,7 +18656,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { __pyx_v_ierr = nc_inq_typeids(__pyx_v__grpid, (&__pyx_v_ntypes), __pyx_v_typeids); } - /* "netCDF4.pyx":1080 + /* "netCDF4/_netCDF4.pyx":1080 * _grpid = group._grpid * # get the number of user defined types in this group. * with nogil: # <<<<<<<<<<<<<< @@ -18674,7 +18674,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { } } - /* "netCDF4.pyx":1082 + /* "netCDF4/_netCDF4.pyx":1082 * with nogil: * ierr = nc_inq_typeids(_grpid, &ntypes, typeids) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -18684,7 +18684,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":1083 + /* "netCDF4/_netCDF4.pyx":1083 * ierr = nc_inq_typeids(_grpid, &ntypes, typeids) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -18708,7 +18708,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1083; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":1085 + /* "netCDF4/_netCDF4.pyx":1085 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * # create empty dictionary for CompoundType instances. * cmptypes = OrderedDict() # <<<<<<<<<<<<<< @@ -18738,7 +18738,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { __pyx_v_cmptypes = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":1086 + /* "netCDF4/_netCDF4.pyx":1086 * # create empty dictionary for CompoundType instances. * cmptypes = OrderedDict() * vltypes = OrderedDict() # <<<<<<<<<<<<<< @@ -18768,7 +18768,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { __pyx_v_vltypes = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":1087 + /* "netCDF4/_netCDF4.pyx":1087 * cmptypes = OrderedDict() * vltypes = OrderedDict() * if ntypes > 0: # <<<<<<<<<<<<<< @@ -18778,7 +18778,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { __pyx_t_3 = ((__pyx_v_ntypes > 0) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":1088 + /* "netCDF4/_netCDF4.pyx":1088 * vltypes = OrderedDict() * if ntypes > 0: * for n from 0 <= n < ntypes: # <<<<<<<<<<<<<< @@ -18788,7 +18788,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { __pyx_t_2 = __pyx_v_ntypes; for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_2; __pyx_v_n++) { - /* "netCDF4.pyx":1089 + /* "netCDF4/_netCDF4.pyx":1089 * if ntypes > 0: * for n from 0 <= n < ntypes: * xtype = typeids[n] # <<<<<<<<<<<<<< @@ -18797,7 +18797,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { */ __pyx_v_xtype = (__pyx_v_typeids[__pyx_v_n]); - /* "netCDF4.pyx":1090 + /* "netCDF4/_netCDF4.pyx":1090 * for n from 0 <= n < ntypes: * xtype = typeids[n] * with nogil: # <<<<<<<<<<<<<< @@ -18811,7 +18811,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { #endif /*try:*/ { - /* "netCDF4.pyx":1091 + /* "netCDF4/_netCDF4.pyx":1091 * xtype = typeids[n] * with nogil: * ierr = nc_inq_user_type(_grpid, xtype, namstring, # <<<<<<<<<<<<<< @@ -18821,7 +18821,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { __pyx_v_ierr = nc_inq_user_type(__pyx_v__grpid, __pyx_v_xtype, __pyx_v_namstring, NULL, NULL, NULL, (&__pyx_v_classp)); } - /* "netCDF4.pyx":1090 + /* "netCDF4/_netCDF4.pyx":1090 * for n from 0 <= n < ntypes: * xtype = typeids[n] * with nogil: # <<<<<<<<<<<<<< @@ -18839,7 +18839,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { } } - /* "netCDF4.pyx":1093 + /* "netCDF4/_netCDF4.pyx":1093 * ierr = nc_inq_user_type(_grpid, xtype, namstring, * NULL,NULL,NULL,&classp) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -18849,7 +18849,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":1094 + /* "netCDF4/_netCDF4.pyx":1094 * NULL,NULL,NULL,&classp) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -18873,7 +18873,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1094; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":1105 + /* "netCDF4/_netCDF4.pyx":1105 * continue * cmptypes[name] = cmptype * elif classp == NC_VLEN: # a vlen # <<<<<<<<<<<<<< @@ -18882,7 +18882,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { */ switch (__pyx_v_classp) { - /* "netCDF4.pyx":1095 + /* "netCDF4/_netCDF4.pyx":1095 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * if classp == NC_COMPOUND: # a compound # <<<<<<<<<<<<<< @@ -18891,7 +18891,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { */ case NC_COMPOUND: - /* "netCDF4.pyx":1096 + /* "netCDF4/_netCDF4.pyx":1096 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * if classp == NC_COMPOUND: # a compound * name = namstring.decode(default_encoding,unicode_error) # <<<<<<<<<<<<<< @@ -18937,7 +18937,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":1099 + /* "netCDF4/_netCDF4.pyx":1099 * # read the compound type info from the file, * # create a CompoundType instance from it. * try: # <<<<<<<<<<<<<< @@ -18951,14 +18951,14 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { __Pyx_XGOTREF(__pyx_t_13); /*try:*/ { - /* "netCDF4.pyx":1100 + /* "netCDF4/_netCDF4.pyx":1100 * # create a CompoundType instance from it. * try: * cmptype = _read_compound(group, xtype) # <<<<<<<<<<<<<< * except KeyError: * #print 'WARNING: unsupported compound type, skipping...' */ - __pyx_t_1 = __pyx_f_7netCDF4__read_compound(__pyx_v_group, __pyx_v_xtype, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1100; __pyx_clineno = __LINE__; goto __pyx_L16_error;} + __pyx_t_1 = __pyx_f_7netCDF4_8_netCDF4__read_compound(__pyx_v_group, __pyx_v_xtype, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1100; __pyx_clineno = __LINE__; goto __pyx_L16_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_XDECREF_SET(__pyx_v_cmptype, __pyx_t_1); __pyx_t_1 = 0; @@ -18975,7 +18975,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":1101 + /* "netCDF4/_netCDF4.pyx":1101 * try: * cmptype = _read_compound(group, xtype) * except KeyError: # <<<<<<<<<<<<<< @@ -18984,13 +18984,13 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { */ __pyx_t_14 = PyErr_ExceptionMatches(__pyx_builtin_KeyError); if (__pyx_t_14) { - __Pyx_AddTraceback("netCDF4._get_types", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._get_types", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_6, &__pyx_t_10) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1101; __pyx_clineno = __LINE__; goto __pyx_L18_except_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_10); - /* "netCDF4.pyx":1103 + /* "netCDF4/_netCDF4.pyx":1103 * except KeyError: * #print 'WARNING: unsupported compound type, skipping...' * continue # <<<<<<<<<<<<<< @@ -19020,7 +19020,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { __pyx_L23_try_end:; } - /* "netCDF4.pyx":1104 + /* "netCDF4/_netCDF4.pyx":1104 * #print 'WARNING: unsupported compound type, skipping...' * continue * cmptypes[name] = cmptype # <<<<<<<<<<<<<< @@ -19030,7 +19030,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { if (unlikely(PyObject_SetItem(__pyx_v_cmptypes, __pyx_v_name, __pyx_v_cmptype) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1104; __pyx_clineno = __LINE__; goto __pyx_L1_error;} break; - /* "netCDF4.pyx":1105 + /* "netCDF4/_netCDF4.pyx":1105 * continue * cmptypes[name] = cmptype * elif classp == NC_VLEN: # a vlen # <<<<<<<<<<<<<< @@ -19039,7 +19039,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { */ case NC_VLEN: - /* "netCDF4.pyx":1106 + /* "netCDF4/_netCDF4.pyx":1106 * cmptypes[name] = cmptype * elif classp == NC_VLEN: # a vlen * name = namstring.decode(default_encoding,unicode_error) # <<<<<<<<<<<<<< @@ -19085,7 +19085,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_10); __pyx_t_10 = 0; - /* "netCDF4.pyx":1109 + /* "netCDF4/_netCDF4.pyx":1109 * # read the VLEN type info from the file, * # create a VLType instance from it. * try: # <<<<<<<<<<<<<< @@ -19099,14 +19099,14 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { __Pyx_XGOTREF(__pyx_t_11); /*try:*/ { - /* "netCDF4.pyx":1110 + /* "netCDF4/_netCDF4.pyx":1110 * # create a VLType instance from it. * try: * vltype = _read_vlen(group, xtype) # <<<<<<<<<<<<<< * except KeyError: * #print 'WARNING: unsupported VLEN type, skipping...' */ - __pyx_t_10 = __pyx_f_7netCDF4__read_vlen(__pyx_v_group, __pyx_v_xtype, NULL); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1110; __pyx_clineno = __LINE__; goto __pyx_L26_error;} + __pyx_t_10 = __pyx_f_7netCDF4_8_netCDF4__read_vlen(__pyx_v_group, __pyx_v_xtype, NULL); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1110; __pyx_clineno = __LINE__; goto __pyx_L26_error;} __Pyx_GOTREF(__pyx_t_10); __Pyx_XDECREF_SET(__pyx_v_vltype, __pyx_t_10); __pyx_t_10 = 0; @@ -19123,7 +19123,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; - /* "netCDF4.pyx":1111 + /* "netCDF4/_netCDF4.pyx":1111 * try: * vltype = _read_vlen(group, xtype) * except KeyError: # <<<<<<<<<<<<<< @@ -19132,13 +19132,13 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { */ __pyx_t_14 = PyErr_ExceptionMatches(__pyx_builtin_KeyError); if (__pyx_t_14) { - __Pyx_AddTraceback("netCDF4._get_types", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._get_types", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_10, &__pyx_t_1, &__pyx_t_8) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1111; __pyx_clineno = __LINE__; goto __pyx_L28_except_error;} __Pyx_GOTREF(__pyx_t_10); __Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_8); - /* "netCDF4.pyx":1113 + /* "netCDF4/_netCDF4.pyx":1113 * except KeyError: * #print 'WARNING: unsupported VLEN type, skipping...' * continue # <<<<<<<<<<<<<< @@ -19168,7 +19168,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { __pyx_L33_try_end:; } - /* "netCDF4.pyx":1114 + /* "netCDF4/_netCDF4.pyx":1114 * #print 'WARNING: unsupported VLEN type, skipping...' * continue * vltypes[name] = vltype # <<<<<<<<<<<<<< @@ -19185,7 +19185,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { } __pyx_L7:; - /* "netCDF4.pyx":1116 + /* "netCDF4/_netCDF4.pyx":1116 * vltypes[name] = vltype * pass * return cmptypes, vltypes # <<<<<<<<<<<<<< @@ -19205,7 +19205,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { __pyx_t_8 = 0; goto __pyx_L0; - /* "netCDF4.pyx":1071 + /* "netCDF4/_netCDF4.pyx":1071 * raise AttributeError((nc_strerror(ierr)).decode('ascii')) * * cdef _get_types(group): # <<<<<<<<<<<<<< @@ -19221,7 +19221,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_10); - __Pyx_AddTraceback("netCDF4._get_types", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._get_types", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cmptypes); @@ -19234,7 +19234,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { return __pyx_r; } -/* "netCDF4.pyx":1118 +/* "netCDF4/_netCDF4.pyx":1118 * return cmptypes, vltypes * * cdef _get_dims(group): # <<<<<<<<<<<<<< @@ -19242,7 +19242,7 @@ static PyObject *__pyx_f_7netCDF4__get_types(PyObject *__pyx_v_group) { * # dimensions in a L{Group} or Dataset */ -static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { +static PyObject *__pyx_f_7netCDF4_8_netCDF4__get_dims(PyObject *__pyx_v_group) { int __pyx_v_ierr; int __pyx_v_numdims; int __pyx_v_n; @@ -19268,7 +19268,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_get_dims", 0); - /* "netCDF4.pyx":1125 + /* "netCDF4/_netCDF4.pyx":1125 * cdef char namstring[NC_MAX_NAME+1] * # get number of dimensions in this Group. * _grpid = group._grpid # <<<<<<<<<<<<<< @@ -19281,7 +19281,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v__grpid = __pyx_t_2; - /* "netCDF4.pyx":1126 + /* "netCDF4/_netCDF4.pyx":1126 * # get number of dimensions in this Group. * _grpid = group._grpid * with nogil: # <<<<<<<<<<<<<< @@ -19295,7 +19295,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { #endif /*try:*/ { - /* "netCDF4.pyx":1127 + /* "netCDF4/_netCDF4.pyx":1127 * _grpid = group._grpid * with nogil: * ierr = nc_inq_ndims(_grpid, &numdims) # <<<<<<<<<<<<<< @@ -19305,7 +19305,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { __pyx_v_ierr = nc_inq_ndims(__pyx_v__grpid, (&__pyx_v_numdims)); } - /* "netCDF4.pyx":1126 + /* "netCDF4/_netCDF4.pyx":1126 * # get number of dimensions in this Group. * _grpid = group._grpid * with nogil: # <<<<<<<<<<<<<< @@ -19323,7 +19323,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { } } - /* "netCDF4.pyx":1128 + /* "netCDF4/_netCDF4.pyx":1128 * with nogil: * ierr = nc_inq_ndims(_grpid, &numdims) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -19333,7 +19333,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":1129 + /* "netCDF4/_netCDF4.pyx":1129 * ierr = nc_inq_ndims(_grpid, &numdims) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -19357,7 +19357,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1129; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":1131 + /* "netCDF4/_netCDF4.pyx":1131 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * # create empty dictionary for dimensions. * dimensions = OrderedDict() # <<<<<<<<<<<<<< @@ -19387,7 +19387,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { __pyx_v_dimensions = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":1132 + /* "netCDF4/_netCDF4.pyx":1132 * # create empty dictionary for dimensions. * dimensions = OrderedDict() * if numdims > 0: # <<<<<<<<<<<<<< @@ -19397,7 +19397,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { __pyx_t_3 = ((__pyx_v_numdims > 0) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":1133 + /* "netCDF4/_netCDF4.pyx":1133 * dimensions = OrderedDict() * if numdims > 0: * if group.data_model == 'NETCDF4': # <<<<<<<<<<<<<< @@ -19410,7 +19410,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_3) { - /* "netCDF4.pyx":1134 + /* "netCDF4/_netCDF4.pyx":1134 * if numdims > 0: * if group.data_model == 'NETCDF4': * with nogil: # <<<<<<<<<<<<<< @@ -19424,7 +19424,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { #endif /*try:*/ { - /* "netCDF4.pyx":1135 + /* "netCDF4/_netCDF4.pyx":1135 * if group.data_model == 'NETCDF4': * with nogil: * ierr = nc_inq_dimids(_grpid, &numdims, dimids, 0) # <<<<<<<<<<<<<< @@ -19434,7 +19434,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { __pyx_v_ierr = nc_inq_dimids(__pyx_v__grpid, (&__pyx_v_numdims), __pyx_v_dimids, 0); } - /* "netCDF4.pyx":1134 + /* "netCDF4/_netCDF4.pyx":1134 * if numdims > 0: * if group.data_model == 'NETCDF4': * with nogil: # <<<<<<<<<<<<<< @@ -19452,7 +19452,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { } } - /* "netCDF4.pyx":1136 + /* "netCDF4/_netCDF4.pyx":1136 * with nogil: * ierr = nc_inq_dimids(_grpid, &numdims, dimids, 0) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -19462,7 +19462,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":1137 + /* "netCDF4/_netCDF4.pyx":1137 * ierr = nc_inq_dimids(_grpid, &numdims, dimids, 0) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -19489,7 +19489,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { } /*else*/ { - /* "netCDF4.pyx":1139 + /* "netCDF4/_netCDF4.pyx":1139 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * else: * for n from 0 <= n < numdims: # <<<<<<<<<<<<<< @@ -19499,7 +19499,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { __pyx_t_2 = __pyx_v_numdims; for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_2; __pyx_v_n++) { - /* "netCDF4.pyx":1140 + /* "netCDF4/_netCDF4.pyx":1140 * else: * for n from 0 <= n < numdims: * dimids[n] = n # <<<<<<<<<<<<<< @@ -19511,7 +19511,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { } __pyx_L8:; - /* "netCDF4.pyx":1141 + /* "netCDF4/_netCDF4.pyx":1141 * for n from 0 <= n < numdims: * dimids[n] = n * for n from 0 <= n < numdims: # <<<<<<<<<<<<<< @@ -19521,7 +19521,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { __pyx_t_2 = __pyx_v_numdims; for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_2; __pyx_v_n++) { - /* "netCDF4.pyx":1142 + /* "netCDF4/_netCDF4.pyx":1142 * dimids[n] = n * for n from 0 <= n < numdims: * with nogil: # <<<<<<<<<<<<<< @@ -19535,7 +19535,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { #endif /*try:*/ { - /* "netCDF4.pyx":1143 + /* "netCDF4/_netCDF4.pyx":1143 * for n from 0 <= n < numdims: * with nogil: * ierr = nc_inq_dimname(_grpid, dimids[n], namstring) # <<<<<<<<<<<<<< @@ -19545,7 +19545,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { __pyx_v_ierr = nc_inq_dimname(__pyx_v__grpid, (__pyx_v_dimids[__pyx_v_n]), __pyx_v_namstring); } - /* "netCDF4.pyx":1142 + /* "netCDF4/_netCDF4.pyx":1142 * dimids[n] = n * for n from 0 <= n < numdims: * with nogil: # <<<<<<<<<<<<<< @@ -19563,7 +19563,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { } } - /* "netCDF4.pyx":1144 + /* "netCDF4/_netCDF4.pyx":1144 * with nogil: * ierr = nc_inq_dimname(_grpid, dimids[n], namstring) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -19573,7 +19573,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":1145 + /* "netCDF4/_netCDF4.pyx":1145 * ierr = nc_inq_dimname(_grpid, dimids[n], namstring) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -19597,7 +19597,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1145; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":1146 + /* "netCDF4/_netCDF4.pyx":1146 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * name = namstring.decode(default_encoding,unicode_error) # <<<<<<<<<<<<<< @@ -19643,7 +19643,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":1147 + /* "netCDF4/_netCDF4.pyx":1147 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * name = namstring.decode(default_encoding,unicode_error) * dimensions[name] = Dimension(group, name, id=dimids[n]) # <<<<<<<<<<<<<< @@ -19664,7 +19664,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { __Pyx_GOTREF(__pyx_t_10); if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_id, __pyx_t_10) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1147; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_10 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_Dimension)), __pyx_t_1, __pyx_t_6); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1147; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_10 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_Dimension)), __pyx_t_1, __pyx_t_6); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1147; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; @@ -19675,7 +19675,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { } __pyx_L7:; - /* "netCDF4.pyx":1148 + /* "netCDF4/_netCDF4.pyx":1148 * name = namstring.decode(default_encoding,unicode_error) * dimensions[name] = Dimension(group, name, id=dimids[n]) * return dimensions # <<<<<<<<<<<<<< @@ -19687,7 +19687,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { __pyx_r = __pyx_v_dimensions; goto __pyx_L0; - /* "netCDF4.pyx":1118 + /* "netCDF4/_netCDF4.pyx":1118 * return cmptypes, vltypes * * cdef _get_dims(group): # <<<<<<<<<<<<<< @@ -19703,7 +19703,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_10); - __Pyx_AddTraceback("netCDF4._get_dims", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._get_dims", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_dimensions); @@ -19713,7 +19713,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { return __pyx_r; } -/* "netCDF4.pyx":1150 +/* "netCDF4/_netCDF4.pyx":1150 * return dimensions * * cdef _get_grps(group): # <<<<<<<<<<<<<< @@ -19721,7 +19721,7 @@ static PyObject *__pyx_f_7netCDF4__get_dims(PyObject *__pyx_v_group) { * # groups in a L{Group} or Dataset */ -static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { +static PyObject *__pyx_f_7netCDF4_8_netCDF4__get_grps(PyObject *__pyx_v_group) { int __pyx_v_ierr; int __pyx_v_numgrps; int __pyx_v_n; @@ -19747,7 +19747,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_get_grps", 0); - /* "netCDF4.pyx":1157 + /* "netCDF4/_netCDF4.pyx":1157 * cdef char namstring[NC_MAX_NAME+1] * # get number of groups in this Group. * _grpid = group._grpid # <<<<<<<<<<<<<< @@ -19760,7 +19760,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v__grpid = __pyx_t_2; - /* "netCDF4.pyx":1158 + /* "netCDF4/_netCDF4.pyx":1158 * # get number of groups in this Group. * _grpid = group._grpid * with nogil: # <<<<<<<<<<<<<< @@ -19774,7 +19774,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { #endif /*try:*/ { - /* "netCDF4.pyx":1159 + /* "netCDF4/_netCDF4.pyx":1159 * _grpid = group._grpid * with nogil: * ierr = nc_inq_grps(_grpid, &numgrps, NULL) # <<<<<<<<<<<<<< @@ -19784,7 +19784,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { __pyx_v_ierr = nc_inq_grps(__pyx_v__grpid, (&__pyx_v_numgrps), NULL); } - /* "netCDF4.pyx":1158 + /* "netCDF4/_netCDF4.pyx":1158 * # get number of groups in this Group. * _grpid = group._grpid * with nogil: # <<<<<<<<<<<<<< @@ -19802,7 +19802,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { } } - /* "netCDF4.pyx":1160 + /* "netCDF4/_netCDF4.pyx":1160 * with nogil: * ierr = nc_inq_grps(_grpid, &numgrps, NULL) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -19812,7 +19812,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":1161 + /* "netCDF4/_netCDF4.pyx":1161 * ierr = nc_inq_grps(_grpid, &numgrps, NULL) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -19836,7 +19836,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1161; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":1163 + /* "netCDF4/_netCDF4.pyx":1163 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * # create dictionary containing L{Group} instances for groups in this group * groups = OrderedDict() # <<<<<<<<<<<<<< @@ -19866,7 +19866,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { __pyx_v_groups = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":1164 + /* "netCDF4/_netCDF4.pyx":1164 * # create dictionary containing L{Group} instances for groups in this group * groups = OrderedDict() * if numgrps > 0: # <<<<<<<<<<<<<< @@ -19876,7 +19876,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { __pyx_t_3 = ((__pyx_v_numgrps > 0) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":1165 + /* "netCDF4/_netCDF4.pyx":1165 * groups = OrderedDict() * if numgrps > 0: * grpids = malloc(sizeof(int) * numgrps) # <<<<<<<<<<<<<< @@ -19885,7 +19885,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { */ __pyx_v_grpids = ((int *)malloc(((sizeof(int)) * __pyx_v_numgrps))); - /* "netCDF4.pyx":1166 + /* "netCDF4/_netCDF4.pyx":1166 * if numgrps > 0: * grpids = malloc(sizeof(int) * numgrps) * with nogil: # <<<<<<<<<<<<<< @@ -19899,7 +19899,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { #endif /*try:*/ { - /* "netCDF4.pyx":1167 + /* "netCDF4/_netCDF4.pyx":1167 * grpids = malloc(sizeof(int) * numgrps) * with nogil: * ierr = nc_inq_grps(_grpid, NULL, grpids) # <<<<<<<<<<<<<< @@ -19909,7 +19909,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { __pyx_v_ierr = nc_inq_grps(__pyx_v__grpid, NULL, __pyx_v_grpids); } - /* "netCDF4.pyx":1166 + /* "netCDF4/_netCDF4.pyx":1166 * if numgrps > 0: * grpids = malloc(sizeof(int) * numgrps) * with nogil: # <<<<<<<<<<<<<< @@ -19927,7 +19927,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { } } - /* "netCDF4.pyx":1168 + /* "netCDF4/_netCDF4.pyx":1168 * with nogil: * ierr = nc_inq_grps(_grpid, NULL, grpids) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -19937,7 +19937,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":1169 + /* "netCDF4/_netCDF4.pyx":1169 * ierr = nc_inq_grps(_grpid, NULL, grpids) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -19961,7 +19961,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1169; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":1170 + /* "netCDF4/_netCDF4.pyx":1170 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * for n from 0 <= n < numgrps: # <<<<<<<<<<<<<< @@ -19971,7 +19971,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { __pyx_t_2 = __pyx_v_numgrps; for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_2; __pyx_v_n++) { - /* "netCDF4.pyx":1171 + /* "netCDF4/_netCDF4.pyx":1171 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * for n from 0 <= n < numgrps: * with nogil: # <<<<<<<<<<<<<< @@ -19985,7 +19985,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { #endif /*try:*/ { - /* "netCDF4.pyx":1172 + /* "netCDF4/_netCDF4.pyx":1172 * for n from 0 <= n < numgrps: * with nogil: * ierr = nc_inq_grpname(grpids[n], namstring) # <<<<<<<<<<<<<< @@ -19995,7 +19995,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { __pyx_v_ierr = nc_inq_grpname((__pyx_v_grpids[__pyx_v_n]), __pyx_v_namstring); } - /* "netCDF4.pyx":1171 + /* "netCDF4/_netCDF4.pyx":1171 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * for n from 0 <= n < numgrps: * with nogil: # <<<<<<<<<<<<<< @@ -20013,7 +20013,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { } } - /* "netCDF4.pyx":1173 + /* "netCDF4/_netCDF4.pyx":1173 * with nogil: * ierr = nc_inq_grpname(grpids[n], namstring) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -20023,7 +20023,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":1174 + /* "netCDF4/_netCDF4.pyx":1174 * ierr = nc_inq_grpname(grpids[n], namstring) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -20047,7 +20047,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1174; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":1175 + /* "netCDF4/_netCDF4.pyx":1175 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * name = namstring.decode(default_encoding,unicode_error) # <<<<<<<<<<<<<< @@ -20093,7 +20093,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":1176 + /* "netCDF4/_netCDF4.pyx":1176 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * name = namstring.decode(default_encoding,unicode_error) * groups[name] = Group(group, name, id=grpids[n]) # <<<<<<<<<<<<<< @@ -20114,7 +20114,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { __Pyx_GOTREF(__pyx_t_10); if (PyDict_SetItem(__pyx_t_6, __pyx_n_s_id, __pyx_t_10) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1176; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_10 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_Group)), __pyx_t_1, __pyx_t_6); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1176; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_10 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_Group)), __pyx_t_1, __pyx_t_6); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1176; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; @@ -20122,7 +20122,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; } - /* "netCDF4.pyx":1177 + /* "netCDF4/_netCDF4.pyx":1177 * name = namstring.decode(default_encoding,unicode_error) * groups[name] = Group(group, name, id=grpids[n]) * free(grpids) # <<<<<<<<<<<<<< @@ -20134,7 +20134,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { } __pyx_L7:; - /* "netCDF4.pyx":1178 + /* "netCDF4/_netCDF4.pyx":1178 * groups[name] = Group(group, name, id=grpids[n]) * free(grpids) * return groups # <<<<<<<<<<<<<< @@ -20146,7 +20146,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { __pyx_r = __pyx_v_groups; goto __pyx_L0; - /* "netCDF4.pyx":1150 + /* "netCDF4/_netCDF4.pyx":1150 * return dimensions * * cdef _get_grps(group): # <<<<<<<<<<<<<< @@ -20162,7 +20162,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_10); - __Pyx_AddTraceback("netCDF4._get_grps", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._get_grps", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_groups); @@ -20172,7 +20172,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { return __pyx_r; } -/* "netCDF4.pyx":1180 +/* "netCDF4/_netCDF4.pyx":1180 * return groups * * cdef _get_vars(group): # <<<<<<<<<<<<<< @@ -20180,7 +20180,7 @@ static PyObject *__pyx_f_7netCDF4__get_grps(PyObject *__pyx_v_group) { * # variables in a L{Group} or Dataset */ -static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { +static PyObject *__pyx_f_7netCDF4_8_netCDF4__get_vars(PyObject *__pyx_v_group) { int __pyx_v_ierr; int __pyx_v_numvars; int __pyx_v_n; @@ -20224,8 +20224,8 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { PyObject *__pyx_t_16 = NULL; PyObject *__pyx_t_17 = NULL; PyObject *__pyx_t_18 = NULL; - struct __pyx_opt_args_7netCDF4__read_compound __pyx_t_19; - struct __pyx_opt_args_7netCDF4__read_vlen __pyx_t_20; + struct __pyx_opt_args_7netCDF4_8_netCDF4__read_compound __pyx_t_19; + struct __pyx_opt_args_7netCDF4_8_netCDF4__read_vlen __pyx_t_20; PyObject *(*__pyx_t_21)(PyObject *); PyObject *(*__pyx_t_22)(PyObject *); int __pyx_t_23; @@ -20234,7 +20234,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_get_vars", 0); - /* "netCDF4.pyx":1191 + /* "netCDF4/_netCDF4.pyx":1191 * cdef char namstring_cmp[NC_MAX_NAME+1] * # get number of variables in this Group. * _grpid = group._grpid # <<<<<<<<<<<<<< @@ -20247,7 +20247,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v__grpid = __pyx_t_2; - /* "netCDF4.pyx":1192 + /* "netCDF4/_netCDF4.pyx":1192 * # get number of variables in this Group. * _grpid = group._grpid * with nogil: # <<<<<<<<<<<<<< @@ -20261,7 +20261,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { #endif /*try:*/ { - /* "netCDF4.pyx":1193 + /* "netCDF4/_netCDF4.pyx":1193 * _grpid = group._grpid * with nogil: * ierr = nc_inq_nvars(_grpid, &numvars) # <<<<<<<<<<<<<< @@ -20271,7 +20271,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_v_ierr = nc_inq_nvars(__pyx_v__grpid, (&__pyx_v_numvars)); } - /* "netCDF4.pyx":1192 + /* "netCDF4/_netCDF4.pyx":1192 * # get number of variables in this Group. * _grpid = group._grpid * with nogil: # <<<<<<<<<<<<<< @@ -20289,7 +20289,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { } } - /* "netCDF4.pyx":1194 + /* "netCDF4/_netCDF4.pyx":1194 * with nogil: * ierr = nc_inq_nvars(_grpid, &numvars) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -20299,7 +20299,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":1195 + /* "netCDF4/_netCDF4.pyx":1195 * ierr = nc_inq_nvars(_grpid, &numvars) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -20323,7 +20323,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1195; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":1197 + /* "netCDF4/_netCDF4.pyx":1197 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * # create empty dictionary for variables. * variables = OrderedDict() # <<<<<<<<<<<<<< @@ -20353,7 +20353,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_v_variables = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":1198 + /* "netCDF4/_netCDF4.pyx":1198 * # create empty dictionary for variables. * variables = OrderedDict() * if numvars > 0: # <<<<<<<<<<<<<< @@ -20363,7 +20363,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_t_3 = ((__pyx_v_numvars > 0) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":1200 + /* "netCDF4/_netCDF4.pyx":1200 * if numvars > 0: * # get variable ids. * varids = malloc(sizeof(int) * numvars) # <<<<<<<<<<<<<< @@ -20372,7 +20372,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { */ __pyx_v_varids = ((int *)malloc(((sizeof(int)) * __pyx_v_numvars))); - /* "netCDF4.pyx":1201 + /* "netCDF4/_netCDF4.pyx":1201 * # get variable ids. * varids = malloc(sizeof(int) * numvars) * if group.data_model == 'NETCDF4': # <<<<<<<<<<<<<< @@ -20385,7 +20385,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_3) { - /* "netCDF4.pyx":1202 + /* "netCDF4/_netCDF4.pyx":1202 * varids = malloc(sizeof(int) * numvars) * if group.data_model == 'NETCDF4': * with nogil: # <<<<<<<<<<<<<< @@ -20399,7 +20399,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { #endif /*try:*/ { - /* "netCDF4.pyx":1203 + /* "netCDF4/_netCDF4.pyx":1203 * if group.data_model == 'NETCDF4': * with nogil: * ierr = nc_inq_varids(_grpid, &numvars, varids) # <<<<<<<<<<<<<< @@ -20409,7 +20409,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_v_ierr = nc_inq_varids(__pyx_v__grpid, (&__pyx_v_numvars), __pyx_v_varids); } - /* "netCDF4.pyx":1202 + /* "netCDF4/_netCDF4.pyx":1202 * varids = malloc(sizeof(int) * numvars) * if group.data_model == 'NETCDF4': * with nogil: # <<<<<<<<<<<<<< @@ -20427,7 +20427,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { } } - /* "netCDF4.pyx":1204 + /* "netCDF4/_netCDF4.pyx":1204 * with nogil: * ierr = nc_inq_varids(_grpid, &numvars, varids) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -20437,7 +20437,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":1205 + /* "netCDF4/_netCDF4.pyx":1205 * ierr = nc_inq_varids(_grpid, &numvars, varids) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -20464,7 +20464,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { } /*else*/ { - /* "netCDF4.pyx":1207 + /* "netCDF4/_netCDF4.pyx":1207 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * else: * for n from 0 <= n < numvars: # <<<<<<<<<<<<<< @@ -20474,7 +20474,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_t_2 = __pyx_v_numvars; for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_2; __pyx_v_n++) { - /* "netCDF4.pyx":1208 + /* "netCDF4/_netCDF4.pyx":1208 * else: * for n from 0 <= n < numvars: * varids[n] = n # <<<<<<<<<<<<<< @@ -20486,7 +20486,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { } __pyx_L8:; - /* "netCDF4.pyx":1210 + /* "netCDF4/_netCDF4.pyx":1210 * varids[n] = n * # loop over variables. * for n from 0 <= n < numvars: # <<<<<<<<<<<<<< @@ -20496,7 +20496,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_t_2 = __pyx_v_numvars; for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_2; __pyx_v_n++) { - /* "netCDF4.pyx":1211 + /* "netCDF4/_netCDF4.pyx":1211 * # loop over variables. * for n from 0 <= n < numvars: * varid = varids[n] # <<<<<<<<<<<<<< @@ -20505,7 +20505,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { */ __pyx_v_varid = (__pyx_v_varids[__pyx_v_n]); - /* "netCDF4.pyx":1213 + /* "netCDF4/_netCDF4.pyx":1213 * varid = varids[n] * # get variable name. * with nogil: # <<<<<<<<<<<<<< @@ -20519,7 +20519,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { #endif /*try:*/ { - /* "netCDF4.pyx":1214 + /* "netCDF4/_netCDF4.pyx":1214 * # get variable name. * with nogil: * ierr = nc_inq_varname(_grpid, varid, namstring) # <<<<<<<<<<<<<< @@ -20529,7 +20529,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_v_ierr = nc_inq_varname(__pyx_v__grpid, __pyx_v_varid, __pyx_v_namstring); } - /* "netCDF4.pyx":1213 + /* "netCDF4/_netCDF4.pyx":1213 * varid = varids[n] * # get variable name. * with nogil: # <<<<<<<<<<<<<< @@ -20547,7 +20547,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { } } - /* "netCDF4.pyx":1215 + /* "netCDF4/_netCDF4.pyx":1215 * with nogil: * ierr = nc_inq_varname(_grpid, varid, namstring) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -20557,7 +20557,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":1216 + /* "netCDF4/_netCDF4.pyx":1216 * ierr = nc_inq_varname(_grpid, varid, namstring) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -20581,7 +20581,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1216; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":1217 + /* "netCDF4/_netCDF4.pyx":1217 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * name = namstring.decode(default_encoding,unicode_error) # <<<<<<<<<<<<<< @@ -20627,7 +20627,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":1218 + /* "netCDF4/_netCDF4.pyx":1218 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * name = namstring.decode(default_encoding,unicode_error) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -20637,7 +20637,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":1219 + /* "netCDF4/_netCDF4.pyx":1219 * name = namstring.decode(default_encoding,unicode_error) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -20661,7 +20661,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1219; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":1221 + /* "netCDF4/_netCDF4.pyx":1221 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * # get variable type. * with nogil: # <<<<<<<<<<<<<< @@ -20675,7 +20675,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { #endif /*try:*/ { - /* "netCDF4.pyx":1222 + /* "netCDF4/_netCDF4.pyx":1222 * # get variable type. * with nogil: * ierr = nc_inq_vartype(_grpid, varid, &xtype) # <<<<<<<<<<<<<< @@ -20685,7 +20685,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_v_ierr = nc_inq_vartype(__pyx_v__grpid, __pyx_v_varid, (&__pyx_v_xtype)); } - /* "netCDF4.pyx":1221 + /* "netCDF4/_netCDF4.pyx":1221 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * # get variable type. * with nogil: # <<<<<<<<<<<<<< @@ -20703,7 +20703,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { } } - /* "netCDF4.pyx":1223 + /* "netCDF4/_netCDF4.pyx":1223 * with nogil: * ierr = nc_inq_vartype(_grpid, varid, &xtype) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -20713,7 +20713,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":1224 + /* "netCDF4/_netCDF4.pyx":1224 * ierr = nc_inq_vartype(_grpid, varid, &xtype) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -20737,7 +20737,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1224; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":1226 + /* "netCDF4/_netCDF4.pyx":1226 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * # get endian-ness of variable. * endianness = None # <<<<<<<<<<<<<< @@ -20747,7 +20747,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __Pyx_INCREF(Py_None); __Pyx_XDECREF_SET(__pyx_v_endianness, Py_None); - /* "netCDF4.pyx":1227 + /* "netCDF4/_netCDF4.pyx":1227 * # get endian-ness of variable. * endianness = None * with nogil: # <<<<<<<<<<<<<< @@ -20761,7 +20761,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { #endif /*try:*/ { - /* "netCDF4.pyx":1228 + /* "netCDF4/_netCDF4.pyx":1228 * endianness = None * with nogil: * ierr = nc_inq_var_endian(_grpid, varid, &iendian) # <<<<<<<<<<<<<< @@ -20771,7 +20771,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_v_ierr = nc_inq_var_endian(__pyx_v__grpid, __pyx_v_varid, (&__pyx_v_iendian)); } - /* "netCDF4.pyx":1227 + /* "netCDF4/_netCDF4.pyx":1227 * # get endian-ness of variable. * endianness = None * with nogil: # <<<<<<<<<<<<<< @@ -20789,7 +20789,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { } } - /* "netCDF4.pyx":1229 + /* "netCDF4/_netCDF4.pyx":1229 * with nogil: * ierr = nc_inq_var_endian(_grpid, varid, &iendian) * if ierr == NC_NOERR: # <<<<<<<<<<<<<< @@ -20799,7 +20799,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_t_3 = ((__pyx_v_ierr == NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":1232 + /* "netCDF4/_netCDF4.pyx":1232 * if iendian == NC_ENDIAN_LITTLE: * endianness = '<' * elif iendian == NC_ENDIAN_BIG: # <<<<<<<<<<<<<< @@ -20808,7 +20808,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { */ switch (__pyx_v_iendian) { - /* "netCDF4.pyx":1230 + /* "netCDF4/_netCDF4.pyx":1230 * ierr = nc_inq_var_endian(_grpid, varid, &iendian) * if ierr == NC_NOERR: * if iendian == NC_ENDIAN_LITTLE: # <<<<<<<<<<<<<< @@ -20817,7 +20817,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { */ case NC_ENDIAN_LITTLE: - /* "netCDF4.pyx":1231 + /* "netCDF4/_netCDF4.pyx":1231 * if ierr == NC_NOERR: * if iendian == NC_ENDIAN_LITTLE: * endianness = '<' # <<<<<<<<<<<<<< @@ -20828,7 +20828,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __Pyx_DECREF_SET(__pyx_v_endianness, __pyx_kp_s__35); break; - /* "netCDF4.pyx":1232 + /* "netCDF4/_netCDF4.pyx":1232 * if iendian == NC_ENDIAN_LITTLE: * endianness = '<' * elif iendian == NC_ENDIAN_BIG: # <<<<<<<<<<<<<< @@ -20837,7 +20837,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { */ case NC_ENDIAN_BIG: - /* "netCDF4.pyx":1233 + /* "netCDF4/_netCDF4.pyx":1233 * endianness = '<' * elif iendian == NC_ENDIAN_BIG: * endianness = '>' # <<<<<<<<<<<<<< @@ -20853,7 +20853,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { } __pyx_L35:; - /* "netCDF4.pyx":1235 + /* "netCDF4/_netCDF4.pyx":1235 * endianness = '>' * # check to see if it is a supported user-defined type. * try: # <<<<<<<<<<<<<< @@ -20867,7 +20867,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __Pyx_XGOTREF(__pyx_t_13); /*try:*/ { - /* "netCDF4.pyx":1236 + /* "netCDF4/_netCDF4.pyx":1236 * # check to see if it is a supported user-defined type. * try: * datatype = _nctonptype[xtype] # <<<<<<<<<<<<<< @@ -20882,7 +20882,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __Pyx_XDECREF_SET(__pyx_v_datatype, __pyx_t_6); __pyx_t_6 = 0; - /* "netCDF4.pyx":1237 + /* "netCDF4/_netCDF4.pyx":1237 * try: * datatype = _nctonptype[xtype] * if endianness is not None: # <<<<<<<<<<<<<< @@ -20893,7 +20893,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_t_14 = (__pyx_t_3 != 0); if (__pyx_t_14) { - /* "netCDF4.pyx":1238 + /* "netCDF4/_netCDF4.pyx":1238 * datatype = _nctonptype[xtype] * if endianness is not None: * datatype = endianness + datatype # <<<<<<<<<<<<<< @@ -20920,7 +20920,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "netCDF4.pyx":1239 + /* "netCDF4/_netCDF4.pyx":1239 * if endianness is not None: * datatype = endianness + datatype * except KeyError: # <<<<<<<<<<<<<< @@ -20929,13 +20929,13 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { */ __pyx_t_15 = PyErr_ExceptionMatches(__pyx_builtin_KeyError); if (__pyx_t_15) { - __Pyx_AddTraceback("netCDF4._get_vars", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._get_vars", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_1, &__pyx_t_10) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1239; __pyx_clineno = __LINE__; goto __pyx_L38_except_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_10); - /* "netCDF4.pyx":1240 + /* "netCDF4/_netCDF4.pyx":1240 * datatype = endianness + datatype * except KeyError: * if xtype == NC_STRING: # <<<<<<<<<<<<<< @@ -20945,7 +20945,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_t_14 = ((__pyx_v_xtype == NC_STRING) != 0); if (__pyx_t_14) { - /* "netCDF4.pyx":1241 + /* "netCDF4/_netCDF4.pyx":1241 * except KeyError: * if xtype == NC_STRING: * datatype = str # <<<<<<<<<<<<<< @@ -20958,7 +20958,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { } /*else*/ { - /* "netCDF4.pyx":1243 + /* "netCDF4/_netCDF4.pyx":1243 * datatype = str * else: * with nogil: # <<<<<<<<<<<<<< @@ -20972,7 +20972,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { #endif /*try:*/ { - /* "netCDF4.pyx":1244 + /* "netCDF4/_netCDF4.pyx":1244 * else: * with nogil: * ierr = nc_inq_user_type(_grpid, xtype, namstring_cmp, # <<<<<<<<<<<<<< @@ -20982,7 +20982,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_v_ierr = nc_inq_user_type(__pyx_v__grpid, __pyx_v_xtype, __pyx_v_namstring_cmp, NULL, NULL, NULL, (&__pyx_v_classp)); } - /* "netCDF4.pyx":1243 + /* "netCDF4/_netCDF4.pyx":1243 * datatype = str * else: * with nogil: # <<<<<<<<<<<<<< @@ -21000,7 +21000,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { } } - /* "netCDF4.pyx":1253 + /* "netCDF4/_netCDF4.pyx":1253 * #print "WARNING: variable '%s' has unsupported compound datatype, skipping .." % name * continue * elif classp == NC_VLEN: # a compound type # <<<<<<<<<<<<<< @@ -21009,7 +21009,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { */ switch (__pyx_v_classp) { - /* "netCDF4.pyx":1246 + /* "netCDF4/_netCDF4.pyx":1246 * ierr = nc_inq_user_type(_grpid, xtype, namstring_cmp, * NULL, NULL, NULL, &classp) * if classp == NC_COMPOUND: # a compound type # <<<<<<<<<<<<<< @@ -21018,7 +21018,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { */ case NC_COMPOUND: - /* "netCDF4.pyx":1248 + /* "netCDF4/_netCDF4.pyx":1248 * if classp == NC_COMPOUND: # a compound type * # create CompoundType instance describing this compound type. * try: # <<<<<<<<<<<<<< @@ -21032,7 +21032,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __Pyx_XGOTREF(__pyx_t_18); /*try:*/ { - /* "netCDF4.pyx":1249 + /* "netCDF4/_netCDF4.pyx":1249 * # create CompoundType instance describing this compound type. * try: * datatype = _read_compound(group, xtype, endian=endianness) # <<<<<<<<<<<<<< @@ -21041,7 +21041,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { */ __pyx_t_19.__pyx_n = 1; __pyx_t_19.endian = __pyx_v_endianness; - __pyx_t_7 = __pyx_f_7netCDF4__read_compound(__pyx_v_group, __pyx_v_xtype, &__pyx_t_19); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1249; __pyx_clineno = __LINE__; goto __pyx_L53_error;} + __pyx_t_7 = __pyx_f_7netCDF4_8_netCDF4__read_compound(__pyx_v_group, __pyx_v_xtype, &__pyx_t_19); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1249; __pyx_clineno = __LINE__; goto __pyx_L53_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_XDECREF_SET(__pyx_v_datatype, __pyx_t_7); __pyx_t_7 = 0; @@ -21055,7 +21055,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":1250 + /* "netCDF4/_netCDF4.pyx":1250 * try: * datatype = _read_compound(group, xtype, endian=endianness) * except KeyError: # <<<<<<<<<<<<<< @@ -21064,13 +21064,13 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { */ __pyx_t_15 = PyErr_ExceptionMatches(__pyx_builtin_KeyError); if (__pyx_t_15) { - __Pyx_AddTraceback("netCDF4._get_vars", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._get_vars", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_5, &__pyx_t_8) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1250; __pyx_clineno = __LINE__; goto __pyx_L55_except_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_GOTREF(__pyx_t_5); __Pyx_GOTREF(__pyx_t_8); - /* "netCDF4.pyx":1252 + /* "netCDF4/_netCDF4.pyx":1252 * except KeyError: * #print "WARNING: variable '%s' has unsupported compound datatype, skipping .." % name * continue # <<<<<<<<<<<<<< @@ -21101,7 +21101,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { } break; - /* "netCDF4.pyx":1253 + /* "netCDF4/_netCDF4.pyx":1253 * #print "WARNING: variable '%s' has unsupported compound datatype, skipping .." % name * continue * elif classp == NC_VLEN: # a compound type # <<<<<<<<<<<<<< @@ -21110,7 +21110,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { */ case NC_VLEN: - /* "netCDF4.pyx":1255 + /* "netCDF4/_netCDF4.pyx":1255 * elif classp == NC_VLEN: # a compound type * # create VLType instance describing this compound type. * try: # <<<<<<<<<<<<<< @@ -21124,7 +21124,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __Pyx_XGOTREF(__pyx_t_16); /*try:*/ { - /* "netCDF4.pyx":1256 + /* "netCDF4/_netCDF4.pyx":1256 * # create VLType instance describing this compound type. * try: * datatype = _read_vlen(group, xtype, endian=endianness) # <<<<<<<<<<<<<< @@ -21133,7 +21133,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { */ __pyx_t_20.__pyx_n = 1; __pyx_t_20.endian = __pyx_v_endianness; - __pyx_t_8 = __pyx_f_7netCDF4__read_vlen(__pyx_v_group, __pyx_v_xtype, &__pyx_t_20); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1256; __pyx_clineno = __LINE__; goto __pyx_L63_error;} + __pyx_t_8 = __pyx_f_7netCDF4_8_netCDF4__read_vlen(__pyx_v_group, __pyx_v_xtype, &__pyx_t_20); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1256; __pyx_clineno = __LINE__; goto __pyx_L63_error;} __Pyx_GOTREF(__pyx_t_8); __Pyx_XDECREF_SET(__pyx_v_datatype, __pyx_t_8); __pyx_t_8 = 0; @@ -21147,7 +21147,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "netCDF4.pyx":1257 + /* "netCDF4/_netCDF4.pyx":1257 * try: * datatype = _read_vlen(group, xtype, endian=endianness) * except KeyError: # <<<<<<<<<<<<<< @@ -21156,13 +21156,13 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { */ __pyx_t_15 = PyErr_ExceptionMatches(__pyx_builtin_KeyError); if (__pyx_t_15) { - __Pyx_AddTraceback("netCDF4._get_vars", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._get_vars", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_8, &__pyx_t_5, &__pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1257; __pyx_clineno = __LINE__; goto __pyx_L65_except_error;} __Pyx_GOTREF(__pyx_t_8); __Pyx_GOTREF(__pyx_t_5); __Pyx_GOTREF(__pyx_t_7); - /* "netCDF4.pyx":1259 + /* "netCDF4/_netCDF4.pyx":1259 * except KeyError: * #print "WARNING: variable '%s' has unsupported VLEN datatype, skipping .." % name * continue # <<<<<<<<<<<<<< @@ -21194,7 +21194,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { break; default: - /* "netCDF4.pyx":1262 + /* "netCDF4/_netCDF4.pyx":1262 * else: * #print "WARNING: variable '%s' has unsupported datatype, skipping .." % name * continue # <<<<<<<<<<<<<< @@ -21237,7 +21237,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_L43_try_end:; } - /* "netCDF4.pyx":1264 + /* "netCDF4/_netCDF4.pyx":1264 * continue * # get number of dimensions. * with nogil: # <<<<<<<<<<<<<< @@ -21251,7 +21251,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { #endif /*try:*/ { - /* "netCDF4.pyx":1265 + /* "netCDF4/_netCDF4.pyx":1265 * # get number of dimensions. * with nogil: * ierr = nc_inq_varndims(_grpid, varid, &numdims) # <<<<<<<<<<<<<< @@ -21261,7 +21261,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_v_ierr = nc_inq_varndims(__pyx_v__grpid, __pyx_v_varid, (&__pyx_v_numdims)); } - /* "netCDF4.pyx":1264 + /* "netCDF4/_netCDF4.pyx":1264 * continue * # get number of dimensions. * with nogil: # <<<<<<<<<<<<<< @@ -21279,7 +21279,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { } } - /* "netCDF4.pyx":1266 + /* "netCDF4/_netCDF4.pyx":1266 * with nogil: * ierr = nc_inq_varndims(_grpid, varid, &numdims) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -21289,7 +21289,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_t_14 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_14) { - /* "netCDF4.pyx":1267 + /* "netCDF4/_netCDF4.pyx":1267 * ierr = nc_inq_varndims(_grpid, varid, &numdims) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -21313,7 +21313,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1267; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":1269 + /* "netCDF4/_netCDF4.pyx":1269 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * # get dimension ids. * with nogil: # <<<<<<<<<<<<<< @@ -21327,7 +21327,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { #endif /*try:*/ { - /* "netCDF4.pyx":1270 + /* "netCDF4/_netCDF4.pyx":1270 * # get dimension ids. * with nogil: * ierr = nc_inq_vardimid(_grpid, varid, dimids) # <<<<<<<<<<<<<< @@ -21337,7 +21337,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_v_ierr = nc_inq_vardimid(__pyx_v__grpid, __pyx_v_varid, __pyx_v_dimids); } - /* "netCDF4.pyx":1269 + /* "netCDF4/_netCDF4.pyx":1269 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * # get dimension ids. * with nogil: # <<<<<<<<<<<<<< @@ -21355,7 +21355,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { } } - /* "netCDF4.pyx":1271 + /* "netCDF4/_netCDF4.pyx":1271 * with nogil: * ierr = nc_inq_vardimid(_grpid, varid, dimids) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -21365,7 +21365,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_t_14 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_14) { - /* "netCDF4.pyx":1272 + /* "netCDF4/_netCDF4.pyx":1272 * ierr = nc_inq_vardimid(_grpid, varid, dimids) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -21389,7 +21389,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1272; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":1278 + /* "netCDF4/_netCDF4.pyx":1278 * # and so does it's parent - can a variable in grp1 * # use the 'foo' dimension from the parent? * dimensions = [] # <<<<<<<<<<<<<< @@ -21401,7 +21401,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __Pyx_XDECREF_SET(__pyx_v_dimensions, ((PyObject*)__pyx_t_10)); __pyx_t_10 = 0; - /* "netCDF4.pyx":1279 + /* "netCDF4/_netCDF4.pyx":1279 * # use the 'foo' dimension from the parent? * dimensions = [] * for nn from 0 <= nn < numdims: # <<<<<<<<<<<<<< @@ -21411,7 +21411,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_t_15 = __pyx_v_numdims; for (__pyx_v_nn = 0; __pyx_v_nn < __pyx_t_15; __pyx_v_nn++) { - /* "netCDF4.pyx":1280 + /* "netCDF4/_netCDF4.pyx":1280 * dimensions = [] * for nn from 0 <= nn < numdims: * grp = group # <<<<<<<<<<<<<< @@ -21421,7 +21421,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __Pyx_INCREF(__pyx_v_group); __Pyx_XDECREF_SET(__pyx_v_grp, __pyx_v_group); - /* "netCDF4.pyx":1281 + /* "netCDF4/_netCDF4.pyx":1281 * for nn from 0 <= nn < numdims: * grp = group * found = False # <<<<<<<<<<<<<< @@ -21430,7 +21430,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { */ __pyx_v_found = 0; - /* "netCDF4.pyx":1282 + /* "netCDF4/_netCDF4.pyx":1282 * grp = group * found = False * while not found: # <<<<<<<<<<<<<< @@ -21441,7 +21441,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_t_14 = ((!(__pyx_v_found != 0)) != 0); if (!__pyx_t_14) break; - /* "netCDF4.pyx":1283 + /* "netCDF4/_netCDF4.pyx":1283 * found = False * while not found: * for key, value in grp.dimensions.items(): # <<<<<<<<<<<<<< @@ -21564,7 +21564,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":1284 + /* "netCDF4/_netCDF4.pyx":1284 * while not found: * for key, value in grp.dimensions.items(): * if value._dimid == dimids[nn]: # <<<<<<<<<<<<<< @@ -21582,7 +21582,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_14) { - /* "netCDF4.pyx":1285 + /* "netCDF4/_netCDF4.pyx":1285 * for key, value in grp.dimensions.items(): * if value._dimid == dimids[nn]: * dimensions.append(key) # <<<<<<<<<<<<<< @@ -21591,7 +21591,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { */ __pyx_t_23 = __Pyx_PyList_Append(__pyx_v_dimensions, __pyx_v_key); if (unlikely(__pyx_t_23 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1285; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":1286 + /* "netCDF4/_netCDF4.pyx":1286 * if value._dimid == dimids[nn]: * dimensions.append(key) * found = True # <<<<<<<<<<<<<< @@ -21600,7 +21600,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { */ __pyx_v_found = 1; - /* "netCDF4.pyx":1287 + /* "netCDF4/_netCDF4.pyx":1287 * dimensions.append(key) * found = True * break # <<<<<<<<<<<<<< @@ -21610,7 +21610,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { goto __pyx_L90_break; } - /* "netCDF4.pyx":1283 + /* "netCDF4/_netCDF4.pyx":1283 * found = False * while not found: * for key, value in grp.dimensions.items(): # <<<<<<<<<<<<<< @@ -21621,7 +21621,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_L90_break:; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "netCDF4.pyx":1288 + /* "netCDF4/_netCDF4.pyx":1288 * found = True * break * grp = grp.parent # <<<<<<<<<<<<<< @@ -21635,7 +21635,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { } } - /* "netCDF4.pyx":1290 + /* "netCDF4/_netCDF4.pyx":1290 * grp = grp.parent * # create new variable instance. * if endianness == '>': # <<<<<<<<<<<<<< @@ -21645,7 +21645,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_t_14 = (__Pyx_PyString_Equals(__pyx_v_endianness, __pyx_kp_s__36, Py_EQ)); if (unlikely(__pyx_t_14 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1290; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_14) { - /* "netCDF4.pyx":1291 + /* "netCDF4/_netCDF4.pyx":1291 * # create new variable instance. * if endianness == '>': * variables[name] = Variable(group, name, datatype, dimensions, id=varid, endian='big') # <<<<<<<<<<<<<< @@ -21673,7 +21673,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_id, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1291; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_endian, __pyx_n_s_big) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1291; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_Variable)), __pyx_t_6, __pyx_t_1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1291; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_Variable)), __pyx_t_6, __pyx_t_1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1291; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -21682,7 +21682,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { goto __pyx_L94; } - /* "netCDF4.pyx":1292 + /* "netCDF4/_netCDF4.pyx":1292 * if endianness == '>': * variables[name] = Variable(group, name, datatype, dimensions, id=varid, endian='big') * elif endianness == '<': # <<<<<<<<<<<<<< @@ -21692,7 +21692,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_t_14 = (__Pyx_PyString_Equals(__pyx_v_endianness, __pyx_kp_s__35, Py_EQ)); if (unlikely(__pyx_t_14 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1292; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_14) { - /* "netCDF4.pyx":1293 + /* "netCDF4/_netCDF4.pyx":1293 * variables[name] = Variable(group, name, datatype, dimensions, id=varid, endian='big') * elif endianness == '<': * variables[name] = Variable(group, name, datatype, dimensions, id=varid, endian='little') # <<<<<<<<<<<<<< @@ -21720,7 +21720,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_id, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1293; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_endian, __pyx_n_s_little) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1293; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_Variable)), __pyx_t_7, __pyx_t_1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1293; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_Variable)), __pyx_t_7, __pyx_t_1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1293; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -21730,7 +21730,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { } /*else*/ { - /* "netCDF4.pyx":1295 + /* "netCDF4/_netCDF4.pyx":1295 * variables[name] = Variable(group, name, datatype, dimensions, id=varid, endian='little') * else: * variables[name] = Variable(group, name, datatype, dimensions, id=varid) # <<<<<<<<<<<<<< @@ -21757,7 +21757,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_id, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1295; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_Variable)), __pyx_t_6, __pyx_t_1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1295; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_7 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_Variable)), __pyx_t_6, __pyx_t_1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1295; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -21768,7 +21768,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_L15_continue:; } - /* "netCDF4.pyx":1296 + /* "netCDF4/_netCDF4.pyx":1296 * else: * variables[name] = Variable(group, name, datatype, dimensions, id=varid) * free(varids) # free pointer holding variable ids. # <<<<<<<<<<<<<< @@ -21780,7 +21780,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { } __pyx_L7:; - /* "netCDF4.pyx":1297 + /* "netCDF4/_netCDF4.pyx":1297 * variables[name] = Variable(group, name, datatype, dimensions, id=varid) * free(varids) # free pointer holding variable ids. * return variables # <<<<<<<<<<<<<< @@ -21792,7 +21792,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __pyx_r = __pyx_v_variables; goto __pyx_L0; - /* "netCDF4.pyx":1180 + /* "netCDF4/_netCDF4.pyx":1180 * return groups * * cdef _get_vars(group): # <<<<<<<<<<<<<< @@ -21808,7 +21808,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_10); - __Pyx_AddTraceback("netCDF4._get_vars", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._get_vars", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_variables); @@ -21824,7 +21824,7 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { return __pyx_r; } -/* "netCDF4.pyx":1432 +/* "netCDF4/_netCDF4.pyx":1432 * __orthogonal_indexing__ * * def __init__(self, filename, mode='r', clobber=True, format='NETCDF4', # <<<<<<<<<<<<<< @@ -21833,8 +21833,8 @@ static PyObject *__pyx_f_7netCDF4__get_vars(PyObject *__pyx_v_group) { */ /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_filename = 0; PyObject *__pyx_v_mode = 0; PyObject *__pyx_v_clobber = 0; @@ -21858,7 +21858,7 @@ static int __pyx_pw_7netCDF4_7Dataset_1__init__(PyObject *__pyx_v_self, PyObject values[2] = ((PyObject *)Py_True); values[3] = ((PyObject *)__pyx_n_s_NETCDF4); - /* "netCDF4.pyx":1433 + /* "netCDF4/_netCDF4.pyx":1433 * * def __init__(self, filename, mode='r', clobber=True, format='NETCDF4', * diskless=False, persist=False, keepweakref=False, **kwargs): # <<<<<<<<<<<<<< @@ -21947,13 +21947,13 @@ static int __pyx_pw_7netCDF4_7Dataset_1__init__(PyObject *__pyx_v_self, PyObject __Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 7, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1432; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0; - __Pyx_AddTraceback("netCDF4.Dataset.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_7Dataset___init__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), __pyx_v_filename, __pyx_v_mode, __pyx_v_clobber, __pyx_v_format, __pyx_v_diskless, __pyx_v_persist, __pyx_v_keepweakref, __pyx_v_kwargs); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset___init__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), __pyx_v_filename, __pyx_v_mode, __pyx_v_clobber, __pyx_v_format, __pyx_v_diskless, __pyx_v_persist, __pyx_v_keepweakref, __pyx_v_kwargs); - /* "netCDF4.pyx":1432 + /* "netCDF4/_netCDF4.pyx":1432 * __orthogonal_indexing__ * * def __init__(self, filename, mode='r', clobber=True, format='NETCDF4', # <<<<<<<<<<<<<< @@ -21967,7 +21967,7 @@ static int __pyx_pw_7netCDF4_7Dataset_1__init__(PyObject *__pyx_v_self, PyObject return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_filename, PyObject *__pyx_v_mode, PyObject *__pyx_v_clobber, PyObject *__pyx_v_format, PyObject *__pyx_v_diskless, PyObject *__pyx_v_persist, PyObject *__pyx_v_keepweakref, CYTHON_UNUSED PyObject *__pyx_v_kwargs) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_filename, PyObject *__pyx_v_mode, PyObject *__pyx_v_clobber, PyObject *__pyx_v_format, PyObject *__pyx_v_diskless, PyObject *__pyx_v_persist, PyObject *__pyx_v_keepweakref, CYTHON_UNUSED PyObject *__pyx_v_kwargs) { int __pyx_v_grpid; int __pyx_v_ierr; char *__pyx_v_path; @@ -21988,7 +21988,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 0); - /* "netCDF4.pyx":1438 + /* "netCDF4/_netCDF4.pyx":1438 * cdef char namstring[NC_MAX_NAME+1] * # flag to indicate that Variables in this Dataset support orthogonal indexing. * self.__orthogonal_indexing__ = True # <<<<<<<<<<<<<< @@ -22001,7 +22001,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __Pyx_DECREF(__pyx_v_self->__orthogonal_indexing__); __pyx_v_self->__orthogonal_indexing__ = Py_True; - /* "netCDF4.pyx":1439 + /* "netCDF4/_netCDF4.pyx":1439 * # flag to indicate that Variables in this Dataset support orthogonal indexing. * self.__orthogonal_indexing__ = True * if diskless and __netcdf4libversion__ < '4.2.1': # <<<<<<<<<<<<<< @@ -22024,7 +22024,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_L4_bool_binop_done:; if (__pyx_t_1) { - /* "netCDF4.pyx":1441 + /* "netCDF4/_netCDF4.pyx":1441 * if diskless and __netcdf4libversion__ < '4.2.1': * #diskless = False # don't raise error, instead silently ignore * raise ValueError('diskless mode requires netcdf lib >= 4.2.1, you have %s' % __netcdf4libversion__) # <<<<<<<<<<<<<< @@ -22049,19 +22049,19 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1441; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":1442 + /* "netCDF4/_netCDF4.pyx":1442 * #diskless = False # don't raise error, instead silently ignore * raise ValueError('diskless mode requires netcdf lib >= 4.2.1, you have %s' % __netcdf4libversion__) * bytestr = _strencode(filename) # <<<<<<<<<<<<<< * path = bytestr * if mode == 'w': */ - __pyx_t_3 = __pyx_f_7netCDF4__strencode(__pyx_v_filename, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1442; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __pyx_f_7netCDF4_8_netCDF4__strencode(__pyx_v_filename, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1442; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_v_bytestr = __pyx_t_3; __pyx_t_3 = 0; - /* "netCDF4.pyx":1443 + /* "netCDF4/_netCDF4.pyx":1443 * raise ValueError('diskless mode requires netcdf lib >= 4.2.1, you have %s' % __netcdf4libversion__) * bytestr = _strencode(filename) * path = bytestr # <<<<<<<<<<<<<< @@ -22071,7 +22071,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_t_5 = __Pyx_PyObject_AsString(__pyx_v_bytestr); if (unlikely((!__pyx_t_5) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1443; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_path = __pyx_t_5; - /* "netCDF4.pyx":1444 + /* "netCDF4/_netCDF4.pyx":1444 * bytestr = _strencode(filename) * path = bytestr * if mode == 'w': # <<<<<<<<<<<<<< @@ -22081,7 +22081,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_mode, __pyx_n_s_w, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1444; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":1445 + /* "netCDF4/_netCDF4.pyx":1445 * path = bytestr * if mode == 'w': * _set_default_format(format=format) # <<<<<<<<<<<<<< @@ -22099,7 +22099,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "netCDF4.pyx":1446 + /* "netCDF4/_netCDF4.pyx":1446 * if mode == 'w': * _set_default_format(format=format) * if clobber: # <<<<<<<<<<<<<< @@ -22109,7 +22109,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_clobber); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1446; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":1447 + /* "netCDF4/_netCDF4.pyx":1447 * _set_default_format(format=format) * if clobber: * if diskless: # <<<<<<<<<<<<<< @@ -22119,7 +22119,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_diskless); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1447; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":1448 + /* "netCDF4/_netCDF4.pyx":1448 * if clobber: * if diskless: * if persist: # <<<<<<<<<<<<<< @@ -22129,7 +22129,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_persist); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1448; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":1449 + /* "netCDF4/_netCDF4.pyx":1449 * if diskless: * if persist: * ierr = nc_create(path, NC_WRITE | NC_CLOBBER | NC_DISKLESS , &grpid) # <<<<<<<<<<<<<< @@ -22151,7 +22151,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset } /*else*/ { - /* "netCDF4.pyx":1451 + /* "netCDF4/_netCDF4.pyx":1451 * ierr = nc_create(path, NC_WRITE | NC_CLOBBER | NC_DISKLESS , &grpid) * else: * ierr = nc_create(path, NC_CLOBBER | NC_DISKLESS , &grpid) # <<<<<<<<<<<<<< @@ -22175,7 +22175,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset } /*else*/ { - /* "netCDF4.pyx":1453 + /* "netCDF4/_netCDF4.pyx":1453 * ierr = nc_create(path, NC_CLOBBER | NC_DISKLESS , &grpid) * else: * ierr = nc_create(path, NC_CLOBBER, &grpid) # <<<<<<<<<<<<<< @@ -22189,7 +22189,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset } /*else*/ { - /* "netCDF4.pyx":1455 + /* "netCDF4/_netCDF4.pyx":1455 * ierr = nc_create(path, NC_CLOBBER, &grpid) * else: * if diskless: # <<<<<<<<<<<<<< @@ -22199,7 +22199,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_diskless); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1455; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":1456 + /* "netCDF4/_netCDF4.pyx":1456 * else: * if diskless: * if persist: # <<<<<<<<<<<<<< @@ -22209,7 +22209,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_persist); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1456; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":1457 + /* "netCDF4/_netCDF4.pyx":1457 * if diskless: * if persist: * ierr = nc_create(path, NC_WRITE | NC_NOCLOBBER | NC_DISKLESS , &grpid) # <<<<<<<<<<<<<< @@ -22231,7 +22231,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset } /*else*/ { - /* "netCDF4.pyx":1459 + /* "netCDF4/_netCDF4.pyx":1459 * ierr = nc_create(path, NC_WRITE | NC_NOCLOBBER | NC_DISKLESS , &grpid) * else: * ierr = nc_create(path, NC_NOCLOBBER | NC_DISKLESS , &grpid) # <<<<<<<<<<<<<< @@ -22255,7 +22255,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset } /*else*/ { - /* "netCDF4.pyx":1461 + /* "netCDF4/_netCDF4.pyx":1461 * ierr = nc_create(path, NC_NOCLOBBER | NC_DISKLESS , &grpid) * else: * ierr = nc_create(path, NC_NOCLOBBER, &grpid) # <<<<<<<<<<<<<< @@ -22268,7 +22268,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset } __pyx_L7:; - /* "netCDF4.pyx":1466 + /* "netCDF4/_netCDF4.pyx":1466 * # format to NETCDF4). This bug should be fixed in version * # 4.3.0 of the netcdf library (add a version check here?). * _set_default_format(format='NETCDF3_64BIT') # <<<<<<<<<<<<<< @@ -22288,7 +22288,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset goto __pyx_L6; } - /* "netCDF4.pyx":1467 + /* "netCDF4/_netCDF4.pyx":1467 * # 4.3.0 of the netcdf library (add a version check here?). * _set_default_format(format='NETCDF3_64BIT') * elif mode == 'r': # <<<<<<<<<<<<<< @@ -22298,7 +22298,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_mode, __pyx_n_s_r_2, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1467; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":1468 + /* "netCDF4/_netCDF4.pyx":1468 * _set_default_format(format='NETCDF3_64BIT') * elif mode == 'r': * if diskless: # <<<<<<<<<<<<<< @@ -22308,7 +22308,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_diskless); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1468; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":1469 + /* "netCDF4/_netCDF4.pyx":1469 * elif mode == 'r': * if diskless: * ierr = nc_open(path, NC_NOWRITE | NC_DISKLESS, &grpid) # <<<<<<<<<<<<<< @@ -22330,7 +22330,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset } /*else*/ { - /* "netCDF4.pyx":1471 + /* "netCDF4/_netCDF4.pyx":1471 * ierr = nc_open(path, NC_NOWRITE | NC_DISKLESS, &grpid) * else: * ierr = nc_open(path, NC_NOWRITE, &grpid) # <<<<<<<<<<<<<< @@ -22343,7 +22343,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset goto __pyx_L6; } - /* "netCDF4.pyx":1472 + /* "netCDF4/_netCDF4.pyx":1472 * else: * ierr = nc_open(path, NC_NOWRITE, &grpid) * elif mode == 'r+' or mode == 'a': # <<<<<<<<<<<<<< @@ -22361,7 +22361,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_L13_bool_binop_done:; if (__pyx_t_1) { - /* "netCDF4.pyx":1473 + /* "netCDF4/_netCDF4.pyx":1473 * ierr = nc_open(path, NC_NOWRITE, &grpid) * elif mode == 'r+' or mode == 'a': * if diskless: # <<<<<<<<<<<<<< @@ -22371,7 +22371,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_diskless); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1473; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":1474 + /* "netCDF4/_netCDF4.pyx":1474 * elif mode == 'r+' or mode == 'a': * if diskless: * ierr = nc_open(path, NC_WRITE | NC_DISKLESS, &grpid) # <<<<<<<<<<<<<< @@ -22393,7 +22393,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset } /*else*/ { - /* "netCDF4.pyx":1476 + /* "netCDF4/_netCDF4.pyx":1476 * ierr = nc_open(path, NC_WRITE | NC_DISKLESS, &grpid) * else: * ierr = nc_open(path, NC_WRITE, &grpid) # <<<<<<<<<<<<<< @@ -22406,7 +22406,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset goto __pyx_L6; } - /* "netCDF4.pyx":1477 + /* "netCDF4/_netCDF4.pyx":1477 * else: * ierr = nc_open(path, NC_WRITE, &grpid) * elif mode == 'as' or mode == 'r+s': # <<<<<<<<<<<<<< @@ -22424,7 +22424,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_L16_bool_binop_done:; if (__pyx_t_1) { - /* "netCDF4.pyx":1478 + /* "netCDF4/_netCDF4.pyx":1478 * ierr = nc_open(path, NC_WRITE, &grpid) * elif mode == 'as' or mode == 'r+s': * if diskless: # <<<<<<<<<<<<<< @@ -22434,7 +22434,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_diskless); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1478; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":1479 + /* "netCDF4/_netCDF4.pyx":1479 * elif mode == 'as' or mode == 'r+s': * if diskless: * ierr = nc_open(path, NC_SHARE | NC_DISKLESS, &grpid) # <<<<<<<<<<<<<< @@ -22456,7 +22456,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset } /*else*/ { - /* "netCDF4.pyx":1481 + /* "netCDF4/_netCDF4.pyx":1481 * ierr = nc_open(path, NC_SHARE | NC_DISKLESS, &grpid) * else: * ierr = nc_open(path, NC_SHARE, &grpid) # <<<<<<<<<<<<<< @@ -22469,7 +22469,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset goto __pyx_L6; } - /* "netCDF4.pyx":1482 + /* "netCDF4/_netCDF4.pyx":1482 * else: * ierr = nc_open(path, NC_SHARE, &grpid) * elif mode == 'ws': # <<<<<<<<<<<<<< @@ -22479,7 +22479,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_mode, __pyx_n_s_ws, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1482; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":1483 + /* "netCDF4/_netCDF4.pyx":1483 * ierr = nc_open(path, NC_SHARE, &grpid) * elif mode == 'ws': * if clobber: # <<<<<<<<<<<<<< @@ -22489,7 +22489,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_clobber); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1483; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":1484 + /* "netCDF4/_netCDF4.pyx":1484 * elif mode == 'ws': * if clobber: * if diskless: # <<<<<<<<<<<<<< @@ -22499,7 +22499,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_diskless); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1484; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":1485 + /* "netCDF4/_netCDF4.pyx":1485 * if clobber: * if diskless: * if persist: # <<<<<<<<<<<<<< @@ -22509,7 +22509,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_persist); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1485; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":1486 + /* "netCDF4/_netCDF4.pyx":1486 * if diskless: * if persist: * ierr = nc_create(path, NC_WRITE | NC_SHARE | NC_CLOBBER | NC_DISKLESS , &grpid) # <<<<<<<<<<<<<< @@ -22531,7 +22531,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset } /*else*/ { - /* "netCDF4.pyx":1488 + /* "netCDF4/_netCDF4.pyx":1488 * ierr = nc_create(path, NC_WRITE | NC_SHARE | NC_CLOBBER | NC_DISKLESS , &grpid) * else: * ierr = nc_create(path, NC_SHARE | NC_CLOBBER | NC_DISKLESS , &grpid) # <<<<<<<<<<<<<< @@ -22555,7 +22555,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset } /*else*/ { - /* "netCDF4.pyx":1490 + /* "netCDF4/_netCDF4.pyx":1490 * ierr = nc_create(path, NC_SHARE | NC_CLOBBER | NC_DISKLESS , &grpid) * else: * ierr = nc_create(path, NC_SHARE | NC_CLOBBER, &grpid) # <<<<<<<<<<<<<< @@ -22569,7 +22569,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset } /*else*/ { - /* "netCDF4.pyx":1492 + /* "netCDF4/_netCDF4.pyx":1492 * ierr = nc_create(path, NC_SHARE | NC_CLOBBER, &grpid) * else: * if diskless: # <<<<<<<<<<<<<< @@ -22579,7 +22579,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_diskless); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1492; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":1493 + /* "netCDF4/_netCDF4.pyx":1493 * else: * if diskless: * if persist: # <<<<<<<<<<<<<< @@ -22589,7 +22589,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_persist); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1493; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":1494 + /* "netCDF4/_netCDF4.pyx":1494 * if diskless: * if persist: * ierr = nc_create(path, NC_WRITE | NC_SHARE | NC_NOCLOBBER | NC_DISKLESS , &grpid) # <<<<<<<<<<<<<< @@ -22611,7 +22611,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset } /*else*/ { - /* "netCDF4.pyx":1496 + /* "netCDF4/_netCDF4.pyx":1496 * ierr = nc_create(path, NC_WRITE | NC_SHARE | NC_NOCLOBBER | NC_DISKLESS , &grpid) * else: * ierr = nc_create(path, NC_SHARE | NC_NOCLOBBER | NC_DISKLESS , &grpid) # <<<<<<<<<<<<<< @@ -22635,7 +22635,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset } /*else*/ { - /* "netCDF4.pyx":1498 + /* "netCDF4/_netCDF4.pyx":1498 * ierr = nc_create(path, NC_SHARE | NC_NOCLOBBER | NC_DISKLESS , &grpid) * else: * ierr = nc_create(path, NC_SHARE | NC_NOCLOBBER, &grpid) # <<<<<<<<<<<<<< @@ -22651,7 +22651,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset } /*else*/ { - /* "netCDF4.pyx":1500 + /* "netCDF4/_netCDF4.pyx":1500 * ierr = nc_create(path, NC_SHARE | NC_NOCLOBBER, &grpid) * else: * raise ValueError("mode must be 'w', 'r', 'a' or 'r+', got '%s'" % mode) # <<<<<<<<<<<<<< @@ -22674,7 +22674,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset } __pyx_L6:; - /* "netCDF4.pyx":1501 + /* "netCDF4/_netCDF4.pyx":1501 * else: * raise ValueError("mode must be 'w', 'r', 'a' or 'r+', got '%s'" % mode) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -22684,7 +22684,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_t_1 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":1502 + /* "netCDF4/_netCDF4.pyx":1502 * raise ValueError("mode must be 'w', 'r', 'a' or 'r+', got '%s'" % mode) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -22708,14 +22708,14 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1502; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":1504 + /* "netCDF4/_netCDF4.pyx":1504 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * # data model and file format attributes * self.data_model = _get_format(grpid) # <<<<<<<<<<<<<< * # data_model attribute used to be file_format (versions < 1.0.8), retain * # file_format for backwards compatibility. */ - __pyx_t_6 = __pyx_f_7netCDF4__get_format(__pyx_v_grpid); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1504; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __pyx_f_7netCDF4_8_netCDF4__get_format(__pyx_v_grpid); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1504; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_6); __Pyx_GOTREF(__pyx_v_self->data_model); @@ -22723,7 +22723,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_v_self->data_model = __pyx_t_6; __pyx_t_6 = 0; - /* "netCDF4.pyx":1507 + /* "netCDF4/_netCDF4.pyx":1507 * # data_model attribute used to be file_format (versions < 1.0.8), retain * # file_format for backwards compatibility. * self.file_format = self.data_model # <<<<<<<<<<<<<< @@ -22738,14 +22738,14 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_v_self->file_format = __pyx_t_6; __pyx_t_6 = 0; - /* "netCDF4.pyx":1508 + /* "netCDF4/_netCDF4.pyx":1508 * # file_format for backwards compatibility. * self.file_format = self.data_model * self.disk_format = _get_full_format(grpid) # <<<<<<<<<<<<<< * # diskless read access only works with NETCDF_CLASSIC (for now) * #ncopen = mode.startswith('a') or mode.startswith('r') */ - __pyx_t_6 = __pyx_f_7netCDF4__get_full_format(__pyx_v_grpid); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1508; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __pyx_f_7netCDF4_8_netCDF4__get_full_format(__pyx_v_grpid); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1508; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_6); __Pyx_GOTREF(__pyx_v_self->disk_format); @@ -22753,7 +22753,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_v_self->disk_format = __pyx_t_6; __pyx_t_6 = 0; - /* "netCDF4.pyx":1513 + /* "netCDF4/_netCDF4.pyx":1513 * #if diskless and self.data_model != 'NETCDF3_CLASSIC' and ncopen: * # raise ValueError("diskless access only supported for NETCDF3_CLASSIC format") * self._grpid = grpid # <<<<<<<<<<<<<< @@ -22762,7 +22762,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset */ __pyx_v_self->_grpid = __pyx_v_grpid; - /* "netCDF4.pyx":1514 + /* "netCDF4/_netCDF4.pyx":1514 * # raise ValueError("diskless access only supported for NETCDF3_CLASSIC format") * self._grpid = grpid * self._isopen = 1 # <<<<<<<<<<<<<< @@ -22771,7 +22771,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset */ __pyx_v_self->_isopen = 1; - /* "netCDF4.pyx":1515 + /* "netCDF4/_netCDF4.pyx":1515 * self._grpid = grpid * self._isopen = 1 * self.path = '/' # <<<<<<<<<<<<<< @@ -22784,7 +22784,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __Pyx_DECREF(__pyx_v_self->path); __pyx_v_self->path = __pyx_kp_s__15; - /* "netCDF4.pyx":1516 + /* "netCDF4/_netCDF4.pyx":1516 * self._isopen = 1 * self.path = '/' * self.parent = None # <<<<<<<<<<<<<< @@ -22797,7 +22797,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __Pyx_DECREF(__pyx_v_self->parent); __pyx_v_self->parent = Py_None; - /* "netCDF4.pyx":1517 + /* "netCDF4/_netCDF4.pyx":1517 * self.path = '/' * self.parent = None * self.keepweakref = keepweakref # <<<<<<<<<<<<<< @@ -22810,14 +22810,14 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __Pyx_DECREF(__pyx_v_self->keepweakref); __pyx_v_self->keepweakref = __pyx_v_keepweakref; - /* "netCDF4.pyx":1519 + /* "netCDF4/_netCDF4.pyx":1519 * self.keepweakref = keepweakref * # get compound and vlen types in the root Group. * self.cmptypes, self.vltypes = _get_types(self) # <<<<<<<<<<<<<< * # get dimensions in the root group. * self.dimensions = _get_dims(self) */ - __pyx_t_6 = __pyx_f_7netCDF4__get_types(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1519; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __pyx_f_7netCDF4_8_netCDF4__get_types(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1519; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); if ((likely(PyTuple_CheckExact(__pyx_t_6))) || (PyList_CheckExact(__pyx_t_6))) { PyObject* sequence = __pyx_t_6; @@ -22880,14 +22880,14 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_v_self->vltypes = __pyx_t_3; __pyx_t_3 = 0; - /* "netCDF4.pyx":1521 + /* "netCDF4/_netCDF4.pyx":1521 * self.cmptypes, self.vltypes = _get_types(self) * # get dimensions in the root group. * self.dimensions = _get_dims(self) # <<<<<<<<<<<<<< * # get variables in the root Group. * self.variables = _get_vars(self) */ - __pyx_t_6 = __pyx_f_7netCDF4__get_dims(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1521; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __pyx_f_7netCDF4_8_netCDF4__get_dims(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1521; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_6); __Pyx_GOTREF(__pyx_v_self->dimensions); @@ -22895,14 +22895,14 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_v_self->dimensions = __pyx_t_6; __pyx_t_6 = 0; - /* "netCDF4.pyx":1523 + /* "netCDF4/_netCDF4.pyx":1523 * self.dimensions = _get_dims(self) * # get variables in the root Group. * self.variables = _get_vars(self) # <<<<<<<<<<<<<< * # get groups in the root Group. * if self.data_model == 'NETCDF4': */ - __pyx_t_6 = __pyx_f_7netCDF4__get_vars(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1523; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __pyx_f_7netCDF4_8_netCDF4__get_vars(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1523; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_6); __Pyx_GOTREF(__pyx_v_self->variables); @@ -22910,7 +22910,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_v_self->variables = __pyx_t_6; __pyx_t_6 = 0; - /* "netCDF4.pyx":1525 + /* "netCDF4/_netCDF4.pyx":1525 * self.variables = _get_vars(self) * # get groups in the root Group. * if self.data_model == 'NETCDF4': # <<<<<<<<<<<<<< @@ -22920,14 +22920,14 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_self->data_model, __pyx_n_s_NETCDF4, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1525; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":1526 + /* "netCDF4/_netCDF4.pyx":1526 * # get groups in the root Group. * if self.data_model == 'NETCDF4': * self.groups = _get_grps(self) # <<<<<<<<<<<<<< * else: * self.groups = OrderedDict() */ - __pyx_t_6 = __pyx_f_7netCDF4__get_grps(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1526; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __pyx_f_7netCDF4_8_netCDF4__get_grps(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1526; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_GIVEREF(__pyx_t_6); __Pyx_GOTREF(__pyx_v_self->groups); @@ -22938,7 +22938,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset } /*else*/ { - /* "netCDF4.pyx":1528 + /* "netCDF4/_netCDF4.pyx":1528 * self.groups = _get_grps(self) * else: * self.groups = OrderedDict() # <<<<<<<<<<<<<< @@ -22973,7 +22973,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset } __pyx_L27:; - /* "netCDF4.pyx":1432 + /* "netCDF4/_netCDF4.pyx":1432 * __orthogonal_indexing__ * * def __init__(self, filename, mode='r', clobber=True, format='NETCDF4', # <<<<<<<<<<<<<< @@ -22989,7 +22989,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); - __Pyx_AddTraceback("netCDF4.Dataset.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_bytestr); @@ -22997,7 +22997,7 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset return __pyx_r; } -/* "netCDF4.pyx":1531 +/* "netCDF4/_netCDF4.pyx":1531 * * # these allow Dataset objects to be used via a "with" statement. * def __enter__(self): # <<<<<<<<<<<<<< @@ -23006,24 +23006,24 @@ static int __pyx_pf_7netCDF4_7Dataset___init__(struct __pyx_obj_7netCDF4_Dataset */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_7Dataset_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_3__enter__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_2__enter__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_2__enter__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_2__enter__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_2__enter__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__enter__", 0); - /* "netCDF4.pyx":1532 + /* "netCDF4/_netCDF4.pyx":1532 * # these allow Dataset objects to be used via a "with" statement. * def __enter__(self): * return self # <<<<<<<<<<<<<< @@ -23035,7 +23035,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_2__enter__(struct __pyx_obj_7netCDF4 __pyx_r = ((PyObject *)__pyx_v_self); goto __pyx_L0; - /* "netCDF4.pyx":1531 + /* "netCDF4/_netCDF4.pyx":1531 * * # these allow Dataset objects to be used via a "with" statement. * def __enter__(self): # <<<<<<<<<<<<<< @@ -23050,7 +23050,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_2__enter__(struct __pyx_obj_7netCDF4 return __pyx_r; } -/* "netCDF4.pyx":1533 +/* "netCDF4/_netCDF4.pyx":1533 * def __enter__(self): * return self * def __exit__(self,atype,value,traceback): # <<<<<<<<<<<<<< @@ -23059,8 +23059,8 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_2__enter__(struct __pyx_obj_7netCDF4 */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_7Dataset_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_5__exit__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED PyObject *__pyx_v_atype = 0; CYTHON_UNUSED PyObject *__pyx_v_value = 0; CYTHON_UNUSED PyObject *__pyx_v_traceback = 0; @@ -23117,18 +23117,18 @@ static PyObject *__pyx_pw_7netCDF4_7Dataset_5__exit__(PyObject *__pyx_v_self, Py __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("__exit__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1533; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4.Dataset.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_7Dataset_4__exit__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), __pyx_v_atype, __pyx_v_value, __pyx_v_traceback); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_4__exit__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), __pyx_v_atype, __pyx_v_value, __pyx_v_traceback); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_4__exit__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_atype, CYTHON_UNUSED PyObject *__pyx_v_value, CYTHON_UNUSED PyObject *__pyx_v_traceback) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_4__exit__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_atype, CYTHON_UNUSED PyObject *__pyx_v_value, CYTHON_UNUSED PyObject *__pyx_v_traceback) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -23139,7 +23139,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_4__exit__(struct __pyx_obj_7netCDF4_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__exit__", 0); - /* "netCDF4.pyx":1534 + /* "netCDF4/_netCDF4.pyx":1534 * return self * def __exit__(self,atype,value,traceback): * self.close() # <<<<<<<<<<<<<< @@ -23168,7 +23168,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_4__exit__(struct __pyx_obj_7netCDF4_ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":1533 + /* "netCDF4/_netCDF4.pyx":1533 * def __enter__(self): * return self * def __exit__(self,atype,value,traceback): # <<<<<<<<<<<<<< @@ -23183,7 +23183,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_4__exit__(struct __pyx_obj_7netCDF4_ __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); - __Pyx_AddTraceback("netCDF4.Dataset.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.__exit__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -23191,7 +23191,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_4__exit__(struct __pyx_obj_7netCDF4_ return __pyx_r; } -/* "netCDF4.pyx":1536 +/* "netCDF4/_netCDF4.pyx":1536 * self.close() * * def filepath(self): # <<<<<<<<<<<<<< @@ -23200,20 +23200,20 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_4__exit__(struct __pyx_obj_7netCDF4_ */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_7filepath(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static char __pyx_doc_7netCDF4_7Dataset_6filepath[] = "\nfilepath(self)\n\nGet the file system path (or the opendap URL) which was used to\nopen/create the Dataset. Requires netcdf >= 4.1.2"; -static PyObject *__pyx_pw_7netCDF4_7Dataset_7filepath(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_7filepath(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_7Dataset_6filepath[] = "\nfilepath(self)\n\nGet the file system path (or the opendap URL) which was used to\nopen/create the Dataset. Requires netcdf >= 4.1.2"; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_7filepath(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("filepath (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_6filepath(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_6filepath(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_6filepath(CYTHON_UNUSED struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_6filepath(CYTHON_UNUSED struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { PyObject *__pyx_v_msg = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations @@ -23224,7 +23224,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_6filepath(CYTHON_UNUSED struct __pyx int __pyx_clineno = 0; __Pyx_RefNannySetupContext("filepath", 0); - /* "netCDF4.pyx":1550 + /* "netCDF4/_netCDF4.pyx":1550 * return path.decode('ascii') * ELSE: * msg = """ # <<<<<<<<<<<<<< @@ -23234,7 +23234,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_6filepath(CYTHON_UNUSED struct __pyx __Pyx_INCREF(__pyx_kp_s_filepath_method_not_enabled_To); __pyx_v_msg = __pyx_kp_s_filepath_method_not_enabled_To; - /* "netCDF4.pyx":1553 + /* "netCDF4/_netCDF4.pyx":1553 * filepath method not enabled. To enable, install Cython, make sure you have * version 4.1.2 or higher of the netcdf C lib, and rebuild netcdf4-python.""" * raise ValueError(msg) # <<<<<<<<<<<<<< @@ -23253,7 +23253,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_6filepath(CYTHON_UNUSED struct __pyx __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1553; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":1536 + /* "netCDF4/_netCDF4.pyx":1536 * self.close() * * def filepath(self): # <<<<<<<<<<<<<< @@ -23265,7 +23265,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_6filepath(CYTHON_UNUSED struct __pyx __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); - __Pyx_AddTraceback("netCDF4.Dataset.filepath", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.filepath", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XDECREF(__pyx_v_msg); __Pyx_XGIVEREF(__pyx_r); @@ -23273,7 +23273,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_6filepath(CYTHON_UNUSED struct __pyx return __pyx_r; } -/* "netCDF4.pyx":1555 +/* "netCDF4/_netCDF4.pyx":1555 * raise ValueError(msg) * * def __repr__(self): # <<<<<<<<<<<<<< @@ -23282,19 +23282,19 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_6filepath(CYTHON_UNUSED struct __pyx */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_9__repr__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_7Dataset_9__repr__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_9__repr__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_9__repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_8__repr__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_8__repr__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_8__repr__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_8__repr__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -23308,7 +23308,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_8__repr__(struct __pyx_obj_7netCDF4_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); - /* "netCDF4.pyx":1556 + /* "netCDF4/_netCDF4.pyx":1556 * * def __repr__(self): * if python3: # <<<<<<<<<<<<<< @@ -23321,7 +23321,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_8__repr__(struct __pyx_obj_7netCDF4_ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { - /* "netCDF4.pyx":1557 + /* "netCDF4/_netCDF4.pyx":1557 * def __repr__(self): * if python3: * return self.__unicode__() # <<<<<<<<<<<<<< @@ -23355,7 +23355,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_8__repr__(struct __pyx_obj_7netCDF4_ } /*else*/ { - /* "netCDF4.pyx":1559 + /* "netCDF4/_netCDF4.pyx":1559 * return self.__unicode__() * else: * return unicode(self).encode(default_encoding) # <<<<<<<<<<<<<< @@ -23407,7 +23407,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_8__repr__(struct __pyx_obj_7netCDF4_ goto __pyx_L0; } - /* "netCDF4.pyx":1555 + /* "netCDF4/_netCDF4.pyx":1555 * raise ValueError(msg) * * def __repr__(self): # <<<<<<<<<<<<<< @@ -23422,7 +23422,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_8__repr__(struct __pyx_obj_7netCDF4_ __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); - __Pyx_AddTraceback("netCDF4.Dataset.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -23430,7 +23430,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_8__repr__(struct __pyx_obj_7netCDF4_ return __pyx_r; } -/* "netCDF4.pyx":1561 +/* "netCDF4/_netCDF4.pyx":1561 * return unicode(self).encode(default_encoding) * * def __unicode__(self): # <<<<<<<<<<<<<< @@ -23439,19 +23439,19 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_8__repr__(struct __pyx_obj_7netCDF4_ */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_11__unicode__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_7Dataset_11__unicode__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_11__unicode__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_11__unicode__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__unicode__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_10__unicode__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_10__unicode__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { PyObject *__pyx_v_ncdump = NULL; PyObject *__pyx_v_dimnames = NULL; PyObject *__pyx_v_varnames = NULL; @@ -23481,7 +23481,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__unicode__", 0); - /* "netCDF4.pyx":1562 + /* "netCDF4/_netCDF4.pyx":1562 * * def __unicode__(self): * ncdump = ['%r\n' % type(self)] # <<<<<<<<<<<<<< @@ -23498,7 +23498,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC __pyx_v_ncdump = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":1563 + /* "netCDF4/_netCDF4.pyx":1563 * def __unicode__(self): * ncdump = ['%r\n' % type(self)] * dimnames = tuple([_tostr(dimname)+'(%s)'%len(self.dimensions[dimname])\ # <<<<<<<<<<<<<< @@ -23508,7 +23508,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1563; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - /* "netCDF4.pyx":1564 + /* "netCDF4/_netCDF4.pyx":1564 * ncdump = ['%r\n' % type(self)] * dimnames = tuple([_tostr(dimname)+'(%s)'%len(self.dimensions[dimname])\ * for dimname in self.dimensions.keys()]) # <<<<<<<<<<<<<< @@ -23576,7 +23576,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC __Pyx_XDECREF_SET(__pyx_v_dimname, __pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":1563 + /* "netCDF4/_netCDF4.pyx":1563 * def __unicode__(self): * ncdump = ['%r\n' % type(self)] * dimnames = tuple([_tostr(dimname)+'(%s)'%len(self.dimensions[dimname])\ # <<<<<<<<<<<<<< @@ -23626,7 +23626,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC if (unlikely(__Pyx_ListComp_Append(__pyx_t_2, (PyObject*)__pyx_t_4))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1563; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "netCDF4.pyx":1564 + /* "netCDF4/_netCDF4.pyx":1564 * ncdump = ['%r\n' % type(self)] * dimnames = tuple([_tostr(dimname)+'(%s)'%len(self.dimensions[dimname])\ * for dimname in self.dimensions.keys()]) # <<<<<<<<<<<<<< @@ -23636,7 +23636,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":1563 + /* "netCDF4/_netCDF4.pyx":1563 * def __unicode__(self): * ncdump = ['%r\n' % type(self)] * dimnames = tuple([_tostr(dimname)+'(%s)'%len(self.dimensions[dimname])\ # <<<<<<<<<<<<<< @@ -23649,7 +23649,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC __pyx_v_dimnames = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":1566 + /* "netCDF4/_netCDF4.pyx":1566 * for dimname in self.dimensions.keys()]) * varnames = tuple(\ * [_tostr(self.variables[varname].dtype)+' \033[4m'+_tostr(varname)+'\033[0m'+ # <<<<<<<<<<<<<< @@ -23659,7 +23659,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1566; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - /* "netCDF4.pyx":1571 + /* "netCDF4/_netCDF4.pyx":1571 * .replace("'",""))\ * .replace(", ",","))\ * .replace(",)",")") for varname in self.variables.keys()]) # <<<<<<<<<<<<<< @@ -23727,7 +23727,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC __Pyx_XDECREF_SET(__pyx_v_varname, __pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":1566 + /* "netCDF4/_netCDF4.pyx":1566 * for dimname in self.dimensions.keys()]) * varnames = tuple(\ * [_tostr(self.variables[varname].dtype)+' \033[4m'+_tostr(varname)+'\033[0m'+ # <<<<<<<<<<<<<< @@ -23805,7 +23805,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - /* "netCDF4.pyx":1567 + /* "netCDF4/_netCDF4.pyx":1567 * varnames = tuple(\ * [_tostr(self.variables[varname].dtype)+' \033[4m'+_tostr(varname)+'\033[0m'+ * (((_tostr(self.variables[varname].dimensions) # <<<<<<<<<<<<<< @@ -23846,7 +23846,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC } __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "netCDF4.pyx":1568 + /* "netCDF4/_netCDF4.pyx":1568 * [_tostr(self.variables[varname].dtype)+' \033[4m'+_tostr(varname)+'\033[0m'+ * (((_tostr(self.variables[varname].dimensions) * .replace("u'",""))\ # <<<<<<<<<<<<<< @@ -23860,7 +23860,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "netCDF4.pyx":1569 + /* "netCDF4/_netCDF4.pyx":1569 * (((_tostr(self.variables[varname].dimensions) * .replace("u'",""))\ * .replace("'",""))\ # <<<<<<<<<<<<<< @@ -23874,7 +23874,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "netCDF4.pyx":1570 + /* "netCDF4/_netCDF4.pyx":1570 * .replace("u'",""))\ * .replace("'",""))\ * .replace(", ",","))\ # <<<<<<<<<<<<<< @@ -23888,7 +23888,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "netCDF4.pyx":1571 + /* "netCDF4/_netCDF4.pyx":1571 * .replace("'",""))\ * .replace(", ",","))\ * .replace(",)",")") for varname in self.variables.keys()]) # <<<<<<<<<<<<<< @@ -23902,7 +23902,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "netCDF4.pyx":1566 + /* "netCDF4/_netCDF4.pyx":1566 * for dimname in self.dimensions.keys()]) * varnames = tuple(\ * [_tostr(self.variables[varname].dtype)+' \033[4m'+_tostr(varname)+'\033[0m'+ # <<<<<<<<<<<<<< @@ -23916,7 +23916,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_8))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1566; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "netCDF4.pyx":1571 + /* "netCDF4/_netCDF4.pyx":1571 * .replace("'",""))\ * .replace(", ",","))\ * .replace(",)",")") for varname in self.variables.keys()]) # <<<<<<<<<<<<<< @@ -23926,7 +23926,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "netCDF4.pyx":1565 + /* "netCDF4/_netCDF4.pyx":1565 * dimnames = tuple([_tostr(dimname)+'(%s)'%len(self.dimensions[dimname])\ * for dimname in self.dimensions.keys()]) * varnames = tuple(\ # <<<<<<<<<<<<<< @@ -23939,7 +23939,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC __pyx_v_varnames = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; - /* "netCDF4.pyx":1572 + /* "netCDF4/_netCDF4.pyx":1572 * .replace(", ",","))\ * .replace(",)",")") for varname in self.variables.keys()]) * grpnames = tuple([_tostr(grpname) for grpname in self.groups.keys()]) # <<<<<<<<<<<<<< @@ -24045,7 +24045,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC __pyx_v_grpnames = ((PyObject*)__pyx_t_8); __pyx_t_8 = 0; - /* "netCDF4.pyx":1573 + /* "netCDF4/_netCDF4.pyx":1573 * .replace(",)",")") for varname in self.variables.keys()]) * grpnames = tuple([_tostr(grpname) for grpname in self.groups.keys()]) * if self.path == '/': # <<<<<<<<<<<<<< @@ -24055,7 +24055,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC __pyx_t_12 = (__Pyx_PyString_Equals(__pyx_v_self->path, __pyx_kp_s__15, Py_EQ)); if (unlikely(__pyx_t_12 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1573; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_12) { - /* "netCDF4.pyx":1575 + /* "netCDF4/_netCDF4.pyx":1575 * if self.path == '/': * ncdump.append('root group (%s data model, file format %s):\n' % * (self.data_model, self.disk_format)) # <<<<<<<<<<<<<< @@ -24071,7 +24071,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_v_self->disk_format); __Pyx_GIVEREF(__pyx_v_self->disk_format); - /* "netCDF4.pyx":1574 + /* "netCDF4/_netCDF4.pyx":1574 * grpnames = tuple([_tostr(grpname) for grpname in self.groups.keys()]) * if self.path == '/': * ncdump.append('root group (%s data model, file format %s):\n' % # <<<<<<<<<<<<<< @@ -24087,7 +24087,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC } /*else*/ { - /* "netCDF4.pyx":1577 + /* "netCDF4/_netCDF4.pyx":1577 * (self.data_model, self.disk_format)) * else: * ncdump.append('group %s:\n' % self.path) # <<<<<<<<<<<<<< @@ -24101,7 +24101,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC } __pyx_L9:; - /* "netCDF4.pyx":1578 + /* "netCDF4/_netCDF4.pyx":1578 * else: * ncdump.append('group %s:\n' % self.path) * attrs = [' %s: %s\n' % (name,self.getncattr(name)) for name in\ # <<<<<<<<<<<<<< @@ -24111,7 +24111,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1578; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); - /* "netCDF4.pyx":1579 + /* "netCDF4/_netCDF4.pyx":1579 * ncdump.append('group %s:\n' % self.path) * attrs = [' %s: %s\n' % (name,self.getncattr(name)) for name in\ * self.ncattrs()] # <<<<<<<<<<<<<< @@ -24179,7 +24179,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_8); __pyx_t_8 = 0; - /* "netCDF4.pyx":1578 + /* "netCDF4/_netCDF4.pyx":1578 * else: * ncdump.append('group %s:\n' % self.path) * attrs = [' %s: %s\n' % (name,self.getncattr(name)) for name in\ # <<<<<<<<<<<<<< @@ -24231,7 +24231,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC __pyx_v_attrs = ((PyObject*)__pyx_t_4); __pyx_t_4 = 0; - /* "netCDF4.pyx":1580 + /* "netCDF4/_netCDF4.pyx":1580 * attrs = [' %s: %s\n' % (name,self.getncattr(name)) for name in\ * self.ncattrs()] * ncdump = ncdump + attrs # <<<<<<<<<<<<<< @@ -24243,7 +24243,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC __Pyx_DECREF_SET(__pyx_v_ncdump, ((PyObject*)__pyx_t_4)); __pyx_t_4 = 0; - /* "netCDF4.pyx":1581 + /* "netCDF4/_netCDF4.pyx":1581 * self.ncattrs()] * ncdump = ncdump + attrs * ncdump.append(' dimensions(sizes): %s\n' % ', '.join(dimnames)) # <<<<<<<<<<<<<< @@ -24258,7 +24258,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_ncdump, __pyx_t_3); if (unlikely(__pyx_t_13 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1581; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":1582 + /* "netCDF4/_netCDF4.pyx":1582 * ncdump = ncdump + attrs * ncdump.append(' dimensions(sizes): %s\n' % ', '.join(dimnames)) * ncdump.append(' variables(dimensions): %s\n' % ', '.join(varnames)) # <<<<<<<<<<<<<< @@ -24273,7 +24273,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_ncdump, __pyx_t_4); if (unlikely(__pyx_t_13 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1582; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "netCDF4.pyx":1583 + /* "netCDF4/_netCDF4.pyx":1583 * ncdump.append(' dimensions(sizes): %s\n' % ', '.join(dimnames)) * ncdump.append(' variables(dimensions): %s\n' % ', '.join(varnames)) * ncdump.append(' groups: %s\n' % ', '.join(grpnames)) # <<<<<<<<<<<<<< @@ -24288,7 +24288,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC __pyx_t_13 = __Pyx_PyList_Append(__pyx_v_ncdump, __pyx_t_3); if (unlikely(__pyx_t_13 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1583; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":1584 + /* "netCDF4/_netCDF4.pyx":1584 * ncdump.append(' variables(dimensions): %s\n' % ', '.join(varnames)) * ncdump.append(' groups: %s\n' % ', '.join(grpnames)) * return ''.join(ncdump) # <<<<<<<<<<<<<< @@ -24302,7 +24302,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC __pyx_t_3 = 0; goto __pyx_L0; - /* "netCDF4.pyx":1561 + /* "netCDF4/_netCDF4.pyx":1561 * return unicode(self).encode(default_encoding) * * def __unicode__(self): # <<<<<<<<<<<<<< @@ -24320,7 +24320,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_10); __Pyx_XDECREF(__pyx_t_11); - __Pyx_AddTraceback("netCDF4.Dataset.__unicode__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.__unicode__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_ncdump); @@ -24337,7 +24337,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC return __pyx_r; } -/* "netCDF4.pyx":1586 +/* "netCDF4/_netCDF4.pyx":1586 * return ''.join(ncdump) * * def close(self): # <<<<<<<<<<<<<< @@ -24346,20 +24346,20 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10__unicode__(struct __pyx_obj_7netC */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_13close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static char __pyx_doc_7netCDF4_7Dataset_12close[] = "\nclose(self)\n\nClose the Dataset."; -static PyObject *__pyx_pw_7netCDF4_7Dataset_13close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_13close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_7Dataset_12close[] = "\nclose(self)\n\nClose the Dataset."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_13close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("close (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_12close(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_12close(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_12close(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_12close(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { int __pyx_v_ierr; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations @@ -24372,7 +24372,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_12close(struct __pyx_obj_7netCDF4_Da int __pyx_clineno = 0; __Pyx_RefNannySetupContext("close", 0); - /* "netCDF4.pyx":1592 + /* "netCDF4/_netCDF4.pyx":1592 * Close the Dataset.""" * cdef int ierr * ierr = nc_close(self._grpid) # <<<<<<<<<<<<<< @@ -24381,7 +24381,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_12close(struct __pyx_obj_7netCDF4_Da */ __pyx_v_ierr = nc_close(__pyx_v_self->_grpid); - /* "netCDF4.pyx":1593 + /* "netCDF4/_netCDF4.pyx":1593 * cdef int ierr * ierr = nc_close(self._grpid) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -24391,7 +24391,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_12close(struct __pyx_obj_7netCDF4_Da __pyx_t_1 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":1594 + /* "netCDF4/_netCDF4.pyx":1594 * ierr = nc_close(self._grpid) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -24415,7 +24415,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_12close(struct __pyx_obj_7netCDF4_Da {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1594; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":1595 + /* "netCDF4/_netCDF4.pyx":1595 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * self._isopen = 0 # indicates file already closed, checked by __dealloc__ # <<<<<<<<<<<<<< @@ -24424,7 +24424,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_12close(struct __pyx_obj_7netCDF4_Da */ __pyx_v_self->_isopen = 0; - /* "netCDF4.pyx":1586 + /* "netCDF4/_netCDF4.pyx":1586 * return ''.join(ncdump) * * def close(self): # <<<<<<<<<<<<<< @@ -24438,7 +24438,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_12close(struct __pyx_obj_7netCDF4_Da __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); - __Pyx_AddTraceback("netCDF4.Dataset.close", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.close", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -24446,7 +24446,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_12close(struct __pyx_obj_7netCDF4_Da return __pyx_r; } -/* "netCDF4.pyx":1597 +/* "netCDF4/_netCDF4.pyx":1597 * self._isopen = 0 # indicates file already closed, checked by __dealloc__ * * def __dealloc__(self): # <<<<<<<<<<<<<< @@ -24455,23 +24455,23 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_12close(struct __pyx_obj_7netCDF4_Da */ /* Python wrapper */ -static void __pyx_pw_7netCDF4_7Dataset_15__dealloc__(PyObject *__pyx_v_self); /*proto*/ -static void __pyx_pw_7netCDF4_7Dataset_15__dealloc__(PyObject *__pyx_v_self) { +static void __pyx_pw_7netCDF4_8_netCDF4_7Dataset_15__dealloc__(PyObject *__pyx_v_self); /*proto*/ +static void __pyx_pw_7netCDF4_8_netCDF4_7Dataset_15__dealloc__(PyObject *__pyx_v_self) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0); - __pyx_pf_7netCDF4_7Dataset_14__dealloc__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_pf_7netCDF4_8_netCDF4_7Dataset_14__dealloc__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); } -static void __pyx_pf_7netCDF4_7Dataset_14__dealloc__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static void __pyx_pf_7netCDF4_8_netCDF4_7Dataset_14__dealloc__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { CYTHON_UNUSED int __pyx_v_ierr; __Pyx_RefNannyDeclarations int __pyx_t_1; __Pyx_RefNannySetupContext("__dealloc__", 0); - /* "netCDF4.pyx":1600 + /* "netCDF4/_netCDF4.pyx":1600 * # close file when there are no references to object left * cdef int ierr * if self._isopen: # <<<<<<<<<<<<<< @@ -24481,7 +24481,7 @@ static void __pyx_pf_7netCDF4_7Dataset_14__dealloc__(struct __pyx_obj_7netCDF4_D __pyx_t_1 = (__pyx_v_self->_isopen != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":1601 + /* "netCDF4/_netCDF4.pyx":1601 * cdef int ierr * if self._isopen: * ierr = nc_close(self._grpid) # <<<<<<<<<<<<<< @@ -24493,7 +24493,7 @@ static void __pyx_pf_7netCDF4_7Dataset_14__dealloc__(struct __pyx_obj_7netCDF4_D } __pyx_L3:; - /* "netCDF4.pyx":1597 + /* "netCDF4/_netCDF4.pyx":1597 * self._isopen = 0 # indicates file already closed, checked by __dealloc__ * * def __dealloc__(self): # <<<<<<<<<<<<<< @@ -24505,7 +24505,7 @@ static void __pyx_pf_7netCDF4_7Dataset_14__dealloc__(struct __pyx_obj_7netCDF4_D __Pyx_RefNannyFinishContext(); } -/* "netCDF4.pyx":1603 +/* "netCDF4/_netCDF4.pyx":1603 * ierr = nc_close(self._grpid) * * def sync(self): # <<<<<<<<<<<<<< @@ -24514,20 +24514,20 @@ static void __pyx_pf_7netCDF4_7Dataset_14__dealloc__(struct __pyx_obj_7netCDF4_D */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_17sync(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static char __pyx_doc_7netCDF4_7Dataset_16sync[] = "\nsync(self)\n\nWrites all buffered data in the L{Dataset} to the disk file."; -static PyObject *__pyx_pw_7netCDF4_7Dataset_17sync(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_17sync(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_7Dataset_16sync[] = "\nsync(self)\n\nWrites all buffered data in the L{Dataset} to the disk file."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_17sync(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("sync (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_16sync(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_16sync(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_16sync(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_16sync(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { int __pyx_v_ierr; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations @@ -24540,7 +24540,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_16sync(struct __pyx_obj_7netCDF4_Dat int __pyx_clineno = 0; __Pyx_RefNannySetupContext("sync", 0); - /* "netCDF4.pyx":1609 + /* "netCDF4/_netCDF4.pyx":1609 * Writes all buffered data in the L{Dataset} to the disk file.""" * cdef int ierr * ierr = nc_sync(self._grpid) # <<<<<<<<<<<<<< @@ -24549,7 +24549,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_16sync(struct __pyx_obj_7netCDF4_Dat */ __pyx_v_ierr = nc_sync(__pyx_v_self->_grpid); - /* "netCDF4.pyx":1610 + /* "netCDF4/_netCDF4.pyx":1610 * cdef int ierr * ierr = nc_sync(self._grpid) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -24559,7 +24559,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_16sync(struct __pyx_obj_7netCDF4_Dat __pyx_t_1 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":1611 + /* "netCDF4/_netCDF4.pyx":1611 * ierr = nc_sync(self._grpid) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -24583,7 +24583,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_16sync(struct __pyx_obj_7netCDF4_Dat {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1611; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":1603 + /* "netCDF4/_netCDF4.pyx":1603 * ierr = nc_close(self._grpid) * * def sync(self): # <<<<<<<<<<<<<< @@ -24597,7 +24597,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_16sync(struct __pyx_obj_7netCDF4_Dat __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); - __Pyx_AddTraceback("netCDF4.Dataset.sync", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.sync", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -24605,7 +24605,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_16sync(struct __pyx_obj_7netCDF4_Dat return __pyx_r; } -/* "netCDF4.pyx":1613 +/* "netCDF4/_netCDF4.pyx":1613 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * * def _redef(self): # <<<<<<<<<<<<<< @@ -24614,25 +24614,25 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_16sync(struct __pyx_obj_7netCDF4_Dat */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_19_redef(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_7Dataset_19_redef(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_19_redef(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_19_redef(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_redef (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_18_redef(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_18_redef(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_18_redef(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_18_redef(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { CYTHON_UNUSED int __pyx_v_ierr; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_redef", 0); - /* "netCDF4.pyx":1615 + /* "netCDF4/_netCDF4.pyx":1615 * def _redef(self): * cdef int ierr * ierr = nc_redef(self._grpid) # <<<<<<<<<<<<<< @@ -24641,7 +24641,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_18_redef(struct __pyx_obj_7netCDF4_D */ __pyx_v_ierr = nc_redef(__pyx_v_self->_grpid); - /* "netCDF4.pyx":1613 + /* "netCDF4/_netCDF4.pyx":1613 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * * def _redef(self): # <<<<<<<<<<<<<< @@ -24656,7 +24656,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_18_redef(struct __pyx_obj_7netCDF4_D return __pyx_r; } -/* "netCDF4.pyx":1617 +/* "netCDF4/_netCDF4.pyx":1617 * ierr = nc_redef(self._grpid) * * def _enddef(self): # <<<<<<<<<<<<<< @@ -24665,25 +24665,25 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_18_redef(struct __pyx_obj_7netCDF4_D */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_21_enddef(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_7Dataset_21_enddef(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_21_enddef(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_21_enddef(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_enddef (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_20_enddef(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_20_enddef(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_20_enddef(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_20_enddef(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { CYTHON_UNUSED int __pyx_v_ierr; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_enddef", 0); - /* "netCDF4.pyx":1619 + /* "netCDF4/_netCDF4.pyx":1619 * def _enddef(self): * cdef int ierr * ierr = nc_enddef(self._grpid) # <<<<<<<<<<<<<< @@ -24692,7 +24692,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_20_enddef(struct __pyx_obj_7netCDF4_ */ __pyx_v_ierr = nc_enddef(__pyx_v_self->_grpid); - /* "netCDF4.pyx":1617 + /* "netCDF4/_netCDF4.pyx":1617 * ierr = nc_redef(self._grpid) * * def _enddef(self): # <<<<<<<<<<<<<< @@ -24707,7 +24707,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_20_enddef(struct __pyx_obj_7netCDF4_ return __pyx_r; } -/* "netCDF4.pyx":1621 +/* "netCDF4/_netCDF4.pyx":1621 * ierr = nc_enddef(self._grpid) * * def set_fill_on(self): # <<<<<<<<<<<<<< @@ -24716,20 +24716,20 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_20_enddef(struct __pyx_obj_7netCDF4_ */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_23set_fill_on(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static char __pyx_doc_7netCDF4_7Dataset_22set_fill_on[] = "\nset_fill_on(self)\n\nSets the fill mode for a L{Dataset} open for writing to C{on}.\n\nThis causes data to be pre-filled with fill values. The fill values can be\ncontrolled by the variable's C{_Fill_Value} attribute, but is usually\nsufficient to the use the netCDF default C{_Fill_Value} (defined\nseparately for each variable type). The default behavior of the netCDF\nlibrary correspongs to C{set_fill_on}. Data which are equal to the\nC{_Fill_Value} indicate that the variable was created, but never written\nto."; -static PyObject *__pyx_pw_7netCDF4_7Dataset_23set_fill_on(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_23set_fill_on(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_7Dataset_22set_fill_on[] = "\nset_fill_on(self)\n\nSets the fill mode for a L{Dataset} open for writing to C{on}.\n\nThis causes data to be pre-filled with fill values. The fill values can be\ncontrolled by the variable's C{_Fill_Value} attribute, but is usually\nsufficient to the use the netCDF default C{_Fill_Value} (defined\nseparately for each variable type). The default behavior of the netCDF\nlibrary correspongs to C{set_fill_on}. Data which are equal to the\nC{_Fill_Value} indicate that the variable was created, but never written\nto."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_23set_fill_on(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_fill_on (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_22set_fill_on(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_22set_fill_on(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_22set_fill_on(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_22set_fill_on(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { int __pyx_v_ierr; int __pyx_v_oldmode; PyObject *__pyx_r = NULL; @@ -24743,7 +24743,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_22set_fill_on(struct __pyx_obj_7netC int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_fill_on", 0); - /* "netCDF4.pyx":1635 + /* "netCDF4/_netCDF4.pyx":1635 * to.""" * cdef int ierr, oldmode * ierr = nc_set_fill (self._grpid, NC_FILL, &oldmode) # <<<<<<<<<<<<<< @@ -24752,7 +24752,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_22set_fill_on(struct __pyx_obj_7netC */ __pyx_v_ierr = nc_set_fill(__pyx_v_self->_grpid, NC_FILL, (&__pyx_v_oldmode)); - /* "netCDF4.pyx":1636 + /* "netCDF4/_netCDF4.pyx":1636 * cdef int ierr, oldmode * ierr = nc_set_fill (self._grpid, NC_FILL, &oldmode) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -24762,7 +24762,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_22set_fill_on(struct __pyx_obj_7netC __pyx_t_1 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":1637 + /* "netCDF4/_netCDF4.pyx":1637 * ierr = nc_set_fill (self._grpid, NC_FILL, &oldmode) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -24786,7 +24786,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_22set_fill_on(struct __pyx_obj_7netC {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1637; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":1621 + /* "netCDF4/_netCDF4.pyx":1621 * ierr = nc_enddef(self._grpid) * * def set_fill_on(self): # <<<<<<<<<<<<<< @@ -24800,7 +24800,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_22set_fill_on(struct __pyx_obj_7netC __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); - __Pyx_AddTraceback("netCDF4.Dataset.set_fill_on", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.set_fill_on", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -24808,7 +24808,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_22set_fill_on(struct __pyx_obj_7netC return __pyx_r; } -/* "netCDF4.pyx":1639 +/* "netCDF4/_netCDF4.pyx":1639 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * * def set_fill_off(self): # <<<<<<<<<<<<<< @@ -24817,20 +24817,20 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_22set_fill_on(struct __pyx_obj_7netC */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_25set_fill_off(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static char __pyx_doc_7netCDF4_7Dataset_24set_fill_off[] = "\nset_fill_off(self)\n\nSets the fill mode for a L{Dataset} open for writing to C{off}.\n\nThis will prevent the data from being pre-filled with fill values, which\nmay result in some performance improvements. However, you must then make\nsure the data is actually written before being read."; -static PyObject *__pyx_pw_7netCDF4_7Dataset_25set_fill_off(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_25set_fill_off(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_7Dataset_24set_fill_off[] = "\nset_fill_off(self)\n\nSets the fill mode for a L{Dataset} open for writing to C{off}.\n\nThis will prevent the data from being pre-filled with fill values, which\nmay result in some performance improvements. However, you must then make\nsure the data is actually written before being read."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_25set_fill_off(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_fill_off (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_24set_fill_off(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_24set_fill_off(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_24set_fill_off(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_24set_fill_off(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { int __pyx_v_ierr; int __pyx_v_oldmode; PyObject *__pyx_r = NULL; @@ -24844,7 +24844,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_24set_fill_off(struct __pyx_obj_7net int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_fill_off", 0); - /* "netCDF4.pyx":1649 + /* "netCDF4/_netCDF4.pyx":1649 * sure the data is actually written before being read.""" * cdef int ierr, oldmode * ierr = nc_set_fill (self._grpid, NC_NOFILL, &oldmode) # <<<<<<<<<<<<<< @@ -24853,7 +24853,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_24set_fill_off(struct __pyx_obj_7net */ __pyx_v_ierr = nc_set_fill(__pyx_v_self->_grpid, NC_NOFILL, (&__pyx_v_oldmode)); - /* "netCDF4.pyx":1650 + /* "netCDF4/_netCDF4.pyx":1650 * cdef int ierr, oldmode * ierr = nc_set_fill (self._grpid, NC_NOFILL, &oldmode) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -24863,7 +24863,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_24set_fill_off(struct __pyx_obj_7net __pyx_t_1 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":1651 + /* "netCDF4/_netCDF4.pyx":1651 * ierr = nc_set_fill (self._grpid, NC_NOFILL, &oldmode) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -24887,7 +24887,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_24set_fill_off(struct __pyx_obj_7net {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1651; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":1639 + /* "netCDF4/_netCDF4.pyx":1639 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * * def set_fill_off(self): # <<<<<<<<<<<<<< @@ -24901,7 +24901,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_24set_fill_off(struct __pyx_obj_7net __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); - __Pyx_AddTraceback("netCDF4.Dataset.set_fill_off", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.set_fill_off", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -24909,7 +24909,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_24set_fill_off(struct __pyx_obj_7net return __pyx_r; } -/* "netCDF4.pyx":1653 +/* "netCDF4/_netCDF4.pyx":1653 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * * def createDimension(self, dimname, size=None): # <<<<<<<<<<<<<< @@ -24918,9 +24918,9 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_24set_fill_off(struct __pyx_obj_7net */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_27createDimension(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_7netCDF4_7Dataset_26createDimension[] = "\ncreateDimension(self, dimname, size=None)\n\nCreates a new dimension with the given C{dimname} and C{size}.\n\nC{size} must be a positive integer or C{None}, which stands for\n\"unlimited\" (default is C{None}). Specifying a size of 0 also\nresults in an unlimited dimension. The return value is the L{Dimension}\nclass instance describing the new dimension. To determine the current\nmaximum size of the dimension, use the C{len} function on the L{Dimension}\ninstance. To determine if a dimension is 'unlimited', use the\nC{isunlimited()} method of the L{Dimension} instance."; -static PyObject *__pyx_pw_7netCDF4_7Dataset_27createDimension(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_27createDimension(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_7Dataset_26createDimension[] = "\ncreateDimension(self, dimname, size=None)\n\nCreates a new dimension with the given C{dimname} and C{size}.\n\nC{size} must be a positive integer or C{None}, which stands for\n\"unlimited\" (default is C{None}). Specifying a size of 0 also\nresults in an unlimited dimension. The return value is the L{Dimension}\nclass instance describing the new dimension. To determine the current\nmaximum size of the dimension, use the C{len} function on the L{Dimension}\ninstance. To determine if a dimension is 'unlimited', use the\nC{isunlimited()} method of the L{Dimension} instance."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_27createDimension(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_dimname = 0; PyObject *__pyx_v_size = 0; int __pyx_lineno = 0; @@ -24971,18 +24971,18 @@ static PyObject *__pyx_pw_7netCDF4_7Dataset_27createDimension(PyObject *__pyx_v_ __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("createDimension", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1653; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4.Dataset.createDimension", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.createDimension", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_7Dataset_26createDimension(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), __pyx_v_dimname, __pyx_v_size); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_26createDimension(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), __pyx_v_dimname, __pyx_v_size); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_26createDimension(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_dimname, PyObject *__pyx_v_size) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_26createDimension(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_dimname, PyObject *__pyx_v_size) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -24993,7 +24993,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_26createDimension(struct __pyx_obj_7 int __pyx_clineno = 0; __Pyx_RefNannySetupContext("createDimension", 0); - /* "netCDF4.pyx":1666 + /* "netCDF4/_netCDF4.pyx":1666 * instance. To determine if a dimension is 'unlimited', use the * C{isunlimited()} method of the L{Dimension} instance.""" * self.dimensions[dimname] = Dimension(self, dimname, size=size) # <<<<<<<<<<<<<< @@ -25011,14 +25011,14 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_26createDimension(struct __pyx_obj_7 __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1666; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_size, __pyx_v_size) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1666; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_Dimension)), __pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1666; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_Dimension)), __pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1666; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (unlikely(PyObject_SetItem(__pyx_v_self->dimensions, __pyx_v_dimname, __pyx_t_3) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1666; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":1667 + /* "netCDF4/_netCDF4.pyx":1667 * C{isunlimited()} method of the L{Dimension} instance.""" * self.dimensions[dimname] = Dimension(self, dimname, size=size) * return self.dimensions[dimname] # <<<<<<<<<<<<<< @@ -25032,7 +25032,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_26createDimension(struct __pyx_obj_7 __pyx_t_3 = 0; goto __pyx_L0; - /* "netCDF4.pyx":1653 + /* "netCDF4/_netCDF4.pyx":1653 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * * def createDimension(self, dimname, size=None): # <<<<<<<<<<<<<< @@ -25045,7 +25045,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_26createDimension(struct __pyx_obj_7 __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); - __Pyx_AddTraceback("netCDF4.Dataset.createDimension", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.createDimension", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -25053,7 +25053,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_26createDimension(struct __pyx_obj_7 return __pyx_r; } -/* "netCDF4.pyx":1669 +/* "netCDF4/_netCDF4.pyx":1669 * return self.dimensions[dimname] * * def renameDimension(self, oldname, newname): # <<<<<<<<<<<<<< @@ -25062,9 +25062,9 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_26createDimension(struct __pyx_obj_7 */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_29renameDimension(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_7netCDF4_7Dataset_28renameDimension[] = "\nrenameDimension(self, oldname, newname)\n\nrename a L{Dimension} named C{oldname} to C{newname}."; -static PyObject *__pyx_pw_7netCDF4_7Dataset_29renameDimension(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_29renameDimension(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_7Dataset_28renameDimension[] = "\nrenameDimension(self, oldname, newname)\n\nrename a L{Dimension} named C{oldname} to C{newname}."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_29renameDimension(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_oldname = 0; PyObject *__pyx_v_newname = 0; int __pyx_lineno = 0; @@ -25112,18 +25112,18 @@ static PyObject *__pyx_pw_7netCDF4_7Dataset_29renameDimension(PyObject *__pyx_v_ __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("renameDimension", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1669; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4.Dataset.renameDimension", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.renameDimension", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_7Dataset_28renameDimension(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), __pyx_v_oldname, __pyx_v_newname); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_28renameDimension(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), __pyx_v_oldname, __pyx_v_newname); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_28renameDimension(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_oldname, PyObject *__pyx_v_newname) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_28renameDimension(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_oldname, PyObject *__pyx_v_newname) { char *__pyx_v_namstring; PyObject *__pyx_v_bytestr = NULL; PyObject *__pyx_v_dim = NULL; @@ -25146,19 +25146,19 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_28renameDimension(struct __pyx_obj_7 int __pyx_clineno = 0; __Pyx_RefNannySetupContext("renameDimension", 0); - /* "netCDF4.pyx":1675 + /* "netCDF4/_netCDF4.pyx":1675 * rename a L{Dimension} named C{oldname} to C{newname}.""" * cdef char *namstring * bytestr = _strencode(newname) # <<<<<<<<<<<<<< * namstring = bytestr * if self.data_model != 'NETCDF4': self._redef() */ - __pyx_t_1 = __pyx_f_7netCDF4__strencode(__pyx_v_newname, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1675; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_7netCDF4_8_netCDF4__strencode(__pyx_v_newname, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1675; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_v_bytestr = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":1676 + /* "netCDF4/_netCDF4.pyx":1676 * cdef char *namstring * bytestr = _strencode(newname) * namstring = bytestr # <<<<<<<<<<<<<< @@ -25168,7 +25168,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_28renameDimension(struct __pyx_obj_7 __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_v_bytestr); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1676; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_namstring = __pyx_t_2; - /* "netCDF4.pyx":1677 + /* "netCDF4/_netCDF4.pyx":1677 * bytestr = _strencode(newname) * namstring = bytestr * if self.data_model != 'NETCDF4': self._redef() # <<<<<<<<<<<<<< @@ -25202,7 +25202,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_28renameDimension(struct __pyx_obj_7 } __pyx_L3:; - /* "netCDF4.pyx":1678 + /* "netCDF4/_netCDF4.pyx":1678 * namstring = bytestr * if self.data_model != 'NETCDF4': self._redef() * try: # <<<<<<<<<<<<<< @@ -25216,7 +25216,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_28renameDimension(struct __pyx_obj_7 __Pyx_XGOTREF(__pyx_t_8); /*try:*/ { - /* "netCDF4.pyx":1679 + /* "netCDF4/_netCDF4.pyx":1679 * if self.data_model != 'NETCDF4': self._redef() * try: * dim = self.dimensions[oldname] # <<<<<<<<<<<<<< @@ -25237,7 +25237,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_28renameDimension(struct __pyx_obj_7 __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":1680 + /* "netCDF4/_netCDF4.pyx":1680 * try: * dim = self.dimensions[oldname] * except KeyError: # <<<<<<<<<<<<<< @@ -25246,13 +25246,13 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_28renameDimension(struct __pyx_obj_7 */ __pyx_t_9 = PyErr_ExceptionMatches(__pyx_builtin_KeyError); if (__pyx_t_9) { - __Pyx_AddTraceback("netCDF4.Dataset.renameDimension", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.renameDimension", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_4, &__pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1680; __pyx_clineno = __LINE__; goto __pyx_L6_except_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_4); __Pyx_GOTREF(__pyx_t_5); - /* "netCDF4.pyx":1681 + /* "netCDF4/_netCDF4.pyx":1681 * dim = self.dimensions[oldname] * except KeyError: * raise KeyError('%s not a valid dimension name' % oldname) # <<<<<<<<<<<<<< @@ -25283,7 +25283,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_28renameDimension(struct __pyx_obj_7 __pyx_L11_try_end:; } - /* "netCDF4.pyx":1682 + /* "netCDF4/_netCDF4.pyx":1682 * except KeyError: * raise KeyError('%s not a valid dimension name' % oldname) * ierr = nc_rename_dim(self._grpid, dim._dimid, namstring) # <<<<<<<<<<<<<< @@ -25296,7 +25296,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_28renameDimension(struct __pyx_obj_7 __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_ierr = nc_rename_dim(__pyx_v_self->_grpid, __pyx_t_9, __pyx_v_namstring); - /* "netCDF4.pyx":1683 + /* "netCDF4/_netCDF4.pyx":1683 * raise KeyError('%s not a valid dimension name' % oldname) * ierr = nc_rename_dim(self._grpid, dim._dimid, namstring) * if self.data_model != 'NETCDF4': self._enddef() # <<<<<<<<<<<<<< @@ -25330,7 +25330,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_28renameDimension(struct __pyx_obj_7 } __pyx_L14:; - /* "netCDF4.pyx":1684 + /* "netCDF4/_netCDF4.pyx":1684 * ierr = nc_rename_dim(self._grpid, dim._dimid, namstring) * if self.data_model != 'NETCDF4': self._enddef() * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -25340,7 +25340,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_28renameDimension(struct __pyx_obj_7 __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":1685 + /* "netCDF4/_netCDF4.pyx":1685 * if self.data_model != 'NETCDF4': self._enddef() * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -25364,7 +25364,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_28renameDimension(struct __pyx_obj_7 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1685; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":1687 + /* "netCDF4/_netCDF4.pyx":1687 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * # remove old key from dimensions dict. * self.dimensions.pop(oldname) # <<<<<<<<<<<<<< @@ -25400,7 +25400,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_28renameDimension(struct __pyx_obj_7 __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "netCDF4.pyx":1689 + /* "netCDF4/_netCDF4.pyx":1689 * self.dimensions.pop(oldname) * # add new key. * self.dimensions[newname] = dim # <<<<<<<<<<<<<< @@ -25409,7 +25409,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_28renameDimension(struct __pyx_obj_7 */ if (unlikely(PyObject_SetItem(__pyx_v_self->dimensions, __pyx_v_newname, __pyx_v_dim) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1689; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":1669 + /* "netCDF4/_netCDF4.pyx":1669 * return self.dimensions[dimname] * * def renameDimension(self, oldname, newname): # <<<<<<<<<<<<<< @@ -25426,7 +25426,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_28renameDimension(struct __pyx_obj_7 __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_10); __Pyx_XDECREF(__pyx_t_11); - __Pyx_AddTraceback("netCDF4.Dataset.renameDimension", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.renameDimension", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_bytestr); @@ -25436,7 +25436,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_28renameDimension(struct __pyx_obj_7 return __pyx_r; } -/* "netCDF4.pyx":1693 +/* "netCDF4/_netCDF4.pyx":1693 * # looks in the file, so no need to manually update. * * def createCompoundType(self, datatype, datatype_name): # <<<<<<<<<<<<<< @@ -25445,9 +25445,9 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_28renameDimension(struct __pyx_obj_7 */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_31createCompoundType(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_7netCDF4_7Dataset_30createCompoundType[] = "\ncreateCompoundType(self, datatype, datatype_name)\n\nCreates a new compound data type named C{datatype_name} from the numpy\ndtype object C{datatype}.\n\n@attention: If the new compound data type contains other compound data types\n(i.e. it is a 'nested' compound type, where not all of the elements\nare homogenous numeric data types), then the 'inner' compound types B{must} be\ncreated first.\n\nThe return value is the L{CompoundType} class instance describing the new\ndatatype."; -static PyObject *__pyx_pw_7netCDF4_7Dataset_31createCompoundType(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_31createCompoundType(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_7Dataset_30createCompoundType[] = "\ncreateCompoundType(self, datatype, datatype_name)\n\nCreates a new compound data type named C{datatype_name} from the numpy\ndtype object C{datatype}.\n\n@attention: If the new compound data type contains other compound data types\n(i.e. it is a 'nested' compound type, where not all of the elements\nare homogenous numeric data types), then the 'inner' compound types B{must} be\ncreated first.\n\nThe return value is the L{CompoundType} class instance describing the new\ndatatype."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_31createCompoundType(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_datatype = 0; PyObject *__pyx_v_datatype_name = 0; int __pyx_lineno = 0; @@ -25495,18 +25495,18 @@ static PyObject *__pyx_pw_7netCDF4_7Dataset_31createCompoundType(PyObject *__pyx __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("createCompoundType", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1693; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4.Dataset.createCompoundType", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.createCompoundType", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_7Dataset_30createCompoundType(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), __pyx_v_datatype, __pyx_v_datatype_name); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_30createCompoundType(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), __pyx_v_datatype, __pyx_v_datatype_name); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_30createCompoundType(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_datatype, PyObject *__pyx_v_datatype_name) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_30createCompoundType(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_datatype, PyObject *__pyx_v_datatype_name) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -25516,7 +25516,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_30createCompoundType(struct __pyx_ob int __pyx_clineno = 0; __Pyx_RefNannySetupContext("createCompoundType", 0); - /* "netCDF4.pyx":1707 + /* "netCDF4/_netCDF4.pyx":1707 * The return value is the L{CompoundType} class instance describing the new * datatype.""" * self.cmptypes[datatype_name] = CompoundType(self, datatype,\ # <<<<<<<<<<<<<< @@ -25534,13 +25534,13 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_30createCompoundType(struct __pyx_ob __Pyx_INCREF(__pyx_v_datatype_name); PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_datatype_name); __Pyx_GIVEREF(__pyx_v_datatype_name); - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_CompoundType)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1707; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_CompoundType)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1707; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(PyObject_SetItem(__pyx_v_self->cmptypes, __pyx_v_datatype_name, __pyx_t_2) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1707; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":1709 + /* "netCDF4/_netCDF4.pyx":1709 * self.cmptypes[datatype_name] = CompoundType(self, datatype,\ * datatype_name) * return self.cmptypes[datatype_name] # <<<<<<<<<<<<<< @@ -25554,7 +25554,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_30createCompoundType(struct __pyx_ob __pyx_t_2 = 0; goto __pyx_L0; - /* "netCDF4.pyx":1693 + /* "netCDF4/_netCDF4.pyx":1693 * # looks in the file, so no need to manually update. * * def createCompoundType(self, datatype, datatype_name): # <<<<<<<<<<<<<< @@ -25566,7 +25566,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_30createCompoundType(struct __pyx_ob __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); - __Pyx_AddTraceback("netCDF4.Dataset.createCompoundType", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.createCompoundType", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -25574,7 +25574,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_30createCompoundType(struct __pyx_ob return __pyx_r; } -/* "netCDF4.pyx":1711 +/* "netCDF4/_netCDF4.pyx":1711 * return self.cmptypes[datatype_name] * * def createVLType(self, datatype, datatype_name): # <<<<<<<<<<<<<< @@ -25583,9 +25583,9 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_30createCompoundType(struct __pyx_ob */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_33createVLType(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_7netCDF4_7Dataset_32createVLType[] = "\ncreateVLType(self, datatype, datatype_name)\n\nCreates a new VLEN data type named C{datatype_name} from a numpy\ndtype object C{datatype}.\n\nThe return value is the L{VLType} class instance describing the new\ndatatype."; -static PyObject *__pyx_pw_7netCDF4_7Dataset_33createVLType(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_33createVLType(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_7Dataset_32createVLType[] = "\ncreateVLType(self, datatype, datatype_name)\n\nCreates a new VLEN data type named C{datatype_name} from a numpy\ndtype object C{datatype}.\n\nThe return value is the L{VLType} class instance describing the new\ndatatype."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_33createVLType(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_datatype = 0; PyObject *__pyx_v_datatype_name = 0; int __pyx_lineno = 0; @@ -25633,18 +25633,18 @@ static PyObject *__pyx_pw_7netCDF4_7Dataset_33createVLType(PyObject *__pyx_v_sel __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("createVLType", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1711; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4.Dataset.createVLType", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.createVLType", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_7Dataset_32createVLType(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), __pyx_v_datatype, __pyx_v_datatype_name); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_32createVLType(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), __pyx_v_datatype, __pyx_v_datatype_name); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_32createVLType(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_datatype, PyObject *__pyx_v_datatype_name) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_32createVLType(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_datatype, PyObject *__pyx_v_datatype_name) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -25654,7 +25654,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_32createVLType(struct __pyx_obj_7net int __pyx_clineno = 0; __Pyx_RefNannySetupContext("createVLType", 0); - /* "netCDF4.pyx":1720 + /* "netCDF4/_netCDF4.pyx":1720 * The return value is the L{VLType} class instance describing the new * datatype.""" * self.vltypes[datatype_name] = VLType(self, datatype, datatype_name) # <<<<<<<<<<<<<< @@ -25672,13 +25672,13 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_32createVLType(struct __pyx_obj_7net __Pyx_INCREF(__pyx_v_datatype_name); PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_datatype_name); __Pyx_GIVEREF(__pyx_v_datatype_name); - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_VLType)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1720; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_VLType)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1720; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(PyObject_SetItem(__pyx_v_self->vltypes, __pyx_v_datatype_name, __pyx_t_2) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1720; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":1721 + /* "netCDF4/_netCDF4.pyx":1721 * datatype.""" * self.vltypes[datatype_name] = VLType(self, datatype, datatype_name) * return self.vltypes[datatype_name] # <<<<<<<<<<<<<< @@ -25692,7 +25692,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_32createVLType(struct __pyx_obj_7net __pyx_t_2 = 0; goto __pyx_L0; - /* "netCDF4.pyx":1711 + /* "netCDF4/_netCDF4.pyx":1711 * return self.cmptypes[datatype_name] * * def createVLType(self, datatype, datatype_name): # <<<<<<<<<<<<<< @@ -25704,7 +25704,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_32createVLType(struct __pyx_obj_7net __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); - __Pyx_AddTraceback("netCDF4.Dataset.createVLType", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.createVLType", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -25712,7 +25712,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_32createVLType(struct __pyx_obj_7net return __pyx_r; } -/* "netCDF4.pyx":1723 +/* "netCDF4/_netCDF4.pyx":1723 * return self.vltypes[datatype_name] * * def createVariable(self, varname, datatype, dimensions=(), zlib=False, # <<<<<<<<<<<<<< @@ -25721,9 +25721,9 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_32createVLType(struct __pyx_obj_7net */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_35createVariable(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_7netCDF4_7Dataset_34createVariable[] = "\ncreateVariable(self, varname, datatype, dimensions=(), zlib=False, complevel=4, shuffle=True, fletcher32=False, contiguous=False, chunksizes=None, endian='native', least_significant_digit=None, fill_value=None)\n\nCreates a new variable with the given C{varname}, C{datatype}, and\nC{dimensions}. If dimensions are not given, the variable is assumed to be\na scalar.\n\nThe C{datatype} can be a numpy datatype object, or a string that describes\na numpy dtype object (like the C{dtype.str} attribue of a numpy array).\nSupported specifiers include: C{'S1' or 'c' (NC_CHAR), 'i1' or 'b' or 'B'\n(NC_BYTE), 'u1' (NC_UBYTE), 'i2' or 'h' or 's' (NC_SHORT), 'u2'\n(NC_USHORT), 'i4' or 'i' or 'l' (NC_INT), 'u4' (NC_UINT), 'i8' (NC_INT64),\n'u8' (NC_UINT64), 'f4' or 'f' (NC_FLOAT), 'f8' or 'd' (NC_DOUBLE)}.\nC{datatype} can also be a L{CompoundType} instance\n(for a structured, or compound array), a L{VLType} instance\n(for a variable-length array), or the python C{str} builtin\n(for a variable-length string array). Numpy string and unicode datatypes with\nlength greater than one are aliases for C{str}.\n\nData from netCDF variables is presented to python as numpy arrays with\nthe corresponding data type.\n\nC{dimensions} must be a tuple containing dimension names (strings) that\nhave been defined previously using C{createDimension}. The default value\nis an empty tuple, which means the variable is a scalar.\n\nIf the optional keyword C{zlib} is C{True}, the data will be compressed in\nthe netCDF file using gzip compression (default C{False}).\n\nThe optional keyword C{complevel} is an integer between 1 and 9 describing\nthe level of compression desired (default 4). Ignored if C{zlib=False}.\n\nIf the optional keyword C{shuffle} is C{True}, the HDF5 shuffle filter\nwill be applied before compressing the data (default C{True}). This\nsignificantly improves compression. Default is C{True}. Ignored if\nC{zlib=False}.\n\nIf the optional keyword C{fletcher32} is C{True}, the Fletcher""32 HDF5\nchecksum algorithm is activated to detect errors. Default C{False}.\n\nIf the optional keyword C{contiguous} is C{True}, the variable data is\nstored contiguously on disk. Default C{False}. Setting to C{True} for\na variable with an unlimited dimension will trigger an error.\n\nThe optional keyword C{chunksizes} can be used to manually specify the\nHDF5 chunksizes for each dimension of the variable. A detailed\ndiscussion of HDF chunking and I/O performance is available U{here\n}.\nBasically, you want the chunk size for each dimension to match as\nclosely as possible the size of the data block that users will read\nfrom the file. C{chunksizes} cannot be set if C{contiguous=True}.\n\nThe optional keyword C{endian} can be used to control whether the\ndata is stored in little or big endian format on disk. Possible\nvalues are C{little, big} or C{native} (default). The library\nwill automatically handle endian conversions when the data is read,\nbut if the data is always going to be read on a computer with the\nopposite format as the one used to create the file, there may be\nsome performance advantage to be gained by setting the endian-ness.\n\nThe C{zlib, complevel, shuffle, fletcher32, contiguous, chunksizes} and C{endian}\nkeywords are silently ignored for netCDF 3 files that do not use HDF5.\n\nThe optional keyword C{fill_value} can be used to override the default\nnetCDF C{_FillValue} (the value that the variable gets filled with before\nany data is written to it, defaults given in netCDF4.default_fillvals).\nIf fill_value is set to C{False}, then the variable is not pre-filled.\n\nIf the optional keyword parameter C{least_significant_digit} is\nspecified, variable data will be truncated (quantized). In conjunction\nwith C{zlib=True} this produces 'lossy', but significantly more\nefficient compression. For example, if C{least_significant_digit=1},\ndata will be quantized using C{numpy.around(scale*""data)/scale}, where\nscale = 2**bits, and bits is determined so that a precision of 0.1 is\nretained (in this case bits=4). From\nU{http://www.cdc.noaa.gov/cdc/conventions/cdc_netcdf_standard.shtml}:\n\"least_significant_digit -- power of ten of the smallest decimal place\nin unpacked data that is a reliable value.\" Default is C{None}, or no\nquantization, or 'lossless' compression.\n\nWhen creating variables in a C{NETCDF4} or C{NETCDF4_CLASSIC} formatted file,\nHDF5 creates something called a 'chunk cache' for each variable. The\ndefault size of the chunk cache may be large enough to completely fill\navailable memory when creating thousands of variables. The optional\nkeyword C{chunk_cache} allows you to reduce (or increase) the size of\nthe default chunk cache when creating a variable. The setting only\npersists as long as the Dataset is open - you can use the set_var_chunk_cache\nmethod to change it the next time the Dataset is opened.\nWarning - messing with this parameter can seriously degrade performance.\n\nThe return value is the L{Variable} class instance describing the new\nvariable.\n\nA list of names corresponding to netCDF variable attributes can be\nobtained with the L{Variable} method C{ncattrs()}. A dictionary\ncontaining all the netCDF attribute name/value pairs is provided by\nthe C{__dict__} attribute of a L{Variable} instance.\n\nL{Variable} instances behave much like array objects. Data can be\nassigned to or retrieved from a variable with indexing and slicing\noperations on the L{Variable} instance. A L{Variable} instance has six\nDataset standard attributes: C{dimensions, dtype, shape, ndim, name} and\nC{least_significant_digit}. Application programs should never modify\nthese attributes. The C{dimensions} attribute is a tuple containing the\nnames of the dimensions associated with this variable. The C{dtype}\nattribute is a string describing the variable's data type (C{i4, f8,\nS1,} etc). The C{shape} attribute is a tuple describing the ""current\nsizes of all the variable's dimensions. The C{name} attribute is a\nstring containing the name of the Variable instance.\nThe C{least_significant_digit}\nattributes describes the power of ten of the smallest decimal place in\nthe data the contains a reliable value. assigned to the L{Variable}\ninstance. If C{None}, the data is not truncated. The C{ndim} attribute\nis the number of variable dimensions."; -static PyObject *__pyx_pw_7netCDF4_7Dataset_35createVariable(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_35createVariable(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_7Dataset_34createVariable[] = "\ncreateVariable(self, varname, datatype, dimensions=(), zlib=False, complevel=4, shuffle=True, fletcher32=False, contiguous=False, chunksizes=None, endian='native', least_significant_digit=None, fill_value=None)\n\nCreates a new variable with the given C{varname}, C{datatype}, and\nC{dimensions}. If dimensions are not given, the variable is assumed to be\na scalar.\n\nThe C{datatype} can be a numpy datatype object, or a string that describes\na numpy dtype object (like the C{dtype.str} attribue of a numpy array).\nSupported specifiers include: C{'S1' or 'c' (NC_CHAR), 'i1' or 'b' or 'B'\n(NC_BYTE), 'u1' (NC_UBYTE), 'i2' or 'h' or 's' (NC_SHORT), 'u2'\n(NC_USHORT), 'i4' or 'i' or 'l' (NC_INT), 'u4' (NC_UINT), 'i8' (NC_INT64),\n'u8' (NC_UINT64), 'f4' or 'f' (NC_FLOAT), 'f8' or 'd' (NC_DOUBLE)}.\nC{datatype} can also be a L{CompoundType} instance\n(for a structured, or compound array), a L{VLType} instance\n(for a variable-length array), or the python C{str} builtin\n(for a variable-length string array). Numpy string and unicode datatypes with\nlength greater than one are aliases for C{str}.\n\nData from netCDF variables is presented to python as numpy arrays with\nthe corresponding data type.\n\nC{dimensions} must be a tuple containing dimension names (strings) that\nhave been defined previously using C{createDimension}. The default value\nis an empty tuple, which means the variable is a scalar.\n\nIf the optional keyword C{zlib} is C{True}, the data will be compressed in\nthe netCDF file using gzip compression (default C{False}).\n\nThe optional keyword C{complevel} is an integer between 1 and 9 describing\nthe level of compression desired (default 4). Ignored if C{zlib=False}.\n\nIf the optional keyword C{shuffle} is C{True}, the HDF5 shuffle filter\nwill be applied before compressing the data (default C{True}). This\nsignificantly improves compression. Default is C{True}. Ignored if\nC{zlib=False}.\n\nIf the optional keyword C{fletcher32} is C{True}, the Fletcher""32 HDF5\nchecksum algorithm is activated to detect errors. Default C{False}.\n\nIf the optional keyword C{contiguous} is C{True}, the variable data is\nstored contiguously on disk. Default C{False}. Setting to C{True} for\na variable with an unlimited dimension will trigger an error.\n\nThe optional keyword C{chunksizes} can be used to manually specify the\nHDF5 chunksizes for each dimension of the variable. A detailed\ndiscussion of HDF chunking and I/O performance is available U{here\n}.\nBasically, you want the chunk size for each dimension to match as\nclosely as possible the size of the data block that users will read\nfrom the file. C{chunksizes} cannot be set if C{contiguous=True}.\n\nThe optional keyword C{endian} can be used to control whether the\ndata is stored in little or big endian format on disk. Possible\nvalues are C{little, big} or C{native} (default). The library\nwill automatically handle endian conversions when the data is read,\nbut if the data is always going to be read on a computer with the\nopposite format as the one used to create the file, there may be\nsome performance advantage to be gained by setting the endian-ness.\n\nThe C{zlib, complevel, shuffle, fletcher32, contiguous, chunksizes} and C{endian}\nkeywords are silently ignored for netCDF 3 files that do not use HDF5.\n\nThe optional keyword C{fill_value} can be used to override the default\nnetCDF C{_FillValue} (the value that the variable gets filled with before\nany data is written to it, defaults given in netCDF4.default_fillvals).\nIf fill_value is set to C{False}, then the variable is not pre-filled.\n\nIf the optional keyword parameter C{least_significant_digit} is\nspecified, variable data will be truncated (quantized). In conjunction\nwith C{zlib=True} this produces 'lossy', but significantly more\nefficient compression. For example, if C{least_significant_digit=1},\ndata will be quantized using C{numpy.around(scale*""data)/scale}, where\nscale = 2**bits, and bits is determined so that a precision of 0.1 is\nretained (in this case bits=4). From\nU{http://www.cdc.noaa.gov/cdc/conventions/cdc_netcdf_standard.shtml}:\n\"least_significant_digit -- power of ten of the smallest decimal place\nin unpacked data that is a reliable value.\" Default is C{None}, or no\nquantization, or 'lossless' compression.\n\nWhen creating variables in a C{NETCDF4} or C{NETCDF4_CLASSIC} formatted file,\nHDF5 creates something called a 'chunk cache' for each variable. The\ndefault size of the chunk cache may be large enough to completely fill\navailable memory when creating thousands of variables. The optional\nkeyword C{chunk_cache} allows you to reduce (or increase) the size of\nthe default chunk cache when creating a variable. The setting only\npersists as long as the Dataset is open - you can use the set_var_chunk_cache\nmethod to change it the next time the Dataset is opened.\nWarning - messing with this parameter can seriously degrade performance.\n\nThe return value is the L{Variable} class instance describing the new\nvariable.\n\nA list of names corresponding to netCDF variable attributes can be\nobtained with the L{Variable} method C{ncattrs()}. A dictionary\ncontaining all the netCDF attribute name/value pairs is provided by\nthe C{__dict__} attribute of a L{Variable} instance.\n\nL{Variable} instances behave much like array objects. Data can be\nassigned to or retrieved from a variable with indexing and slicing\noperations on the L{Variable} instance. A L{Variable} instance has six\nDataset standard attributes: C{dimensions, dtype, shape, ndim, name} and\nC{least_significant_digit}. Application programs should never modify\nthese attributes. The C{dimensions} attribute is a tuple containing the\nnames of the dimensions associated with this variable. The C{dtype}\nattribute is a string describing the variable's data type (C{i4, f8,\nS1,} etc). The C{shape} attribute is a tuple describing the ""current\nsizes of all the variable's dimensions. The C{name} attribute is a\nstring containing the name of the Variable instance.\nThe C{least_significant_digit}\nattributes describes the power of ten of the smallest decimal place in\nthe data the contains a reliable value. assigned to the L{Variable}\ninstance. If C{None}, the data is not truncated. The C{ndim} attribute\nis the number of variable dimensions."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_35createVariable(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_varname = 0; PyObject *__pyx_v_datatype = 0; PyObject *__pyx_v_dimensions = 0; @@ -25750,7 +25750,7 @@ static PyObject *__pyx_pw_7netCDF4_7Dataset_35createVariable(PyObject *__pyx_v_s values[3] = ((PyObject *)Py_False); values[4] = ((PyObject *)__pyx_int_4); - /* "netCDF4.pyx":1724 + /* "netCDF4/_netCDF4.pyx":1724 * * def createVariable(self, varname, datatype, dimensions=(), zlib=False, * complevel=4, shuffle=True, fletcher32=False, contiguous=False, # <<<<<<<<<<<<<< @@ -25761,7 +25761,7 @@ static PyObject *__pyx_pw_7netCDF4_7Dataset_35createVariable(PyObject *__pyx_v_s values[6] = ((PyObject *)Py_False); values[7] = ((PyObject *)Py_False); - /* "netCDF4.pyx":1725 + /* "netCDF4/_netCDF4.pyx":1725 * def createVariable(self, varname, datatype, dimensions=(), zlib=False, * complevel=4, shuffle=True, fletcher32=False, contiguous=False, * chunksizes=None, endian='native', least_significant_digit=None, # <<<<<<<<<<<<<< @@ -25772,7 +25772,7 @@ static PyObject *__pyx_pw_7netCDF4_7Dataset_35createVariable(PyObject *__pyx_v_s values[9] = ((PyObject *)__pyx_n_s_native); values[10] = ((PyObject *)Py_None); - /* "netCDF4.pyx":1726 + /* "netCDF4/_netCDF4.pyx":1726 * complevel=4, shuffle=True, fletcher32=False, contiguous=False, * chunksizes=None, endian='native', least_significant_digit=None, * fill_value=None, chunk_cache=None): # <<<<<<<<<<<<<< @@ -25907,13 +25907,13 @@ static PyObject *__pyx_pw_7netCDF4_7Dataset_35createVariable(PyObject *__pyx_v_s __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("createVariable", 0, 2, 13, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1723; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4.Dataset.createVariable", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.createVariable", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_7Dataset_34createVariable(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), __pyx_v_varname, __pyx_v_datatype, __pyx_v_dimensions, __pyx_v_zlib, __pyx_v_complevel, __pyx_v_shuffle, __pyx_v_fletcher32, __pyx_v_contiguous, __pyx_v_chunksizes, __pyx_v_endian, __pyx_v_least_significant_digit, __pyx_v_fill_value, __pyx_v_chunk_cache); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_34createVariable(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), __pyx_v_varname, __pyx_v_datatype, __pyx_v_dimensions, __pyx_v_zlib, __pyx_v_complevel, __pyx_v_shuffle, __pyx_v_fletcher32, __pyx_v_contiguous, __pyx_v_chunksizes, __pyx_v_endian, __pyx_v_least_significant_digit, __pyx_v_fill_value, __pyx_v_chunk_cache); - /* "netCDF4.pyx":1723 + /* "netCDF4/_netCDF4.pyx":1723 * return self.vltypes[datatype_name] * * def createVariable(self, varname, datatype, dimensions=(), zlib=False, # <<<<<<<<<<<<<< @@ -25926,7 +25926,7 @@ static PyObject *__pyx_pw_7netCDF4_7Dataset_35createVariable(PyObject *__pyx_v_s return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_34createVariable(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_varname, PyObject *__pyx_v_datatype, PyObject *__pyx_v_dimensions, PyObject *__pyx_v_zlib, PyObject *__pyx_v_complevel, PyObject *__pyx_v_shuffle, PyObject *__pyx_v_fletcher32, PyObject *__pyx_v_contiguous, PyObject *__pyx_v_chunksizes, PyObject *__pyx_v_endian, PyObject *__pyx_v_least_significant_digit, PyObject *__pyx_v_fill_value, PyObject *__pyx_v_chunk_cache) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_34createVariable(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_varname, PyObject *__pyx_v_datatype, PyObject *__pyx_v_dimensions, PyObject *__pyx_v_zlib, PyObject *__pyx_v_complevel, PyObject *__pyx_v_shuffle, PyObject *__pyx_v_fletcher32, PyObject *__pyx_v_contiguous, PyObject *__pyx_v_chunksizes, PyObject *__pyx_v_endian, PyObject *__pyx_v_least_significant_digit, PyObject *__pyx_v_fill_value, PyObject *__pyx_v_chunk_cache) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -25937,7 +25937,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_34createVariable(struct __pyx_obj_7n int __pyx_clineno = 0; __Pyx_RefNannySetupContext("createVariable", 0); - /* "netCDF4.pyx":1841 + /* "netCDF4/_netCDF4.pyx":1841 * instance. If C{None}, the data is not truncated. The C{ndim} attribute * is the number of variable dimensions.""" * self.variables[varname] = Variable(self, varname, datatype, # <<<<<<<<<<<<<< @@ -25958,7 +25958,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_34createVariable(struct __pyx_obj_7n __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1841; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - /* "netCDF4.pyx":1842 + /* "netCDF4/_netCDF4.pyx":1842 * is the number of variable dimensions.""" * self.variables[varname] = Variable(self, varname, datatype, * dimensions=dimensions, zlib=zlib, complevel=complevel, shuffle=shuffle, # <<<<<<<<<<<<<< @@ -25970,7 +25970,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_34createVariable(struct __pyx_obj_7n if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_complevel, __pyx_v_complevel) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1841; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_shuffle, __pyx_v_shuffle) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1841; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":1843 + /* "netCDF4/_netCDF4.pyx":1843 * self.variables[varname] = Variable(self, varname, datatype, * dimensions=dimensions, zlib=zlib, complevel=complevel, shuffle=shuffle, * fletcher32=fletcher32, contiguous=contiguous, chunksizes=chunksizes, # <<<<<<<<<<<<<< @@ -25981,7 +25981,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_34createVariable(struct __pyx_obj_7n if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_contiguous, __pyx_v_contiguous) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1841; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_chunksizes, __pyx_v_chunksizes) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1841; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":1844 + /* "netCDF4/_netCDF4.pyx":1844 * dimensions=dimensions, zlib=zlib, complevel=complevel, shuffle=shuffle, * fletcher32=fletcher32, contiguous=contiguous, chunksizes=chunksizes, * endian=endian, least_significant_digit=least_significant_digit, # <<<<<<<<<<<<<< @@ -25991,7 +25991,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_34createVariable(struct __pyx_obj_7n if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_endian, __pyx_v_endian) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1841; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_least_significant_digit, __pyx_v_least_significant_digit) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1841; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":1845 + /* "netCDF4/_netCDF4.pyx":1845 * fletcher32=fletcher32, contiguous=contiguous, chunksizes=chunksizes, * endian=endian, least_significant_digit=least_significant_digit, * fill_value=fill_value, chunk_cache=chunk_cache) # <<<<<<<<<<<<<< @@ -26001,21 +26001,21 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_34createVariable(struct __pyx_obj_7n if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_fill_value, __pyx_v_fill_value) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1841; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_chunk_cache, __pyx_v_chunk_cache) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1841; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":1841 + /* "netCDF4/_netCDF4.pyx":1841 * instance. If C{None}, the data is not truncated. The C{ndim} attribute * is the number of variable dimensions.""" * self.variables[varname] = Variable(self, varname, datatype, # <<<<<<<<<<<<<< * dimensions=dimensions, zlib=zlib, complevel=complevel, shuffle=shuffle, * fletcher32=fletcher32, contiguous=contiguous, chunksizes=chunksizes, */ - __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_Variable)), __pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1841; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_Variable)), __pyx_t_1, __pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1841; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (unlikely(PyObject_SetItem(__pyx_v_self->variables, __pyx_v_varname, __pyx_t_3) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1841; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":1846 + /* "netCDF4/_netCDF4.pyx":1846 * endian=endian, least_significant_digit=least_significant_digit, * fill_value=fill_value, chunk_cache=chunk_cache) * return self.variables[varname] # <<<<<<<<<<<<<< @@ -26029,7 +26029,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_34createVariable(struct __pyx_obj_7n __pyx_t_3 = 0; goto __pyx_L0; - /* "netCDF4.pyx":1723 + /* "netCDF4/_netCDF4.pyx":1723 * return self.vltypes[datatype_name] * * def createVariable(self, varname, datatype, dimensions=(), zlib=False, # <<<<<<<<<<<<<< @@ -26042,7 +26042,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_34createVariable(struct __pyx_obj_7n __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); - __Pyx_AddTraceback("netCDF4.Dataset.createVariable", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.createVariable", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -26050,7 +26050,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_34createVariable(struct __pyx_obj_7n return __pyx_r; } -/* "netCDF4.pyx":1848 +/* "netCDF4/_netCDF4.pyx":1848 * return self.variables[varname] * * def renameVariable(self, oldname, newname): # <<<<<<<<<<<<<< @@ -26059,9 +26059,9 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_34createVariable(struct __pyx_obj_7n */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_37renameVariable(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_7netCDF4_7Dataset_36renameVariable[] = "\nrenameVariable(self, oldname, newname)\n\nrename a L{Variable} named C{oldname} to C{newname}"; -static PyObject *__pyx_pw_7netCDF4_7Dataset_37renameVariable(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_37renameVariable(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_7Dataset_36renameVariable[] = "\nrenameVariable(self, oldname, newname)\n\nrename a L{Variable} named C{oldname} to C{newname}"; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_37renameVariable(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_oldname = 0; PyObject *__pyx_v_newname = 0; int __pyx_lineno = 0; @@ -26109,18 +26109,18 @@ static PyObject *__pyx_pw_7netCDF4_7Dataset_37renameVariable(PyObject *__pyx_v_s __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("renameVariable", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1848; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4.Dataset.renameVariable", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.renameVariable", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_7Dataset_36renameVariable(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), __pyx_v_oldname, __pyx_v_newname); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_36renameVariable(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), __pyx_v_oldname, __pyx_v_newname); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_36renameVariable(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_oldname, PyObject *__pyx_v_newname) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_36renameVariable(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_oldname, PyObject *__pyx_v_newname) { char *__pyx_v_namstring; PyObject *__pyx_v_var = NULL; PyObject *__pyx_v_bytestr = NULL; @@ -26143,7 +26143,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_36renameVariable(struct __pyx_obj_7n int __pyx_clineno = 0; __Pyx_RefNannySetupContext("renameVariable", 0); - /* "netCDF4.pyx":1854 + /* "netCDF4/_netCDF4.pyx":1854 * rename a L{Variable} named C{oldname} to C{newname}""" * cdef char *namstring * try: # <<<<<<<<<<<<<< @@ -26157,7 +26157,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_36renameVariable(struct __pyx_obj_7n __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { - /* "netCDF4.pyx":1855 + /* "netCDF4/_netCDF4.pyx":1855 * cdef char *namstring * try: * var = self.variables[oldname] # <<<<<<<<<<<<<< @@ -26176,7 +26176,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_36renameVariable(struct __pyx_obj_7n __pyx_L3_error:; __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "netCDF4.pyx":1856 + /* "netCDF4/_netCDF4.pyx":1856 * try: * var = self.variables[oldname] * except KeyError: # <<<<<<<<<<<<<< @@ -26185,13 +26185,13 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_36renameVariable(struct __pyx_obj_7n */ __pyx_t_5 = PyErr_ExceptionMatches(__pyx_builtin_KeyError); if (__pyx_t_5) { - __Pyx_AddTraceback("netCDF4.Dataset.renameVariable", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.renameVariable", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_6, &__pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1856; __pyx_clineno = __LINE__; goto __pyx_L5_except_error;} __Pyx_GOTREF(__pyx_t_4); __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_7); - /* "netCDF4.pyx":1857 + /* "netCDF4/_netCDF4.pyx":1857 * var = self.variables[oldname] * except KeyError: * raise KeyError('%s not a valid variable name' % oldname) # <<<<<<<<<<<<<< @@ -26222,19 +26222,19 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_36renameVariable(struct __pyx_obj_7n __pyx_L10_try_end:; } - /* "netCDF4.pyx":1858 + /* "netCDF4/_netCDF4.pyx":1858 * except KeyError: * raise KeyError('%s not a valid variable name' % oldname) * bytestr = _strencode(newname) # <<<<<<<<<<<<<< * namstring = bytestr * if self.data_model != 'NETCDF4': self._redef() */ - __pyx_t_7 = __pyx_f_7netCDF4__strencode(__pyx_v_newname, NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1858; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_7 = __pyx_f_7netCDF4_8_netCDF4__strencode(__pyx_v_newname, NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1858; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __pyx_v_bytestr = __pyx_t_7; __pyx_t_7 = 0; - /* "netCDF4.pyx":1859 + /* "netCDF4/_netCDF4.pyx":1859 * raise KeyError('%s not a valid variable name' % oldname) * bytestr = _strencode(newname) * namstring = bytestr # <<<<<<<<<<<<<< @@ -26244,7 +26244,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_36renameVariable(struct __pyx_obj_7n __pyx_t_10 = __Pyx_PyObject_AsString(__pyx_v_bytestr); if (unlikely((!__pyx_t_10) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1859; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_namstring = __pyx_t_10; - /* "netCDF4.pyx":1860 + /* "netCDF4/_netCDF4.pyx":1860 * bytestr = _strencode(newname) * namstring = bytestr * if self.data_model != 'NETCDF4': self._redef() # <<<<<<<<<<<<<< @@ -26278,7 +26278,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_36renameVariable(struct __pyx_obj_7n } __pyx_L13:; - /* "netCDF4.pyx":1861 + /* "netCDF4/_netCDF4.pyx":1861 * namstring = bytestr * if self.data_model != 'NETCDF4': self._redef() * ierr = nc_rename_var(self._grpid, var._varid, namstring) # <<<<<<<<<<<<<< @@ -26291,7 +26291,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_36renameVariable(struct __pyx_obj_7n __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __pyx_v_ierr = nc_rename_var(__pyx_v_self->_grpid, __pyx_t_5, __pyx_v_namstring); - /* "netCDF4.pyx":1862 + /* "netCDF4/_netCDF4.pyx":1862 * if self.data_model != 'NETCDF4': self._redef() * ierr = nc_rename_var(self._grpid, var._varid, namstring) * if self.data_model != 'NETCDF4': self._enddef() # <<<<<<<<<<<<<< @@ -26325,7 +26325,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_36renameVariable(struct __pyx_obj_7n } __pyx_L14:; - /* "netCDF4.pyx":1863 + /* "netCDF4/_netCDF4.pyx":1863 * ierr = nc_rename_var(self._grpid, var._varid, namstring) * if self.data_model != 'NETCDF4': self._enddef() * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -26335,7 +26335,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_36renameVariable(struct __pyx_obj_7n __pyx_t_11 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_11) { - /* "netCDF4.pyx":1864 + /* "netCDF4/_netCDF4.pyx":1864 * if self.data_model != 'NETCDF4': self._enddef() * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -26359,7 +26359,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_36renameVariable(struct __pyx_obj_7n {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1864; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":1866 + /* "netCDF4/_netCDF4.pyx":1866 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * # remove old key from dimensions dict. * self.variables.pop(oldname) # <<<<<<<<<<<<<< @@ -26395,7 +26395,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_36renameVariable(struct __pyx_obj_7n __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":1868 + /* "netCDF4/_netCDF4.pyx":1868 * self.variables.pop(oldname) * # add new key. * self.variables[newname] = var # <<<<<<<<<<<<<< @@ -26404,7 +26404,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_36renameVariable(struct __pyx_obj_7n */ if (unlikely(PyObject_SetItem(__pyx_v_self->variables, __pyx_v_newname, __pyx_v_var) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1868; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":1848 + /* "netCDF4/_netCDF4.pyx":1848 * return self.variables[varname] * * def renameVariable(self, oldname, newname): # <<<<<<<<<<<<<< @@ -26421,7 +26421,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_36renameVariable(struct __pyx_obj_7n __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); - __Pyx_AddTraceback("netCDF4.Dataset.renameVariable", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.renameVariable", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_var); @@ -26431,7 +26431,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_36renameVariable(struct __pyx_obj_7n return __pyx_r; } -/* "netCDF4.pyx":1870 +/* "netCDF4/_netCDF4.pyx":1870 * self.variables[newname] = var * * def createGroup(self, groupname): # <<<<<<<<<<<<<< @@ -26440,20 +26440,20 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_36renameVariable(struct __pyx_obj_7n */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_39createGroup(PyObject *__pyx_v_self, PyObject *__pyx_v_groupname); /*proto*/ -static char __pyx_doc_7netCDF4_7Dataset_38createGroup[] = "\ncreateGroup(self, groupname)\n\nCreates a new L{Group} with the given C{groupname}.\n\nThe return value is a L{Group} class instance describing the new group."; -static PyObject *__pyx_pw_7netCDF4_7Dataset_39createGroup(PyObject *__pyx_v_self, PyObject *__pyx_v_groupname) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_39createGroup(PyObject *__pyx_v_self, PyObject *__pyx_v_groupname); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_7Dataset_38createGroup[] = "\ncreateGroup(self, groupname)\n\nCreates a new L{Group} with the given C{groupname}.\n\nThe return value is a L{Group} class instance describing the new group."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_39createGroup(PyObject *__pyx_v_self, PyObject *__pyx_v_groupname) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("createGroup (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_38createGroup(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_groupname)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_38createGroup(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_groupname)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_38createGroup(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_groupname) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_38createGroup(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_groupname) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -26463,7 +26463,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_38createGroup(struct __pyx_obj_7netC int __pyx_clineno = 0; __Pyx_RefNannySetupContext("createGroup", 0); - /* "netCDF4.pyx":1877 + /* "netCDF4/_netCDF4.pyx":1877 * * The return value is a L{Group} class instance describing the new group.""" * self.groups[groupname] = Group(self, groupname) # <<<<<<<<<<<<<< @@ -26478,13 +26478,13 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_38createGroup(struct __pyx_obj_7netC __Pyx_INCREF(__pyx_v_groupname); PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_groupname); __Pyx_GIVEREF(__pyx_v_groupname); - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_Group)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1877; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_Group)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1877; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(PyObject_SetItem(__pyx_v_self->groups, __pyx_v_groupname, __pyx_t_2) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1877; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":1878 + /* "netCDF4/_netCDF4.pyx":1878 * The return value is a L{Group} class instance describing the new group.""" * self.groups[groupname] = Group(self, groupname) * return self.groups[groupname] # <<<<<<<<<<<<<< @@ -26498,7 +26498,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_38createGroup(struct __pyx_obj_7netC __pyx_t_2 = 0; goto __pyx_L0; - /* "netCDF4.pyx":1870 + /* "netCDF4/_netCDF4.pyx":1870 * self.variables[newname] = var * * def createGroup(self, groupname): # <<<<<<<<<<<<<< @@ -26510,7 +26510,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_38createGroup(struct __pyx_obj_7netC __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); - __Pyx_AddTraceback("netCDF4.Dataset.createGroup", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.createGroup", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -26518,7 +26518,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_38createGroup(struct __pyx_obj_7netC return __pyx_r; } -/* "netCDF4.pyx":1880 +/* "netCDF4/_netCDF4.pyx":1880 * return self.groups[groupname] * * def ncattrs(self): # <<<<<<<<<<<<<< @@ -26527,20 +26527,20 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_38createGroup(struct __pyx_obj_7netC */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_41ncattrs(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static char __pyx_doc_7netCDF4_7Dataset_40ncattrs[] = "\nncattrs(self)\n\nreturn netCDF global attribute names for this L{Dataset} or L{Group} in a list."; -static PyObject *__pyx_pw_7netCDF4_7Dataset_41ncattrs(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_41ncattrs(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_7Dataset_40ncattrs[] = "\nncattrs(self)\n\nreturn netCDF global attribute names for this L{Dataset} or L{Group} in a list."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_41ncattrs(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("ncattrs (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_40ncattrs(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_40ncattrs(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_40ncattrs(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_40ncattrs(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -26549,7 +26549,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_40ncattrs(struct __pyx_obj_7netCDF4_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("ncattrs", 0); - /* "netCDF4.pyx":1885 + /* "netCDF4/_netCDF4.pyx":1885 * * return netCDF global attribute names for this L{Dataset} or L{Group} in a list.""" * return _get_att_names(self._grpid, NC_GLOBAL) # <<<<<<<<<<<<<< @@ -26557,13 +26557,13 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_40ncattrs(struct __pyx_obj_7netCDF4_ * def setncattr(self,name,value): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_f_7netCDF4__get_att_names(__pyx_v_self->_grpid, NC_GLOBAL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1885; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_7netCDF4_8_netCDF4__get_att_names(__pyx_v_self->_grpid, NC_GLOBAL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1885; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "netCDF4.pyx":1880 + /* "netCDF4/_netCDF4.pyx":1880 * return self.groups[groupname] * * def ncattrs(self): # <<<<<<<<<<<<<< @@ -26574,7 +26574,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_40ncattrs(struct __pyx_obj_7netCDF4_ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("netCDF4.Dataset.ncattrs", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.ncattrs", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -26582,7 +26582,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_40ncattrs(struct __pyx_obj_7netCDF4_ return __pyx_r; } -/* "netCDF4.pyx":1887 +/* "netCDF4/_netCDF4.pyx":1887 * return _get_att_names(self._grpid, NC_GLOBAL) * * def setncattr(self,name,value): # <<<<<<<<<<<<<< @@ -26591,9 +26591,9 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_40ncattrs(struct __pyx_obj_7netCDF4_ */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_43setncattr(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_7netCDF4_7Dataset_42setncattr[] = "\nsetncattr(self,name,value)\n\nset a netCDF dataset or group attribute using name,value pair. Only use if you need to set a\nnetCDF attribute with the same name as one of the reserved python\nattributes."; -static PyObject *__pyx_pw_7netCDF4_7Dataset_43setncattr(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_43setncattr(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_7Dataset_42setncattr[] = "\nsetncattr(self,name,value)\n\nset a netCDF dataset or group attribute using name,value pair. Only use if you need to set a\nnetCDF attribute with the same name as one of the reserved python\nattributes."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_43setncattr(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_name = 0; PyObject *__pyx_v_value = 0; int __pyx_lineno = 0; @@ -26641,18 +26641,18 @@ static PyObject *__pyx_pw_7netCDF4_7Dataset_43setncattr(PyObject *__pyx_v_self, __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("setncattr", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1887; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4.Dataset.setncattr", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.setncattr", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_7Dataset_42setncattr(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), __pyx_v_name, __pyx_v_value); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_42setncattr(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), __pyx_v_name, __pyx_v_value); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_42setncattr(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_42setncattr(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; @@ -26664,7 +26664,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_42setncattr(struct __pyx_obj_7netCDF int __pyx_clineno = 0; __Pyx_RefNannySetupContext("setncattr", 0); - /* "netCDF4.pyx":1894 + /* "netCDF4/_netCDF4.pyx":1894 * netCDF attribute with the same name as one of the reserved python * attributes.""" * if self.data_model != 'NETCDF4': self._redef() # <<<<<<<<<<<<<< @@ -26698,18 +26698,18 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_42setncattr(struct __pyx_obj_7netCDF } __pyx_L3:; - /* "netCDF4.pyx":1895 + /* "netCDF4/_netCDF4.pyx":1895 * attributes.""" * if self.data_model != 'NETCDF4': self._redef() * _set_att(self, NC_GLOBAL, name, value) # <<<<<<<<<<<<<< * if self.data_model != 'NETCDF4': self._enddef() * */ - __pyx_t_2 = __pyx_f_7netCDF4__set_att(((PyObject *)__pyx_v_self), NC_GLOBAL, __pyx_v_name, __pyx_v_value); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1895; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __pyx_f_7netCDF4_8_netCDF4__set_att(((PyObject *)__pyx_v_self), NC_GLOBAL, __pyx_v_name, __pyx_v_value); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1895; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":1896 + /* "netCDF4/_netCDF4.pyx":1896 * if self.data_model != 'NETCDF4': self._redef() * _set_att(self, NC_GLOBAL, name, value) * if self.data_model != 'NETCDF4': self._enddef() # <<<<<<<<<<<<<< @@ -26743,7 +26743,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_42setncattr(struct __pyx_obj_7netCDF } __pyx_L4:; - /* "netCDF4.pyx":1887 + /* "netCDF4/_netCDF4.pyx":1887 * return _get_att_names(self._grpid, NC_GLOBAL) * * def setncattr(self,name,value): # <<<<<<<<<<<<<< @@ -26758,7 +26758,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_42setncattr(struct __pyx_obj_7netCDF __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); - __Pyx_AddTraceback("netCDF4.Dataset.setncattr", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.setncattr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -26766,7 +26766,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_42setncattr(struct __pyx_obj_7netCDF return __pyx_r; } -/* "netCDF4.pyx":1898 +/* "netCDF4/_netCDF4.pyx":1898 * if self.data_model != 'NETCDF4': self._enddef() * * def setncatts(self,attdict): # <<<<<<<<<<<<<< @@ -26775,20 +26775,20 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_42setncattr(struct __pyx_obj_7netCDF */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_45setncatts(PyObject *__pyx_v_self, PyObject *__pyx_v_attdict); /*proto*/ -static char __pyx_doc_7netCDF4_7Dataset_44setncatts[] = "\nsetncatts(self,attdict)\n\nset a bunch of netCDF dataset or group attributes at once using a python dictionary.\nThis may be faster when setting a lot of attributes for a NETCDF3\nformatted file, since nc_redef/nc_enddef is not called in between setting\neach attribute"; -static PyObject *__pyx_pw_7netCDF4_7Dataset_45setncatts(PyObject *__pyx_v_self, PyObject *__pyx_v_attdict) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_45setncatts(PyObject *__pyx_v_self, PyObject *__pyx_v_attdict); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_7Dataset_44setncatts[] = "\nsetncatts(self,attdict)\n\nset a bunch of netCDF dataset or group attributes at once using a python dictionary.\nThis may be faster when setting a lot of attributes for a NETCDF3\nformatted file, since nc_redef/nc_enddef is not called in between setting\neach attribute"; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_45setncatts(PyObject *__pyx_v_self, PyObject *__pyx_v_attdict) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("setncatts (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_44setncatts(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_attdict)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_44setncatts(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_attdict)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_44setncatts(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_attdict) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_44setncatts(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_attdict) { PyObject *__pyx_v_name = NULL; PyObject *__pyx_v_value = NULL; PyObject *__pyx_r = NULL; @@ -26807,7 +26807,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_44setncatts(struct __pyx_obj_7netCDF int __pyx_clineno = 0; __Pyx_RefNannySetupContext("setncatts", 0); - /* "netCDF4.pyx":1906 + /* "netCDF4/_netCDF4.pyx":1906 * formatted file, since nc_redef/nc_enddef is not called in between setting * each attribute""" * if self.data_model != 'NETCDF4': self._redef() # <<<<<<<<<<<<<< @@ -26841,7 +26841,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_44setncatts(struct __pyx_obj_7netCDF } __pyx_L3:; - /* "netCDF4.pyx":1907 + /* "netCDF4/_netCDF4.pyx":1907 * each attribute""" * if self.data_model != 'NETCDF4': self._redef() * for name, value in attdict.items(): # <<<<<<<<<<<<<< @@ -26961,18 +26961,18 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_44setncatts(struct __pyx_obj_7netCDF __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":1908 + /* "netCDF4/_netCDF4.pyx":1908 * if self.data_model != 'NETCDF4': self._redef() * for name, value in attdict.items(): * _set_att(self, NC_GLOBAL, name, value) # <<<<<<<<<<<<<< * if self.data_model != 'NETCDF4': self._enddef() * */ - __pyx_t_2 = __pyx_f_7netCDF4__set_att(((PyObject *)__pyx_v_self), NC_GLOBAL, __pyx_v_name, __pyx_v_value); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1908; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __pyx_f_7netCDF4_8_netCDF4__set_att(((PyObject *)__pyx_v_self), NC_GLOBAL, __pyx_v_name, __pyx_v_value); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1908; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":1907 + /* "netCDF4/_netCDF4.pyx":1907 * each attribute""" * if self.data_model != 'NETCDF4': self._redef() * for name, value in attdict.items(): # <<<<<<<<<<<<<< @@ -26982,7 +26982,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_44setncatts(struct __pyx_obj_7netCDF } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":1909 + /* "netCDF4/_netCDF4.pyx":1909 * for name, value in attdict.items(): * _set_att(self, NC_GLOBAL, name, value) * if self.data_model != 'NETCDF4': self._enddef() # <<<<<<<<<<<<<< @@ -27016,7 +27016,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_44setncatts(struct __pyx_obj_7netCDF } __pyx_L8:; - /* "netCDF4.pyx":1898 + /* "netCDF4/_netCDF4.pyx":1898 * if self.data_model != 'NETCDF4': self._enddef() * * def setncatts(self,attdict): # <<<<<<<<<<<<<< @@ -27033,7 +27033,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_44setncatts(struct __pyx_obj_7netCDF __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); - __Pyx_AddTraceback("netCDF4.Dataset.setncatts", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.setncatts", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_name); @@ -27043,7 +27043,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_44setncatts(struct __pyx_obj_7netCDF return __pyx_r; } -/* "netCDF4.pyx":1911 +/* "netCDF4/_netCDF4.pyx":1911 * if self.data_model != 'NETCDF4': self._enddef() * * def getncattr(self,name): # <<<<<<<<<<<<<< @@ -27052,20 +27052,20 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_44setncatts(struct __pyx_obj_7netCDF */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_47getncattr(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/ -static char __pyx_doc_7netCDF4_7Dataset_46getncattr[] = "\ngetncattr(self,name)\n\nretrievel a netCDF dataset or group attribute. Only use if you need to set a\nnetCDF attribute with the same name as one of the reserved python\nattributes."; -static PyObject *__pyx_pw_7netCDF4_7Dataset_47getncattr(PyObject *__pyx_v_self, PyObject *__pyx_v_name) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_47getncattr(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_7Dataset_46getncattr[] = "\ngetncattr(self,name)\n\nretrievel a netCDF dataset or group attribute. Only use if you need to set a\nnetCDF attribute with the same name as one of the reserved python\nattributes."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_47getncattr(PyObject *__pyx_v_self, PyObject *__pyx_v_name) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("getncattr (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_46getncattr(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_name)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_46getncattr(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_name)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_46getncattr(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_name) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_46getncattr(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_name) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -27074,7 +27074,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_46getncattr(struct __pyx_obj_7netCDF int __pyx_clineno = 0; __Pyx_RefNannySetupContext("getncattr", 0); - /* "netCDF4.pyx":1918 + /* "netCDF4/_netCDF4.pyx":1918 * netCDF attribute with the same name as one of the reserved python * attributes.""" * return _get_att(self, NC_GLOBAL, name) # <<<<<<<<<<<<<< @@ -27082,13 +27082,13 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_46getncattr(struct __pyx_obj_7netCDF * def __delattr__(self,name): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_f_7netCDF4__get_att(((PyObject *)__pyx_v_self), NC_GLOBAL, __pyx_v_name); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1918; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_7netCDF4_8_netCDF4__get_att(((PyObject *)__pyx_v_self), NC_GLOBAL, __pyx_v_name); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1918; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "netCDF4.pyx":1911 + /* "netCDF4/_netCDF4.pyx":1911 * if self.data_model != 'NETCDF4': self._enddef() * * def getncattr(self,name): # <<<<<<<<<<<<<< @@ -27099,7 +27099,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_46getncattr(struct __pyx_obj_7netCDF /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("netCDF4.Dataset.getncattr", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.getncattr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -27107,7 +27107,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_46getncattr(struct __pyx_obj_7netCDF return __pyx_r; } -/* "netCDF4.pyx":1920 +/* "netCDF4/_netCDF4.pyx":1920 * return _get_att(self, NC_GLOBAL, name) * * def __delattr__(self,name): # <<<<<<<<<<<<<< @@ -27116,19 +27116,19 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_46getncattr(struct __pyx_obj_7netCDF */ /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_49__delattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_49__delattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_49__delattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_49__delattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__delattr__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_48__delattr__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_name)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_48__delattr__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_name)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_48__delattr__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_name) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_48__delattr__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_name) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -27142,7 +27142,7 @@ static int __pyx_pf_7netCDF4_7Dataset_48__delattr__(struct __pyx_obj_7netCDF4_Da int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__delattr__", 0); - /* "netCDF4.pyx":1922 + /* "netCDF4/_netCDF4.pyx":1922 * def __delattr__(self,name): * # if it's a netCDF attribute, remove it * if name not in _private_atts: # <<<<<<<<<<<<<< @@ -27156,7 +27156,7 @@ static int __pyx_pf_7netCDF4_7Dataset_48__delattr__(struct __pyx_obj_7netCDF4_Da __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":1923 + /* "netCDF4/_netCDF4.pyx":1923 * # if it's a netCDF attribute, remove it * if name not in _private_atts: * self.delncattr(name) # <<<<<<<<<<<<<< @@ -27195,7 +27195,7 @@ static int __pyx_pf_7netCDF4_7Dataset_48__delattr__(struct __pyx_obj_7netCDF4_Da } /*else*/ { - /* "netCDF4.pyx":1926 + /* "netCDF4/_netCDF4.pyx":1926 * else: * raise AttributeError( * "'%s' is one of the reserved attributes %s, cannot delete. Use delncattr instead." % (name, tuple(_private_atts))) # <<<<<<<<<<<<<< @@ -27219,7 +27219,7 @@ static int __pyx_pf_7netCDF4_7Dataset_48__delattr__(struct __pyx_obj_7netCDF4_Da __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":1925 + /* "netCDF4/_netCDF4.pyx":1925 * self.delncattr(name) * else: * raise AttributeError( # <<<<<<<<<<<<<< @@ -27240,7 +27240,7 @@ static int __pyx_pf_7netCDF4_7Dataset_48__delattr__(struct __pyx_obj_7netCDF4_Da } __pyx_L3:; - /* "netCDF4.pyx":1920 + /* "netCDF4/_netCDF4.pyx":1920 * return _get_att(self, NC_GLOBAL, name) * * def __delattr__(self,name): # <<<<<<<<<<<<<< @@ -27256,14 +27256,14 @@ static int __pyx_pf_7netCDF4_7Dataset_48__delattr__(struct __pyx_obj_7netCDF4_Da __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); - __Pyx_AddTraceback("netCDF4.Dataset.__delattr__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.__delattr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } -/* "netCDF4.pyx":1928 +/* "netCDF4/_netCDF4.pyx":1928 * "'%s' is one of the reserved attributes %s, cannot delete. Use delncattr instead." % (name, tuple(_private_atts))) * * def delncattr(self, name): # <<<<<<<<<<<<<< @@ -27272,20 +27272,20 @@ static int __pyx_pf_7netCDF4_7Dataset_48__delattr__(struct __pyx_obj_7netCDF4_Da */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_51delncattr(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/ -static char __pyx_doc_7netCDF4_7Dataset_50delncattr[] = "\ndelncattr(self,name,value)\n\ndelete a netCDF dataset or group attribute. Only use if you need to delete a\nnetCDF attribute with the same name as one of the reserved python\nattributes."; -static PyObject *__pyx_pw_7netCDF4_7Dataset_51delncattr(PyObject *__pyx_v_self, PyObject *__pyx_v_name) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_51delncattr(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_7Dataset_50delncattr[] = "\ndelncattr(self,name,value)\n\ndelete a netCDF dataset or group attribute. Only use if you need to delete a\nnetCDF attribute with the same name as one of the reserved python\nattributes."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_51delncattr(PyObject *__pyx_v_self, PyObject *__pyx_v_name) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("delncattr (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_50delncattr(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_name)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_50delncattr(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_name)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_50delncattr(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_name) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_50delncattr(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_name) { char *__pyx_v_attname; int __pyx_v_ierr; PyObject *__pyx_v_bytestr = NULL; @@ -27301,19 +27301,19 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_50delncattr(struct __pyx_obj_7netCDF int __pyx_clineno = 0; __Pyx_RefNannySetupContext("delncattr", 0); - /* "netCDF4.pyx":1937 + /* "netCDF4/_netCDF4.pyx":1937 * cdef char *attname * cdef int ierr * bytestr = _strencode(name) # <<<<<<<<<<<<<< * attname = bytestr * if self.data_model != 'NETCDF4': self._redef() */ - __pyx_t_1 = __pyx_f_7netCDF4__strencode(__pyx_v_name, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1937; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_7netCDF4_8_netCDF4__strencode(__pyx_v_name, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1937; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_v_bytestr = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":1938 + /* "netCDF4/_netCDF4.pyx":1938 * cdef int ierr * bytestr = _strencode(name) * attname = bytestr # <<<<<<<<<<<<<< @@ -27323,7 +27323,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_50delncattr(struct __pyx_obj_7netCDF __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_v_bytestr); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1938; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_attname = __pyx_t_2; - /* "netCDF4.pyx":1939 + /* "netCDF4/_netCDF4.pyx":1939 * bytestr = _strencode(name) * attname = bytestr * if self.data_model != 'NETCDF4': self._redef() # <<<<<<<<<<<<<< @@ -27357,7 +27357,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_50delncattr(struct __pyx_obj_7netCDF } __pyx_L3:; - /* "netCDF4.pyx":1940 + /* "netCDF4/_netCDF4.pyx":1940 * attname = bytestr * if self.data_model != 'NETCDF4': self._redef() * ierr = nc_del_att(self._grpid, NC_GLOBAL, attname) # <<<<<<<<<<<<<< @@ -27366,7 +27366,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_50delncattr(struct __pyx_obj_7netCDF */ __pyx_v_ierr = nc_del_att(__pyx_v_self->_grpid, NC_GLOBAL, __pyx_v_attname); - /* "netCDF4.pyx":1941 + /* "netCDF4/_netCDF4.pyx":1941 * if self.data_model != 'NETCDF4': self._redef() * ierr = nc_del_att(self._grpid, NC_GLOBAL, attname) * if self.data_model != 'NETCDF4': self._enddef() # <<<<<<<<<<<<<< @@ -27400,7 +27400,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_50delncattr(struct __pyx_obj_7netCDF } __pyx_L4:; - /* "netCDF4.pyx":1942 + /* "netCDF4/_netCDF4.pyx":1942 * ierr = nc_del_att(self._grpid, NC_GLOBAL, attname) * if self.data_model != 'NETCDF4': self._enddef() * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -27410,7 +27410,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_50delncattr(struct __pyx_obj_7netCDF __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":1943 + /* "netCDF4/_netCDF4.pyx":1943 * if self.data_model != 'NETCDF4': self._enddef() * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -27434,7 +27434,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_50delncattr(struct __pyx_obj_7netCDF {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1943; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":1928 + /* "netCDF4/_netCDF4.pyx":1928 * "'%s' is one of the reserved attributes %s, cannot delete. Use delncattr instead." % (name, tuple(_private_atts))) * * def delncattr(self, name): # <<<<<<<<<<<<<< @@ -27449,7 +27449,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_50delncattr(struct __pyx_obj_7netCDF __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); - __Pyx_AddTraceback("netCDF4.Dataset.delncattr", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.delncattr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_bytestr); @@ -27458,7 +27458,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_50delncattr(struct __pyx_obj_7netCDF return __pyx_r; } -/* "netCDF4.pyx":1945 +/* "netCDF4/_netCDF4.pyx":1945 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * * def __setattr__(self,name,value): # <<<<<<<<<<<<<< @@ -27467,19 +27467,19 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_50delncattr(struct __pyx_obj_7netCDF */ /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_53__setattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_53__setattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_53__setattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_53__setattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setattr__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_52__setattr__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_name), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_52__setattr__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_name), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_52__setattr__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_52__setattr__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -27494,7 +27494,7 @@ static int __pyx_pf_7netCDF4_7Dataset_52__setattr__(struct __pyx_obj_7netCDF4_Da int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__setattr__", 0); - /* "netCDF4.pyx":1948 + /* "netCDF4/_netCDF4.pyx":1948 * # if name in _private_atts, it is stored at the python * # level and not in the netCDF file. * if name not in _private_atts: # <<<<<<<<<<<<<< @@ -27508,7 +27508,7 @@ static int __pyx_pf_7netCDF4_7Dataset_52__setattr__(struct __pyx_obj_7netCDF4_Da __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":1949 + /* "netCDF4/_netCDF4.pyx":1949 * # level and not in the netCDF file. * if name not in _private_atts: * self.setncattr(name, value) # <<<<<<<<<<<<<< @@ -27548,7 +27548,7 @@ static int __pyx_pf_7netCDF4_7Dataset_52__setattr__(struct __pyx_obj_7netCDF4_Da goto __pyx_L3; } - /* "netCDF4.pyx":1950 + /* "netCDF4/_netCDF4.pyx":1950 * if name not in _private_atts: * self.setncattr(name, value) * elif not name.endswith('__'): # <<<<<<<<<<<<<< @@ -27565,7 +27565,7 @@ static int __pyx_pf_7netCDF4_7Dataset_52__setattr__(struct __pyx_obj_7netCDF4_Da __pyx_t_2 = ((!__pyx_t_3) != 0); if (__pyx_t_2) { - /* "netCDF4.pyx":1951 + /* "netCDF4/_netCDF4.pyx":1951 * self.setncattr(name, value) * elif not name.endswith('__'): * if hasattr(self,name): # <<<<<<<<<<<<<< @@ -27576,7 +27576,7 @@ static int __pyx_pf_7netCDF4_7Dataset_52__setattr__(struct __pyx_obj_7netCDF4_Da __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":1953 + /* "netCDF4/_netCDF4.pyx":1953 * if hasattr(self,name): * raise AttributeError( * "'%s' is one of the reserved attributes %s, cannot rebind. Use setncattr instead." % (name, tuple(_private_atts))) # <<<<<<<<<<<<<< @@ -27600,7 +27600,7 @@ static int __pyx_pf_7netCDF4_7Dataset_52__setattr__(struct __pyx_obj_7netCDF4_Da __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "netCDF4.pyx":1952 + /* "netCDF4/_netCDF4.pyx":1952 * elif not name.endswith('__'): * if hasattr(self,name): * raise AttributeError( # <<<<<<<<<<<<<< @@ -27621,7 +27621,7 @@ static int __pyx_pf_7netCDF4_7Dataset_52__setattr__(struct __pyx_obj_7netCDF4_Da } /*else*/ { - /* "netCDF4.pyx":1955 + /* "netCDF4/_netCDF4.pyx":1955 * "'%s' is one of the reserved attributes %s, cannot rebind. Use setncattr instead." % (name, tuple(_private_atts))) * else: * self.__dict__[name]=value # <<<<<<<<<<<<<< @@ -27637,7 +27637,7 @@ static int __pyx_pf_7netCDF4_7Dataset_52__setattr__(struct __pyx_obj_7netCDF4_Da } __pyx_L3:; - /* "netCDF4.pyx":1945 + /* "netCDF4/_netCDF4.pyx":1945 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * * def __setattr__(self,name,value): # <<<<<<<<<<<<<< @@ -27653,14 +27653,14 @@ static int __pyx_pf_7netCDF4_7Dataset_52__setattr__(struct __pyx_obj_7netCDF4_Da __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); - __Pyx_AddTraceback("netCDF4.Dataset.__setattr__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.__setattr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } -/* "netCDF4.pyx":1957 +/* "netCDF4/_netCDF4.pyx":1957 * self.__dict__[name]=value * * def __getattr__(self,name): # <<<<<<<<<<<<<< @@ -27669,19 +27669,19 @@ static int __pyx_pf_7netCDF4_7Dataset_52__setattr__(struct __pyx_obj_7netCDF4_Da */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_55__getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_7Dataset_55__getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_55__getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_55__getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__getattr__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_54__getattr__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_name)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_54__getattr__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_name)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_54__getattr__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_name) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_54__getattr__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_name) { PyObject *__pyx_v_names = NULL; PyObject *__pyx_v_values = NULL; PyObject *__pyx_r = NULL; @@ -27703,7 +27703,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_54__getattr__(struct __pyx_obj_7netC __Pyx_RefNannySetupContext("__getattr__", 0); __Pyx_INCREF(__pyx_v_name); - /* "netCDF4.pyx":1960 + /* "netCDF4/_netCDF4.pyx":1960 * # if name in _private_atts, it is stored at the python * # level and not in the netCDF file. * if name.startswith('__') and name.endswith('__'): # <<<<<<<<<<<<<< @@ -27733,7 +27733,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_54__getattr__(struct __pyx_obj_7netC __pyx_L4_bool_binop_done:; if (__pyx_t_1) { - /* "netCDF4.pyx":1962 + /* "netCDF4/_netCDF4.pyx":1962 * if name.startswith('__') and name.endswith('__'): * # if __dict__ requested, return a dict with netCDF attributes. * if name == '__dict__': # <<<<<<<<<<<<<< @@ -27743,7 +27743,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_54__getattr__(struct __pyx_obj_7netC __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_dict, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1962; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":1963 + /* "netCDF4/_netCDF4.pyx":1963 * # if __dict__ requested, return a dict with netCDF attributes. * if name == '__dict__': * names = self.ncattrs() # <<<<<<<<<<<<<< @@ -27773,7 +27773,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_54__getattr__(struct __pyx_obj_7netC __pyx_v_names = __pyx_t_2; __pyx_t_2 = 0; - /* "netCDF4.pyx":1964 + /* "netCDF4/_netCDF4.pyx":1964 * if name == '__dict__': * names = self.ncattrs() * values = [] # <<<<<<<<<<<<<< @@ -27785,7 +27785,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_54__getattr__(struct __pyx_obj_7netC __pyx_v_values = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":1965 + /* "netCDF4/_netCDF4.pyx":1965 * names = self.ncattrs() * values = [] * for name in names: # <<<<<<<<<<<<<< @@ -27832,19 +27832,19 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_54__getattr__(struct __pyx_obj_7netC __Pyx_DECREF_SET(__pyx_v_name, __pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":1966 + /* "netCDF4/_netCDF4.pyx":1966 * values = [] * for name in names: * values.append(_get_att(self, NC_GLOBAL, name)) # <<<<<<<<<<<<<< * return OrderedDict(zip(names,values)) * else: */ - __pyx_t_3 = __pyx_f_7netCDF4__get_att(((PyObject *)__pyx_v_self), NC_GLOBAL, __pyx_v_name); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1966; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __pyx_f_7netCDF4_8_netCDF4__get_att(((PyObject *)__pyx_v_self), NC_GLOBAL, __pyx_v_name); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1966; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_values, __pyx_t_3); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1966; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":1965 + /* "netCDF4/_netCDF4.pyx":1965 * names = self.ncattrs() * values = [] * for name in names: # <<<<<<<<<<<<<< @@ -27854,7 +27854,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_54__getattr__(struct __pyx_obj_7netC } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":1967 + /* "netCDF4/_netCDF4.pyx":1967 * for name in names: * values.append(_get_att(self, NC_GLOBAL, name)) * return OrderedDict(zip(names,values)) # <<<<<<<<<<<<<< @@ -27925,7 +27925,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_54__getattr__(struct __pyx_obj_7netC } /*else*/ { - /* "netCDF4.pyx":1969 + /* "netCDF4/_netCDF4.pyx":1969 * return OrderedDict(zip(names,values)) * else: * raise AttributeError # <<<<<<<<<<<<<< @@ -27937,7 +27937,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_54__getattr__(struct __pyx_obj_7netC } } - /* "netCDF4.pyx":1970 + /* "netCDF4/_netCDF4.pyx":1970 * else: * raise AttributeError * elif name in _private_atts: # <<<<<<<<<<<<<< @@ -27951,7 +27951,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_54__getattr__(struct __pyx_obj_7netC __pyx_t_4 = (__pyx_t_1 != 0); if (__pyx_t_4) { - /* "netCDF4.pyx":1971 + /* "netCDF4/_netCDF4.pyx":1971 * raise AttributeError * elif name in _private_atts: * return self.__dict__[name] # <<<<<<<<<<<<<< @@ -27970,7 +27970,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_54__getattr__(struct __pyx_obj_7netC } /*else*/ { - /* "netCDF4.pyx":1973 + /* "netCDF4/_netCDF4.pyx":1973 * return self.__dict__[name] * else: * return self.getncattr(name) # <<<<<<<<<<<<<< @@ -28010,7 +28010,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_54__getattr__(struct __pyx_obj_7netC goto __pyx_L0; } - /* "netCDF4.pyx":1957 + /* "netCDF4/_netCDF4.pyx":1957 * self.__dict__[name]=value * * def __getattr__(self,name): # <<<<<<<<<<<<<< @@ -28026,7 +28026,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_54__getattr__(struct __pyx_obj_7netC __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); __Pyx_XDECREF(__pyx_t_11); - __Pyx_AddTraceback("netCDF4.Dataset.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_names); @@ -28037,7 +28037,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_54__getattr__(struct __pyx_obj_7netC return __pyx_r; } -/* "netCDF4.pyx":1975 +/* "netCDF4/_netCDF4.pyx":1975 * return self.getncattr(name) * * def renameAttribute(self, oldname, newname): # <<<<<<<<<<<<<< @@ -28046,9 +28046,9 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_54__getattr__(struct __pyx_obj_7netC */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_57renameAttribute(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_7netCDF4_7Dataset_56renameAttribute[] = "\nrenameAttribute(self, oldname, newname)\n\nrename a L{Dataset} or L{Group} attribute named C{oldname} to C{newname}."; -static PyObject *__pyx_pw_7netCDF4_7Dataset_57renameAttribute(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_57renameAttribute(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_7Dataset_56renameAttribute[] = "\nrenameAttribute(self, oldname, newname)\n\nrename a L{Dataset} or L{Group} attribute named C{oldname} to C{newname}."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_57renameAttribute(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_oldname = 0; PyObject *__pyx_v_newname = 0; int __pyx_lineno = 0; @@ -28096,18 +28096,18 @@ static PyObject *__pyx_pw_7netCDF4_7Dataset_57renameAttribute(PyObject *__pyx_v_ __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("renameAttribute", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1975; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4.Dataset.renameAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.renameAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_7Dataset_56renameAttribute(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), __pyx_v_oldname, __pyx_v_newname); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_56renameAttribute(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), __pyx_v_oldname, __pyx_v_newname); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_56renameAttribute(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_oldname, PyObject *__pyx_v_newname) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_56renameAttribute(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_oldname, PyObject *__pyx_v_newname) { int __pyx_v_ierr; char *__pyx_v_oldnamec; char *__pyx_v_newnamec; @@ -28123,19 +28123,19 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_56renameAttribute(struct __pyx_obj_7 int __pyx_clineno = 0; __Pyx_RefNannySetupContext("renameAttribute", 0); - /* "netCDF4.pyx":1983 + /* "netCDF4/_netCDF4.pyx":1983 * cdef char *oldnamec * cdef char *newnamec * bytestr = _strencode(oldname) # <<<<<<<<<<<<<< * oldnamec = bytestr * bytestr = _strencode(newname) */ - __pyx_t_1 = __pyx_f_7netCDF4__strencode(__pyx_v_oldname, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1983; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_7netCDF4_8_netCDF4__strencode(__pyx_v_oldname, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1983; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_v_bytestr = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":1984 + /* "netCDF4/_netCDF4.pyx":1984 * cdef char *newnamec * bytestr = _strencode(oldname) * oldnamec = bytestr # <<<<<<<<<<<<<< @@ -28145,19 +28145,19 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_56renameAttribute(struct __pyx_obj_7 __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_v_bytestr); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1984; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_oldnamec = __pyx_t_2; - /* "netCDF4.pyx":1985 + /* "netCDF4/_netCDF4.pyx":1985 * bytestr = _strencode(oldname) * oldnamec = bytestr * bytestr = _strencode(newname) # <<<<<<<<<<<<<< * newnamec = bytestr * ierr = nc_rename_att(self._grpid, NC_GLOBAL, oldnamec, newnamec) */ - __pyx_t_1 = __pyx_f_7netCDF4__strencode(__pyx_v_newname, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1985; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_7netCDF4_8_netCDF4__strencode(__pyx_v_newname, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1985; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF_SET(__pyx_v_bytestr, __pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":1986 + /* "netCDF4/_netCDF4.pyx":1986 * oldnamec = bytestr * bytestr = _strencode(newname) * newnamec = bytestr # <<<<<<<<<<<<<< @@ -28167,7 +28167,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_56renameAttribute(struct __pyx_obj_7 __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_v_bytestr); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1986; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_newnamec = __pyx_t_2; - /* "netCDF4.pyx":1987 + /* "netCDF4/_netCDF4.pyx":1987 * bytestr = _strencode(newname) * newnamec = bytestr * ierr = nc_rename_att(self._grpid, NC_GLOBAL, oldnamec, newnamec) # <<<<<<<<<<<<<< @@ -28176,7 +28176,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_56renameAttribute(struct __pyx_obj_7 */ __pyx_v_ierr = nc_rename_att(__pyx_v_self->_grpid, NC_GLOBAL, __pyx_v_oldnamec, __pyx_v_newnamec); - /* "netCDF4.pyx":1988 + /* "netCDF4/_netCDF4.pyx":1988 * newnamec = bytestr * ierr = nc_rename_att(self._grpid, NC_GLOBAL, oldnamec, newnamec) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -28186,7 +28186,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_56renameAttribute(struct __pyx_obj_7 __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":1989 + /* "netCDF4/_netCDF4.pyx":1989 * ierr = nc_rename_att(self._grpid, NC_GLOBAL, oldnamec, newnamec) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -28210,7 +28210,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_56renameAttribute(struct __pyx_obj_7 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1989; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":1975 + /* "netCDF4/_netCDF4.pyx":1975 * return self.getncattr(name) * * def renameAttribute(self, oldname, newname): # <<<<<<<<<<<<<< @@ -28224,7 +28224,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_56renameAttribute(struct __pyx_obj_7 __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); - __Pyx_AddTraceback("netCDF4.Dataset.renameAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.renameAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_bytestr); @@ -28233,7 +28233,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_56renameAttribute(struct __pyx_obj_7 return __pyx_r; } -/* "netCDF4.pyx":1991 +/* "netCDF4/_netCDF4.pyx":1991 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * * def renameGroup(self, oldname, newname): # <<<<<<<<<<<<<< @@ -28242,9 +28242,9 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_56renameAttribute(struct __pyx_obj_7 */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_59renameGroup(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_7netCDF4_7Dataset_58renameGroup[] = "\nrenameGroup(self, oldname, newname)\n\nrename a L{Group} named C{oldname} to C{newname} (requires netcdf >= 4.3.1)."; -static PyObject *__pyx_pw_7netCDF4_7Dataset_59renameGroup(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_59renameGroup(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_7Dataset_58renameGroup[] = "\nrenameGroup(self, oldname, newname)\n\nrename a L{Group} named C{oldname} to C{newname} (requires netcdf >= 4.3.1)."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_59renameGroup(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { CYTHON_UNUSED PyObject *__pyx_v_oldname = 0; CYTHON_UNUSED PyObject *__pyx_v_newname = 0; int __pyx_lineno = 0; @@ -28292,18 +28292,18 @@ static PyObject *__pyx_pw_7netCDF4_7Dataset_59renameGroup(PyObject *__pyx_v_self __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("renameGroup", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1991; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4.Dataset.renameGroup", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.renameGroup", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_7Dataset_58renameGroup(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), __pyx_v_oldname, __pyx_v_newname); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_58renameGroup(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), __pyx_v_oldname, __pyx_v_newname); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_58renameGroup(CYTHON_UNUSED struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_oldname, CYTHON_UNUSED PyObject *__pyx_v_newname) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_58renameGroup(CYTHON_UNUSED struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_oldname, CYTHON_UNUSED PyObject *__pyx_v_newname) { PyObject *__pyx_v_msg = NULL; PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations @@ -28314,7 +28314,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_58renameGroup(CYTHON_UNUSED struct _ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("renameGroup", 0); - /* "netCDF4.pyx":2013 + /* "netCDF4/_netCDF4.pyx":2013 * self.groups[newname] = grp * ELSE: * msg = """ # <<<<<<<<<<<<<< @@ -28324,7 +28324,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_58renameGroup(CYTHON_UNUSED struct _ __Pyx_INCREF(__pyx_kp_s_renameGroup_method_not_enabled); __pyx_v_msg = __pyx_kp_s_renameGroup_method_not_enabled; - /* "netCDF4.pyx":2016 + /* "netCDF4/_netCDF4.pyx":2016 * renameGroup method not enabled. To enable, install Cython, make sure you have * version 4.3.1 or higher of the netcdf C lib, and rebuild netcdf4-python.""" * raise ValueError(msg) # <<<<<<<<<<<<<< @@ -28343,7 +28343,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_58renameGroup(CYTHON_UNUSED struct _ __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2016; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":1991 + /* "netCDF4/_netCDF4.pyx":1991 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * * def renameGroup(self, oldname, newname): # <<<<<<<<<<<<<< @@ -28355,7 +28355,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_58renameGroup(CYTHON_UNUSED struct _ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); - __Pyx_AddTraceback("netCDF4.Dataset.renameGroup", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.renameGroup", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XDECREF(__pyx_v_msg); __Pyx_XGIVEREF(__pyx_r); @@ -28363,7 +28363,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_58renameGroup(CYTHON_UNUSED struct _ return __pyx_r; } -/* "netCDF4.pyx":2018 +/* "netCDF4/_netCDF4.pyx":2018 * raise ValueError(msg) * * def set_auto_maskandscale(self, value): # <<<<<<<<<<<<<< @@ -28372,20 +28372,20 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_58renameGroup(CYTHON_UNUSED struct _ */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_61set_auto_maskandscale(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static char __pyx_doc_7netCDF4_7Dataset_60set_auto_maskandscale[] = "\nset_auto_maskandscale(self, True_or_False)\n\nCall L{set_auto_maskandscale} for all variables contained in this L{Dataset} or\nL{Group}, as well as for all variables in all its subgroups.\n\nB{Parameters}:\n\nB{C{True_or_False}} - Boolean determining if automatic conversion to masked arrays\nand variable scaling shall be applied for all variables.\n\nB{Notes}:\n\nCalling this function only affects existing variables. Variables created\nafter calling this function will follow the default behaviour.\n "; -static PyObject *__pyx_pw_7netCDF4_7Dataset_61set_auto_maskandscale(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_61set_auto_maskandscale(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_7Dataset_60set_auto_maskandscale[] = "\nset_auto_maskandscale(self, True_or_False)\n\nCall L{set_auto_maskandscale} for all variables contained in this L{Dataset} or\nL{Group}, as well as for all variables in all its subgroups.\n\nB{Parameters}:\n\nB{C{True_or_False}} - Boolean determining if automatic conversion to masked arrays\nand variable scaling shall be applied for all variables.\n\nB{Notes}:\n\nCalling this function only affects existing variables. Variables created\nafter calling this function will follow the default behaviour.\n "; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_61set_auto_maskandscale(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_auto_maskandscale (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_60set_auto_maskandscale(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_60set_auto_maskandscale(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_60set_auto_maskandscale(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_60set_auto_maskandscale(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { PyObject *__pyx_v_var = NULL; PyObject *__pyx_v_groups = NULL; PyObject *__pyx_v_group = NULL; @@ -28409,7 +28409,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_60set_auto_maskandscale(struct __pyx int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_auto_maskandscale", 0); - /* "netCDF4.pyx":2036 + /* "netCDF4/_netCDF4.pyx":2036 * """ * * for var in self.variables.values(): # <<<<<<<<<<<<<< @@ -28477,7 +28477,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_60set_auto_maskandscale(struct __pyx __Pyx_XDECREF_SET(__pyx_v_var, __pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":2037 + /* "netCDF4/_netCDF4.pyx":2037 * * for var in self.variables.values(): * var.set_auto_maskandscale(value) # <<<<<<<<<<<<<< @@ -28513,7 +28513,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_60set_auto_maskandscale(struct __pyx __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":2036 + /* "netCDF4/_netCDF4.pyx":2036 * """ * * for var in self.variables.values(): # <<<<<<<<<<<<<< @@ -28523,7 +28523,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_60set_auto_maskandscale(struct __pyx } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":2039 + /* "netCDF4/_netCDF4.pyx":2039 * var.set_auto_maskandscale(value) * * for groups in _walk_grps(self): # <<<<<<<<<<<<<< @@ -28598,7 +28598,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_60set_auto_maskandscale(struct __pyx __Pyx_XDECREF_SET(__pyx_v_groups, __pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":2040 + /* "netCDF4/_netCDF4.pyx":2040 * * for groups in _walk_grps(self): * for group in groups: # <<<<<<<<<<<<<< @@ -28645,7 +28645,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_60set_auto_maskandscale(struct __pyx __Pyx_XDECREF_SET(__pyx_v_group, __pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":2041 + /* "netCDF4/_netCDF4.pyx":2041 * for groups in _walk_grps(self): * for group in groups: * for var in group.variables.values(): # <<<<<<<<<<<<<< @@ -28716,7 +28716,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_60set_auto_maskandscale(struct __pyx __Pyx_XDECREF_SET(__pyx_v_var, __pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":2042 + /* "netCDF4/_netCDF4.pyx":2042 * for group in groups: * for var in group.variables.values(): * var.set_auto_maskandscale(value) # <<<<<<<<<<<<<< @@ -28752,7 +28752,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_60set_auto_maskandscale(struct __pyx __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":2041 + /* "netCDF4/_netCDF4.pyx":2041 * for groups in _walk_grps(self): * for group in groups: * for var in group.variables.values(): # <<<<<<<<<<<<<< @@ -28762,7 +28762,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_60set_auto_maskandscale(struct __pyx } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "netCDF4.pyx":2040 + /* "netCDF4/_netCDF4.pyx":2040 * * for groups in _walk_grps(self): * for group in groups: # <<<<<<<<<<<<<< @@ -28772,7 +28772,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_60set_auto_maskandscale(struct __pyx } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":2039 + /* "netCDF4/_netCDF4.pyx":2039 * var.set_auto_maskandscale(value) * * for groups in _walk_grps(self): # <<<<<<<<<<<<<< @@ -28782,7 +28782,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_60set_auto_maskandscale(struct __pyx } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":2018 + /* "netCDF4/_netCDF4.pyx":2018 * raise ValueError(msg) * * def set_auto_maskandscale(self, value): # <<<<<<<<<<<<<< @@ -28801,7 +28801,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_60set_auto_maskandscale(struct __pyx __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_12); __Pyx_XDECREF(__pyx_t_13); - __Pyx_AddTraceback("netCDF4.Dataset.set_auto_maskandscale", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.set_auto_maskandscale", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_var); @@ -28812,7 +28812,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_60set_auto_maskandscale(struct __pyx return __pyx_r; } -/* "netCDF4.pyx":2045 +/* "netCDF4/_netCDF4.pyx":2045 * * * def set_auto_mask(self, value): # <<<<<<<<<<<<<< @@ -28821,20 +28821,20 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_60set_auto_maskandscale(struct __pyx */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_63set_auto_mask(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static char __pyx_doc_7netCDF4_7Dataset_62set_auto_mask[] = "\nset_auto_mask(self, True_or_False)\n\nCall L{set_auto_mask} for all variables contained in this L{Dataset} or\nL{Group}, as well as for all variables in all its subgroups.\n\nB{Parameters}:\n\nB{C{True_or_False}} - Boolean determining if automatic conversion to masked arrays\nshall be applied for all variables.\n\nB{Notes}:\n\nCalling this function only affects existing variables. Variables created\nafter calling this function will follow the default behaviour.\n "; -static PyObject *__pyx_pw_7netCDF4_7Dataset_63set_auto_mask(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_63set_auto_mask(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_7Dataset_62set_auto_mask[] = "\nset_auto_mask(self, True_or_False)\n\nCall L{set_auto_mask} for all variables contained in this L{Dataset} or\nL{Group}, as well as for all variables in all its subgroups.\n\nB{Parameters}:\n\nB{C{True_or_False}} - Boolean determining if automatic conversion to masked arrays\nshall be applied for all variables.\n\nB{Notes}:\n\nCalling this function only affects existing variables. Variables created\nafter calling this function will follow the default behaviour.\n "; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_63set_auto_mask(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_auto_mask (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_62set_auto_mask(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_62set_auto_mask(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_62set_auto_mask(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_62set_auto_mask(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { PyObject *__pyx_v_var = NULL; PyObject *__pyx_v_groups = NULL; PyObject *__pyx_v_group = NULL; @@ -28858,7 +28858,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_62set_auto_mask(struct __pyx_obj_7ne int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_auto_mask", 0); - /* "netCDF4.pyx":2063 + /* "netCDF4/_netCDF4.pyx":2063 * """ * * for var in self.variables.values(): # <<<<<<<<<<<<<< @@ -28926,7 +28926,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_62set_auto_mask(struct __pyx_obj_7ne __Pyx_XDECREF_SET(__pyx_v_var, __pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":2064 + /* "netCDF4/_netCDF4.pyx":2064 * * for var in self.variables.values(): * var.set_auto_mask(value) # <<<<<<<<<<<<<< @@ -28962,7 +28962,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_62set_auto_mask(struct __pyx_obj_7ne __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":2063 + /* "netCDF4/_netCDF4.pyx":2063 * """ * * for var in self.variables.values(): # <<<<<<<<<<<<<< @@ -28972,7 +28972,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_62set_auto_mask(struct __pyx_obj_7ne } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":2066 + /* "netCDF4/_netCDF4.pyx":2066 * var.set_auto_mask(value) * * for groups in _walk_grps(self): # <<<<<<<<<<<<<< @@ -29047,7 +29047,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_62set_auto_mask(struct __pyx_obj_7ne __Pyx_XDECREF_SET(__pyx_v_groups, __pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":2067 + /* "netCDF4/_netCDF4.pyx":2067 * * for groups in _walk_grps(self): * for group in groups: # <<<<<<<<<<<<<< @@ -29094,7 +29094,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_62set_auto_mask(struct __pyx_obj_7ne __Pyx_XDECREF_SET(__pyx_v_group, __pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":2068 + /* "netCDF4/_netCDF4.pyx":2068 * for groups in _walk_grps(self): * for group in groups: * for var in group.variables.values(): # <<<<<<<<<<<<<< @@ -29165,7 +29165,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_62set_auto_mask(struct __pyx_obj_7ne __Pyx_XDECREF_SET(__pyx_v_var, __pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":2069 + /* "netCDF4/_netCDF4.pyx":2069 * for group in groups: * for var in group.variables.values(): * var.set_auto_mask(value) # <<<<<<<<<<<<<< @@ -29201,7 +29201,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_62set_auto_mask(struct __pyx_obj_7ne __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":2068 + /* "netCDF4/_netCDF4.pyx":2068 * for groups in _walk_grps(self): * for group in groups: * for var in group.variables.values(): # <<<<<<<<<<<<<< @@ -29211,7 +29211,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_62set_auto_mask(struct __pyx_obj_7ne } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "netCDF4.pyx":2067 + /* "netCDF4/_netCDF4.pyx":2067 * * for groups in _walk_grps(self): * for group in groups: # <<<<<<<<<<<<<< @@ -29221,7 +29221,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_62set_auto_mask(struct __pyx_obj_7ne } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":2066 + /* "netCDF4/_netCDF4.pyx":2066 * var.set_auto_mask(value) * * for groups in _walk_grps(self): # <<<<<<<<<<<<<< @@ -29231,7 +29231,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_62set_auto_mask(struct __pyx_obj_7ne } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":2045 + /* "netCDF4/_netCDF4.pyx":2045 * * * def set_auto_mask(self, value): # <<<<<<<<<<<<<< @@ -29250,7 +29250,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_62set_auto_mask(struct __pyx_obj_7ne __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_12); __Pyx_XDECREF(__pyx_t_13); - __Pyx_AddTraceback("netCDF4.Dataset.set_auto_mask", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.set_auto_mask", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_var); @@ -29261,7 +29261,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_62set_auto_mask(struct __pyx_obj_7ne return __pyx_r; } -/* "netCDF4.pyx":2071 +/* "netCDF4/_netCDF4.pyx":2071 * var.set_auto_mask(value) * * def set_auto_scale(self, value): # <<<<<<<<<<<<<< @@ -29270,20 +29270,20 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_62set_auto_mask(struct __pyx_obj_7ne */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_65set_auto_scale(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static char __pyx_doc_7netCDF4_7Dataset_64set_auto_scale[] = "\nset_auto_scale(self, True_or_False)\n\nCall L{set_auto_scale} for all variables contained in this L{Dataset} or\nL{Group}, as well as for all variables in all its subgroups.\n\nB{Parameters}:\n\nB{C{True_or_False}} - Boolean determining if automatic variable scaling\nshall be applied for all variables.\n\nB{Notes}:\n\nCalling this function only affects existing variables. Variables created\nafter calling this function will follow the default behaviour.\n "; -static PyObject *__pyx_pw_7netCDF4_7Dataset_65set_auto_scale(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_65set_auto_scale(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_7Dataset_64set_auto_scale[] = "\nset_auto_scale(self, True_or_False)\n\nCall L{set_auto_scale} for all variables contained in this L{Dataset} or\nL{Group}, as well as for all variables in all its subgroups.\n\nB{Parameters}:\n\nB{C{True_or_False}} - Boolean determining if automatic variable scaling\nshall be applied for all variables.\n\nB{Notes}:\n\nCalling this function only affects existing variables. Variables created\nafter calling this function will follow the default behaviour.\n "; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_65set_auto_scale(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_auto_scale (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_64set_auto_scale(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_64set_auto_scale(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_64set_auto_scale(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_64set_auto_scale(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { PyObject *__pyx_v_var = NULL; PyObject *__pyx_v_groups = NULL; PyObject *__pyx_v_group = NULL; @@ -29307,7 +29307,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_64set_auto_scale(struct __pyx_obj_7n int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_auto_scale", 0); - /* "netCDF4.pyx":2089 + /* "netCDF4/_netCDF4.pyx":2089 * """ * * for var in self.variables.values(): # <<<<<<<<<<<<<< @@ -29375,7 +29375,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_64set_auto_scale(struct __pyx_obj_7n __Pyx_XDECREF_SET(__pyx_v_var, __pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":2090 + /* "netCDF4/_netCDF4.pyx":2090 * * for var in self.variables.values(): * var.set_auto_scale(value) # <<<<<<<<<<<<<< @@ -29411,7 +29411,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_64set_auto_scale(struct __pyx_obj_7n __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":2089 + /* "netCDF4/_netCDF4.pyx":2089 * """ * * for var in self.variables.values(): # <<<<<<<<<<<<<< @@ -29421,7 +29421,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_64set_auto_scale(struct __pyx_obj_7n } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":2092 + /* "netCDF4/_netCDF4.pyx":2092 * var.set_auto_scale(value) * * for groups in _walk_grps(self): # <<<<<<<<<<<<<< @@ -29496,7 +29496,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_64set_auto_scale(struct __pyx_obj_7n __Pyx_XDECREF_SET(__pyx_v_groups, __pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":2093 + /* "netCDF4/_netCDF4.pyx":2093 * * for groups in _walk_grps(self): * for group in groups: # <<<<<<<<<<<<<< @@ -29543,7 +29543,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_64set_auto_scale(struct __pyx_obj_7n __Pyx_XDECREF_SET(__pyx_v_group, __pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":2094 + /* "netCDF4/_netCDF4.pyx":2094 * for groups in _walk_grps(self): * for group in groups: * for var in group.variables.values(): # <<<<<<<<<<<<<< @@ -29614,7 +29614,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_64set_auto_scale(struct __pyx_obj_7n __Pyx_XDECREF_SET(__pyx_v_var, __pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":2095 + /* "netCDF4/_netCDF4.pyx":2095 * for group in groups: * for var in group.variables.values(): * var.set_auto_scale(value) # <<<<<<<<<<<<<< @@ -29650,7 +29650,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_64set_auto_scale(struct __pyx_obj_7n __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":2094 + /* "netCDF4/_netCDF4.pyx":2094 * for groups in _walk_grps(self): * for group in groups: * for var in group.variables.values(): # <<<<<<<<<<<<<< @@ -29660,7 +29660,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_64set_auto_scale(struct __pyx_obj_7n } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "netCDF4.pyx":2093 + /* "netCDF4/_netCDF4.pyx":2093 * * for groups in _walk_grps(self): * for group in groups: # <<<<<<<<<<<<<< @@ -29670,7 +29670,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_64set_auto_scale(struct __pyx_obj_7n } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":2092 + /* "netCDF4/_netCDF4.pyx":2092 * var.set_auto_scale(value) * * for groups in _walk_grps(self): # <<<<<<<<<<<<<< @@ -29680,7 +29680,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_64set_auto_scale(struct __pyx_obj_7n } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":2071 + /* "netCDF4/_netCDF4.pyx":2071 * var.set_auto_mask(value) * * def set_auto_scale(self, value): # <<<<<<<<<<<<<< @@ -29699,7 +29699,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_64set_auto_scale(struct __pyx_obj_7n __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_12); __Pyx_XDECREF(__pyx_t_13); - __Pyx_AddTraceback("netCDF4.Dataset.set_auto_scale", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset.set_auto_scale", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_var); @@ -29710,7 +29710,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_64set_auto_scale(struct __pyx_obj_7n return __pyx_r; } -/* "netCDF4.pyx":1426 +/* "netCDF4/_netCDF4.pyx":1426 * L{Group} instance. C{None} for a the root group or L{Dataset} instance""" * cdef object __weakref__ * cdef public int _grpid # <<<<<<<<<<<<<< @@ -29719,19 +29719,19 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_64set_auto_scale(struct __pyx_obj_7n */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_6_grpid_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_7Dataset_6_grpid_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_6_grpid_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_6_grpid_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_6_grpid___get__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_6_grpid___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_6_grpid___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_6_grpid___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -29749,7 +29749,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_6_grpid___get__(struct __pyx_obj_7ne /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("netCDF4.Dataset._grpid.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset._grpid.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -29758,19 +29758,19 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_6_grpid___get__(struct __pyx_obj_7ne } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_6_grpid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_6_grpid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_6_grpid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_6_grpid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_6_grpid_2__set__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_6_grpid_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_6_grpid_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_6_grpid_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; @@ -29785,14 +29785,14 @@ static int __pyx_pf_7netCDF4_7Dataset_6_grpid_2__set__(struct __pyx_obj_7netCDF4 __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; - __Pyx_AddTraceback("netCDF4.Dataset._grpid.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset._grpid.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } -/* "netCDF4.pyx":1427 +/* "netCDF4/_netCDF4.pyx":1427 * cdef object __weakref__ * cdef public int _grpid * cdef public int _isopen # <<<<<<<<<<<<<< @@ -29801,19 +29801,19 @@ static int __pyx_pf_7netCDF4_7Dataset_6_grpid_2__set__(struct __pyx_obj_7netCDF4 */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_7_isopen_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_7Dataset_7_isopen_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_7_isopen_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_7_isopen_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_7_isopen___get__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_7_isopen___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_7_isopen___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_7_isopen___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -29831,7 +29831,7 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_7_isopen___get__(struct __pyx_obj_7n /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("netCDF4.Dataset._isopen.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset._isopen.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -29840,19 +29840,19 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_7_isopen___get__(struct __pyx_obj_7n } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_7_isopen_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_7_isopen_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_7_isopen_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_7_isopen_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_7_isopen_2__set__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_7_isopen_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_7_isopen_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_7_isopen_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; @@ -29867,14 +29867,14 @@ static int __pyx_pf_7netCDF4_7Dataset_7_isopen_2__set__(struct __pyx_obj_7netCDF __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; - __Pyx_AddTraceback("netCDF4.Dataset._isopen.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dataset._isopen.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } -/* "netCDF4.pyx":1428 +/* "netCDF4/_netCDF4.pyx":1428 * cdef public int _grpid * cdef public int _isopen * cdef public groups, dimensions, variables, disk_format, path, parent,\ # <<<<<<<<<<<<<< @@ -29883,19 +29883,19 @@ static int __pyx_pf_7netCDF4_7Dataset_7_isopen_2__set__(struct __pyx_obj_7netCDF */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_6groups_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_7Dataset_6groups_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_6groups_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_6groups_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_6groups___get__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_6groups___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_6groups___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_6groups___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -29912,19 +29912,19 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_6groups___get__(struct __pyx_obj_7ne } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_6groups_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_6groups_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_6groups_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_6groups_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_6groups_2__set__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_6groups_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_6groups_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_6groups_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -29941,19 +29941,19 @@ static int __pyx_pf_7netCDF4_7Dataset_6groups_2__set__(struct __pyx_obj_7netCDF4 } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_6groups_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_6groups_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_6groups_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_6groups_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_6groups_4__del__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_6groups_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_6groups_4__del__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_6groups_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -29970,19 +29970,19 @@ static int __pyx_pf_7netCDF4_7Dataset_6groups_4__del__(struct __pyx_obj_7netCDF4 } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_10dimensions_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_7Dataset_10dimensions_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_10dimensions_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_10dimensions_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_10dimensions___get__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_10dimensions___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_10dimensions___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_10dimensions___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -29999,19 +29999,19 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10dimensions___get__(struct __pyx_ob } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_10dimensions_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_10dimensions_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_10dimensions_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_10dimensions_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_10dimensions_2__set__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_10dimensions_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_10dimensions_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_10dimensions_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -30028,19 +30028,19 @@ static int __pyx_pf_7netCDF4_7Dataset_10dimensions_2__set__(struct __pyx_obj_7ne } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_10dimensions_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_10dimensions_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_10dimensions_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_10dimensions_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_10dimensions_4__del__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_10dimensions_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_10dimensions_4__del__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_10dimensions_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -30057,19 +30057,19 @@ static int __pyx_pf_7netCDF4_7Dataset_10dimensions_4__del__(struct __pyx_obj_7ne } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_9variables_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_7Dataset_9variables_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_9variables_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_9variables_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_9variables___get__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_9variables___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_9variables___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_9variables___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -30086,19 +30086,19 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_9variables___get__(struct __pyx_obj_ } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_9variables_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_9variables_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_9variables_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_9variables_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_9variables_2__set__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_9variables_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_9variables_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_9variables_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -30115,19 +30115,19 @@ static int __pyx_pf_7netCDF4_7Dataset_9variables_2__set__(struct __pyx_obj_7netC } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_9variables_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_9variables_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_9variables_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_9variables_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_9variables_4__del__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_9variables_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_9variables_4__del__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_9variables_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -30144,19 +30144,19 @@ static int __pyx_pf_7netCDF4_7Dataset_9variables_4__del__(struct __pyx_obj_7netC } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_11disk_format_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_7Dataset_11disk_format_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_11disk_format_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_11disk_format_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_11disk_format___get__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_11disk_format___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_11disk_format___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_11disk_format___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -30173,19 +30173,19 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_11disk_format___get__(struct __pyx_o } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_11disk_format_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_11disk_format_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_11disk_format_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_11disk_format_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_11disk_format_2__set__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_11disk_format_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_11disk_format_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_11disk_format_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -30202,19 +30202,19 @@ static int __pyx_pf_7netCDF4_7Dataset_11disk_format_2__set__(struct __pyx_obj_7n } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_11disk_format_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_11disk_format_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_11disk_format_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_11disk_format_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_11disk_format_4__del__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_11disk_format_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_11disk_format_4__del__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_11disk_format_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -30231,19 +30231,19 @@ static int __pyx_pf_7netCDF4_7Dataset_11disk_format_4__del__(struct __pyx_obj_7n } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_4path_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_7Dataset_4path_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_4path_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_4path_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_4path___get__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_4path___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_4path___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_4path___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -30260,19 +30260,19 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_4path___get__(struct __pyx_obj_7netC } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_4path_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_4path_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_4path_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_4path_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_4path_2__set__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_4path_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_4path_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_4path_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -30289,19 +30289,19 @@ static int __pyx_pf_7netCDF4_7Dataset_4path_2__set__(struct __pyx_obj_7netCDF4_D } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_4path_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_4path_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_4path_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_4path_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_4path_4__del__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_4path_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_4path_4__del__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_4path_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -30318,19 +30318,19 @@ static int __pyx_pf_7netCDF4_7Dataset_4path_4__del__(struct __pyx_obj_7netCDF4_D } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_6parent_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_7Dataset_6parent_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_6parent_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_6parent_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_6parent___get__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_6parent___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_6parent___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_6parent___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -30347,19 +30347,19 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_6parent___get__(struct __pyx_obj_7ne } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_6parent_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_6parent_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_6parent_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_6parent_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_6parent_2__set__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_6parent_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_6parent_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_6parent_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -30376,19 +30376,19 @@ static int __pyx_pf_7netCDF4_7Dataset_6parent_2__set__(struct __pyx_obj_7netCDF4 } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_6parent_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_6parent_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_6parent_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_6parent_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_6parent_4__del__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_6parent_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_6parent_4__del__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_6parent_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -30404,7 +30404,7 @@ static int __pyx_pf_7netCDF4_7Dataset_6parent_4__del__(struct __pyx_obj_7netCDF4 return __pyx_r; } -/* "netCDF4.pyx":1429 +/* "netCDF4/_netCDF4.pyx":1429 * cdef public int _isopen * cdef public groups, dimensions, variables, disk_format, path, parent,\ * file_format, data_model, cmptypes, vltypes, keepweakref, \ # <<<<<<<<<<<<<< @@ -30413,19 +30413,19 @@ static int __pyx_pf_7netCDF4_7Dataset_6parent_4__del__(struct __pyx_obj_7netCDF4 */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_11file_format_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_7Dataset_11file_format_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_11file_format_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_11file_format_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_11file_format___get__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_11file_format___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_11file_format___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_11file_format___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -30442,19 +30442,19 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_11file_format___get__(struct __pyx_o } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_11file_format_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_11file_format_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_11file_format_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_11file_format_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_11file_format_2__set__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_11file_format_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_11file_format_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_11file_format_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -30471,19 +30471,19 @@ static int __pyx_pf_7netCDF4_7Dataset_11file_format_2__set__(struct __pyx_obj_7n } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_11file_format_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_11file_format_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_11file_format_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_11file_format_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_11file_format_4__del__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_11file_format_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_11file_format_4__del__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_11file_format_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -30500,19 +30500,19 @@ static int __pyx_pf_7netCDF4_7Dataset_11file_format_4__del__(struct __pyx_obj_7n } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_10data_model_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_7Dataset_10data_model_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_10data_model_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_10data_model_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_10data_model___get__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_10data_model___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_10data_model___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_10data_model___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -30529,19 +30529,19 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_10data_model___get__(struct __pyx_ob } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_10data_model_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_10data_model_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_10data_model_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_10data_model_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_10data_model_2__set__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_10data_model_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_10data_model_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_10data_model_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -30558,19 +30558,19 @@ static int __pyx_pf_7netCDF4_7Dataset_10data_model_2__set__(struct __pyx_obj_7ne } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_10data_model_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_10data_model_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_10data_model_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_10data_model_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_10data_model_4__del__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_10data_model_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_10data_model_4__del__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_10data_model_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -30587,19 +30587,19 @@ static int __pyx_pf_7netCDF4_7Dataset_10data_model_4__del__(struct __pyx_obj_7ne } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_8cmptypes_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_7Dataset_8cmptypes_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_8cmptypes_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_8cmptypes_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_8cmptypes___get__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_8cmptypes___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_8cmptypes___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_8cmptypes___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -30616,19 +30616,19 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_8cmptypes___get__(struct __pyx_obj_7 } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_8cmptypes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_8cmptypes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_8cmptypes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_8cmptypes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_8cmptypes_2__set__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_8cmptypes_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_8cmptypes_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_8cmptypes_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -30645,19 +30645,19 @@ static int __pyx_pf_7netCDF4_7Dataset_8cmptypes_2__set__(struct __pyx_obj_7netCD } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_8cmptypes_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_8cmptypes_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_8cmptypes_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_8cmptypes_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_8cmptypes_4__del__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_8cmptypes_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_8cmptypes_4__del__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_8cmptypes_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -30674,19 +30674,19 @@ static int __pyx_pf_7netCDF4_7Dataset_8cmptypes_4__del__(struct __pyx_obj_7netCD } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_7vltypes_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_7Dataset_7vltypes_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_7vltypes_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_7vltypes_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_7vltypes___get__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_7vltypes___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_7vltypes___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_7vltypes___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -30703,19 +30703,19 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_7vltypes___get__(struct __pyx_obj_7n } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_7vltypes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_7vltypes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_7vltypes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_7vltypes_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_7vltypes_2__set__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_7vltypes_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_7vltypes_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_7vltypes_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -30732,19 +30732,19 @@ static int __pyx_pf_7netCDF4_7Dataset_7vltypes_2__set__(struct __pyx_obj_7netCDF } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_7vltypes_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_7vltypes_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_7vltypes_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_7vltypes_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_7vltypes_4__del__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_7vltypes_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_7vltypes_4__del__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_7vltypes_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -30761,19 +30761,19 @@ static int __pyx_pf_7netCDF4_7Dataset_7vltypes_4__del__(struct __pyx_obj_7netCDF } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_11keepweakref_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_7Dataset_11keepweakref_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_11keepweakref_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_11keepweakref_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_11keepweakref___get__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_11keepweakref___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_11keepweakref___get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_11keepweakref___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -30790,19 +30790,19 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_11keepweakref___get__(struct __pyx_o } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_11keepweakref_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_11keepweakref_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_11keepweakref_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_11keepweakref_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_11keepweakref_2__set__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_11keepweakref_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_11keepweakref_2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_11keepweakref_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -30819,19 +30819,19 @@ static int __pyx_pf_7netCDF4_7Dataset_11keepweakref_2__set__(struct __pyx_obj_7n } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_11keepweakref_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_11keepweakref_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_11keepweakref_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_11keepweakref_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_11keepweakref_4__del__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_11keepweakref_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_11keepweakref_4__del__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_11keepweakref_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -30847,7 +30847,7 @@ static int __pyx_pf_7netCDF4_7Dataset_11keepweakref_4__del__(struct __pyx_obj_7n return __pyx_r; } -/* "netCDF4.pyx":1430 +/* "netCDF4/_netCDF4.pyx":1430 * cdef public groups, dimensions, variables, disk_format, path, parent,\ * file_format, data_model, cmptypes, vltypes, keepweakref, \ * __orthogonal_indexing__ # <<<<<<<<<<<<<< @@ -30856,19 +30856,19 @@ static int __pyx_pf_7netCDF4_7Dataset_11keepweakref_4__del__(struct __pyx_obj_7n */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_7Dataset_23__orthogonal_indexing___1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_7Dataset_23__orthogonal_indexing___1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_23__orthogonal_indexing___1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_7Dataset_23__orthogonal_indexing___1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_23__orthogonal_indexing_____get__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_23__orthogonal_indexing_____get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_7Dataset_23__orthogonal_indexing_____get__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_7Dataset_23__orthogonal_indexing_____get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -30885,19 +30885,19 @@ static PyObject *__pyx_pf_7netCDF4_7Dataset_23__orthogonal_indexing_____get__(st } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_23__orthogonal_indexing___3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_23__orthogonal_indexing___3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_23__orthogonal_indexing___3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_23__orthogonal_indexing___3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_23__orthogonal_indexing___2__set__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_23__orthogonal_indexing___2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_23__orthogonal_indexing___2__set__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_23__orthogonal_indexing___2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -30914,19 +30914,19 @@ static int __pyx_pf_7netCDF4_7Dataset_23__orthogonal_indexing___2__set__(struct } /* Python wrapper */ -static int __pyx_pw_7netCDF4_7Dataset_23__orthogonal_indexing___5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_7Dataset_23__orthogonal_indexing___5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_23__orthogonal_indexing___5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_7Dataset_23__orthogonal_indexing___5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_7Dataset_23__orthogonal_indexing___4__del__(((struct __pyx_obj_7netCDF4_Dataset *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_7Dataset_23__orthogonal_indexing___4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_7Dataset_23__orthogonal_indexing___4__del__(struct __pyx_obj_7netCDF4_Dataset *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_7Dataset_23__orthogonal_indexing___4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -30942,7 +30942,7 @@ static int __pyx_pf_7netCDF4_7Dataset_23__orthogonal_indexing___4__del__(struct return __pyx_r; } -/* "netCDF4.pyx":2126 +/* "netCDF4/_netCDF4.pyx":2126 * variables are available to a L{Group} instance (except the C{close} * method).""" * def __init__(self, parent, name, **kwargs): # <<<<<<<<<<<<<< @@ -30951,8 +30951,8 @@ static int __pyx_pf_7netCDF4_7Dataset_23__orthogonal_indexing___4__del__(struct */ /* Python wrapper */ -static int __pyx_pw_7netCDF4_5Group_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static int __pyx_pw_7netCDF4_5Group_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static int __pyx_pw_7netCDF4_8_netCDF4_5Group_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_5Group_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_parent = 0; PyObject *__pyx_v_name = 0; PyObject *__pyx_v_kwargs = 0; @@ -31004,11 +31004,11 @@ static int __pyx_pw_7netCDF4_5Group_1__init__(PyObject *__pyx_v_self, PyObject * __Pyx_RaiseArgtupleInvalid("__init__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2126; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0; - __Pyx_AddTraceback("netCDF4.Group.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Group.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_5Group___init__(((struct __pyx_obj_7netCDF4_Group *)__pyx_v_self), __pyx_v_parent, __pyx_v_name, __pyx_v_kwargs); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_5Group___init__(((struct __pyx_obj_7netCDF4_8_netCDF4_Group *)__pyx_v_self), __pyx_v_parent, __pyx_v_name, __pyx_v_kwargs); /* function exit code */ __Pyx_XDECREF(__pyx_v_kwargs); @@ -31016,7 +31016,7 @@ static int __pyx_pw_7netCDF4_5Group_1__init__(PyObject *__pyx_v_self, PyObject * return __pyx_r; } -static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__pyx_v_self, PyObject *__pyx_v_parent, PyObject *__pyx_v_name, PyObject *__pyx_v_kwargs) { +static int __pyx_pf_7netCDF4_8_netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_8_netCDF4_Group *__pyx_v_self, PyObject *__pyx_v_parent, PyObject *__pyx_v_name, PyObject *__pyx_v_kwargs) { int __pyx_v_ierr; char *__pyx_v_groupname; PyObject *__pyx_v_bytestr = NULL; @@ -31038,7 +31038,7 @@ static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 0); - /* "netCDF4.pyx":2130 + /* "netCDF4/_netCDF4.pyx":2130 * cdef char *groupname * # flag to indicate that Variables in this Group support orthogonal indexing. * self.__orthogonal_indexing__ = True # <<<<<<<<<<<<<< @@ -31051,7 +31051,7 @@ static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__ __Pyx_DECREF(__pyx_v_self->__pyx_base.__orthogonal_indexing__); __pyx_v_self->__pyx_base.__orthogonal_indexing__ = Py_True; - /* "netCDF4.pyx":2132 + /* "netCDF4/_netCDF4.pyx":2132 * self.__orthogonal_indexing__ = True * # set data_model and file_format attributes. * self.data_model = parent.data_model # <<<<<<<<<<<<<< @@ -31066,7 +31066,7 @@ static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__ __pyx_v_self->__pyx_base.data_model = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":2133 + /* "netCDF4/_netCDF4.pyx":2133 * # set data_model and file_format attributes. * self.data_model = parent.data_model * self.file_format = parent.file_format # <<<<<<<<<<<<<< @@ -31081,7 +31081,7 @@ static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__ __pyx_v_self->__pyx_base.file_format = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":2135 + /* "netCDF4/_netCDF4.pyx":2135 * self.file_format = parent.file_format * # full path to Group. * self.path = posixpath.join(parent.path, name) # <<<<<<<<<<<<<< @@ -31128,7 +31128,7 @@ static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__ __pyx_v_self->__pyx_base.path = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":2137 + /* "netCDF4/_netCDF4.pyx":2137 * self.path = posixpath.join(parent.path, name) * # parent group. * self.parent = parent # <<<<<<<<<<<<<< @@ -31141,7 +31141,7 @@ static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__ __Pyx_DECREF(__pyx_v_self->__pyx_base.parent); __pyx_v_self->__pyx_base.parent = __pyx_v_parent; - /* "netCDF4.pyx":2139 + /* "netCDF4/_netCDF4.pyx":2139 * self.parent = parent * # propagate weak reference setting from parent. * self.keepweakref = parent.keepweakref # <<<<<<<<<<<<<< @@ -31156,7 +31156,7 @@ static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__ __pyx_v_self->__pyx_base.keepweakref = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":2140 + /* "netCDF4/_netCDF4.pyx":2140 * # propagate weak reference setting from parent. * self.keepweakref = parent.keepweakref * if 'id' in kwargs: # <<<<<<<<<<<<<< @@ -31167,7 +31167,7 @@ static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__ __pyx_t_8 = (__pyx_t_7 != 0); if (__pyx_t_8) { - /* "netCDF4.pyx":2141 + /* "netCDF4/_netCDF4.pyx":2141 * self.keepweakref = parent.keepweakref * if 'id' in kwargs: * self._grpid = kwargs['id'] # <<<<<<<<<<<<<< @@ -31180,14 +31180,14 @@ static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_self->__pyx_base._grpid = __pyx_t_9; - /* "netCDF4.pyx":2143 + /* "netCDF4/_netCDF4.pyx":2143 * self._grpid = kwargs['id'] * # get compound and vlen types in this Group. * self.cmptypes, self.vltypes = _get_types(self) # <<<<<<<<<<<<<< * # get dimensions in this Group. * self.dimensions = _get_dims(self) */ - __pyx_t_1 = __pyx_f_7netCDF4__get_types(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2143; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_7netCDF4_8_netCDF4__get_types(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2143; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) { PyObject* sequence = __pyx_t_1; @@ -31250,14 +31250,14 @@ static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__ __pyx_v_self->__pyx_base.vltypes = __pyx_t_6; __pyx_t_6 = 0; - /* "netCDF4.pyx":2145 + /* "netCDF4/_netCDF4.pyx":2145 * self.cmptypes, self.vltypes = _get_types(self) * # get dimensions in this Group. * self.dimensions = _get_dims(self) # <<<<<<<<<<<<<< * # get variables in this Group. * self.variables = _get_vars(self) */ - __pyx_t_1 = __pyx_f_7netCDF4__get_dims(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2145; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_7netCDF4_8_netCDF4__get_dims(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2145; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->__pyx_base.dimensions); @@ -31265,14 +31265,14 @@ static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__ __pyx_v_self->__pyx_base.dimensions = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":2147 + /* "netCDF4/_netCDF4.pyx":2147 * self.dimensions = _get_dims(self) * # get variables in this Group. * self.variables = _get_vars(self) # <<<<<<<<<<<<<< * # get groups in this Group. * self.groups = _get_grps(self) */ - __pyx_t_1 = __pyx_f_7netCDF4__get_vars(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2147; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_7netCDF4_8_netCDF4__get_vars(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2147; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->__pyx_base.variables); @@ -31280,14 +31280,14 @@ static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__ __pyx_v_self->__pyx_base.variables = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":2149 + /* "netCDF4/_netCDF4.pyx":2149 * self.variables = _get_vars(self) * # get groups in this Group. * self.groups = _get_grps(self) # <<<<<<<<<<<<<< * else: * bytestr = _strencode(name) */ - __pyx_t_1 = __pyx_f_7netCDF4__get_grps(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2149; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_7netCDF4_8_netCDF4__get_grps(((PyObject *)__pyx_v_self)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2149; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_GIVEREF(__pyx_t_1); __Pyx_GOTREF(__pyx_v_self->__pyx_base.groups); @@ -31298,19 +31298,19 @@ static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__ } /*else*/ { - /* "netCDF4.pyx":2151 + /* "netCDF4/_netCDF4.pyx":2151 * self.groups = _get_grps(self) * else: * bytestr = _strencode(name) # <<<<<<<<<<<<<< * groupname = bytestr * ierr = nc_def_grp(parent._grpid, groupname, &self._grpid) */ - __pyx_t_1 = __pyx_f_7netCDF4__strencode(__pyx_v_name, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2151; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_7netCDF4_8_netCDF4__strencode(__pyx_v_name, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2151; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_v_bytestr = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":2152 + /* "netCDF4/_netCDF4.pyx":2152 * else: * bytestr = _strencode(name) * groupname = bytestr # <<<<<<<<<<<<<< @@ -31320,7 +31320,7 @@ static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__ __pyx_t_11 = __Pyx_PyObject_AsString(__pyx_v_bytestr); if (unlikely((!__pyx_t_11) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2152; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_groupname = __pyx_t_11; - /* "netCDF4.pyx":2153 + /* "netCDF4/_netCDF4.pyx":2153 * bytestr = _strencode(name) * groupname = bytestr * ierr = nc_def_grp(parent._grpid, groupname, &self._grpid) # <<<<<<<<<<<<<< @@ -31333,7 +31333,7 @@ static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_ierr = nc_def_grp(__pyx_t_9, __pyx_v_groupname, (&__pyx_v_self->__pyx_base._grpid)); - /* "netCDF4.pyx":2154 + /* "netCDF4/_netCDF4.pyx":2154 * groupname = bytestr * ierr = nc_def_grp(parent._grpid, groupname, &self._grpid) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -31343,7 +31343,7 @@ static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__ __pyx_t_8 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_8) { - /* "netCDF4.pyx":2155 + /* "netCDF4/_netCDF4.pyx":2155 * ierr = nc_def_grp(parent._grpid, groupname, &self._grpid) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -31367,7 +31367,7 @@ static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__ {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2155; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":2156 + /* "netCDF4/_netCDF4.pyx":2156 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * self.cmptypes = OrderedDict() # <<<<<<<<<<<<<< @@ -31400,7 +31400,7 @@ static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__ __pyx_v_self->__pyx_base.cmptypes = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":2157 + /* "netCDF4/_netCDF4.pyx":2157 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * self.cmptypes = OrderedDict() * self.vltypes = OrderedDict() # <<<<<<<<<<<<<< @@ -31433,7 +31433,7 @@ static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__ __pyx_v_self->__pyx_base.vltypes = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":2158 + /* "netCDF4/_netCDF4.pyx":2158 * self.cmptypes = OrderedDict() * self.vltypes = OrderedDict() * self.dimensions = OrderedDict() # <<<<<<<<<<<<<< @@ -31466,7 +31466,7 @@ static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__ __pyx_v_self->__pyx_base.dimensions = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":2159 + /* "netCDF4/_netCDF4.pyx":2159 * self.vltypes = OrderedDict() * self.dimensions = OrderedDict() * self.variables = OrderedDict() # <<<<<<<<<<<<<< @@ -31499,7 +31499,7 @@ static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__ __pyx_v_self->__pyx_base.variables = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":2160 + /* "netCDF4/_netCDF4.pyx":2160 * self.dimensions = OrderedDict() * self.variables = OrderedDict() * self.groups = OrderedDict() # <<<<<<<<<<<<<< @@ -31534,7 +31534,7 @@ static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__ } __pyx_L3:; - /* "netCDF4.pyx":2126 + /* "netCDF4/_netCDF4.pyx":2126 * variables are available to a L{Group} instance (except the C{close} * method).""" * def __init__(self, parent, name, **kwargs): # <<<<<<<<<<<<<< @@ -31551,7 +31551,7 @@ static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__ __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_6); - __Pyx_AddTraceback("netCDF4.Group.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Group.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_bytestr); @@ -31559,7 +31559,7 @@ static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__ return __pyx_r; } -/* "netCDF4.pyx":2162 +/* "netCDF4/_netCDF4.pyx":2162 * self.groups = OrderedDict() * * def close(self): # <<<<<<<<<<<<<< @@ -31568,20 +31568,20 @@ static int __pyx_pf_7netCDF4_5Group___init__(struct __pyx_obj_7netCDF4_Group *__ */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_5Group_3close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static char __pyx_doc_7netCDF4_5Group_2close[] = "\nclose(self)\n\noverrides L{Dataset} close method which does not apply to L{Group}\ninstances, raises IOError."; -static PyObject *__pyx_pw_7netCDF4_5Group_3close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_5Group_3close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_5Group_2close[] = "\nclose(self)\n\noverrides L{Dataset} close method which does not apply to L{Group}\ninstances, raises IOError."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_5Group_3close(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("close (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_5Group_2close(((struct __pyx_obj_7netCDF4_Group *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_5Group_2close(((struct __pyx_obj_7netCDF4_8_netCDF4_Group *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_5Group_2close(CYTHON_UNUSED struct __pyx_obj_7netCDF4_Group *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_5Group_2close(CYTHON_UNUSED struct __pyx_obj_7netCDF4_8_netCDF4_Group *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -31590,7 +31590,7 @@ static PyObject *__pyx_pf_7netCDF4_5Group_2close(CYTHON_UNUSED struct __pyx_obj_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("close", 0); - /* "netCDF4.pyx":2168 + /* "netCDF4/_netCDF4.pyx":2168 * overrides L{Dataset} close method which does not apply to L{Group} * instances, raises IOError.""" * raise IOError('cannot close a L{Group} (only applies to Dataset)') # <<<<<<<<<<<<<< @@ -31603,7 +31603,7 @@ static PyObject *__pyx_pf_7netCDF4_5Group_2close(CYTHON_UNUSED struct __pyx_obj_ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2168; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":2162 + /* "netCDF4/_netCDF4.pyx":2162 * self.groups = OrderedDict() * * def close(self): # <<<<<<<<<<<<<< @@ -31614,14 +31614,14 @@ static PyObject *__pyx_pf_7netCDF4_5Group_2close(CYTHON_UNUSED struct __pyx_obj_ /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("netCDF4.Group.close", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Group.close", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __Pyx_XGIVEREF(__pyx_r); __Pyx_RefNannyFinishContext(); return __pyx_r; } -/* "netCDF4.pyx":2170 +/* "netCDF4/_netCDF4.pyx":2170 * raise IOError('cannot close a L{Group} (only applies to Dataset)') * * def _getname(self): # <<<<<<<<<<<<<< @@ -31630,19 +31630,19 @@ static PyObject *__pyx_pf_7netCDF4_5Group_2close(CYTHON_UNUSED struct __pyx_obj_ */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_5Group_5_getname(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_5Group_5_getname(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_5Group_5_getname(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_5Group_5_getname(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_getname (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_5Group_4_getname(((struct __pyx_obj_7netCDF4_Group *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_5Group_4_getname(((struct __pyx_obj_7netCDF4_8_netCDF4_Group *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_5Group_4_getname(struct __pyx_obj_7netCDF4_Group *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_5Group_4_getname(struct __pyx_obj_7netCDF4_8_netCDF4_Group *__pyx_v_self) { char __pyx_v_namstring[(NC_MAX_NAME + 1)]; int __pyx_v_ierr; PyObject *__pyx_r = NULL; @@ -31661,7 +31661,7 @@ static PyObject *__pyx_pf_7netCDF4_5Group_4_getname(struct __pyx_obj_7netCDF4_Gr int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_getname", 0); - /* "netCDF4.pyx":2174 + /* "netCDF4/_netCDF4.pyx":2174 * cdef int err * cdef char namstring[NC_MAX_NAME+1] * with nogil: # <<<<<<<<<<<<<< @@ -31675,7 +31675,7 @@ static PyObject *__pyx_pf_7netCDF4_5Group_4_getname(struct __pyx_obj_7netCDF4_Gr #endif /*try:*/ { - /* "netCDF4.pyx":2175 + /* "netCDF4/_netCDF4.pyx":2175 * cdef char namstring[NC_MAX_NAME+1] * with nogil: * ierr = nc_inq_grpname(self._grpid, namstring) # <<<<<<<<<<<<<< @@ -31685,7 +31685,7 @@ static PyObject *__pyx_pf_7netCDF4_5Group_4_getname(struct __pyx_obj_7netCDF4_Gr __pyx_v_ierr = nc_inq_grpname(__pyx_v_self->__pyx_base._grpid, __pyx_v_namstring); } - /* "netCDF4.pyx":2174 + /* "netCDF4/_netCDF4.pyx":2174 * cdef int err * cdef char namstring[NC_MAX_NAME+1] * with nogil: # <<<<<<<<<<<<<< @@ -31703,7 +31703,7 @@ static PyObject *__pyx_pf_7netCDF4_5Group_4_getname(struct __pyx_obj_7netCDF4_Gr } } - /* "netCDF4.pyx":2176 + /* "netCDF4/_netCDF4.pyx":2176 * with nogil: * ierr = nc_inq_grpname(self._grpid, namstring) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -31713,7 +31713,7 @@ static PyObject *__pyx_pf_7netCDF4_5Group_4_getname(struct __pyx_obj_7netCDF4_Gr __pyx_t_1 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":2177 + /* "netCDF4/_netCDF4.pyx":2177 * ierr = nc_inq_grpname(self._grpid, namstring) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -31737,7 +31737,7 @@ static PyObject *__pyx_pf_7netCDF4_5Group_4_getname(struct __pyx_obj_7netCDF4_Gr {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2177; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":2178 + /* "netCDF4/_netCDF4.pyx":2178 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * return namstring.decode(default_encoding,unicode_error) # <<<<<<<<<<<<<< @@ -31785,7 +31785,7 @@ static PyObject *__pyx_pf_7netCDF4_5Group_4_getname(struct __pyx_obj_7netCDF4_Gr __pyx_t_3 = 0; goto __pyx_L0; - /* "netCDF4.pyx":2170 + /* "netCDF4/_netCDF4.pyx":2170 * raise IOError('cannot close a L{Group} (only applies to Dataset)') * * def _getname(self): # <<<<<<<<<<<<<< @@ -31801,7 +31801,7 @@ static PyObject *__pyx_pf_7netCDF4_5Group_4_getname(struct __pyx_obj_7netCDF4_Gr __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_9); - __Pyx_AddTraceback("netCDF4.Group._getname", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Group._getname", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -31809,7 +31809,7 @@ static PyObject *__pyx_pf_7netCDF4_5Group_4_getname(struct __pyx_obj_7netCDF4_Gr return __pyx_r; } -/* "netCDF4.pyx":2182 +/* "netCDF4/_netCDF4.pyx":2182 * property name: * """string name of Group instance""" * def __get__(self): # <<<<<<<<<<<<<< @@ -31818,19 +31818,19 @@ static PyObject *__pyx_pf_7netCDF4_5Group_4_getname(struct __pyx_obj_7netCDF4_Gr */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_5Group_4name_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_5Group_4name_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_5Group_4name_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_5Group_4name_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_5Group_4name___get__(((struct __pyx_obj_7netCDF4_Group *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_5Group_4name___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Group *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_5Group_4name___get__(struct __pyx_obj_7netCDF4_Group *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_5Group_4name___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Group *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -31841,7 +31841,7 @@ static PyObject *__pyx_pf_7netCDF4_5Group_4name___get__(struct __pyx_obj_7netCDF int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); - /* "netCDF4.pyx":2183 + /* "netCDF4/_netCDF4.pyx":2183 * """string name of Group instance""" * def __get__(self): * return self._getname() # <<<<<<<<<<<<<< @@ -31873,7 +31873,7 @@ static PyObject *__pyx_pf_7netCDF4_5Group_4name___get__(struct __pyx_obj_7netCDF __pyx_t_1 = 0; goto __pyx_L0; - /* "netCDF4.pyx":2182 + /* "netCDF4/_netCDF4.pyx":2182 * property name: * """string name of Group instance""" * def __get__(self): # <<<<<<<<<<<<<< @@ -31886,7 +31886,7 @@ static PyObject *__pyx_pf_7netCDF4_5Group_4name___get__(struct __pyx_obj_7netCDF __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); - __Pyx_AddTraceback("netCDF4.Group.name.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Group.name.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -31894,7 +31894,7 @@ static PyObject *__pyx_pf_7netCDF4_5Group_4name___get__(struct __pyx_obj_7netCDF return __pyx_r; } -/* "netCDF4.pyx":2184 +/* "netCDF4/_netCDF4.pyx":2184 * def __get__(self): * return self._getname() * def __set__(self,value): # <<<<<<<<<<<<<< @@ -31903,19 +31903,19 @@ static PyObject *__pyx_pf_7netCDF4_5Group_4name___get__(struct __pyx_obj_7netCDF */ /* Python wrapper */ -static int __pyx_pw_7netCDF4_5Group_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_5Group_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_5Group_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_5Group_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_5Group_4name_2__set__(((struct __pyx_obj_7netCDF4_Group *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_5Group_4name_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Group *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_5Group_4name_2__set__(CYTHON_UNUSED struct __pyx_obj_7netCDF4_Group *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_5Group_4name_2__set__(CYTHON_UNUSED struct __pyx_obj_7netCDF4_8_netCDF4_Group *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -31924,7 +31924,7 @@ static int __pyx_pf_7netCDF4_5Group_4name_2__set__(CYTHON_UNUSED struct __pyx_ob int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); - /* "netCDF4.pyx":2185 + /* "netCDF4/_netCDF4.pyx":2185 * return self._getname() * def __set__(self,value): * raise AttributeError("name cannot be altered") # <<<<<<<<<<<<<< @@ -31937,7 +31937,7 @@ static int __pyx_pf_7netCDF4_5Group_4name_2__set__(CYTHON_UNUSED struct __pyx_ob __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2185; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":2184 + /* "netCDF4/_netCDF4.pyx":2184 * def __get__(self): * return self._getname() * def __set__(self,value): # <<<<<<<<<<<<<< @@ -31948,13 +31948,13 @@ static int __pyx_pf_7netCDF4_5Group_4name_2__set__(CYTHON_UNUSED struct __pyx_ob /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("netCDF4.Group.name.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Group.name.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __Pyx_RefNannyFinishContext(); return __pyx_r; } -/* "netCDF4.pyx":2220 +/* "netCDF4/_netCDF4.pyx":2220 * cdef public _data_model, _name, _grp * * def __init__(self, grp, name, size=None, **kwargs): # <<<<<<<<<<<<<< @@ -31963,8 +31963,8 @@ static int __pyx_pf_7netCDF4_5Group_4name_2__set__(CYTHON_UNUSED struct __pyx_ob */ /* Python wrapper */ -static int __pyx_pw_7netCDF4_9Dimension_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static int __pyx_pw_7netCDF4_9Dimension_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static int __pyx_pw_7netCDF4_8_netCDF4_9Dimension_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_9Dimension_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_grp = 0; PyObject *__pyx_v_name = 0; PyObject *__pyx_v_size = 0; @@ -32028,11 +32028,11 @@ static int __pyx_pw_7netCDF4_9Dimension_1__init__(PyObject *__pyx_v_self, PyObje __Pyx_RaiseArgtupleInvalid("__init__", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2220; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0; - __Pyx_AddTraceback("netCDF4.Dimension.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dimension.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_9Dimension___init__(((struct __pyx_obj_7netCDF4_Dimension *)__pyx_v_self), __pyx_v_grp, __pyx_v_name, __pyx_v_size, __pyx_v_kwargs); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9Dimension___init__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)__pyx_v_self), __pyx_v_grp, __pyx_v_name, __pyx_v_size, __pyx_v_kwargs); /* function exit code */ __Pyx_XDECREF(__pyx_v_kwargs); @@ -32040,7 +32040,7 @@ static int __pyx_pw_7netCDF4_9Dimension_1__init__(PyObject *__pyx_v_self, PyObje return __pyx_r; } -static int __pyx_pf_7netCDF4_9Dimension___init__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self, PyObject *__pyx_v_grp, PyObject *__pyx_v_name, PyObject *__pyx_v_size, PyObject *__pyx_v_kwargs) { +static int __pyx_pf_7netCDF4_8_netCDF4_9Dimension___init__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self, PyObject *__pyx_v_grp, PyObject *__pyx_v_name, PyObject *__pyx_v_size, PyObject *__pyx_v_kwargs) { int __pyx_v_ierr; char *__pyx_v_dimname; size_t __pyx_v_lendim; @@ -32061,7 +32061,7 @@ static int __pyx_pf_7netCDF4_9Dimension___init__(struct __pyx_obj_7netCDF4_Dimen int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__init__", 0); - /* "netCDF4.pyx":2224 + /* "netCDF4/_netCDF4.pyx":2224 * cdef char *dimname * cdef size_t lendim * self._grpid = grp._grpid # <<<<<<<<<<<<<< @@ -32074,7 +32074,7 @@ static int __pyx_pf_7netCDF4_9Dimension___init__(struct __pyx_obj_7netCDF4_Dimen __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_self->_grpid = __pyx_t_2; - /* "netCDF4.pyx":2227 + /* "netCDF4/_netCDF4.pyx":2227 * # make a weakref to group to avoid circular ref (issue 218) * # keep strong reference the default behaviour (issue 251) * if grp.keepweakref: # <<<<<<<<<<<<<< @@ -32087,7 +32087,7 @@ static int __pyx_pf_7netCDF4_9Dimension___init__(struct __pyx_obj_7netCDF4_Dimen __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_3) { - /* "netCDF4.pyx":2228 + /* "netCDF4/_netCDF4.pyx":2228 * # keep strong reference the default behaviour (issue 251) * if grp.keepweakref: * self._grp = weakref.proxy(grp) # <<<<<<<<<<<<<< @@ -32133,7 +32133,7 @@ static int __pyx_pf_7netCDF4_9Dimension___init__(struct __pyx_obj_7netCDF4_Dimen } /*else*/ { - /* "netCDF4.pyx":2230 + /* "netCDF4/_netCDF4.pyx":2230 * self._grp = weakref.proxy(grp) * else: * self._grp = grp # <<<<<<<<<<<<<< @@ -32148,7 +32148,7 @@ static int __pyx_pf_7netCDF4_9Dimension___init__(struct __pyx_obj_7netCDF4_Dimen } __pyx_L3:; - /* "netCDF4.pyx":2231 + /* "netCDF4/_netCDF4.pyx":2231 * else: * self._grp = grp * self._data_model = grp.data_model # <<<<<<<<<<<<<< @@ -32163,7 +32163,7 @@ static int __pyx_pf_7netCDF4_9Dimension___init__(struct __pyx_obj_7netCDF4_Dimen __pyx_v_self->_data_model = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":2232 + /* "netCDF4/_netCDF4.pyx":2232 * self._grp = grp * self._data_model = grp.data_model * self._name = name # <<<<<<<<<<<<<< @@ -32176,7 +32176,7 @@ static int __pyx_pf_7netCDF4_9Dimension___init__(struct __pyx_obj_7netCDF4_Dimen __Pyx_DECREF(__pyx_v_self->_name); __pyx_v_self->_name = __pyx_v_name; - /* "netCDF4.pyx":2233 + /* "netCDF4/_netCDF4.pyx":2233 * self._data_model = grp.data_model * self._name = name * if 'id' in kwargs: # <<<<<<<<<<<<<< @@ -32187,7 +32187,7 @@ static int __pyx_pf_7netCDF4_9Dimension___init__(struct __pyx_obj_7netCDF4_Dimen __pyx_t_7 = (__pyx_t_3 != 0); if (__pyx_t_7) { - /* "netCDF4.pyx":2234 + /* "netCDF4/_netCDF4.pyx":2234 * self._name = name * if 'id' in kwargs: * self._dimid = kwargs['id'] # <<<<<<<<<<<<<< @@ -32203,19 +32203,19 @@ static int __pyx_pf_7netCDF4_9Dimension___init__(struct __pyx_obj_7netCDF4_Dimen } /*else*/ { - /* "netCDF4.pyx":2236 + /* "netCDF4/_netCDF4.pyx":2236 * self._dimid = kwargs['id'] * else: * bytestr = _strencode(name) # <<<<<<<<<<<<<< * dimname = bytestr * if size is not None: */ - __pyx_t_1 = __pyx_f_7netCDF4__strencode(__pyx_v_name, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2236; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_7netCDF4_8_netCDF4__strencode(__pyx_v_name, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2236; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_v_bytestr = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":2237 + /* "netCDF4/_netCDF4.pyx":2237 * else: * bytestr = _strencode(name) * dimname = bytestr # <<<<<<<<<<<<<< @@ -32225,7 +32225,7 @@ static int __pyx_pf_7netCDF4_9Dimension___init__(struct __pyx_obj_7netCDF4_Dimen __pyx_t_8 = __Pyx_PyObject_AsString(__pyx_v_bytestr); if (unlikely((!__pyx_t_8) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2237; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_dimname = __pyx_t_8; - /* "netCDF4.pyx":2238 + /* "netCDF4/_netCDF4.pyx":2238 * bytestr = _strencode(name) * dimname = bytestr * if size is not None: # <<<<<<<<<<<<<< @@ -32236,7 +32236,7 @@ static int __pyx_pf_7netCDF4_9Dimension___init__(struct __pyx_obj_7netCDF4_Dimen __pyx_t_3 = (__pyx_t_7 != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":2239 + /* "netCDF4/_netCDF4.pyx":2239 * dimname = bytestr * if size is not None: * lendim = size # <<<<<<<<<<<<<< @@ -32249,7 +32249,7 @@ static int __pyx_pf_7netCDF4_9Dimension___init__(struct __pyx_obj_7netCDF4_Dimen } /*else*/ { - /* "netCDF4.pyx":2241 + /* "netCDF4/_netCDF4.pyx":2241 * lendim = size * else: * lendim = NC_UNLIMITED # <<<<<<<<<<<<<< @@ -32260,7 +32260,7 @@ static int __pyx_pf_7netCDF4_9Dimension___init__(struct __pyx_obj_7netCDF4_Dimen } __pyx_L5:; - /* "netCDF4.pyx":2242 + /* "netCDF4/_netCDF4.pyx":2242 * else: * lendim = NC_UNLIMITED * if grp.data_model != 'NETCDF4': grp._redef() # <<<<<<<<<<<<<< @@ -32297,7 +32297,7 @@ static int __pyx_pf_7netCDF4_9Dimension___init__(struct __pyx_obj_7netCDF4_Dimen } __pyx_L6:; - /* "netCDF4.pyx":2243 + /* "netCDF4/_netCDF4.pyx":2243 * lendim = NC_UNLIMITED * if grp.data_model != 'NETCDF4': grp._redef() * ierr = nc_def_dim(self._grpid, dimname, lendim, &self._dimid) # <<<<<<<<<<<<<< @@ -32306,7 +32306,7 @@ static int __pyx_pf_7netCDF4_9Dimension___init__(struct __pyx_obj_7netCDF4_Dimen */ __pyx_v_ierr = nc_def_dim(__pyx_v_self->_grpid, __pyx_v_dimname, __pyx_v_lendim, (&__pyx_v_self->_dimid)); - /* "netCDF4.pyx":2244 + /* "netCDF4/_netCDF4.pyx":2244 * if grp.data_model != 'NETCDF4': grp._redef() * ierr = nc_def_dim(self._grpid, dimname, lendim, &self._dimid) * if grp.data_model != 'NETCDF4': grp._enddef() # <<<<<<<<<<<<<< @@ -32343,7 +32343,7 @@ static int __pyx_pf_7netCDF4_9Dimension___init__(struct __pyx_obj_7netCDF4_Dimen } __pyx_L7:; - /* "netCDF4.pyx":2245 + /* "netCDF4/_netCDF4.pyx":2245 * ierr = nc_def_dim(self._grpid, dimname, lendim, &self._dimid) * if grp.data_model != 'NETCDF4': grp._enddef() * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -32353,7 +32353,7 @@ static int __pyx_pf_7netCDF4_9Dimension___init__(struct __pyx_obj_7netCDF4_Dimen __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":2246 + /* "netCDF4/_netCDF4.pyx":2246 * if grp.data_model != 'NETCDF4': grp._enddef() * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -32379,7 +32379,7 @@ static int __pyx_pf_7netCDF4_9Dimension___init__(struct __pyx_obj_7netCDF4_Dimen } __pyx_L4:; - /* "netCDF4.pyx":2220 + /* "netCDF4/_netCDF4.pyx":2220 * cdef public _data_model, _name, _grp * * def __init__(self, grp, name, size=None, **kwargs): # <<<<<<<<<<<<<< @@ -32395,7 +32395,7 @@ static int __pyx_pf_7netCDF4_9Dimension___init__(struct __pyx_obj_7netCDF4_Dimen __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); - __Pyx_AddTraceback("netCDF4.Dimension.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dimension.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_bytestr); @@ -32403,7 +32403,7 @@ static int __pyx_pf_7netCDF4_9Dimension___init__(struct __pyx_obj_7netCDF4_Dimen return __pyx_r; } -/* "netCDF4.pyx":2248 +/* "netCDF4/_netCDF4.pyx":2248 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * * def _getname(self): # <<<<<<<<<<<<<< @@ -32412,19 +32412,19 @@ static int __pyx_pf_7netCDF4_9Dimension___init__(struct __pyx_obj_7netCDF4_Dimen */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9Dimension_3_getname(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_9Dimension_3_getname(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9Dimension_3_getname(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9Dimension_3_getname(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_getname (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9Dimension_2_getname(((struct __pyx_obj_7netCDF4_Dimension *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9Dimension_2_getname(((struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9Dimension_2_getname(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9Dimension_2_getname(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self) { int __pyx_v__grpid; char __pyx_v_namstring[(NC_MAX_NAME + 1)]; int __pyx_v_ierr; @@ -32445,7 +32445,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_2_getname(struct __pyx_obj_7netCDF int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_getname", 0); - /* "netCDF4.pyx":2252 + /* "netCDF4/_netCDF4.pyx":2252 * cdef int err, _grpid * cdef char namstring[NC_MAX_NAME+1] * _grpid = self._grp._grpid # <<<<<<<<<<<<<< @@ -32458,7 +32458,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_2_getname(struct __pyx_obj_7netCDF __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v__grpid = __pyx_t_2; - /* "netCDF4.pyx":2253 + /* "netCDF4/_netCDF4.pyx":2253 * cdef char namstring[NC_MAX_NAME+1] * _grpid = self._grp._grpid * with nogil: # <<<<<<<<<<<<<< @@ -32472,7 +32472,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_2_getname(struct __pyx_obj_7netCDF #endif /*try:*/ { - /* "netCDF4.pyx":2254 + /* "netCDF4/_netCDF4.pyx":2254 * _grpid = self._grp._grpid * with nogil: * ierr = nc_inq_dimname(_grpid, self._dimid, namstring) # <<<<<<<<<<<<<< @@ -32482,7 +32482,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_2_getname(struct __pyx_obj_7netCDF __pyx_v_ierr = nc_inq_dimname(__pyx_v__grpid, __pyx_v_self->_dimid, __pyx_v_namstring); } - /* "netCDF4.pyx":2253 + /* "netCDF4/_netCDF4.pyx":2253 * cdef char namstring[NC_MAX_NAME+1] * _grpid = self._grp._grpid * with nogil: # <<<<<<<<<<<<<< @@ -32500,7 +32500,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_2_getname(struct __pyx_obj_7netCDF } } - /* "netCDF4.pyx":2255 + /* "netCDF4/_netCDF4.pyx":2255 * with nogil: * ierr = nc_inq_dimname(_grpid, self._dimid, namstring) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -32510,7 +32510,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_2_getname(struct __pyx_obj_7netCDF __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":2256 + /* "netCDF4/_netCDF4.pyx":2256 * ierr = nc_inq_dimname(_grpid, self._dimid, namstring) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -32534,7 +32534,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_2_getname(struct __pyx_obj_7netCDF {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2256; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":2257 + /* "netCDF4/_netCDF4.pyx":2257 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * return namstring.decode(default_encoding,unicode_error) # <<<<<<<<<<<<<< @@ -32582,7 +32582,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_2_getname(struct __pyx_obj_7netCDF __pyx_t_1 = 0; goto __pyx_L0; - /* "netCDF4.pyx":2248 + /* "netCDF4/_netCDF4.pyx":2248 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * * def _getname(self): # <<<<<<<<<<<<<< @@ -32598,7 +32598,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_2_getname(struct __pyx_obj_7netCDF __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_10); - __Pyx_AddTraceback("netCDF4.Dimension._getname", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dimension._getname", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -32606,7 +32606,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_2_getname(struct __pyx_obj_7netCDF return __pyx_r; } -/* "netCDF4.pyx":2261 +/* "netCDF4/_netCDF4.pyx":2261 * property name: * """string name of Dimension instance""" * def __get__(self): # <<<<<<<<<<<<<< @@ -32615,19 +32615,19 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_2_getname(struct __pyx_obj_7netCDF */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9Dimension_4name_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_9Dimension_4name_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9Dimension_4name_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9Dimension_4name_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9Dimension_4name___get__(((struct __pyx_obj_7netCDF4_Dimension *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9Dimension_4name___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9Dimension_4name___get__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9Dimension_4name___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -32638,7 +32638,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_4name___get__(struct __pyx_obj_7ne int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); - /* "netCDF4.pyx":2262 + /* "netCDF4/_netCDF4.pyx":2262 * """string name of Dimension instance""" * def __get__(self): * return self._getname() # <<<<<<<<<<<<<< @@ -32670,7 +32670,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_4name___get__(struct __pyx_obj_7ne __pyx_t_1 = 0; goto __pyx_L0; - /* "netCDF4.pyx":2261 + /* "netCDF4/_netCDF4.pyx":2261 * property name: * """string name of Dimension instance""" * def __get__(self): # <<<<<<<<<<<<<< @@ -32683,7 +32683,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_4name___get__(struct __pyx_obj_7ne __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); - __Pyx_AddTraceback("netCDF4.Dimension.name.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dimension.name.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -32691,7 +32691,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_4name___get__(struct __pyx_obj_7ne return __pyx_r; } -/* "netCDF4.pyx":2263 +/* "netCDF4/_netCDF4.pyx":2263 * def __get__(self): * return self._getname() * def __set__(self,value): # <<<<<<<<<<<<<< @@ -32700,19 +32700,19 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_4name___get__(struct __pyx_obj_7ne */ /* Python wrapper */ -static int __pyx_pw_7netCDF4_9Dimension_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_9Dimension_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_9Dimension_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_9Dimension_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9Dimension_4name_2__set__(((struct __pyx_obj_7netCDF4_Dimension *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9Dimension_4name_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_9Dimension_4name_2__set__(CYTHON_UNUSED struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_9Dimension_4name_2__set__(CYTHON_UNUSED struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -32721,7 +32721,7 @@ static int __pyx_pf_7netCDF4_9Dimension_4name_2__set__(CYTHON_UNUSED struct __py int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); - /* "netCDF4.pyx":2264 + /* "netCDF4/_netCDF4.pyx":2264 * return self._getname() * def __set__(self,value): * raise AttributeError("name cannot be altered") # <<<<<<<<<<<<<< @@ -32734,7 +32734,7 @@ static int __pyx_pf_7netCDF4_9Dimension_4name_2__set__(CYTHON_UNUSED struct __py __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2264; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":2263 + /* "netCDF4/_netCDF4.pyx":2263 * def __get__(self): * return self._getname() * def __set__(self,value): # <<<<<<<<<<<<<< @@ -32745,13 +32745,13 @@ static int __pyx_pf_7netCDF4_9Dimension_4name_2__set__(CYTHON_UNUSED struct __py /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("netCDF4.Dimension.name.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dimension.name.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __Pyx_RefNannyFinishContext(); return __pyx_r; } -/* "netCDF4.pyx":2266 +/* "netCDF4/_netCDF4.pyx":2266 * raise AttributeError("name cannot be altered") * * def __repr__(self): # <<<<<<<<<<<<<< @@ -32760,19 +32760,19 @@ static int __pyx_pf_7netCDF4_9Dimension_4name_2__set__(CYTHON_UNUSED struct __py */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9Dimension_5__repr__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_9Dimension_5__repr__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9Dimension_5__repr__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9Dimension_5__repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9Dimension_4__repr__(((struct __pyx_obj_7netCDF4_Dimension *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9Dimension_4__repr__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9Dimension_4__repr__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9Dimension_4__repr__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -32786,7 +32786,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_4__repr__(struct __pyx_obj_7netCDF int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); - /* "netCDF4.pyx":2267 + /* "netCDF4/_netCDF4.pyx":2267 * * def __repr__(self): * if python3: # <<<<<<<<<<<<<< @@ -32799,7 +32799,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_4__repr__(struct __pyx_obj_7netCDF __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { - /* "netCDF4.pyx":2268 + /* "netCDF4/_netCDF4.pyx":2268 * def __repr__(self): * if python3: * return self.__unicode__() # <<<<<<<<<<<<<< @@ -32833,7 +32833,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_4__repr__(struct __pyx_obj_7netCDF } /*else*/ { - /* "netCDF4.pyx":2270 + /* "netCDF4/_netCDF4.pyx":2270 * return self.__unicode__() * else: * return unicode(self).encode(default_encoding) # <<<<<<<<<<<<<< @@ -32885,7 +32885,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_4__repr__(struct __pyx_obj_7netCDF goto __pyx_L0; } - /* "netCDF4.pyx":2266 + /* "netCDF4/_netCDF4.pyx":2266 * raise AttributeError("name cannot be altered") * * def __repr__(self): # <<<<<<<<<<<<<< @@ -32900,7 +32900,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_4__repr__(struct __pyx_obj_7netCDF __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); - __Pyx_AddTraceback("netCDF4.Dimension.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dimension.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -32908,7 +32908,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_4__repr__(struct __pyx_obj_7netCDF return __pyx_r; } -/* "netCDF4.pyx":2272 +/* "netCDF4/_netCDF4.pyx":2272 * return unicode(self).encode(default_encoding) * * def __unicode__(self): # <<<<<<<<<<<<<< @@ -32917,19 +32917,19 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_4__repr__(struct __pyx_obj_7netCDF */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9Dimension_7__unicode__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_9Dimension_7__unicode__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9Dimension_7__unicode__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9Dimension_7__unicode__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__unicode__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9Dimension_6__unicode__(((struct __pyx_obj_7netCDF4_Dimension *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9Dimension_6__unicode__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9Dimension_6__unicode__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9Dimension_6__unicode__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -32943,7 +32943,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_6__unicode__(struct __pyx_obj_7net int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__unicode__", 0); - /* "netCDF4.pyx":2273 + /* "netCDF4/_netCDF4.pyx":2273 * * def __unicode__(self): * if not dir(self._grp): # <<<<<<<<<<<<<< @@ -32960,7 +32960,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_6__unicode__(struct __pyx_obj_7net __pyx_t_4 = ((!__pyx_t_3) != 0); if (__pyx_t_4) { - /* "netCDF4.pyx":2274 + /* "netCDF4/_netCDF4.pyx":2274 * def __unicode__(self): * if not dir(self._grp): * return 'Dimension object no longer valid' # <<<<<<<<<<<<<< @@ -32973,7 +32973,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_6__unicode__(struct __pyx_obj_7net goto __pyx_L0; } - /* "netCDF4.pyx":2275 + /* "netCDF4/_netCDF4.pyx":2275 * if not dir(self._grp): * return 'Dimension object no longer valid' * if self.isunlimited(): # <<<<<<<<<<<<<< @@ -33004,7 +33004,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_6__unicode__(struct __pyx_obj_7net __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_4) { - /* "netCDF4.pyx":2276 + /* "netCDF4/_netCDF4.pyx":2276 * return 'Dimension object no longer valid' * if self.isunlimited(): * return repr(type(self))+" (unlimited): name = '%s', size = %s\n" % (self._name,len(self)) # <<<<<<<<<<<<<< @@ -33038,7 +33038,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_6__unicode__(struct __pyx_obj_7net } /*else*/ { - /* "netCDF4.pyx":2278 + /* "netCDF4/_netCDF4.pyx":2278 * return repr(type(self))+" (unlimited): name = '%s', size = %s\n" % (self._name,len(self)) * else: * return repr(type(self))+": name = '%s', size = %s\n" % (self._name,len(self)) # <<<<<<<<<<<<<< @@ -33071,7 +33071,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_6__unicode__(struct __pyx_obj_7net goto __pyx_L0; } - /* "netCDF4.pyx":2272 + /* "netCDF4/_netCDF4.pyx":2272 * return unicode(self).encode(default_encoding) * * def __unicode__(self): # <<<<<<<<<<<<<< @@ -33084,7 +33084,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_6__unicode__(struct __pyx_obj_7net __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_5); - __Pyx_AddTraceback("netCDF4.Dimension.__unicode__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dimension.__unicode__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -33092,7 +33092,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_6__unicode__(struct __pyx_obj_7net return __pyx_r; } -/* "netCDF4.pyx":2280 +/* "netCDF4/_netCDF4.pyx":2280 * return repr(type(self))+": name = '%s', size = %s\n" % (self._name,len(self)) * * def __len__(self): # <<<<<<<<<<<<<< @@ -33101,19 +33101,19 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_6__unicode__(struct __pyx_obj_7net */ /* Python wrapper */ -static Py_ssize_t __pyx_pw_7netCDF4_9Dimension_9__len__(PyObject *__pyx_v_self); /*proto*/ -static Py_ssize_t __pyx_pw_7netCDF4_9Dimension_9__len__(PyObject *__pyx_v_self) { +static Py_ssize_t __pyx_pw_7netCDF4_8_netCDF4_9Dimension_9__len__(PyObject *__pyx_v_self); /*proto*/ +static Py_ssize_t __pyx_pw_7netCDF4_8_netCDF4_9Dimension_9__len__(PyObject *__pyx_v_self) { Py_ssize_t __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__len__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9Dimension_8__len__(((struct __pyx_obj_7netCDF4_Dimension *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9Dimension_8__len__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static Py_ssize_t __pyx_pf_7netCDF4_9Dimension_8__len__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self) { +static Py_ssize_t __pyx_pf_7netCDF4_8_netCDF4_9Dimension_8__len__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self) { int __pyx_v_ierr; size_t __pyx_v_lengthp; Py_ssize_t __pyx_r; @@ -33127,7 +33127,7 @@ static Py_ssize_t __pyx_pf_7netCDF4_9Dimension_8__len__(struct __pyx_obj_7netCDF int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__len__", 0); - /* "netCDF4.pyx":2284 + /* "netCDF4/_netCDF4.pyx":2284 * cdef int ierr * cdef size_t lengthp * with nogil: # <<<<<<<<<<<<<< @@ -33141,7 +33141,7 @@ static Py_ssize_t __pyx_pf_7netCDF4_9Dimension_8__len__(struct __pyx_obj_7netCDF #endif /*try:*/ { - /* "netCDF4.pyx":2285 + /* "netCDF4/_netCDF4.pyx":2285 * cdef size_t lengthp * with nogil: * ierr = nc_inq_dimlen(self._grpid, self._dimid, &lengthp) # <<<<<<<<<<<<<< @@ -33151,7 +33151,7 @@ static Py_ssize_t __pyx_pf_7netCDF4_9Dimension_8__len__(struct __pyx_obj_7netCDF __pyx_v_ierr = nc_inq_dimlen(__pyx_v_self->_grpid, __pyx_v_self->_dimid, (&__pyx_v_lengthp)); } - /* "netCDF4.pyx":2284 + /* "netCDF4/_netCDF4.pyx":2284 * cdef int ierr * cdef size_t lengthp * with nogil: # <<<<<<<<<<<<<< @@ -33169,7 +33169,7 @@ static Py_ssize_t __pyx_pf_7netCDF4_9Dimension_8__len__(struct __pyx_obj_7netCDF } } - /* "netCDF4.pyx":2286 + /* "netCDF4/_netCDF4.pyx":2286 * with nogil: * ierr = nc_inq_dimlen(self._grpid, self._dimid, &lengthp) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -33179,7 +33179,7 @@ static Py_ssize_t __pyx_pf_7netCDF4_9Dimension_8__len__(struct __pyx_obj_7netCDF __pyx_t_1 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":2287 + /* "netCDF4/_netCDF4.pyx":2287 * ierr = nc_inq_dimlen(self._grpid, self._dimid, &lengthp) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -33203,7 +33203,7 @@ static Py_ssize_t __pyx_pf_7netCDF4_9Dimension_8__len__(struct __pyx_obj_7netCDF {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2287; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":2288 + /* "netCDF4/_netCDF4.pyx":2288 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * return lengthp # <<<<<<<<<<<<<< @@ -33213,7 +33213,7 @@ static Py_ssize_t __pyx_pf_7netCDF4_9Dimension_8__len__(struct __pyx_obj_7netCDF __pyx_r = __pyx_v_lengthp; goto __pyx_L0; - /* "netCDF4.pyx":2280 + /* "netCDF4/_netCDF4.pyx":2280 * return repr(type(self))+": name = '%s', size = %s\n" % (self._name,len(self)) * * def __len__(self): # <<<<<<<<<<<<<< @@ -33225,14 +33225,14 @@ static Py_ssize_t __pyx_pf_7netCDF4_9Dimension_8__len__(struct __pyx_obj_7netCDF __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); - __Pyx_AddTraceback("netCDF4.Dimension.__len__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dimension.__len__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } -/* "netCDF4.pyx":2290 +/* "netCDF4/_netCDF4.pyx":2290 * return lengthp * * def group(self): # <<<<<<<<<<<<<< @@ -33241,25 +33241,25 @@ static Py_ssize_t __pyx_pf_7netCDF4_9Dimension_8__len__(struct __pyx_obj_7netCDF */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9Dimension_11group(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static char __pyx_doc_7netCDF4_9Dimension_10group[] = "\ngroup(self)\n\nreturn the group that this L{Dimension} is a member of."; -static PyObject *__pyx_pw_7netCDF4_9Dimension_11group(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9Dimension_11group(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_9Dimension_10group[] = "\ngroup(self)\n\nreturn the group that this L{Dimension} is a member of."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9Dimension_11group(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("group (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9Dimension_10group(((struct __pyx_obj_7netCDF4_Dimension *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9Dimension_10group(((struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9Dimension_10group(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9Dimension_10group(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("group", 0); - /* "netCDF4.pyx":2295 + /* "netCDF4/_netCDF4.pyx":2295 * * return the group that this L{Dimension} is a member of.""" * return self._grp # <<<<<<<<<<<<<< @@ -33271,7 +33271,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_10group(struct __pyx_obj_7netCDF4_ __pyx_r = __pyx_v_self->_grp; goto __pyx_L0; - /* "netCDF4.pyx":2290 + /* "netCDF4/_netCDF4.pyx":2290 * return lengthp * * def group(self): # <<<<<<<<<<<<<< @@ -33286,7 +33286,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_10group(struct __pyx_obj_7netCDF4_ return __pyx_r; } -/* "netCDF4.pyx":2297 +/* "netCDF4/_netCDF4.pyx":2297 * return self._grp * * def isunlimited(self): # <<<<<<<<<<<<<< @@ -33295,20 +33295,20 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_10group(struct __pyx_obj_7netCDF4_ */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9Dimension_13isunlimited(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static char __pyx_doc_7netCDF4_9Dimension_12isunlimited[] = "\nisunlimited(self)\n\nreturns C{True} if the L{Dimension} instance is unlimited, C{False} otherwise."; -static PyObject *__pyx_pw_7netCDF4_9Dimension_13isunlimited(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9Dimension_13isunlimited(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_9Dimension_12isunlimited[] = "\nisunlimited(self)\n\nreturns C{True} if the L{Dimension} instance is unlimited, C{False} otherwise."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9Dimension_13isunlimited(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("isunlimited (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9Dimension_12isunlimited(((struct __pyx_obj_7netCDF4_Dimension *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9Dimension_12isunlimited(((struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self) { int __pyx_v_ierr; int __pyx_v_n; int __pyx_v_numunlimdims; @@ -33333,7 +33333,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne int __pyx_clineno = 0; __Pyx_RefNannySetupContext("isunlimited", 0); - /* "netCDF4.pyx":2304 + /* "netCDF4/_netCDF4.pyx":2304 * cdef int ierr, n, numunlimdims, ndims, nvars, ngatts, xdimid * cdef int unlimdimids[NC_MAX_DIMS] * if self._data_model == 'NETCDF4': # <<<<<<<<<<<<<< @@ -33343,7 +33343,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_self->_data_model, __pyx_n_s_NETCDF4, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2304; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":2305 + /* "netCDF4/_netCDF4.pyx":2305 * cdef int unlimdimids[NC_MAX_DIMS] * if self._data_model == 'NETCDF4': * ierr = nc_inq_unlimdims(self._grpid, &numunlimdims, NULL) # <<<<<<<<<<<<<< @@ -33352,7 +33352,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne */ __pyx_v_ierr = nc_inq_unlimdims(__pyx_v_self->_grpid, (&__pyx_v_numunlimdims), NULL); - /* "netCDF4.pyx":2306 + /* "netCDF4/_netCDF4.pyx":2306 * if self._data_model == 'NETCDF4': * ierr = nc_inq_unlimdims(self._grpid, &numunlimdims, NULL) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -33362,7 +33362,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne __pyx_t_1 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":2307 + /* "netCDF4/_netCDF4.pyx":2307 * ierr = nc_inq_unlimdims(self._grpid, &numunlimdims, NULL) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -33386,7 +33386,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2307; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":2308 + /* "netCDF4/_netCDF4.pyx":2308 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * if numunlimdims == 0: # <<<<<<<<<<<<<< @@ -33396,7 +33396,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne __pyx_t_1 = ((__pyx_v_numunlimdims == 0) != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":2309 + /* "netCDF4/_netCDF4.pyx":2309 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * if numunlimdims == 0: * return False # <<<<<<<<<<<<<< @@ -33410,7 +33410,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne } /*else*/ { - /* "netCDF4.pyx":2311 + /* "netCDF4/_netCDF4.pyx":2311 * return False * else: * dimid = self._dimid # <<<<<<<<<<<<<< @@ -33420,7 +33420,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne __pyx_t_5 = __pyx_v_self->_dimid; __pyx_v_dimid = __pyx_t_5; - /* "netCDF4.pyx":2312 + /* "netCDF4/_netCDF4.pyx":2312 * else: * dimid = self._dimid * with nogil: # <<<<<<<<<<<<<< @@ -33434,7 +33434,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne #endif /*try:*/ { - /* "netCDF4.pyx":2313 + /* "netCDF4/_netCDF4.pyx":2313 * dimid = self._dimid * with nogil: * ierr = nc_inq_unlimdims(self._grpid, &numunlimdims, unlimdimids) # <<<<<<<<<<<<<< @@ -33444,7 +33444,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne __pyx_v_ierr = nc_inq_unlimdims(__pyx_v_self->_grpid, (&__pyx_v_numunlimdims), __pyx_v_unlimdimids); } - /* "netCDF4.pyx":2312 + /* "netCDF4/_netCDF4.pyx":2312 * else: * dimid = self._dimid * with nogil: # <<<<<<<<<<<<<< @@ -33462,7 +33462,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne } } - /* "netCDF4.pyx":2314 + /* "netCDF4/_netCDF4.pyx":2314 * with nogil: * ierr = nc_inq_unlimdims(self._grpid, &numunlimdims, unlimdimids) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -33472,7 +33472,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne __pyx_t_1 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":2315 + /* "netCDF4/_netCDF4.pyx":2315 * ierr = nc_inq_unlimdims(self._grpid, &numunlimdims, unlimdimids) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -33496,7 +33496,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2315; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":2316 + /* "netCDF4/_netCDF4.pyx":2316 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * unlimdim_ids = [] # <<<<<<<<<<<<<< @@ -33508,7 +33508,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne __pyx_v_unlimdim_ids = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":2317 + /* "netCDF4/_netCDF4.pyx":2317 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * unlimdim_ids = [] * for n from 0 <= n < numunlimdims: # <<<<<<<<<<<<<< @@ -33518,7 +33518,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne __pyx_t_5 = __pyx_v_numunlimdims; for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_5; __pyx_v_n++) { - /* "netCDF4.pyx":2318 + /* "netCDF4/_netCDF4.pyx":2318 * unlimdim_ids = [] * for n from 0 <= n < numunlimdims: * unlimdim_ids.append(unlimdimids[n]) # <<<<<<<<<<<<<< @@ -33531,7 +33531,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; } - /* "netCDF4.pyx":2319 + /* "netCDF4/_netCDF4.pyx":2319 * for n from 0 <= n < numunlimdims: * unlimdim_ids.append(unlimdimids[n]) * if dimid in unlimdim_ids: # <<<<<<<<<<<<<< @@ -33545,7 +33545,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne __pyx_t_7 = (__pyx_t_1 != 0); if (__pyx_t_7) { - /* "netCDF4.pyx":2320 + /* "netCDF4/_netCDF4.pyx":2320 * unlimdim_ids.append(unlimdimids[n]) * if dimid in unlimdim_ids: * return True # <<<<<<<<<<<<<< @@ -33559,7 +33559,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne } /*else*/ { - /* "netCDF4.pyx":2322 + /* "netCDF4/_netCDF4.pyx":2322 * return True * else: * return False # <<<<<<<<<<<<<< @@ -33575,7 +33575,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne } /*else*/ { - /* "netCDF4.pyx":2325 + /* "netCDF4/_netCDF4.pyx":2325 * else: # if not NETCDF4, there is only one unlimited dimension. * # nc_inq_unlimdims only works for NETCDF4. * with nogil: # <<<<<<<<<<<<<< @@ -33589,7 +33589,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne #endif /*try:*/ { - /* "netCDF4.pyx":2326 + /* "netCDF4/_netCDF4.pyx":2326 * # nc_inq_unlimdims only works for NETCDF4. * with nogil: * ierr = nc_inq(self._grpid, &ndims, &nvars, &ngatts, &xdimid) # <<<<<<<<<<<<<< @@ -33599,7 +33599,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne __pyx_v_ierr = nc_inq(__pyx_v_self->_grpid, (&__pyx_v_ndims), (&__pyx_v_nvars), (&__pyx_v_ngatts), (&__pyx_v_xdimid)); } - /* "netCDF4.pyx":2325 + /* "netCDF4/_netCDF4.pyx":2325 * else: # if not NETCDF4, there is only one unlimited dimension. * # nc_inq_unlimdims only works for NETCDF4. * with nogil: # <<<<<<<<<<<<<< @@ -33617,7 +33617,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne } } - /* "netCDF4.pyx":2327 + /* "netCDF4/_netCDF4.pyx":2327 * with nogil: * ierr = nc_inq(self._grpid, &ndims, &nvars, &ngatts, &xdimid) * if self._dimid == xdimid: # <<<<<<<<<<<<<< @@ -33627,7 +33627,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne __pyx_t_7 = ((__pyx_v_self->_dimid == __pyx_v_xdimid) != 0); if (__pyx_t_7) { - /* "netCDF4.pyx":2328 + /* "netCDF4/_netCDF4.pyx":2328 * ierr = nc_inq(self._grpid, &ndims, &nvars, &ngatts, &xdimid) * if self._dimid == xdimid: * return True # <<<<<<<<<<<<<< @@ -33641,7 +33641,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne } /*else*/ { - /* "netCDF4.pyx":2330 + /* "netCDF4/_netCDF4.pyx":2330 * return True * else: * return False # <<<<<<<<<<<<<< @@ -33655,7 +33655,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne } } - /* "netCDF4.pyx":2297 + /* "netCDF4/_netCDF4.pyx":2297 * return self._grp * * def isunlimited(self): # <<<<<<<<<<<<<< @@ -33667,7 +33667,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); - __Pyx_AddTraceback("netCDF4.Dimension.isunlimited", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dimension.isunlimited", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_unlimdim_ids); @@ -33676,7 +33676,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne return __pyx_r; } -/* "netCDF4.pyx":2217 +/* "netCDF4/_netCDF4.pyx":2217 * C{isunlimited()} method of a L{Dimension} instance can be used to * determine if the dimension is unlimited""" * cdef public int _dimid, _grpid # <<<<<<<<<<<<<< @@ -33685,19 +33685,19 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_12isunlimited(struct __pyx_obj_7ne */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9Dimension_6_dimid_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_9Dimension_6_dimid_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9Dimension_6_dimid_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9Dimension_6_dimid_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9Dimension_6_dimid___get__(((struct __pyx_obj_7netCDF4_Dimension *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9Dimension_6_dimid___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9Dimension_6_dimid___get__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9Dimension_6_dimid___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -33715,7 +33715,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_6_dimid___get__(struct __pyx_obj_7 /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("netCDF4.Dimension._dimid.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dimension._dimid.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -33724,19 +33724,19 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_6_dimid___get__(struct __pyx_obj_7 } /* Python wrapper */ -static int __pyx_pw_7netCDF4_9Dimension_6_dimid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_9Dimension_6_dimid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_9Dimension_6_dimid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_9Dimension_6_dimid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9Dimension_6_dimid_2__set__(((struct __pyx_obj_7netCDF4_Dimension *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9Dimension_6_dimid_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_9Dimension_6_dimid_2__set__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_9Dimension_6_dimid_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; @@ -33751,7 +33751,7 @@ static int __pyx_pf_7netCDF4_9Dimension_6_dimid_2__set__(struct __pyx_obj_7netCD __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; - __Pyx_AddTraceback("netCDF4.Dimension._dimid.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dimension._dimid.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); @@ -33759,19 +33759,19 @@ static int __pyx_pf_7netCDF4_9Dimension_6_dimid_2__set__(struct __pyx_obj_7netCD } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9Dimension_6_grpid_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_9Dimension_6_grpid_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9Dimension_6_grpid_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9Dimension_6_grpid_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9Dimension_6_grpid___get__(((struct __pyx_obj_7netCDF4_Dimension *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9Dimension_6_grpid___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9Dimension_6_grpid___get__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9Dimension_6_grpid___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -33789,7 +33789,7 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_6_grpid___get__(struct __pyx_obj_7 /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("netCDF4.Dimension._grpid.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dimension._grpid.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -33798,19 +33798,19 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_6_grpid___get__(struct __pyx_obj_7 } /* Python wrapper */ -static int __pyx_pw_7netCDF4_9Dimension_6_grpid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_9Dimension_6_grpid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_9Dimension_6_grpid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_9Dimension_6_grpid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9Dimension_6_grpid_2__set__(((struct __pyx_obj_7netCDF4_Dimension *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9Dimension_6_grpid_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_9Dimension_6_grpid_2__set__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_9Dimension_6_grpid_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; @@ -33825,14 +33825,14 @@ static int __pyx_pf_7netCDF4_9Dimension_6_grpid_2__set__(struct __pyx_obj_7netCD __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; - __Pyx_AddTraceback("netCDF4.Dimension._grpid.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Dimension._grpid.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } -/* "netCDF4.pyx":2218 +/* "netCDF4/_netCDF4.pyx":2218 * determine if the dimension is unlimited""" * cdef public int _dimid, _grpid * cdef public _data_model, _name, _grp # <<<<<<<<<<<<<< @@ -33841,19 +33841,19 @@ static int __pyx_pf_7netCDF4_9Dimension_6_grpid_2__set__(struct __pyx_obj_7netCD */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9Dimension_11_data_model_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_9Dimension_11_data_model_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9Dimension_11_data_model_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9Dimension_11_data_model_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9Dimension_11_data_model___get__(((struct __pyx_obj_7netCDF4_Dimension *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9Dimension_11_data_model___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9Dimension_11_data_model___get__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9Dimension_11_data_model___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -33870,19 +33870,19 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_11_data_model___get__(struct __pyx } /* Python wrapper */ -static int __pyx_pw_7netCDF4_9Dimension_11_data_model_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_9Dimension_11_data_model_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_9Dimension_11_data_model_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_9Dimension_11_data_model_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9Dimension_11_data_model_2__set__(((struct __pyx_obj_7netCDF4_Dimension *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9Dimension_11_data_model_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_9Dimension_11_data_model_2__set__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_9Dimension_11_data_model_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -33899,19 +33899,19 @@ static int __pyx_pf_7netCDF4_9Dimension_11_data_model_2__set__(struct __pyx_obj_ } /* Python wrapper */ -static int __pyx_pw_7netCDF4_9Dimension_11_data_model_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_9Dimension_11_data_model_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_9Dimension_11_data_model_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_9Dimension_11_data_model_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9Dimension_11_data_model_4__del__(((struct __pyx_obj_7netCDF4_Dimension *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9Dimension_11_data_model_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_9Dimension_11_data_model_4__del__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_9Dimension_11_data_model_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -33928,19 +33928,19 @@ static int __pyx_pf_7netCDF4_9Dimension_11_data_model_4__del__(struct __pyx_obj_ } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9Dimension_5_name_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_9Dimension_5_name_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9Dimension_5_name_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9Dimension_5_name_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9Dimension_5_name___get__(((struct __pyx_obj_7netCDF4_Dimension *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9Dimension_5_name___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9Dimension_5_name___get__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9Dimension_5_name___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -33957,19 +33957,19 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_5_name___get__(struct __pyx_obj_7n } /* Python wrapper */ -static int __pyx_pw_7netCDF4_9Dimension_5_name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_9Dimension_5_name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_9Dimension_5_name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_9Dimension_5_name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9Dimension_5_name_2__set__(((struct __pyx_obj_7netCDF4_Dimension *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9Dimension_5_name_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_9Dimension_5_name_2__set__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_9Dimension_5_name_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -33986,19 +33986,19 @@ static int __pyx_pf_7netCDF4_9Dimension_5_name_2__set__(struct __pyx_obj_7netCDF } /* Python wrapper */ -static int __pyx_pw_7netCDF4_9Dimension_5_name_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_9Dimension_5_name_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_9Dimension_5_name_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_9Dimension_5_name_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9Dimension_5_name_4__del__(((struct __pyx_obj_7netCDF4_Dimension *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9Dimension_5_name_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_9Dimension_5_name_4__del__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_9Dimension_5_name_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -34015,19 +34015,19 @@ static int __pyx_pf_7netCDF4_9Dimension_5_name_4__del__(struct __pyx_obj_7netCDF } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_9Dimension_4_grp_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_9Dimension_4_grp_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9Dimension_4_grp_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_9Dimension_4_grp_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9Dimension_4_grp___get__(((struct __pyx_obj_7netCDF4_Dimension *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9Dimension_4_grp___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_9Dimension_4_grp___get__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_9Dimension_4_grp___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -34044,19 +34044,19 @@ static PyObject *__pyx_pf_7netCDF4_9Dimension_4_grp___get__(struct __pyx_obj_7ne } /* Python wrapper */ -static int __pyx_pw_7netCDF4_9Dimension_4_grp_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_9Dimension_4_grp_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_9Dimension_4_grp_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_9Dimension_4_grp_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9Dimension_4_grp_2__set__(((struct __pyx_obj_7netCDF4_Dimension *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9Dimension_4_grp_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_9Dimension_4_grp_2__set__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_9Dimension_4_grp_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -34073,19 +34073,19 @@ static int __pyx_pf_7netCDF4_9Dimension_4_grp_2__set__(struct __pyx_obj_7netCDF4 } /* Python wrapper */ -static int __pyx_pw_7netCDF4_9Dimension_4_grp_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_9Dimension_4_grp_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_9Dimension_4_grp_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_9Dimension_4_grp_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_9Dimension_4_grp_4__del__(((struct __pyx_obj_7netCDF4_Dimension *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_9Dimension_4_grp_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_9Dimension_4_grp_4__del__(struct __pyx_obj_7netCDF4_Dimension *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_9Dimension_4_grp_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -34101,7 +34101,7 @@ static int __pyx_pf_7netCDF4_9Dimension_4_grp_4__del__(struct __pyx_obj_7netCDF4 return __pyx_r; } -/* "netCDF4.pyx":2472 +/* "netCDF4/_netCDF4.pyx":2472 * _isvlen, _grp, _cmptype, _vltype, __orthogonal_indexing__ * * def __init__(self, grp, name, datatype, dimensions=(), zlib=False, # <<<<<<<<<<<<<< @@ -34110,8 +34110,8 @@ static int __pyx_pf_7netCDF4_9Dimension_4_grp_4__del__(struct __pyx_obj_7netCDF4 */ /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_grp = 0; PyObject *__pyx_v_name = 0; PyObject *__pyx_v_datatype = 0; @@ -34142,7 +34142,7 @@ static int __pyx_pw_7netCDF4_8Variable_1__init__(PyObject *__pyx_v_self, PyObjec values[4] = ((PyObject *)Py_False); values[5] = ((PyObject *)__pyx_int_4); - /* "netCDF4.pyx":2473 + /* "netCDF4/_netCDF4.pyx":2473 * * def __init__(self, grp, name, datatype, dimensions=(), zlib=False, * complevel=4, shuffle=True, fletcher32=False, contiguous=False, # <<<<<<<<<<<<<< @@ -34153,7 +34153,7 @@ static int __pyx_pw_7netCDF4_8Variable_1__init__(PyObject *__pyx_v_self, PyObjec values[7] = ((PyObject *)Py_False); values[8] = ((PyObject *)Py_False); - /* "netCDF4.pyx":2474 + /* "netCDF4/_netCDF4.pyx":2474 * def __init__(self, grp, name, datatype, dimensions=(), zlib=False, * complevel=4, shuffle=True, fletcher32=False, contiguous=False, * chunksizes=None, endian='native', least_significant_digit=None, # <<<<<<<<<<<<<< @@ -34164,7 +34164,7 @@ static int __pyx_pw_7netCDF4_8Variable_1__init__(PyObject *__pyx_v_self, PyObjec values[10] = ((PyObject *)__pyx_n_s_native); values[11] = ((PyObject *)Py_None); - /* "netCDF4.pyx":2475 + /* "netCDF4/_netCDF4.pyx":2475 * complevel=4, shuffle=True, fletcher32=False, contiguous=False, * chunksizes=None, endian='native', least_significant_digit=None, * fill_value=None, chunk_cache=None, **kwargs): # <<<<<<<<<<<<<< @@ -34308,13 +34308,13 @@ static int __pyx_pw_7netCDF4_8Variable_1__init__(PyObject *__pyx_v_self, PyObjec __Pyx_RaiseArgtupleInvalid("__init__", 0, 3, 14, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2472; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0; - __Pyx_AddTraceback("netCDF4.Variable.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_8Variable___init__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), __pyx_v_grp, __pyx_v_name, __pyx_v_datatype, __pyx_v_dimensions, __pyx_v_zlib, __pyx_v_complevel, __pyx_v_shuffle, __pyx_v_fletcher32, __pyx_v_contiguous, __pyx_v_chunksizes, __pyx_v_endian, __pyx_v_least_significant_digit, __pyx_v_fill_value, __pyx_v_chunk_cache, __pyx_v_kwargs); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable___init__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), __pyx_v_grp, __pyx_v_name, __pyx_v_datatype, __pyx_v_dimensions, __pyx_v_zlib, __pyx_v_complevel, __pyx_v_shuffle, __pyx_v_fletcher32, __pyx_v_contiguous, __pyx_v_chunksizes, __pyx_v_endian, __pyx_v_least_significant_digit, __pyx_v_fill_value, __pyx_v_chunk_cache, __pyx_v_kwargs); - /* "netCDF4.pyx":2472 + /* "netCDF4/_netCDF4.pyx":2472 * _isvlen, _grp, _cmptype, _vltype, __orthogonal_indexing__ * * def __init__(self, grp, name, datatype, dimensions=(), zlib=False, # <<<<<<<<<<<<<< @@ -34328,7 +34328,7 @@ static int __pyx_pw_7netCDF4_8Variable_1__init__(PyObject *__pyx_v_self, PyObjec return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_grp, PyObject *__pyx_v_name, PyObject *__pyx_v_datatype, PyObject *__pyx_v_dimensions, PyObject *__pyx_v_zlib, PyObject *__pyx_v_complevel, PyObject *__pyx_v_shuffle, PyObject *__pyx_v_fletcher32, PyObject *__pyx_v_contiguous, PyObject *__pyx_v_chunksizes, PyObject *__pyx_v_endian, PyObject *__pyx_v_least_significant_digit, PyObject *__pyx_v_fill_value, PyObject *__pyx_v_chunk_cache, PyObject *__pyx_v_kwargs) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_grp, PyObject *__pyx_v_name, PyObject *__pyx_v_datatype, PyObject *__pyx_v_dimensions, PyObject *__pyx_v_zlib, PyObject *__pyx_v_complevel, PyObject *__pyx_v_shuffle, PyObject *__pyx_v_fletcher32, PyObject *__pyx_v_contiguous, PyObject *__pyx_v_chunksizes, PyObject *__pyx_v_endian, PyObject *__pyx_v_least_significant_digit, PyObject *__pyx_v_fill_value, PyObject *__pyx_v_chunk_cache, PyObject *__pyx_v_kwargs) { int __pyx_v_ierr; int __pyx_v_ndims; int __pyx_v_icontiguous; @@ -34374,7 +34374,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __Pyx_INCREF(__pyx_v_dimensions); __Pyx_INCREF(__pyx_v_zlib); - /* "netCDF4.pyx":2484 + /* "netCDF4/_netCDF4.pyx":2484 * cdef float preemptionp * # flag to indicate that orthogonal indexing is supported * self.__orthogonal_indexing__ = True # <<<<<<<<<<<<<< @@ -34387,7 +34387,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __Pyx_DECREF(__pyx_v_self->__orthogonal_indexing__); __pyx_v_self->__orthogonal_indexing__ = Py_True; - /* "netCDF4.pyx":2486 + /* "netCDF4/_netCDF4.pyx":2486 * self.__orthogonal_indexing__ = True * # if complevel is set to zero, set zlib to False. * if not complevel: # <<<<<<<<<<<<<< @@ -34398,7 +34398,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_2 = ((!__pyx_t_1) != 0); if (__pyx_t_2) { - /* "netCDF4.pyx":2487 + /* "netCDF4/_netCDF4.pyx":2487 * # if complevel is set to zero, set zlib to False. * if not complevel: * zlib = False # <<<<<<<<<<<<<< @@ -34411,7 +34411,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L3:; - /* "netCDF4.pyx":2491 + /* "netCDF4/_netCDF4.pyx":2491 * # this prevents a common error that occurs when * # dimensions = 'lat' instead of ('lat',) * if type(dimensions) == str or type(dimensions) == bytes or type(dimensions) == unicode: # <<<<<<<<<<<<<< @@ -34441,7 +34441,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_L5_bool_binop_done:; if (__pyx_t_2) { - /* "netCDF4.pyx":2492 + /* "netCDF4/_netCDF4.pyx":2492 * # dimensions = 'lat' instead of ('lat',) * if type(dimensions) == str or type(dimensions) == bytes or type(dimensions) == unicode: * dimensions = dimensions, # <<<<<<<<<<<<<< @@ -34459,7 +34459,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L4:; - /* "netCDF4.pyx":2493 + /* "netCDF4/_netCDF4.pyx":2493 * if type(dimensions) == str or type(dimensions) == bytes or type(dimensions) == unicode: * dimensions = dimensions, * self._grpid = grp._grpid # <<<<<<<<<<<<<< @@ -34472,7 +34472,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_self->_grpid = __pyx_t_4; - /* "netCDF4.pyx":2496 + /* "netCDF4/_netCDF4.pyx":2496 * # make a weakref to group to avoid circular ref (issue 218) * # keep strong reference the default behaviour (issue 251) * if grp.keepweakref: # <<<<<<<<<<<<<< @@ -34485,7 +34485,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_2) { - /* "netCDF4.pyx":2497 + /* "netCDF4/_netCDF4.pyx":2497 * # keep strong reference the default behaviour (issue 251) * if grp.keepweakref: * self._grp = weakref.proxy(grp) # <<<<<<<<<<<<<< @@ -34531,7 +34531,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } /*else*/ { - /* "netCDF4.pyx":2499 + /* "netCDF4/_netCDF4.pyx":2499 * self._grp = weakref.proxy(grp) * else: * self._grp = grp # <<<<<<<<<<<<<< @@ -34546,14 +34546,14 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L8:; - /* "netCDF4.pyx":2501 + /* "netCDF4/_netCDF4.pyx":2501 * self._grp = grp * # convert to a real numpy datatype object if necessary. * if (not isinstance(datatype, CompoundType) and \ # <<<<<<<<<<<<<< * not isinstance(datatype, VLType)) and \ * datatype != str and \ */ - __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_datatype, ((PyObject*)__pyx_ptype_7netCDF4_CompoundType)); + __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_datatype, ((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_CompoundType)); __pyx_t_8 = ((!(__pyx_t_1 != 0)) != 0); if (__pyx_t_8) { } else { @@ -34561,14 +34561,14 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab goto __pyx_L10_bool_binop_done; } - /* "netCDF4.pyx":2502 + /* "netCDF4/_netCDF4.pyx":2502 * # convert to a real numpy datatype object if necessary. * if (not isinstance(datatype, CompoundType) and \ * not isinstance(datatype, VLType)) and \ # <<<<<<<<<<<<<< * datatype != str and \ * type(datatype) != numpy.dtype: */ - __pyx_t_8 = __Pyx_TypeCheck(__pyx_v_datatype, ((PyObject*)__pyx_ptype_7netCDF4_VLType)); + __pyx_t_8 = __Pyx_TypeCheck(__pyx_v_datatype, ((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_VLType)); __pyx_t_1 = ((!(__pyx_t_8 != 0)) != 0); if (__pyx_t_1) { } else { @@ -34576,7 +34576,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab goto __pyx_L10_bool_binop_done; } - /* "netCDF4.pyx":2503 + /* "netCDF4/_netCDF4.pyx":2503 * if (not isinstance(datatype, CompoundType) and \ * not isinstance(datatype, VLType)) and \ * datatype != str and \ # <<<<<<<<<<<<<< @@ -34592,7 +34592,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab goto __pyx_L10_bool_binop_done; } - /* "netCDF4.pyx":2504 + /* "netCDF4/_netCDF4.pyx":2504 * not isinstance(datatype, VLType)) and \ * datatype != str and \ * type(datatype) != numpy.dtype: # <<<<<<<<<<<<<< @@ -34612,7 +34612,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_L10_bool_binop_done:; if (__pyx_t_2) { - /* "netCDF4.pyx":2505 + /* "netCDF4/_netCDF4.pyx":2505 * datatype != str and \ * type(datatype) != numpy.dtype: * datatype = numpy.dtype(datatype) # <<<<<<<<<<<<<< @@ -34655,7 +34655,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L9:; - /* "netCDF4.pyx":2508 + /* "netCDF4/_netCDF4.pyx":2508 * # convert numpy string dtype with length > 1 * # or any numpy unicode dtype into str * if (isinstance(datatype, numpy.dtype) and # <<<<<<<<<<<<<< @@ -34676,7 +34676,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab goto __pyx_L15_bool_binop_done; } - /* "netCDF4.pyx":2509 + /* "netCDF4/_netCDF4.pyx":2509 * # or any numpy unicode dtype into str * if (isinstance(datatype, numpy.dtype) and * ((datatype.kind == 'S' and datatype.itemsize > 1) or # <<<<<<<<<<<<<< @@ -34704,7 +34704,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L17_next_or:; - /* "netCDF4.pyx":2510 + /* "netCDF4/_netCDF4.pyx":2510 * if (isinstance(datatype, numpy.dtype) and * ((datatype.kind == 'S' and datatype.itemsize > 1) or * datatype.kind == 'U')): # <<<<<<<<<<<<<< @@ -34719,7 +34719,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_L15_bool_binop_done:; if (__pyx_t_2) { - /* "netCDF4.pyx":2511 + /* "netCDF4/_netCDF4.pyx":2511 * ((datatype.kind == 'S' and datatype.itemsize > 1) or * datatype.kind == 'U')): * datatype = str # <<<<<<<<<<<<<< @@ -34732,7 +34732,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L14:; - /* "netCDF4.pyx":2513 + /* "netCDF4/_netCDF4.pyx":2513 * datatype = str * # check if endian keyword consistent with datatype specification. * dtype_endian = getattr(datatype,'byteorder',None) # <<<<<<<<<<<<<< @@ -34744,7 +34744,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_v_dtype_endian = __pyx_t_3; __pyx_t_3 = 0; - /* "netCDF4.pyx":2514 + /* "netCDF4/_netCDF4.pyx":2514 * # check if endian keyword consistent with datatype specification. * dtype_endian = getattr(datatype,'byteorder',None) * if dtype_endian == '=': dtype_endian='native' # <<<<<<<<<<<<<< @@ -34759,7 +34759,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L19:; - /* "netCDF4.pyx":2515 + /* "netCDF4/_netCDF4.pyx":2515 * dtype_endian = getattr(datatype,'byteorder',None) * if dtype_endian == '=': dtype_endian='native' * if dtype_endian == '>': dtype_endian='big' # <<<<<<<<<<<<<< @@ -34774,7 +34774,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L20:; - /* "netCDF4.pyx":2516 + /* "netCDF4/_netCDF4.pyx":2516 * if dtype_endian == '=': dtype_endian='native' * if dtype_endian == '>': dtype_endian='big' * if dtype_endian == '<': dtype_endian='little' # <<<<<<<<<<<<<< @@ -34789,7 +34789,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L21:; - /* "netCDF4.pyx":2517 + /* "netCDF4/_netCDF4.pyx":2517 * if dtype_endian == '>': dtype_endian='big' * if dtype_endian == '<': dtype_endian='little' * if dtype_endian == '|': dtype_endian=None # <<<<<<<<<<<<<< @@ -34804,7 +34804,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L22:; - /* "netCDF4.pyx":2518 + /* "netCDF4/_netCDF4.pyx":2518 * if dtype_endian == '<': dtype_endian='little' * if dtype_endian == '|': dtype_endian=None * if dtype_endian is not None and dtype_endian != endian: # <<<<<<<<<<<<<< @@ -34825,7 +34825,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_L24_bool_binop_done:; if (__pyx_t_2) { - /* "netCDF4.pyx":2519 + /* "netCDF4/_netCDF4.pyx":2519 * if dtype_endian == '|': dtype_endian=None * if dtype_endian is not None and dtype_endian != endian: * if dtype_endian == 'native' and endian == sys.byteorder: # <<<<<<<<<<<<<< @@ -34854,7 +34854,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } /*else*/ { - /* "netCDF4.pyx":2523 + /* "netCDF4/_netCDF4.pyx":2523 * else: * # endian keyword prevails, issue warning * msg = 'endian-ness of dtype and endian kwarg do not match, using endian kwarg' # <<<<<<<<<<<<<< @@ -34864,7 +34864,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __Pyx_INCREF(__pyx_kp_s_endian_ness_of_dtype_and_endian); __pyx_v_msg = __pyx_kp_s_endian_ness_of_dtype_and_endian; - /* "netCDF4.pyx":2525 + /* "netCDF4/_netCDF4.pyx":2525 * msg = 'endian-ness of dtype and endian kwarg do not match, using endian kwarg' * #msg = 'endian-ness of dtype and endian kwarg do not match, dtype over-riding endian kwarg' * warnings.warn(msg) # <<<<<<<<<<<<<< @@ -34908,7 +34908,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L23:; - /* "netCDF4.pyx":2528 + /* "netCDF4/_netCDF4.pyx":2528 * #endian = dtype_endian # dtype prevails * # check validity of datatype. * self._isprimitive = False # <<<<<<<<<<<<<< @@ -34921,7 +34921,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __Pyx_DECREF(__pyx_v_self->_isprimitive); __pyx_v_self->_isprimitive = Py_False; - /* "netCDF4.pyx":2529 + /* "netCDF4/_netCDF4.pyx":2529 * # check validity of datatype. * self._isprimitive = False * self._iscompound = False # <<<<<<<<<<<<<< @@ -34934,7 +34934,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __Pyx_DECREF(__pyx_v_self->_iscompound); __pyx_v_self->_iscompound = Py_False; - /* "netCDF4.pyx":2530 + /* "netCDF4/_netCDF4.pyx":2530 * self._isprimitive = False * self._iscompound = False * self._isvlen = False # <<<<<<<<<<<<<< @@ -34947,14 +34947,14 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __Pyx_DECREF(__pyx_v_self->_isvlen); __pyx_v_self->_isvlen = Py_False; - /* "netCDF4.pyx":2531 + /* "netCDF4/_netCDF4.pyx":2531 * self._iscompound = False * self._isvlen = False * if isinstance(datatype, CompoundType) or isinstance(datatype, VLType)\ # <<<<<<<<<<<<<< * or datatype == str: * if isinstance(datatype, CompoundType): */ - __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_datatype, ((PyObject*)__pyx_ptype_7netCDF4_CompoundType)); + __pyx_t_1 = __Pyx_TypeCheck(__pyx_v_datatype, ((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_CompoundType)); __pyx_t_8 = (__pyx_t_1 != 0); if (!__pyx_t_8) { } else { @@ -34962,16 +34962,16 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab goto __pyx_L30_bool_binop_done; } - /* "netCDF4.pyx":2532 + /* "netCDF4/_netCDF4.pyx":2532 * self._isvlen = False * if isinstance(datatype, CompoundType) or isinstance(datatype, VLType)\ * or datatype == str: # <<<<<<<<<<<<<< * if isinstance(datatype, CompoundType): * self._iscompound = True */ - __pyx_t_8 = __Pyx_TypeCheck(__pyx_v_datatype, ((PyObject*)__pyx_ptype_7netCDF4_VLType)); + __pyx_t_8 = __Pyx_TypeCheck(__pyx_v_datatype, ((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_VLType)); - /* "netCDF4.pyx":2531 + /* "netCDF4/_netCDF4.pyx":2531 * self._iscompound = False * self._isvlen = False * if isinstance(datatype, CompoundType) or isinstance(datatype, VLType)\ # <<<<<<<<<<<<<< @@ -34985,7 +34985,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab goto __pyx_L30_bool_binop_done; } - /* "netCDF4.pyx":2532 + /* "netCDF4/_netCDF4.pyx":2532 * self._isvlen = False * if isinstance(datatype, CompoundType) or isinstance(datatype, VLType)\ * or datatype == str: # <<<<<<<<<<<<<< @@ -34999,18 +34999,18 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_L30_bool_binop_done:; if (__pyx_t_2) { - /* "netCDF4.pyx":2533 + /* "netCDF4/_netCDF4.pyx":2533 * if isinstance(datatype, CompoundType) or isinstance(datatype, VLType)\ * or datatype == str: * if isinstance(datatype, CompoundType): # <<<<<<<<<<<<<< * self._iscompound = True * self._cmptype = datatype */ - __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_datatype, ((PyObject*)__pyx_ptype_7netCDF4_CompoundType)); + __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_datatype, ((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_CompoundType)); __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":2534 + /* "netCDF4/_netCDF4.pyx":2534 * or datatype == str: * if isinstance(datatype, CompoundType): * self._iscompound = True # <<<<<<<<<<<<<< @@ -35023,7 +35023,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __Pyx_DECREF(__pyx_v_self->_iscompound); __pyx_v_self->_iscompound = Py_True; - /* "netCDF4.pyx":2535 + /* "netCDF4/_netCDF4.pyx":2535 * if isinstance(datatype, CompoundType): * self._iscompound = True * self._cmptype = datatype # <<<<<<<<<<<<<< @@ -35039,14 +35039,14 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L33:; - /* "netCDF4.pyx":2536 + /* "netCDF4/_netCDF4.pyx":2536 * self._iscompound = True * self._cmptype = datatype * if isinstance(datatype, VLType) or datatype==str: # <<<<<<<<<<<<<< * self._isvlen = True * self._vltype = datatype */ - __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_datatype, ((PyObject*)__pyx_ptype_7netCDF4_VLType)); + __pyx_t_2 = __Pyx_TypeCheck(__pyx_v_datatype, ((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_VLType)); __pyx_t_8 = (__pyx_t_2 != 0); if (!__pyx_t_8) { } else { @@ -35060,7 +35060,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_L35_bool_binop_done:; if (__pyx_t_1) { - /* "netCDF4.pyx":2537 + /* "netCDF4/_netCDF4.pyx":2537 * self._cmptype = datatype * if isinstance(datatype, VLType) or datatype==str: * self._isvlen = True # <<<<<<<<<<<<<< @@ -35073,7 +35073,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __Pyx_DECREF(__pyx_v_self->_isvlen); __pyx_v_self->_isvlen = Py_True; - /* "netCDF4.pyx":2538 + /* "netCDF4/_netCDF4.pyx":2538 * if isinstance(datatype, VLType) or datatype==str: * self._isvlen = True * self._vltype = datatype # <<<<<<<<<<<<<< @@ -35089,7 +35089,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L34:; - /* "netCDF4.pyx":2539 + /* "netCDF4/_netCDF4.pyx":2539 * self._isvlen = True * self._vltype = datatype * if datatype==str: # <<<<<<<<<<<<<< @@ -35101,7 +35101,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_1) { - /* "netCDF4.pyx":2540 + /* "netCDF4/_netCDF4.pyx":2540 * self._vltype = datatype * if datatype==str: * if grp.data_model != 'NETCDF4': # <<<<<<<<<<<<<< @@ -35114,7 +35114,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_1) { - /* "netCDF4.pyx":2541 + /* "netCDF4/_netCDF4.pyx":2541 * if datatype==str: * if grp.data_model != 'NETCDF4': * raise ValueError( # <<<<<<<<<<<<<< @@ -35128,7 +35128,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2541; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":2546 + /* "netCDF4/_netCDF4.pyx":2546 * 'netCDF4.stringtochar to convert string arrays into ' * 'character arrays with an additional dimension.') * datatype = VLType(self._grp, str, None) # <<<<<<<<<<<<<< @@ -35146,13 +35146,13 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __Pyx_INCREF(Py_None); PyTuple_SET_ITEM(__pyx_t_3, 2, Py_None); __Pyx_GIVEREF(Py_None); - __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_VLType)), __pyx_t_3, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2546; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_VLType)), __pyx_t_3, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2546; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __Pyx_DECREF_SET(__pyx_v_datatype, __pyx_t_5); __pyx_t_5 = 0; - /* "netCDF4.pyx":2547 + /* "netCDF4/_netCDF4.pyx":2547 * 'character arrays with an additional dimension.') * datatype = VLType(self._grp, str, None) * self._vltype = datatype # <<<<<<<<<<<<<< @@ -35168,7 +35168,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L37:; - /* "netCDF4.pyx":2548 + /* "netCDF4/_netCDF4.pyx":2548 * datatype = VLType(self._grp, str, None) * self._vltype = datatype * xtype = datatype._nc_type # <<<<<<<<<<<<<< @@ -35181,7 +35181,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_xtype = __pyx_t_9; - /* "netCDF4.pyx":2550 + /* "netCDF4/_netCDF4.pyx":2550 * xtype = datatype._nc_type * # dtype variable attribute is a numpy datatype object. * self.dtype = datatype.dtype # <<<<<<<<<<<<<< @@ -35198,7 +35198,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab goto __pyx_L29; } - /* "netCDF4.pyx":2551 + /* "netCDF4/_netCDF4.pyx":2551 * # dtype variable attribute is a numpy datatype object. * self.dtype = datatype.dtype * elif datatype.str[1:] in _supportedtypes: # <<<<<<<<<<<<<< @@ -35218,7 +35218,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_8 = (__pyx_t_1 != 0); if (__pyx_t_8) { - /* "netCDF4.pyx":2552 + /* "netCDF4/_netCDF4.pyx":2552 * self.dtype = datatype.dtype * elif datatype.str[1:] in _supportedtypes: * self._isprimitive = True # <<<<<<<<<<<<<< @@ -35231,7 +35231,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __Pyx_DECREF(__pyx_v_self->_isprimitive); __pyx_v_self->_isprimitive = Py_True; - /* "netCDF4.pyx":2555 + /* "netCDF4/_netCDF4.pyx":2555 * # find netCDF primitive data type corresponding to * # specified numpy data type. * xtype = _nptonctype[datatype.str[1:]] # <<<<<<<<<<<<<< @@ -35253,7 +35253,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_v_xtype = __pyx_t_9; - /* "netCDF4.pyx":2557 + /* "netCDF4/_netCDF4.pyx":2557 * xtype = _nptonctype[datatype.str[1:]] * # dtype variable attribute is a numpy datatype object. * self.dtype = datatype # <<<<<<<<<<<<<< @@ -35269,7 +35269,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } /*else*/ { - /* "netCDF4.pyx":2559 + /* "netCDF4/_netCDF4.pyx":2559 * self.dtype = datatype * else: * raise TypeError('illegal primitive data type, must be one of %s, got %s' % (_supportedtypes,datatype)) # <<<<<<<<<<<<<< @@ -35303,7 +35303,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L29:; - /* "netCDF4.pyx":2560 + /* "netCDF4/_netCDF4.pyx":2560 * else: * raise TypeError('illegal primitive data type, must be one of %s, got %s' % (_supportedtypes,datatype)) * if 'id' in kwargs: # <<<<<<<<<<<<<< @@ -35314,7 +35314,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_1 = (__pyx_t_8 != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":2561 + /* "netCDF4/_netCDF4.pyx":2561 * raise TypeError('illegal primitive data type, must be one of %s, got %s' % (_supportedtypes,datatype)) * if 'id' in kwargs: * self._varid = kwargs['id'] # <<<<<<<<<<<<<< @@ -35330,19 +35330,19 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } /*else*/ { - /* "netCDF4.pyx":2563 + /* "netCDF4/_netCDF4.pyx":2563 * self._varid = kwargs['id'] * else: * bytestr = _strencode(name) # <<<<<<<<<<<<<< * varname = bytestr * ndims = len(dimensions) */ - __pyx_t_3 = __pyx_f_7netCDF4__strencode(__pyx_v_name, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2563; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __pyx_f_7netCDF4_8_netCDF4__strencode(__pyx_v_name, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2563; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __pyx_v_bytestr = __pyx_t_3; __pyx_t_3 = 0; - /* "netCDF4.pyx":2564 + /* "netCDF4/_netCDF4.pyx":2564 * else: * bytestr = _strencode(name) * varname = bytestr # <<<<<<<<<<<<<< @@ -35352,7 +35352,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_10 = __Pyx_PyObject_AsString(__pyx_v_bytestr); if (unlikely((!__pyx_t_10) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2564; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_varname = __pyx_t_10; - /* "netCDF4.pyx":2565 + /* "netCDF4/_netCDF4.pyx":2565 * bytestr = _strencode(name) * varname = bytestr * ndims = len(dimensions) # <<<<<<<<<<<<<< @@ -35362,7 +35362,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_11 = PyObject_Length(__pyx_v_dimensions); if (unlikely(__pyx_t_11 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2565; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_ndims = __pyx_t_11; - /* "netCDF4.pyx":2567 + /* "netCDF4/_netCDF4.pyx":2567 * ndims = len(dimensions) * # find dimension ids. * if ndims: # <<<<<<<<<<<<<< @@ -35372,7 +35372,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_1 = (__pyx_v_ndims != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":2568 + /* "netCDF4/_netCDF4.pyx":2568 * # find dimension ids. * if ndims: * for n from 0 <= n < ndims: # <<<<<<<<<<<<<< @@ -35382,7 +35382,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_4 = __pyx_v_ndims; for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_4; __pyx_v_n++) { - /* "netCDF4.pyx":2569 + /* "netCDF4/_netCDF4.pyx":2569 * if ndims: * for n from 0 <= n < ndims: * dimname = dimensions[n] # <<<<<<<<<<<<<< @@ -35394,7 +35394,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __Pyx_XDECREF_SET(__pyx_v_dimname, __pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":2572 + /* "netCDF4/_netCDF4.pyx":2572 * # look for dimension in this group, and if not * # found there, look in parent (and it's parent, etc, back to root). * dim = _find_dim(grp, dimname) # <<<<<<<<<<<<<< @@ -35433,7 +35433,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __Pyx_XDECREF_SET(__pyx_v_dim, __pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":2573 + /* "netCDF4/_netCDF4.pyx":2573 * # found there, look in parent (and it's parent, etc, back to root). * dim = _find_dim(grp, dimname) * if dim is None: # <<<<<<<<<<<<<< @@ -35444,7 +35444,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_8 = (__pyx_t_1 != 0); if (__pyx_t_8) { - /* "netCDF4.pyx":2574 + /* "netCDF4/_netCDF4.pyx":2574 * dim = _find_dim(grp, dimname) * if dim is None: * raise KeyError("dimension %s not defined in group %s or any group in it's family tree" % (dimname, grp.path)) # <<<<<<<<<<<<<< @@ -35477,7 +35477,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2574; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":2575 + /* "netCDF4/_netCDF4.pyx":2575 * if dim is None: * raise KeyError("dimension %s not defined in group %s or any group in it's family tree" % (dimname, grp.path)) * dimids[n] = dim._dimid # <<<<<<<<<<<<<< @@ -35494,7 +35494,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L40:; - /* "netCDF4.pyx":2579 + /* "netCDF4/_netCDF4.pyx":2579 * # file format. Be careful to exit define mode before * # any exceptions are raised. * if grp.data_model != 'NETCDF4': grp._redef() # <<<<<<<<<<<<<< @@ -35531,7 +35531,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L44:; - /* "netCDF4.pyx":2581 + /* "netCDF4/_netCDF4.pyx":2581 * if grp.data_model != 'NETCDF4': grp._redef() * # define variable. * if ndims: # <<<<<<<<<<<<<< @@ -35541,7 +35541,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_8 = (__pyx_v_ndims != 0); if (__pyx_t_8) { - /* "netCDF4.pyx":2582 + /* "netCDF4/_netCDF4.pyx":2582 * # define variable. * if ndims: * ierr = nc_def_var(self._grpid, varname, xtype, ndims, # <<<<<<<<<<<<<< @@ -35553,7 +35553,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } /*else*/ { - /* "netCDF4.pyx":2585 + /* "netCDF4/_netCDF4.pyx":2585 * dimids, &self._varid) * else: # a scalar variable. * ierr = nc_def_var(self._grpid, varname, xtype, ndims, # <<<<<<<<<<<<<< @@ -35564,7 +35564,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L45:; - /* "netCDF4.pyx":2591 + /* "netCDF4/_netCDF4.pyx":2591 * # of vars are created. This change only lasts as long as file is * # open. * if grp.data_model.startswith('NETCDF4') and chunk_cache is not None: # <<<<<<<<<<<<<< @@ -35592,7 +35592,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_L47_bool_binop_done:; if (__pyx_t_8) { - /* "netCDF4.pyx":2592 + /* "netCDF4/_netCDF4.pyx":2592 * # open. * if grp.data_model.startswith('NETCDF4') and chunk_cache is not None: * ierr = nc_get_var_chunk_cache(self._grpid, self._varid, &sizep, # <<<<<<<<<<<<<< @@ -35601,7 +35601,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab */ __pyx_v_ierr = nc_get_var_chunk_cache(__pyx_v_self->_grpid, __pyx_v_self->_varid, (&__pyx_v_sizep), (&__pyx_v_nelemsp), (&__pyx_v_preemptionp)); - /* "netCDF4.pyx":2594 + /* "netCDF4/_netCDF4.pyx":2594 * ierr = nc_get_var_chunk_cache(self._grpid, self._varid, &sizep, * &nelemsp, &preemptionp) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -35611,7 +35611,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_8 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_8) { - /* "netCDF4.pyx":2595 + /* "netCDF4/_netCDF4.pyx":2595 * &nelemsp, &preemptionp) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -35635,7 +35635,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2595; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":2597 + /* "netCDF4/_netCDF4.pyx":2597 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * # reset chunk cache size, leave other parameters unchanged. * sizep = chunk_cache # <<<<<<<<<<<<<< @@ -35645,7 +35645,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_13 = __Pyx_PyInt_As_size_t(__pyx_v_chunk_cache); if (unlikely((__pyx_t_13 == (size_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2597; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_sizep = __pyx_t_13; - /* "netCDF4.pyx":2598 + /* "netCDF4/_netCDF4.pyx":2598 * # reset chunk cache size, leave other parameters unchanged. * sizep = chunk_cache * ierr = nc_set_var_chunk_cache(self._grpid, self._varid, sizep, # <<<<<<<<<<<<<< @@ -35654,7 +35654,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab */ __pyx_v_ierr = nc_set_var_chunk_cache(__pyx_v_self->_grpid, __pyx_v_self->_varid, __pyx_v_sizep, __pyx_v_nelemsp, __pyx_v_preemptionp); - /* "netCDF4.pyx":2600 + /* "netCDF4/_netCDF4.pyx":2600 * ierr = nc_set_var_chunk_cache(self._grpid, self._varid, sizep, * nelemsp, preemptionp) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -35664,7 +35664,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_8 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_8) { - /* "netCDF4.pyx":2601 + /* "netCDF4/_netCDF4.pyx":2601 * nelemsp, preemptionp) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -35691,7 +35691,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L46:; - /* "netCDF4.pyx":2602 + /* "netCDF4/_netCDF4.pyx":2602 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -35701,7 +35701,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_8 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_8) { - /* "netCDF4.pyx":2603 + /* "netCDF4/_netCDF4.pyx":2603 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * if ierr != NC_NOERR: * if grp.data_model != 'NETCDF4': grp._enddef() # <<<<<<<<<<<<<< @@ -35738,7 +35738,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L52:; - /* "netCDF4.pyx":2604 + /* "netCDF4/_netCDF4.pyx":2604 * if ierr != NC_NOERR: * if grp.data_model != 'NETCDF4': grp._enddef() * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -35762,7 +35762,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2604; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":2611 + /* "netCDF4/_netCDF4.pyx":2611 * # and fletcher32 are silently ignored. Only * # endian='native' allowed for NETCDF3. * if grp.data_model in ['NETCDF4','NETCDF4_CLASSIC']: # <<<<<<<<<<<<<< @@ -35784,7 +35784,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_2 = (__pyx_t_8 != 0); if (__pyx_t_2) { - /* "netCDF4.pyx":2613 + /* "netCDF4/_netCDF4.pyx":2613 * if grp.data_model in ['NETCDF4','NETCDF4_CLASSIC']: * # set zlib and shuffle parameters. * if zlib and ndims: # don't bother for scalar variable # <<<<<<<<<<<<<< @@ -35802,7 +35802,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_L57_bool_binop_done:; if (__pyx_t_2) { - /* "netCDF4.pyx":2614 + /* "netCDF4/_netCDF4.pyx":2614 * # set zlib and shuffle parameters. * if zlib and ndims: # don't bother for scalar variable * ideflate_level = complevel # <<<<<<<<<<<<<< @@ -35812,7 +35812,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_v_complevel); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2614; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_ideflate_level = __pyx_t_4; - /* "netCDF4.pyx":2615 + /* "netCDF4/_netCDF4.pyx":2615 * if zlib and ndims: # don't bother for scalar variable * ideflate_level = complevel * if shuffle: # <<<<<<<<<<<<<< @@ -35822,7 +35822,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_shuffle); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2615; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_2) { - /* "netCDF4.pyx":2616 + /* "netCDF4/_netCDF4.pyx":2616 * ideflate_level = complevel * if shuffle: * ierr = nc_def_var_deflate(self._grpid, self._varid, 1, 1, ideflate_level) # <<<<<<<<<<<<<< @@ -35834,7 +35834,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } /*else*/ { - /* "netCDF4.pyx":2618 + /* "netCDF4/_netCDF4.pyx":2618 * ierr = nc_def_var_deflate(self._grpid, self._varid, 1, 1, ideflate_level) * else: * ierr = nc_def_var_deflate(self._grpid, self._varid, 0, 1, ideflate_level) # <<<<<<<<<<<<<< @@ -35845,7 +35845,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L59:; - /* "netCDF4.pyx":2619 + /* "netCDF4/_netCDF4.pyx":2619 * else: * ierr = nc_def_var_deflate(self._grpid, self._varid, 0, 1, ideflate_level) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -35855,7 +35855,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_2 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_2) { - /* "netCDF4.pyx":2620 + /* "netCDF4/_netCDF4.pyx":2620 * ierr = nc_def_var_deflate(self._grpid, self._varid, 0, 1, ideflate_level) * if ierr != NC_NOERR: * if grp.data_model != 'NETCDF4': grp._enddef() # <<<<<<<<<<<<<< @@ -35892,7 +35892,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L61:; - /* "netCDF4.pyx":2621 + /* "netCDF4/_netCDF4.pyx":2621 * if ierr != NC_NOERR: * if grp.data_model != 'NETCDF4': grp._enddef() * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -35919,7 +35919,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L56:; - /* "netCDF4.pyx":2623 + /* "netCDF4/_netCDF4.pyx":2623 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * # set checksum. * if fletcher32 and ndims: # don't bother for scalar variable # <<<<<<<<<<<<<< @@ -35937,7 +35937,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_L63_bool_binop_done:; if (__pyx_t_2) { - /* "netCDF4.pyx":2624 + /* "netCDF4/_netCDF4.pyx":2624 * # set checksum. * if fletcher32 and ndims: # don't bother for scalar variable * ierr = nc_def_var_fletcher32(self._grpid, self._varid, 1) # <<<<<<<<<<<<<< @@ -35946,7 +35946,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab */ __pyx_v_ierr = nc_def_var_fletcher32(__pyx_v_self->_grpid, __pyx_v_self->_varid, 1); - /* "netCDF4.pyx":2625 + /* "netCDF4/_netCDF4.pyx":2625 * if fletcher32 and ndims: # don't bother for scalar variable * ierr = nc_def_var_fletcher32(self._grpid, self._varid, 1) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -35956,7 +35956,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_2 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_2) { - /* "netCDF4.pyx":2626 + /* "netCDF4/_netCDF4.pyx":2626 * ierr = nc_def_var_fletcher32(self._grpid, self._varid, 1) * if ierr != NC_NOERR: * if grp.data_model != 'NETCDF4': grp._enddef() # <<<<<<<<<<<<<< @@ -35993,7 +35993,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L66:; - /* "netCDF4.pyx":2627 + /* "netCDF4/_netCDF4.pyx":2627 * if ierr != NC_NOERR: * if grp.data_model != 'NETCDF4': grp._enddef() * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -36020,7 +36020,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L62:; - /* "netCDF4.pyx":2629 + /* "netCDF4/_netCDF4.pyx":2629 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * # set chunking stuff. * if ndims: # don't bother for scalar variable. # <<<<<<<<<<<<<< @@ -36030,7 +36030,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_2 = (__pyx_v_ndims != 0); if (__pyx_t_2) { - /* "netCDF4.pyx":2630 + /* "netCDF4/_netCDF4.pyx":2630 * # set chunking stuff. * if ndims: # don't bother for scalar variable. * if contiguous: # <<<<<<<<<<<<<< @@ -36040,7 +36040,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_contiguous); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2630; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_2) { - /* "netCDF4.pyx":2631 + /* "netCDF4/_netCDF4.pyx":2631 * if ndims: # don't bother for scalar variable. * if contiguous: * icontiguous = NC_CONTIGUOUS # <<<<<<<<<<<<<< @@ -36049,7 +36049,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab */ __pyx_v_icontiguous = NC_CONTIGUOUS; - /* "netCDF4.pyx":2632 + /* "netCDF4/_netCDF4.pyx":2632 * if contiguous: * icontiguous = NC_CONTIGUOUS * if chunksizes is not None: # <<<<<<<<<<<<<< @@ -36060,7 +36060,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_8 = (__pyx_t_2 != 0); if (__pyx_t_8) { - /* "netCDF4.pyx":2633 + /* "netCDF4/_netCDF4.pyx":2633 * icontiguous = NC_CONTIGUOUS * if chunksizes is not None: * raise ValueError('cannot specify chunksizes for a contiguous dataset') # <<<<<<<<<<<<<< @@ -36077,7 +36077,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } /*else*/ { - /* "netCDF4.pyx":2635 + /* "netCDF4/_netCDF4.pyx":2635 * raise ValueError('cannot specify chunksizes for a contiguous dataset') * else: * icontiguous = NC_CHUNKED # <<<<<<<<<<<<<< @@ -36088,7 +36088,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L68:; - /* "netCDF4.pyx":2636 + /* "netCDF4/_netCDF4.pyx":2636 * else: * icontiguous = NC_CHUNKED * if chunksizes is None: # <<<<<<<<<<<<<< @@ -36099,7 +36099,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_2 = (__pyx_t_8 != 0); if (__pyx_t_2) { - /* "netCDF4.pyx":2637 + /* "netCDF4/_netCDF4.pyx":2637 * icontiguous = NC_CHUNKED * if chunksizes is None: * chunksizesp = NULL # <<<<<<<<<<<<<< @@ -36111,7 +36111,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } /*else*/ { - /* "netCDF4.pyx":2639 + /* "netCDF4/_netCDF4.pyx":2639 * chunksizesp = NULL * else: * if len(chunksizes) != len(dimensions): # <<<<<<<<<<<<<< @@ -36123,7 +36123,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_2 = ((__pyx_t_11 != __pyx_t_14) != 0); if (__pyx_t_2) { - /* "netCDF4.pyx":2640 + /* "netCDF4/_netCDF4.pyx":2640 * else: * if len(chunksizes) != len(dimensions): * if grp.data_model != 'NETCDF4': grp._enddef() # <<<<<<<<<<<<<< @@ -36160,7 +36160,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L72:; - /* "netCDF4.pyx":2641 + /* "netCDF4/_netCDF4.pyx":2641 * if len(chunksizes) != len(dimensions): * if grp.data_model != 'NETCDF4': grp._enddef() * raise ValueError('chunksizes must be a sequence with the same length as dimensions') # <<<<<<<<<<<<<< @@ -36174,7 +36174,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2641; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":2642 + /* "netCDF4/_netCDF4.pyx":2642 * if grp.data_model != 'NETCDF4': grp._enddef() * raise ValueError('chunksizes must be a sequence with the same length as dimensions') * chunksizesp = malloc(sizeof(size_t) * ndims) # <<<<<<<<<<<<<< @@ -36183,7 +36183,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab */ __pyx_v_chunksizesp = ((size_t *)malloc(((sizeof(size_t)) * __pyx_v_ndims))); - /* "netCDF4.pyx":2643 + /* "netCDF4/_netCDF4.pyx":2643 * raise ValueError('chunksizes must be a sequence with the same length as dimensions') * chunksizesp = malloc(sizeof(size_t) * ndims) * for n from 0 <= n < ndims: # <<<<<<<<<<<<<< @@ -36193,7 +36193,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_4 = __pyx_v_ndims; for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_4; __pyx_v_n++) { - /* "netCDF4.pyx":2644 + /* "netCDF4/_netCDF4.pyx":2644 * chunksizesp = malloc(sizeof(size_t) * ndims) * for n from 0 <= n < ndims: * chunksizesp[n] = chunksizes[n] # <<<<<<<<<<<<<< @@ -36209,7 +36209,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L70:; - /* "netCDF4.pyx":2645 + /* "netCDF4/_netCDF4.pyx":2645 * for n from 0 <= n < ndims: * chunksizesp[n] = chunksizes[n] * if chunksizes is not None or contiguous: # <<<<<<<<<<<<<< @@ -36228,7 +36228,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_L76_bool_binop_done:; if (__pyx_t_2) { - /* "netCDF4.pyx":2646 + /* "netCDF4/_netCDF4.pyx":2646 * chunksizesp[n] = chunksizes[n] * if chunksizes is not None or contiguous: * ierr = nc_def_var_chunking(self._grpid, self._varid, icontiguous, chunksizesp) # <<<<<<<<<<<<<< @@ -36237,7 +36237,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab */ __pyx_v_ierr = nc_def_var_chunking(__pyx_v_self->_grpid, __pyx_v_self->_varid, __pyx_v_icontiguous, __pyx_v_chunksizesp); - /* "netCDF4.pyx":2647 + /* "netCDF4/_netCDF4.pyx":2647 * if chunksizes is not None or contiguous: * ierr = nc_def_var_chunking(self._grpid, self._varid, icontiguous, chunksizesp) * free(chunksizesp) # <<<<<<<<<<<<<< @@ -36246,7 +36246,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab */ free(__pyx_v_chunksizesp); - /* "netCDF4.pyx":2648 + /* "netCDF4/_netCDF4.pyx":2648 * ierr = nc_def_var_chunking(self._grpid, self._varid, icontiguous, chunksizesp) * free(chunksizesp) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -36256,7 +36256,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_2 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_2) { - /* "netCDF4.pyx":2649 + /* "netCDF4/_netCDF4.pyx":2649 * free(chunksizesp) * if ierr != NC_NOERR: * if grp.data_model != 'NETCDF4': grp._enddef() # <<<<<<<<<<<<<< @@ -36293,7 +36293,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L79:; - /* "netCDF4.pyx":2650 + /* "netCDF4/_netCDF4.pyx":2650 * if ierr != NC_NOERR: * if grp.data_model != 'NETCDF4': grp._enddef() * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -36323,7 +36323,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L67:; - /* "netCDF4.pyx":2652 + /* "netCDF4/_netCDF4.pyx":2652 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * # set endian-ness of variable * if endian == 'little': # <<<<<<<<<<<<<< @@ -36333,7 +36333,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_v_endian, __pyx_n_s_little, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2652; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_2) { - /* "netCDF4.pyx":2653 + /* "netCDF4/_netCDF4.pyx":2653 * # set endian-ness of variable * if endian == 'little': * ierr = nc_def_var_endian(self._grpid, self._varid, NC_ENDIAN_LITTLE) # <<<<<<<<<<<<<< @@ -36344,7 +36344,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab goto __pyx_L80; } - /* "netCDF4.pyx":2654 + /* "netCDF4/_netCDF4.pyx":2654 * if endian == 'little': * ierr = nc_def_var_endian(self._grpid, self._varid, NC_ENDIAN_LITTLE) * elif endian == 'big': # <<<<<<<<<<<<<< @@ -36354,7 +36354,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_v_endian, __pyx_n_s_big, Py_EQ)); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2654; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_2) { - /* "netCDF4.pyx":2655 + /* "netCDF4/_netCDF4.pyx":2655 * ierr = nc_def_var_endian(self._grpid, self._varid, NC_ENDIAN_LITTLE) * elif endian == 'big': * ierr = nc_def_var_endian(self._grpid, self._varid, NC_ENDIAN_BIG) # <<<<<<<<<<<<<< @@ -36365,7 +36365,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab goto __pyx_L80; } - /* "netCDF4.pyx":2656 + /* "netCDF4/_netCDF4.pyx":2656 * elif endian == 'big': * ierr = nc_def_var_endian(self._grpid, self._varid, NC_ENDIAN_BIG) * elif endian == 'native': # <<<<<<<<<<<<<< @@ -36378,7 +36378,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } /*else*/ { - /* "netCDF4.pyx":2659 + /* "netCDF4/_netCDF4.pyx":2659 * pass # this is the default format. * else: * raise ValueError("'endian' keyword argument must be 'little','big' or 'native', got '%s'" % endian) # <<<<<<<<<<<<<< @@ -36401,7 +36401,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L80:; - /* "netCDF4.pyx":2660 + /* "netCDF4/_netCDF4.pyx":2660 * else: * raise ValueError("'endian' keyword argument must be 'little','big' or 'native', got '%s'" % endian) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -36411,7 +36411,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_2 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_2) { - /* "netCDF4.pyx":2661 + /* "netCDF4/_netCDF4.pyx":2661 * raise ValueError("'endian' keyword argument must be 'little','big' or 'native', got '%s'" % endian) * if ierr != NC_NOERR: * if grp.data_model != 'NETCDF4': grp._enddef() # <<<<<<<<<<<<<< @@ -36448,7 +36448,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L82:; - /* "netCDF4.pyx":2662 + /* "netCDF4/_netCDF4.pyx":2662 * if ierr != NC_NOERR: * if grp.data_model != 'NETCDF4': grp._enddef() * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -36475,7 +36475,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } /*else*/ { - /* "netCDF4.pyx":2664 + /* "netCDF4/_netCDF4.pyx":2664 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * else: * if endian != 'native': # <<<<<<<<<<<<<< @@ -36485,7 +36485,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_2 = (__Pyx_PyString_Equals(__pyx_v_endian, __pyx_n_s_native, Py_NE)); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2664; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_2) { - /* "netCDF4.pyx":2665 + /* "netCDF4/_netCDF4.pyx":2665 * else: * if endian != 'native': * msg="only endian='native' allowed for NETCDF3 files" # <<<<<<<<<<<<<< @@ -36495,7 +36495,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __Pyx_INCREF(__pyx_kp_s_only_endian_native_allowed_for_N); __Pyx_XDECREF_SET(__pyx_v_msg, __pyx_kp_s_only_endian_native_allowed_for_N); - /* "netCDF4.pyx":2666 + /* "netCDF4/_netCDF4.pyx":2666 * if endian != 'native': * msg="only endian='native' allowed for NETCDF3 files" * raise RuntimeError(msg) # <<<<<<<<<<<<<< @@ -36517,7 +36517,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L53:; - /* "netCDF4.pyx":2670 + /* "netCDF4/_netCDF4.pyx":2670 * # given. This avoids the HDF5 overhead of deleting and * # recreating the dataset if it is set later (after the enddef). * if fill_value is not None: # <<<<<<<<<<<<<< @@ -36528,7 +36528,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":2671 + /* "netCDF4/_netCDF4.pyx":2671 * # recreating the dataset if it is set later (after the enddef). * if fill_value is not None: * if not fill_value and isinstance(fill_value,bool): # <<<<<<<<<<<<<< @@ -36551,7 +36551,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_L86_bool_binop_done:; if (__pyx_t_1) { - /* "netCDF4.pyx":2673 + /* "netCDF4/_netCDF4.pyx":2673 * if not fill_value and isinstance(fill_value,bool): * # no filling for this variable if fill_value==False. * if not self._isprimitive: # <<<<<<<<<<<<<< @@ -36562,7 +36562,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_2 = ((!__pyx_t_1) != 0); if (__pyx_t_2) { - /* "netCDF4.pyx":2676 + /* "netCDF4/_netCDF4.pyx":2676 * # no fill values for VLEN and compound variables * # anyway. * ierr = 0 # <<<<<<<<<<<<<< @@ -36574,7 +36574,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } /*else*/ { - /* "netCDF4.pyx":2678 + /* "netCDF4/_netCDF4.pyx":2678 * ierr = 0 * else: * ierr = nc_def_var_fill(self._grpid, self._varid, 1, NULL) # <<<<<<<<<<<<<< @@ -36585,7 +36585,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L88:; - /* "netCDF4.pyx":2679 + /* "netCDF4/_netCDF4.pyx":2679 * else: * ierr = nc_def_var_fill(self._grpid, self._varid, 1, NULL) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -36595,7 +36595,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_2 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_2) { - /* "netCDF4.pyx":2680 + /* "netCDF4/_netCDF4.pyx":2680 * ierr = nc_def_var_fill(self._grpid, self._varid, 1, NULL) * if ierr != NC_NOERR: * if grp.data_model != 'NETCDF4': grp._enddef() # <<<<<<<<<<<<<< @@ -36632,7 +36632,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L90:; - /* "netCDF4.pyx":2681 + /* "netCDF4/_netCDF4.pyx":2681 * if ierr != NC_NOERR: * if grp.data_model != 'NETCDF4': grp._enddef() * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -36659,7 +36659,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } /*else*/ { - /* "netCDF4.pyx":2684 + /* "netCDF4/_netCDF4.pyx":2684 * else: * # cast fill_value to type of variable. * if self._isprimitive: # <<<<<<<<<<<<<< @@ -36669,7 +36669,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_v_self->_isprimitive); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2684; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_2) { - /* "netCDF4.pyx":2685 + /* "netCDF4/_netCDF4.pyx":2685 * # cast fill_value to type of variable. * if self._isprimitive: * fillval = numpy.array(fill_value, self.dtype) # <<<<<<<<<<<<<< @@ -36711,7 +36711,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_v_fillval = __pyx_t_6; __pyx_t_6 = 0; - /* "netCDF4.pyx":2686 + /* "netCDF4/_netCDF4.pyx":2686 * if self._isprimitive: * fillval = numpy.array(fill_value, self.dtype) * _set_att(self._grp, self._varid, '_FillValue', fillval) # <<<<<<<<<<<<<< @@ -36720,7 +36720,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab */ __pyx_t_6 = __pyx_v_self->_grp; __Pyx_INCREF(__pyx_t_6); - __pyx_t_7 = __pyx_f_7netCDF4__set_att(__pyx_t_6, __pyx_v_self->_varid, __pyx_n_s_FillValue, __pyx_v_fillval); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2686; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_7 = __pyx_f_7netCDF4_8_netCDF4__set_att(__pyx_t_6, __pyx_v_self->_varid, __pyx_n_s_FillValue, __pyx_v_fillval); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2686; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; @@ -36728,7 +36728,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } /*else*/ { - /* "netCDF4.pyx":2688 + /* "netCDF4/_netCDF4.pyx":2688 * _set_att(self._grp, self._varid, '_FillValue', fillval) * else: * raise AttributeError("cannot set _FillValue attribute for VLEN or compound variable") # <<<<<<<<<<<<<< @@ -36748,7 +36748,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L84:; - /* "netCDF4.pyx":2689 + /* "netCDF4/_netCDF4.pyx":2689 * else: * raise AttributeError("cannot set _FillValue attribute for VLEN or compound variable") * if least_significant_digit is not None: # <<<<<<<<<<<<<< @@ -36759,7 +36759,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":2690 + /* "netCDF4/_netCDF4.pyx":2690 * raise AttributeError("cannot set _FillValue attribute for VLEN or compound variable") * if least_significant_digit is not None: * self.least_significant_digit = least_significant_digit # <<<<<<<<<<<<<< @@ -36771,7 +36771,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L92:; - /* "netCDF4.pyx":2692 + /* "netCDF4/_netCDF4.pyx":2692 * self.least_significant_digit = least_significant_digit * # leave define mode if not a NETCDF4 format file. * if grp.data_model != 'NETCDF4': grp._enddef() # <<<<<<<<<<<<<< @@ -36810,7 +36810,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L39:; - /* "netCDF4.pyx":2694 + /* "netCDF4/_netCDF4.pyx":2694 * if grp.data_model != 'NETCDF4': grp._enddef() * # count how many unlimited dimensions there are. * self._nunlimdim = 0 # <<<<<<<<<<<<<< @@ -36819,7 +36819,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab */ __pyx_v_self->_nunlimdim = 0; - /* "netCDF4.pyx":2695 + /* "netCDF4/_netCDF4.pyx":2695 * # count how many unlimited dimensions there are. * self._nunlimdim = 0 * for dimname in dimensions: # <<<<<<<<<<<<<< @@ -36866,7 +36866,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __Pyx_XDECREF_SET(__pyx_v_dimname, __pyx_t_6); __pyx_t_6 = 0; - /* "netCDF4.pyx":2697 + /* "netCDF4/_netCDF4.pyx":2697 * for dimname in dimensions: * # look in current group, and parents for dim. * dim = _find_dim(self._grp, dimname) # <<<<<<<<<<<<<< @@ -36905,7 +36905,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __Pyx_XDECREF_SET(__pyx_v_dim, __pyx_t_6); __pyx_t_6 = 0; - /* "netCDF4.pyx":2698 + /* "netCDF4/_netCDF4.pyx":2698 * # look in current group, and parents for dim. * dim = _find_dim(self._grp, dimname) * if dim.isunlimited(): self._nunlimdim = self._nunlimdim + 1 # <<<<<<<<<<<<<< @@ -36940,7 +36940,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __pyx_L96:; - /* "netCDF4.pyx":2695 + /* "netCDF4/_netCDF4.pyx":2695 * # count how many unlimited dimensions there are. * self._nunlimdim = 0 * for dimname in dimensions: # <<<<<<<<<<<<<< @@ -36950,7 +36950,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":2700 + /* "netCDF4/_netCDF4.pyx":2700 * if dim.isunlimited(): self._nunlimdim = self._nunlimdim + 1 * # set ndim attribute (number of dimensions). * with nogil: # <<<<<<<<<<<<<< @@ -36964,7 +36964,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab #endif /*try:*/ { - /* "netCDF4.pyx":2701 + /* "netCDF4/_netCDF4.pyx":2701 * # set ndim attribute (number of dimensions). * with nogil: * ierr = nc_inq_varndims(self._grpid, self._varid, &numdims) # <<<<<<<<<<<<<< @@ -36974,7 +36974,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_v_ierr = nc_inq_varndims(__pyx_v_self->_grpid, __pyx_v_self->_varid, (&__pyx_v_numdims)); } - /* "netCDF4.pyx":2700 + /* "netCDF4/_netCDF4.pyx":2700 * if dim.isunlimited(): self._nunlimdim = self._nunlimdim + 1 * # set ndim attribute (number of dimensions). * with nogil: # <<<<<<<<<<<<<< @@ -36992,7 +36992,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab } } - /* "netCDF4.pyx":2702 + /* "netCDF4/_netCDF4.pyx":2702 * with nogil: * ierr = nc_inq_varndims(self._grpid, self._varid, &numdims) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -37002,7 +37002,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_t_1 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":2703 + /* "netCDF4/_netCDF4.pyx":2703 * ierr = nc_inq_varndims(self._grpid, self._varid, &numdims) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -37026,7 +37026,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2703; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":2704 + /* "netCDF4/_netCDF4.pyx":2704 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * self.ndim = numdims # <<<<<<<<<<<<<< @@ -37041,7 +37041,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __pyx_v_self->ndim = __pyx_t_7; __pyx_t_7 = 0; - /* "netCDF4.pyx":2705 + /* "netCDF4/_netCDF4.pyx":2705 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * self.ndim = numdims * self._name = name # <<<<<<<<<<<<<< @@ -37054,7 +37054,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __Pyx_DECREF(__pyx_v_self->_name); __pyx_v_self->_name = __pyx_v_name; - /* "netCDF4.pyx":2708 + /* "netCDF4/_netCDF4.pyx":2708 * # default for automatically applying scale_factor and * # add_offset, and converting to/from masked arrays is True. * self.scale = True # <<<<<<<<<<<<<< @@ -37067,7 +37067,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __Pyx_DECREF(__pyx_v_self->scale); __pyx_v_self->scale = Py_True; - /* "netCDF4.pyx":2709 + /* "netCDF4/_netCDF4.pyx":2709 * # add_offset, and converting to/from masked arrays is True. * self.scale = True * self.mask = True # <<<<<<<<<<<<<< @@ -37080,7 +37080,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __Pyx_DECREF(__pyx_v_self->mask); __pyx_v_self->mask = Py_True; - /* "netCDF4.pyx":2472 + /* "netCDF4/_netCDF4.pyx":2472 * _isvlen, _grp, _cmptype, _vltype, __orthogonal_indexing__ * * def __init__(self, grp, name, datatype, dimensions=(), zlib=False, # <<<<<<<<<<<<<< @@ -37097,7 +37097,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_16); - __Pyx_AddTraceback("netCDF4.Variable.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_dtype_endian); @@ -37113,7 +37113,7 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab return __pyx_r; } -/* "netCDF4.pyx":2711 +/* "netCDF4/_netCDF4.pyx":2711 * self.mask = True * * def __array__(self): # <<<<<<<<<<<<<< @@ -37122,19 +37122,19 @@ static int __pyx_pf_7netCDF4_8Variable___init__(struct __pyx_obj_7netCDF4_Variab */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_3__array__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_3__array__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_3__array__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_3__array__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__array__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_2__array__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_2__array__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_2__array__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_2__array__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -37143,7 +37143,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_2__array__(struct __pyx_obj_7netCDF int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__array__", 0); - /* "netCDF4.pyx":2715 + /* "netCDF4/_netCDF4.pyx":2715 * # allows numpy ufuncs to work faster on Variable objects * # (issue 216). * return self[...] # <<<<<<<<<<<<<< @@ -37157,7 +37157,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_2__array__(struct __pyx_obj_7netCDF __pyx_t_1 = 0; goto __pyx_L0; - /* "netCDF4.pyx":2711 + /* "netCDF4/_netCDF4.pyx":2711 * self.mask = True * * def __array__(self): # <<<<<<<<<<<<<< @@ -37168,7 +37168,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_2__array__(struct __pyx_obj_7netCDF /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("netCDF4.Variable.__array__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.__array__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -37176,7 +37176,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_2__array__(struct __pyx_obj_7netCDF return __pyx_r; } -/* "netCDF4.pyx":2717 +/* "netCDF4/_netCDF4.pyx":2717 * return self[...] * * def __repr__(self): # <<<<<<<<<<<<<< @@ -37185,19 +37185,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_2__array__(struct __pyx_obj_7netCDF */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_5__repr__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_5__repr__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_5__repr__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_5__repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_4__repr__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_4__repr__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_4__repr__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_4__repr__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -37211,7 +37211,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_4__repr__(struct __pyx_obj_7netCDF4 int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); - /* "netCDF4.pyx":2718 + /* "netCDF4/_netCDF4.pyx":2718 * * def __repr__(self): * if python3: # <<<<<<<<<<<<<< @@ -37224,7 +37224,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_4__repr__(struct __pyx_obj_7netCDF4 __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { - /* "netCDF4.pyx":2719 + /* "netCDF4/_netCDF4.pyx":2719 * def __repr__(self): * if python3: * return self.__unicode__() # <<<<<<<<<<<<<< @@ -37258,7 +37258,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_4__repr__(struct __pyx_obj_7netCDF4 } /*else*/ { - /* "netCDF4.pyx":2721 + /* "netCDF4/_netCDF4.pyx":2721 * return self.__unicode__() * else: * return unicode(self).encode(default_encoding) # <<<<<<<<<<<<<< @@ -37310,7 +37310,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_4__repr__(struct __pyx_obj_7netCDF4 goto __pyx_L0; } - /* "netCDF4.pyx":2717 + /* "netCDF4/_netCDF4.pyx":2717 * return self[...] * * def __repr__(self): # <<<<<<<<<<<<<< @@ -37325,7 +37325,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_4__repr__(struct __pyx_obj_7netCDF4 __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); - __Pyx_AddTraceback("netCDF4.Variable.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -37333,7 +37333,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_4__repr__(struct __pyx_obj_7netCDF4 return __pyx_r; } -/* "netCDF4.pyx":2723 +/* "netCDF4/_netCDF4.pyx":2723 * return unicode(self).encode(default_encoding) * * def __unicode__(self): # <<<<<<<<<<<<<< @@ -37342,19 +37342,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_4__repr__(struct __pyx_obj_7netCDF4 */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_7__unicode__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_7__unicode__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_7__unicode__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_7__unicode__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__unicode__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_6__unicode__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_6__unicode__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { int __pyx_v_ierr; int __pyx_v_no_fill; PyObject *__pyx_v_ncdump_var = NULL; @@ -37390,7 +37390,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__unicode__", 0); - /* "netCDF4.pyx":2725 + /* "netCDF4/_netCDF4.pyx":2725 * def __unicode__(self): * cdef int ierr, no_fill * if not dir(self._grp): # <<<<<<<<<<<<<< @@ -37407,7 +37407,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __pyx_t_4 = ((!__pyx_t_3) != 0); if (__pyx_t_4) { - /* "netCDF4.pyx":2726 + /* "netCDF4/_netCDF4.pyx":2726 * cdef int ierr, no_fill * if not dir(self._grp): * return 'Variable object no longer valid' # <<<<<<<<<<<<<< @@ -37420,7 +37420,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC goto __pyx_L0; } - /* "netCDF4.pyx":2727 + /* "netCDF4/_netCDF4.pyx":2727 * if not dir(self._grp): * return 'Variable object no longer valid' * ncdump_var = ['%r\n' % type(self)] # <<<<<<<<<<<<<< @@ -37437,7 +37437,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __pyx_v_ncdump_var = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":2728 + /* "netCDF4/_netCDF4.pyx":2728 * return 'Variable object no longer valid' * ncdump_var = ['%r\n' % type(self)] * dimnames = tuple([_tostr(dimname) for dimname in self.dimensions]) # <<<<<<<<<<<<<< @@ -37525,7 +37525,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __pyx_v_dimnames = ((PyObject*)__pyx_t_5); __pyx_t_5 = 0; - /* "netCDF4.pyx":2729 + /* "netCDF4/_netCDF4.pyx":2729 * ncdump_var = ['%r\n' % type(self)] * dimnames = tuple([_tostr(dimname) for dimname in self.dimensions]) * attrs = [' %s: %s\n' % (name,self.getncattr(name)) for name in\ # <<<<<<<<<<<<<< @@ -37535,7 +37535,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __pyx_t_5 = PyList_New(0); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2729; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); - /* "netCDF4.pyx":2730 + /* "netCDF4/_netCDF4.pyx":2730 * dimnames = tuple([_tostr(dimname) for dimname in self.dimensions]) * attrs = [' %s: %s\n' % (name,self.getncattr(name)) for name in\ * self.ncattrs()] # <<<<<<<<<<<<<< @@ -37603,7 +37603,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":2729 + /* "netCDF4/_netCDF4.pyx":2729 * ncdump_var = ['%r\n' % type(self)] * dimnames = tuple([_tostr(dimname) for dimname in self.dimensions]) * attrs = [' %s: %s\n' % (name,self.getncattr(name)) for name in\ # <<<<<<<<<<<<<< @@ -37655,7 +37655,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __pyx_v_attrs = ((PyObject*)__pyx_t_5); __pyx_t_5 = 0; - /* "netCDF4.pyx":2731 + /* "netCDF4/_netCDF4.pyx":2731 * attrs = [' %s: %s\n' % (name,self.getncattr(name)) for name in\ * self.ncattrs()] * if self._iscompound: # <<<<<<<<<<<<<< @@ -37665,7 +37665,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_self->_iscompound); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2731; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_4) { - /* "netCDF4.pyx":2733 + /* "netCDF4/_netCDF4.pyx":2733 * if self._iscompound: * ncdump_var.append('%s %s(%s)\n' %\ * ('compound',self._name,', '.join(dimnames))) # <<<<<<<<<<<<<< @@ -37686,7 +37686,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __Pyx_GIVEREF(__pyx_t_5); __pyx_t_5 = 0; - /* "netCDF4.pyx":2732 + /* "netCDF4/_netCDF4.pyx":2732 * self.ncattrs()] * if self._iscompound: * ncdump_var.append('%s %s(%s)\n' %\ # <<<<<<<<<<<<<< @@ -37701,7 +37701,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC goto __pyx_L8; } - /* "netCDF4.pyx":2734 + /* "netCDF4/_netCDF4.pyx":2734 * ncdump_var.append('%s %s(%s)\n' %\ * ('compound',self._name,', '.join(dimnames))) * elif self._isvlen: # <<<<<<<<<<<<<< @@ -37711,7 +37711,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_self->_isvlen); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2734; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_4) { - /* "netCDF4.pyx":2736 + /* "netCDF4/_netCDF4.pyx":2736 * elif self._isvlen: * ncdump_var.append('%s %s(%s)\n' %\ * ('vlen',self._name,', '.join(dimnames))) # <<<<<<<<<<<<<< @@ -37732,7 +37732,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __Pyx_GIVEREF(__pyx_t_5); __pyx_t_5 = 0; - /* "netCDF4.pyx":2735 + /* "netCDF4/_netCDF4.pyx":2735 * ('compound',self._name,', '.join(dimnames))) * elif self._isvlen: * ncdump_var.append('%s %s(%s)\n' %\ # <<<<<<<<<<<<<< @@ -37748,7 +37748,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC } /*else*/ { - /* "netCDF4.pyx":2739 + /* "netCDF4/_netCDF4.pyx":2739 * else: * ncdump_var.append('%s %s(%s)\n' %\ * (self.dtype,self._name,', '.join(dimnames))) # <<<<<<<<<<<<<< @@ -37769,7 +37769,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __Pyx_GIVEREF(__pyx_t_5); __pyx_t_5 = 0; - /* "netCDF4.pyx":2738 + /* "netCDF4/_netCDF4.pyx":2738 * ('vlen',self._name,', '.join(dimnames))) * else: * ncdump_var.append('%s %s(%s)\n' %\ # <<<<<<<<<<<<<< @@ -37784,7 +37784,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC } __pyx_L8:; - /* "netCDF4.pyx":2740 + /* "netCDF4/_netCDF4.pyx":2740 * ncdump_var.append('%s %s(%s)\n' %\ * (self.dtype,self._name,', '.join(dimnames))) * ncdump_var = ncdump_var + attrs # <<<<<<<<<<<<<< @@ -37796,7 +37796,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __Pyx_DECREF_SET(__pyx_v_ncdump_var, ((PyObject*)__pyx_t_5)); __pyx_t_5 = 0; - /* "netCDF4.pyx":2741 + /* "netCDF4/_netCDF4.pyx":2741 * (self.dtype,self._name,', '.join(dimnames))) * ncdump_var = ncdump_var + attrs * if self._iscompound: # <<<<<<<<<<<<<< @@ -37806,7 +37806,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_self->_iscompound); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2741; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_4) { - /* "netCDF4.pyx":2742 + /* "netCDF4/_netCDF4.pyx":2742 * ncdump_var = ncdump_var + attrs * if self._iscompound: * ncdump_var.append('compound data type: %s\n' % self.dtype) # <<<<<<<<<<<<<< @@ -37820,7 +37820,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC goto __pyx_L9; } - /* "netCDF4.pyx":2743 + /* "netCDF4/_netCDF4.pyx":2743 * if self._iscompound: * ncdump_var.append('compound data type: %s\n' % self.dtype) * elif self._isvlen: # <<<<<<<<<<<<<< @@ -37830,7 +37830,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_self->_isvlen); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2743; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_4) { - /* "netCDF4.pyx":2744 + /* "netCDF4/_netCDF4.pyx":2744 * ncdump_var.append('compound data type: %s\n' % self.dtype) * elif self._isvlen: * ncdump_var.append('vlen data type: %s\n' % self.dtype) # <<<<<<<<<<<<<< @@ -37845,7 +37845,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC } __pyx_L9:; - /* "netCDF4.pyx":2745 + /* "netCDF4/_netCDF4.pyx":2745 * elif self._isvlen: * ncdump_var.append('vlen data type: %s\n' % self.dtype) * unlimdims = [] # <<<<<<<<<<<<<< @@ -37857,7 +37857,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __pyx_v_unlimdims = ((PyObject*)__pyx_t_5); __pyx_t_5 = 0; - /* "netCDF4.pyx":2746 + /* "netCDF4/_netCDF4.pyx":2746 * ncdump_var.append('vlen data type: %s\n' % self.dtype) * unlimdims = [] * for dimname in self.dimensions: # <<<<<<<<<<<<<< @@ -37907,7 +37907,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __Pyx_XDECREF_SET(__pyx_v_dimname, __pyx_t_5); __pyx_t_5 = 0; - /* "netCDF4.pyx":2747 + /* "netCDF4/_netCDF4.pyx":2747 * unlimdims = [] * for dimname in self.dimensions: * dim = _find_dim(self._grp, dimname) # <<<<<<<<<<<<<< @@ -37946,7 +37946,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __Pyx_XDECREF_SET(__pyx_v_dim, __pyx_t_5); __pyx_t_5 = 0; - /* "netCDF4.pyx":2748 + /* "netCDF4/_netCDF4.pyx":2748 * for dimname in self.dimensions: * dim = _find_dim(self._grp, dimname) * if dim.isunlimited(): # <<<<<<<<<<<<<< @@ -37977,7 +37977,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_4) { - /* "netCDF4.pyx":2749 + /* "netCDF4/_netCDF4.pyx":2749 * dim = _find_dim(self._grp, dimname) * if dim.isunlimited(): * unlimdims.append(dimname) # <<<<<<<<<<<<<< @@ -37989,7 +37989,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC } __pyx_L12:; - /* "netCDF4.pyx":2746 + /* "netCDF4/_netCDF4.pyx":2746 * ncdump_var.append('vlen data type: %s\n' % self.dtype) * unlimdims = [] * for dimname in self.dimensions: # <<<<<<<<<<<<<< @@ -37999,7 +37999,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":2750 + /* "netCDF4/_netCDF4.pyx":2750 * if dim.isunlimited(): * unlimdims.append(dimname) * if (self._grp.path != '/'): ncdump_var.append('path = %s\n' % self._grp.path) # <<<<<<<<<<<<<< @@ -38022,7 +38022,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC } __pyx_L13:; - /* "netCDF4.pyx":2751 + /* "netCDF4/_netCDF4.pyx":2751 * unlimdims.append(dimname) * if (self._grp.path != '/'): ncdump_var.append('path = %s\n' % self._grp.path) * ncdump_var.append('unlimited dimensions: %s\n' % ', '.join(unlimdims)) # <<<<<<<<<<<<<< @@ -38037,7 +38037,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_ncdump_var, __pyx_t_2); if (unlikely(__pyx_t_11 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2751; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":2752 + /* "netCDF4/_netCDF4.pyx":2752 * if (self._grp.path != '/'): ncdump_var.append('path = %s\n' % self._grp.path) * ncdump_var.append('unlimited dimensions: %s\n' % ', '.join(unlimdims)) * ncdump_var.append('current shape = %s\n' % repr(self.shape)) # <<<<<<<<<<<<<< @@ -38055,7 +38055,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __pyx_t_11 = __Pyx_PyList_Append(__pyx_v_ncdump_var, __pyx_t_2); if (unlikely(__pyx_t_11 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2752; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":2753 + /* "netCDF4/_netCDF4.pyx":2753 * ncdump_var.append('unlimited dimensions: %s\n' % ', '.join(unlimdims)) * ncdump_var.append('current shape = %s\n' % repr(self.shape)) * with nogil: # <<<<<<<<<<<<<< @@ -38069,7 +38069,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC #endif /*try:*/ { - /* "netCDF4.pyx":2754 + /* "netCDF4/_netCDF4.pyx":2754 * ncdump_var.append('current shape = %s\n' % repr(self.shape)) * with nogil: * ierr = nc_inq_var_fill(self._grpid,self._varid,&no_fill,NULL) # <<<<<<<<<<<<<< @@ -38079,7 +38079,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __pyx_v_ierr = nc_inq_var_fill(__pyx_v_self->_grpid, __pyx_v_self->_varid, (&__pyx_v_no_fill), NULL); } - /* "netCDF4.pyx":2753 + /* "netCDF4/_netCDF4.pyx":2753 * ncdump_var.append('unlimited dimensions: %s\n' % ', '.join(unlimdims)) * ncdump_var.append('current shape = %s\n' % repr(self.shape)) * with nogil: # <<<<<<<<<<<<<< @@ -38097,7 +38097,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC } } - /* "netCDF4.pyx":2755 + /* "netCDF4/_netCDF4.pyx":2755 * with nogil: * ierr = nc_inq_var_fill(self._grpid,self._varid,&no_fill,NULL) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -38107,7 +38107,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __pyx_t_4 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_4) { - /* "netCDF4.pyx":2756 + /* "netCDF4/_netCDF4.pyx":2756 * ierr = nc_inq_var_fill(self._grpid,self._varid,&no_fill,NULL) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -38131,7 +38131,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2756; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":2757 + /* "netCDF4/_netCDF4.pyx":2757 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * if self._isprimitive: # <<<<<<<<<<<<<< @@ -38141,7 +38141,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __pyx_t_4 = __Pyx_PyObject_IsTrue(__pyx_v_self->_isprimitive); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2757; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_4) { - /* "netCDF4.pyx":2758 + /* "netCDF4/_netCDF4.pyx":2758 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * if self._isprimitive: * if no_fill != 1: # <<<<<<<<<<<<<< @@ -38151,7 +38151,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __pyx_t_4 = ((__pyx_v_no_fill != 1) != 0); if (__pyx_t_4) { - /* "netCDF4.pyx":2759 + /* "netCDF4/_netCDF4.pyx":2759 * if self._isprimitive: * if no_fill != 1: * try: # <<<<<<<<<<<<<< @@ -38165,7 +38165,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __Pyx_XGOTREF(__pyx_t_16); /*try:*/ { - /* "netCDF4.pyx":2760 + /* "netCDF4/_netCDF4.pyx":2760 * if no_fill != 1: * try: * fillval = self._FillValue # <<<<<<<<<<<<<< @@ -38177,7 +38177,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __pyx_v_fillval = __pyx_t_2; __pyx_t_2 = 0; - /* "netCDF4.pyx":2761 + /* "netCDF4/_netCDF4.pyx":2761 * try: * fillval = self._FillValue * msg = 'filling on' # <<<<<<<<<<<<<< @@ -38199,7 +38199,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":2762 + /* "netCDF4/_netCDF4.pyx":2762 * fillval = self._FillValue * msg = 'filling on' * except AttributeError: # <<<<<<<<<<<<<< @@ -38208,13 +38208,13 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC */ __pyx_t_17 = PyErr_ExceptionMatches(__pyx_builtin_AttributeError); if (__pyx_t_17) { - __Pyx_AddTraceback("netCDF4.Variable.__unicode__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.__unicode__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_5, &__pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2762; __pyx_clineno = __LINE__; goto __pyx_L22_except_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_5); __Pyx_GOTREF(__pyx_t_1); - /* "netCDF4.pyx":2763 + /* "netCDF4/_netCDF4.pyx":2763 * msg = 'filling on' * except AttributeError: * fillval = default_fillvals[self.dtype.str[1:]] # <<<<<<<<<<<<<< @@ -38235,7 +38235,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __Pyx_XDECREF_SET(__pyx_v_fillval, __pyx_t_8); __pyx_t_8 = 0; - /* "netCDF4.pyx":2764 + /* "netCDF4/_netCDF4.pyx":2764 * except AttributeError: * fillval = default_fillvals[self.dtype.str[1:]] * if self.dtype.str[1:] in ['u1','i1']: # <<<<<<<<<<<<<< @@ -38260,7 +38260,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __pyx_t_3 = (__pyx_t_4 != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":2765 + /* "netCDF4/_netCDF4.pyx":2765 * fillval = default_fillvals[self.dtype.str[1:]] * if self.dtype.str[1:] in ['u1','i1']: * msg = 'filling on, default _FillValue of %s ignored\n' % fillval # <<<<<<<<<<<<<< @@ -38275,7 +38275,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC } /*else*/ { - /* "netCDF4.pyx":2767 + /* "netCDF4/_netCDF4.pyx":2767 * msg = 'filling on, default _FillValue of %s ignored\n' % fillval * else: * msg = 'filling on, default _FillValue of %s used\n' % fillval # <<<<<<<<<<<<<< @@ -38308,7 +38308,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __pyx_L27_try_end:; } - /* "netCDF4.pyx":2768 + /* "netCDF4/_netCDF4.pyx":2768 * else: * msg = 'filling on, default _FillValue of %s used\n' % fillval * ncdump_var.append(msg) # <<<<<<<<<<<<<< @@ -38320,7 +38320,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC } /*else*/ { - /* "netCDF4.pyx":2770 + /* "netCDF4/_netCDF4.pyx":2770 * ncdump_var.append(msg) * else: * ncdump_var.append('filling off\n') # <<<<<<<<<<<<<< @@ -38334,7 +38334,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC } __pyx_L18:; - /* "netCDF4.pyx":2773 + /* "netCDF4/_netCDF4.pyx":2773 * * * return ''.join(ncdump_var) # <<<<<<<<<<<<<< @@ -38348,7 +38348,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __pyx_t_1 = 0; goto __pyx_L0; - /* "netCDF4.pyx":2723 + /* "netCDF4/_netCDF4.pyx":2723 * return unicode(self).encode(default_encoding) * * def __unicode__(self): # <<<<<<<<<<<<<< @@ -38364,7 +38364,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); - __Pyx_AddTraceback("netCDF4.Variable.__unicode__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.__unicode__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_ncdump_var); @@ -38381,7 +38381,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC return __pyx_r; } -/* "netCDF4.pyx":2775 +/* "netCDF4/_netCDF4.pyx":2775 * return ''.join(ncdump_var) * * def _getdims(self): # <<<<<<<<<<<<<< @@ -38390,19 +38390,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6__unicode__(struct __pyx_obj_7netC */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_9_getdims(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_9_getdims(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_9_getdims(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_9_getdims(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_getdims (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_8_getdims(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_8_getdims(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { int __pyx_v_ierr; int __pyx_v_numdims; int __pyx_v_nn; @@ -38427,7 +38427,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4 int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_getdims", 0); - /* "netCDF4.pyx":2781 + /* "netCDF4/_netCDF4.pyx":2781 * cdef int dimids[NC_MAX_DIMS] * # get number of dimensions for this variable. * with nogil: # <<<<<<<<<<<<<< @@ -38441,7 +38441,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4 #endif /*try:*/ { - /* "netCDF4.pyx":2782 + /* "netCDF4/_netCDF4.pyx":2782 * # get number of dimensions for this variable. * with nogil: * ierr = nc_inq_varndims(self._grpid, self._varid, &numdims) # <<<<<<<<<<<<<< @@ -38451,7 +38451,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4 __pyx_v_ierr = nc_inq_varndims(__pyx_v_self->_grpid, __pyx_v_self->_varid, (&__pyx_v_numdims)); } - /* "netCDF4.pyx":2781 + /* "netCDF4/_netCDF4.pyx":2781 * cdef int dimids[NC_MAX_DIMS] * # get number of dimensions for this variable. * with nogil: # <<<<<<<<<<<<<< @@ -38469,7 +38469,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4 } } - /* "netCDF4.pyx":2783 + /* "netCDF4/_netCDF4.pyx":2783 * with nogil: * ierr = nc_inq_varndims(self._grpid, self._varid, &numdims) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -38479,7 +38479,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4 __pyx_t_1 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":2784 + /* "netCDF4/_netCDF4.pyx":2784 * ierr = nc_inq_varndims(self._grpid, self._varid, &numdims) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -38503,7 +38503,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2784; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":2786 + /* "netCDF4/_netCDF4.pyx":2786 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * # get dimension ids. * with nogil: # <<<<<<<<<<<<<< @@ -38517,7 +38517,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4 #endif /*try:*/ { - /* "netCDF4.pyx":2787 + /* "netCDF4/_netCDF4.pyx":2787 * # get dimension ids. * with nogil: * ierr = nc_inq_vardimid(self._grpid, self._varid, dimids) # <<<<<<<<<<<<<< @@ -38527,7 +38527,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4 __pyx_v_ierr = nc_inq_vardimid(__pyx_v_self->_grpid, __pyx_v_self->_varid, __pyx_v_dimids); } - /* "netCDF4.pyx":2786 + /* "netCDF4/_netCDF4.pyx":2786 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * # get dimension ids. * with nogil: # <<<<<<<<<<<<<< @@ -38545,7 +38545,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4 } } - /* "netCDF4.pyx":2788 + /* "netCDF4/_netCDF4.pyx":2788 * with nogil: * ierr = nc_inq_vardimid(self._grpid, self._varid, dimids) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -38555,7 +38555,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4 __pyx_t_1 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":2789 + /* "netCDF4/_netCDF4.pyx":2789 * ierr = nc_inq_vardimid(self._grpid, self._varid, dimids) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -38579,7 +38579,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2789; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":2791 + /* "netCDF4/_netCDF4.pyx":2791 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * # loop over dimensions, retrieve names. * dimensions = () # <<<<<<<<<<<<<< @@ -38589,7 +38589,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4 __Pyx_INCREF(__pyx_empty_tuple); __pyx_v_dimensions = __pyx_empty_tuple; - /* "netCDF4.pyx":2792 + /* "netCDF4/_netCDF4.pyx":2792 * # loop over dimensions, retrieve names. * dimensions = () * for nn from 0 <= nn < numdims: # <<<<<<<<<<<<<< @@ -38599,7 +38599,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4 __pyx_t_5 = __pyx_v_numdims; for (__pyx_v_nn = 0; __pyx_v_nn < __pyx_t_5; __pyx_v_nn++) { - /* "netCDF4.pyx":2793 + /* "netCDF4/_netCDF4.pyx":2793 * dimensions = () * for nn from 0 <= nn < numdims: * with nogil: # <<<<<<<<<<<<<< @@ -38613,7 +38613,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4 #endif /*try:*/ { - /* "netCDF4.pyx":2794 + /* "netCDF4/_netCDF4.pyx":2794 * for nn from 0 <= nn < numdims: * with nogil: * ierr = nc_inq_dimname(self._grpid, dimids[nn], namstring) # <<<<<<<<<<<<<< @@ -38623,7 +38623,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4 __pyx_v_ierr = nc_inq_dimname(__pyx_v_self->_grpid, (__pyx_v_dimids[__pyx_v_nn]), __pyx_v_namstring); } - /* "netCDF4.pyx":2793 + /* "netCDF4/_netCDF4.pyx":2793 * dimensions = () * for nn from 0 <= nn < numdims: * with nogil: # <<<<<<<<<<<<<< @@ -38641,7 +38641,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4 } } - /* "netCDF4.pyx":2795 + /* "netCDF4/_netCDF4.pyx":2795 * with nogil: * ierr = nc_inq_dimname(self._grpid, dimids[nn], namstring) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -38651,7 +38651,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4 __pyx_t_1 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":2796 + /* "netCDF4/_netCDF4.pyx":2796 * ierr = nc_inq_dimname(self._grpid, dimids[nn], namstring) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -38675,7 +38675,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2796; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":2797 + /* "netCDF4/_netCDF4.pyx":2797 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * name = namstring.decode(default_encoding,unicode_error) # <<<<<<<<<<<<<< @@ -38721,7 +38721,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4 __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":2798 + /* "netCDF4/_netCDF4.pyx":2798 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * name = namstring.decode(default_encoding,unicode_error) * dimensions = dimensions + (name,) # <<<<<<<<<<<<<< @@ -38740,7 +38740,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4 __pyx_t_6 = 0; } - /* "netCDF4.pyx":2799 + /* "netCDF4/_netCDF4.pyx":2799 * name = namstring.decode(default_encoding,unicode_error) * dimensions = dimensions + (name,) * return dimensions # <<<<<<<<<<<<<< @@ -38752,7 +38752,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4 __pyx_r = __pyx_v_dimensions; goto __pyx_L0; - /* "netCDF4.pyx":2775 + /* "netCDF4/_netCDF4.pyx":2775 * return ''.join(ncdump_var) * * def _getdims(self): # <<<<<<<<<<<<<< @@ -38768,7 +38768,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4 __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_10); - __Pyx_AddTraceback("netCDF4.Variable._getdims", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable._getdims", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_dimensions); @@ -38778,7 +38778,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4 return __pyx_r; } -/* "netCDF4.pyx":2801 +/* "netCDF4/_netCDF4.pyx":2801 * return dimensions * * def _getname(self): # <<<<<<<<<<<<<< @@ -38787,19 +38787,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8_getdims(struct __pyx_obj_7netCDF4 */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_11_getname(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_11_getname(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_11_getname(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_11_getname(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_getname (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_10_getname(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_10_getname(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_10_getname(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_10_getname(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { int __pyx_v__grpid; char __pyx_v_namstring[(NC_MAX_NAME + 1)]; int __pyx_v_ierr; @@ -38820,7 +38820,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_10_getname(struct __pyx_obj_7netCDF int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_getname", 0); - /* "netCDF4.pyx":2805 + /* "netCDF4/_netCDF4.pyx":2805 * cdef int err, _grpid * cdef char namstring[NC_MAX_NAME+1] * _grpid = self._grp._grpid # <<<<<<<<<<<<<< @@ -38833,7 +38833,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_10_getname(struct __pyx_obj_7netCDF __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v__grpid = __pyx_t_2; - /* "netCDF4.pyx":2806 + /* "netCDF4/_netCDF4.pyx":2806 * cdef char namstring[NC_MAX_NAME+1] * _grpid = self._grp._grpid * with nogil: # <<<<<<<<<<<<<< @@ -38847,7 +38847,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_10_getname(struct __pyx_obj_7netCDF #endif /*try:*/ { - /* "netCDF4.pyx":2807 + /* "netCDF4/_netCDF4.pyx":2807 * _grpid = self._grp._grpid * with nogil: * ierr = nc_inq_varname(_grpid, self._varid, namstring) # <<<<<<<<<<<<<< @@ -38857,7 +38857,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_10_getname(struct __pyx_obj_7netCDF __pyx_v_ierr = nc_inq_varname(__pyx_v__grpid, __pyx_v_self->_varid, __pyx_v_namstring); } - /* "netCDF4.pyx":2806 + /* "netCDF4/_netCDF4.pyx":2806 * cdef char namstring[NC_MAX_NAME+1] * _grpid = self._grp._grpid * with nogil: # <<<<<<<<<<<<<< @@ -38875,7 +38875,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_10_getname(struct __pyx_obj_7netCDF } } - /* "netCDF4.pyx":2808 + /* "netCDF4/_netCDF4.pyx":2808 * with nogil: * ierr = nc_inq_varname(_grpid, self._varid, namstring) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -38885,7 +38885,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_10_getname(struct __pyx_obj_7netCDF __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":2809 + /* "netCDF4/_netCDF4.pyx":2809 * ierr = nc_inq_varname(_grpid, self._varid, namstring) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -38909,7 +38909,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_10_getname(struct __pyx_obj_7netCDF {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2809; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":2810 + /* "netCDF4/_netCDF4.pyx":2810 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * return namstring.decode(default_encoding,unicode_error) # <<<<<<<<<<<<<< @@ -38957,7 +38957,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_10_getname(struct __pyx_obj_7netCDF __pyx_t_1 = 0; goto __pyx_L0; - /* "netCDF4.pyx":2801 + /* "netCDF4/_netCDF4.pyx":2801 * return dimensions * * def _getname(self): # <<<<<<<<<<<<<< @@ -38973,7 +38973,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_10_getname(struct __pyx_obj_7netCDF __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_10); - __Pyx_AddTraceback("netCDF4.Variable._getname", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable._getname", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -38981,7 +38981,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_10_getname(struct __pyx_obj_7netCDF return __pyx_r; } -/* "netCDF4.pyx":2814 +/* "netCDF4/_netCDF4.pyx":2814 * property name: * """string name of Variable instance""" * def __get__(self): # <<<<<<<<<<<<<< @@ -38990,19 +38990,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_10_getname(struct __pyx_obj_7netCDF */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_4name_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_4name_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_4name_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_4name_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_4name___get__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_4name___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_4name___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_4name___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -39013,7 +39013,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_4name___get__(struct __pyx_obj_7net int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); - /* "netCDF4.pyx":2815 + /* "netCDF4/_netCDF4.pyx":2815 * """string name of Variable instance""" * def __get__(self): * return self._getname() # <<<<<<<<<<<<<< @@ -39045,7 +39045,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_4name___get__(struct __pyx_obj_7net __pyx_t_1 = 0; goto __pyx_L0; - /* "netCDF4.pyx":2814 + /* "netCDF4/_netCDF4.pyx":2814 * property name: * """string name of Variable instance""" * def __get__(self): # <<<<<<<<<<<<<< @@ -39058,7 +39058,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_4name___get__(struct __pyx_obj_7net __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); - __Pyx_AddTraceback("netCDF4.Variable.name.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.name.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -39066,7 +39066,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_4name___get__(struct __pyx_obj_7net return __pyx_r; } -/* "netCDF4.pyx":2816 +/* "netCDF4/_netCDF4.pyx":2816 * def __get__(self): * return self._getname() * def __set__(self,value): # <<<<<<<<<<<<<< @@ -39075,19 +39075,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_4name___get__(struct __pyx_obj_7net */ /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_4name_2__set__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_4name_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_4name_2__set__(CYTHON_UNUSED struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_4name_2__set__(CYTHON_UNUSED struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -39096,7 +39096,7 @@ static int __pyx_pf_7netCDF4_8Variable_4name_2__set__(CYTHON_UNUSED struct __pyx int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); - /* "netCDF4.pyx":2817 + /* "netCDF4/_netCDF4.pyx":2817 * return self._getname() * def __set__(self,value): * raise AttributeError("name cannot be altered") # <<<<<<<<<<<<<< @@ -39109,7 +39109,7 @@ static int __pyx_pf_7netCDF4_8Variable_4name_2__set__(CYTHON_UNUSED struct __pyx __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2817; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":2816 + /* "netCDF4/_netCDF4.pyx":2816 * def __get__(self): * return self._getname() * def __set__(self,value): # <<<<<<<<<<<<<< @@ -39120,13 +39120,13 @@ static int __pyx_pf_7netCDF4_8Variable_4name_2__set__(CYTHON_UNUSED struct __pyx /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("netCDF4.Variable.name.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.name.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __Pyx_RefNannyFinishContext(); return __pyx_r; } -/* "netCDF4.pyx":2821 +/* "netCDF4/_netCDF4.pyx":2821 * property datatype: * """numpy data type (for primitive data types) or VLType/CompoundType instance (for compound or vlen data types)""" * def __get__(self): # <<<<<<<<<<<<<< @@ -39135,19 +39135,19 @@ static int __pyx_pf_7netCDF4_8Variable_4name_2__set__(CYTHON_UNUSED struct __pyx */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_8datatype_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_8datatype_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_8datatype_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_8datatype_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_8datatype___get__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_8datatype___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_8datatype___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_8datatype___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; @@ -39156,7 +39156,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8datatype___get__(struct __pyx_obj_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); - /* "netCDF4.pyx":2822 + /* "netCDF4/_netCDF4.pyx":2822 * """numpy data type (for primitive data types) or VLType/CompoundType instance (for compound or vlen data types)""" * def __get__(self): * if self._iscompound: # <<<<<<<<<<<<<< @@ -39166,7 +39166,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8datatype___get__(struct __pyx_obj_ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_self->_iscompound); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2822; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":2823 + /* "netCDF4/_netCDF4.pyx":2823 * def __get__(self): * if self._iscompound: * return self._cmptype # <<<<<<<<<<<<<< @@ -39179,7 +39179,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8datatype___get__(struct __pyx_obj_ goto __pyx_L0; } - /* "netCDF4.pyx":2824 + /* "netCDF4/_netCDF4.pyx":2824 * if self._iscompound: * return self._cmptype * elif self._isvlen: # <<<<<<<<<<<<<< @@ -39189,7 +39189,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8datatype___get__(struct __pyx_obj_ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_self->_isvlen); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2824; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":2825 + /* "netCDF4/_netCDF4.pyx":2825 * return self._cmptype * elif self._isvlen: * return self._vltype # <<<<<<<<<<<<<< @@ -39202,7 +39202,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8datatype___get__(struct __pyx_obj_ goto __pyx_L0; } - /* "netCDF4.pyx":2826 + /* "netCDF4/_netCDF4.pyx":2826 * elif self._isvlen: * return self._vltype * elif self._isprimitive: # <<<<<<<<<<<<<< @@ -39212,7 +39212,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8datatype___get__(struct __pyx_obj_ __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_self->_isprimitive); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2826; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":2827 + /* "netCDF4/_netCDF4.pyx":2827 * return self._vltype * elif self._isprimitive: * return self.dtype # <<<<<<<<<<<<<< @@ -39225,7 +39225,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8datatype___get__(struct __pyx_obj_ goto __pyx_L0; } - /* "netCDF4.pyx":2821 + /* "netCDF4/_netCDF4.pyx":2821 * property datatype: * """numpy data type (for primitive data types) or VLType/CompoundType instance (for compound or vlen data types)""" * def __get__(self): # <<<<<<<<<<<<<< @@ -39237,7 +39237,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8datatype___get__(struct __pyx_obj_ __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; - __Pyx_AddTraceback("netCDF4.Variable.datatype.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.datatype.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -39245,7 +39245,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8datatype___get__(struct __pyx_obj_ return __pyx_r; } -/* "netCDF4.pyx":2831 +/* "netCDF4/_netCDF4.pyx":2831 * property shape: * """find current sizes of all variable dimensions""" * def __get__(self): # <<<<<<<<<<<<<< @@ -39254,19 +39254,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8datatype___get__(struct __pyx_obj_ */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_5shape_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_5shape_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_5shape_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_5shape_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_5shape___get__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_5shape___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_5shape___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_5shape___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { PyObject *__pyx_v_shape = NULL; PyObject *__pyx_v_dimname = NULL; PyObject *__pyx_v_dim = NULL; @@ -39285,7 +39285,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_5shape___get__(struct __pyx_obj_7ne int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); - /* "netCDF4.pyx":2832 + /* "netCDF4/_netCDF4.pyx":2832 * """find current sizes of all variable dimensions""" * def __get__(self): * shape = () # <<<<<<<<<<<<<< @@ -39295,7 +39295,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_5shape___get__(struct __pyx_obj_7ne __Pyx_INCREF(__pyx_empty_tuple); __pyx_v_shape = __pyx_empty_tuple; - /* "netCDF4.pyx":2833 + /* "netCDF4/_netCDF4.pyx":2833 * def __get__(self): * shape = () * for dimname in self._getdims(): # <<<<<<<<<<<<<< @@ -39363,7 +39363,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_5shape___get__(struct __pyx_obj_7ne __Pyx_XDECREF_SET(__pyx_v_dimname, __pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":2835 + /* "netCDF4/_netCDF4.pyx":2835 * for dimname in self._getdims(): * # look in current group, and parents for dim. * dim = _find_dim(self._grp,dimname) # <<<<<<<<<<<<<< @@ -39402,7 +39402,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_5shape___get__(struct __pyx_obj_7ne __Pyx_XDECREF_SET(__pyx_v_dim, __pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":2836 + /* "netCDF4/_netCDF4.pyx":2836 * # look in current group, and parents for dim. * dim = _find_dim(self._grp,dimname) * shape = shape + (len(dim),) # <<<<<<<<<<<<<< @@ -39423,7 +39423,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_5shape___get__(struct __pyx_obj_7ne __Pyx_DECREF_SET(__pyx_v_shape, __pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":2833 + /* "netCDF4/_netCDF4.pyx":2833 * def __get__(self): * shape = () * for dimname in self._getdims(): # <<<<<<<<<<<<<< @@ -39433,7 +39433,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_5shape___get__(struct __pyx_obj_7ne } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":2837 + /* "netCDF4/_netCDF4.pyx":2837 * dim = _find_dim(self._grp,dimname) * shape = shape + (len(dim),) * return shape # <<<<<<<<<<<<<< @@ -39445,7 +39445,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_5shape___get__(struct __pyx_obj_7ne __pyx_r = __pyx_v_shape; goto __pyx_L0; - /* "netCDF4.pyx":2831 + /* "netCDF4/_netCDF4.pyx":2831 * property shape: * """find current sizes of all variable dimensions""" * def __get__(self): # <<<<<<<<<<<<<< @@ -39460,7 +39460,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_5shape___get__(struct __pyx_obj_7ne __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_8); - __Pyx_AddTraceback("netCDF4.Variable.shape.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.shape.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_shape); @@ -39471,7 +39471,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_5shape___get__(struct __pyx_obj_7ne return __pyx_r; } -/* "netCDF4.pyx":2838 +/* "netCDF4/_netCDF4.pyx":2838 * shape = shape + (len(dim),) * return shape * def __set__(self,value): # <<<<<<<<<<<<<< @@ -39480,19 +39480,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_5shape___get__(struct __pyx_obj_7ne */ /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_5shape_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_5shape_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_5shape_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_5shape_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_5shape_2__set__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_5shape_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_5shape_2__set__(CYTHON_UNUSED struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_5shape_2__set__(CYTHON_UNUSED struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -39501,7 +39501,7 @@ static int __pyx_pf_7netCDF4_8Variable_5shape_2__set__(CYTHON_UNUSED struct __py int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); - /* "netCDF4.pyx":2839 + /* "netCDF4/_netCDF4.pyx":2839 * return shape * def __set__(self,value): * raise AttributeError("shape cannot be altered") # <<<<<<<<<<<<<< @@ -39514,7 +39514,7 @@ static int __pyx_pf_7netCDF4_8Variable_5shape_2__set__(CYTHON_UNUSED struct __py __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2839; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":2838 + /* "netCDF4/_netCDF4.pyx":2838 * shape = shape + (len(dim),) * return shape * def __set__(self,value): # <<<<<<<<<<<<<< @@ -39525,13 +39525,13 @@ static int __pyx_pf_7netCDF4_8Variable_5shape_2__set__(CYTHON_UNUSED struct __py /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("netCDF4.Variable.shape.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.shape.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __Pyx_RefNannyFinishContext(); return __pyx_r; } -/* "netCDF4.pyx":2843 +/* "netCDF4/_netCDF4.pyx":2843 * property size: * """Return the number of stored elements.""" * def __get__(self): # <<<<<<<<<<<<<< @@ -39540,19 +39540,19 @@ static int __pyx_pf_7netCDF4_8Variable_5shape_2__set__(CYTHON_UNUSED struct __py */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_4size_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_4size_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_4size_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_4size_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_4size___get__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_4size___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_4size___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_4size___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -39565,7 +39565,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_4size___get__(struct __pyx_obj_7net int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); - /* "netCDF4.pyx":2844 + /* "netCDF4/_netCDF4.pyx":2844 * """Return the number of stored elements.""" * def __get__(self): * return numpy.prod(self.shape) # <<<<<<<<<<<<<< @@ -39610,7 +39610,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_4size___get__(struct __pyx_obj_7net __pyx_t_1 = 0; goto __pyx_L0; - /* "netCDF4.pyx":2843 + /* "netCDF4/_netCDF4.pyx":2843 * property size: * """Return the number of stored elements.""" * def __get__(self): # <<<<<<<<<<<<<< @@ -39625,7 +39625,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_4size___get__(struct __pyx_obj_7net __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); - __Pyx_AddTraceback("netCDF4.Variable.size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -39633,7 +39633,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_4size___get__(struct __pyx_obj_7net return __pyx_r; } -/* "netCDF4.pyx":2848 +/* "netCDF4/_netCDF4.pyx":2848 * property dimensions: * """get variables's dimension names""" * def __get__(self): # <<<<<<<<<<<<<< @@ -39642,19 +39642,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_4size___get__(struct __pyx_obj_7net */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_10dimensions_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_10dimensions_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_10dimensions_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_10dimensions_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_10dimensions___get__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_10dimensions___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_10dimensions___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_10dimensions___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -39665,7 +39665,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_10dimensions___get__(struct __pyx_o int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__get__", 0); - /* "netCDF4.pyx":2849 + /* "netCDF4/_netCDF4.pyx":2849 * """get variables's dimension names""" * def __get__(self): * return self._getdims() # <<<<<<<<<<<<<< @@ -39697,7 +39697,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_10dimensions___get__(struct __pyx_o __pyx_t_1 = 0; goto __pyx_L0; - /* "netCDF4.pyx":2848 + /* "netCDF4/_netCDF4.pyx":2848 * property dimensions: * """get variables's dimension names""" * def __get__(self): # <<<<<<<<<<<<<< @@ -39710,7 +39710,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_10dimensions___get__(struct __pyx_o __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); - __Pyx_AddTraceback("netCDF4.Variable.dimensions.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.dimensions.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -39718,7 +39718,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_10dimensions___get__(struct __pyx_o return __pyx_r; } -/* "netCDF4.pyx":2850 +/* "netCDF4/_netCDF4.pyx":2850 * def __get__(self): * return self._getdims() * def __set__(self,value): # <<<<<<<<<<<<<< @@ -39727,19 +39727,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_10dimensions___get__(struct __pyx_o */ /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_10dimensions_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_10dimensions_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_10dimensions_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_10dimensions_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_10dimensions_2__set__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_10dimensions_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_10dimensions_2__set__(CYTHON_UNUSED struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_10dimensions_2__set__(CYTHON_UNUSED struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -39748,7 +39748,7 @@ static int __pyx_pf_7netCDF4_8Variable_10dimensions_2__set__(CYTHON_UNUSED struc int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__set__", 0); - /* "netCDF4.pyx":2851 + /* "netCDF4/_netCDF4.pyx":2851 * return self._getdims() * def __set__(self,value): * raise AttributeError("dimensions cannot be altered") # <<<<<<<<<<<<<< @@ -39761,7 +39761,7 @@ static int __pyx_pf_7netCDF4_8Variable_10dimensions_2__set__(CYTHON_UNUSED struc __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2851; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":2850 + /* "netCDF4/_netCDF4.pyx":2850 * def __get__(self): * return self._getdims() * def __set__(self,value): # <<<<<<<<<<<<<< @@ -39772,13 +39772,13 @@ static int __pyx_pf_7netCDF4_8Variable_10dimensions_2__set__(CYTHON_UNUSED struc /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("netCDF4.Variable.dimensions.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.dimensions.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __Pyx_RefNannyFinishContext(); return __pyx_r; } -/* "netCDF4.pyx":2854 +/* "netCDF4/_netCDF4.pyx":2854 * * * def group(self): # <<<<<<<<<<<<<< @@ -39787,25 +39787,25 @@ static int __pyx_pf_7netCDF4_8Variable_10dimensions_2__set__(CYTHON_UNUSED struc */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_13group(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static char __pyx_doc_7netCDF4_8Variable_12group[] = "\ngroup(self)\n\nreturn the group that this L{Variable} is a member of."; -static PyObject *__pyx_pw_7netCDF4_8Variable_13group(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_13group(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_8Variable_12group[] = "\ngroup(self)\n\nreturn the group that this L{Variable} is a member of."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_13group(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("group (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_12group(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_12group(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_12group(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_12group(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("group", 0); - /* "netCDF4.pyx":2859 + /* "netCDF4/_netCDF4.pyx":2859 * * return the group that this L{Variable} is a member of.""" * return self._grp # <<<<<<<<<<<<<< @@ -39817,7 +39817,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_12group(struct __pyx_obj_7netCDF4_V __pyx_r = __pyx_v_self->_grp; goto __pyx_L0; - /* "netCDF4.pyx":2854 + /* "netCDF4/_netCDF4.pyx":2854 * * * def group(self): # <<<<<<<<<<<<<< @@ -39832,7 +39832,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_12group(struct __pyx_obj_7netCDF4_V return __pyx_r; } -/* "netCDF4.pyx":2861 +/* "netCDF4/_netCDF4.pyx":2861 * return self._grp * * def ncattrs(self): # <<<<<<<<<<<<<< @@ -39841,20 +39841,20 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_12group(struct __pyx_obj_7netCDF4_V */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_15ncattrs(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static char __pyx_doc_7netCDF4_8Variable_14ncattrs[] = "\nncattrs(self)\n\nreturn netCDF attribute names for this L{Variable} in a list."; -static PyObject *__pyx_pw_7netCDF4_8Variable_15ncattrs(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_15ncattrs(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_8Variable_14ncattrs[] = "\nncattrs(self)\n\nreturn netCDF attribute names for this L{Variable} in a list."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_15ncattrs(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("ncattrs (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_14ncattrs(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_14ncattrs(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_14ncattrs(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_14ncattrs(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -39863,7 +39863,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_14ncattrs(struct __pyx_obj_7netCDF4 int __pyx_clineno = 0; __Pyx_RefNannySetupContext("ncattrs", 0); - /* "netCDF4.pyx":2866 + /* "netCDF4/_netCDF4.pyx":2866 * * return netCDF attribute names for this L{Variable} in a list.""" * return _get_att_names(self._grpid, self._varid) # <<<<<<<<<<<<<< @@ -39871,13 +39871,13 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_14ncattrs(struct __pyx_obj_7netCDF4 * def setncattr(self,name,value): */ __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_f_7netCDF4__get_att_names(__pyx_v_self->_grpid, __pyx_v_self->_varid); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2866; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_7netCDF4_8_netCDF4__get_att_names(__pyx_v_self->_grpid, __pyx_v_self->_varid); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2866; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_r = __pyx_t_1; __pyx_t_1 = 0; goto __pyx_L0; - /* "netCDF4.pyx":2861 + /* "netCDF4/_netCDF4.pyx":2861 * return self._grp * * def ncattrs(self): # <<<<<<<<<<<<<< @@ -39888,7 +39888,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_14ncattrs(struct __pyx_obj_7netCDF4 /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("netCDF4.Variable.ncattrs", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.ncattrs", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -39896,7 +39896,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_14ncattrs(struct __pyx_obj_7netCDF4 return __pyx_r; } -/* "netCDF4.pyx":2868 +/* "netCDF4/_netCDF4.pyx":2868 * return _get_att_names(self._grpid, self._varid) * * def setncattr(self,name,value): # <<<<<<<<<<<<<< @@ -39905,9 +39905,9 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_14ncattrs(struct __pyx_obj_7netCDF4 */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_17setncattr(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_7netCDF4_8Variable_16setncattr[] = "\nsetncattr(self,name,value)\n\nset a netCDF variable attribute using name,value pair. Only use if you need to set a\nnetCDF attribute with the same name as one of the reserved python\nattributes."; -static PyObject *__pyx_pw_7netCDF4_8Variable_17setncattr(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_17setncattr(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_8Variable_16setncattr[] = "\nsetncattr(self,name,value)\n\nset a netCDF variable attribute using name,value pair. Only use if you need to set a\nnetCDF attribute with the same name as one of the reserved python\nattributes."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_17setncattr(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_name = 0; PyObject *__pyx_v_value = 0; int __pyx_lineno = 0; @@ -39955,18 +39955,18 @@ static PyObject *__pyx_pw_7netCDF4_8Variable_17setncattr(PyObject *__pyx_v_self, __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("setncattr", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2868; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4.Variable.setncattr", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.setncattr", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_8Variable_16setncattr(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), __pyx_v_name, __pyx_v_value); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_16setncattr(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), __pyx_v_name, __pyx_v_value); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_16setncattr(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_16setncattr(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -39978,7 +39978,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_16setncattr(struct __pyx_obj_7netCD int __pyx_clineno = 0; __Pyx_RefNannySetupContext("setncattr", 0); - /* "netCDF4.pyx":2875 + /* "netCDF4/_netCDF4.pyx":2875 * netCDF attribute with the same name as one of the reserved python * attributes.""" * if self._grp.data_model != 'NETCDF4': self._grp._redef() # <<<<<<<<<<<<<< @@ -40015,7 +40015,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_16setncattr(struct __pyx_obj_7netCD } __pyx_L3:; - /* "netCDF4.pyx":2876 + /* "netCDF4/_netCDF4.pyx":2876 * attributes.""" * if self._grp.data_model != 'NETCDF4': self._grp._redef() * _set_att(self._grp, self._varid, name, value) # <<<<<<<<<<<<<< @@ -40024,12 +40024,12 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_16setncattr(struct __pyx_obj_7netCD */ __pyx_t_1 = __pyx_v_self->_grp; __Pyx_INCREF(__pyx_t_1); - __pyx_t_3 = __pyx_f_7netCDF4__set_att(__pyx_t_1, __pyx_v_self->_varid, __pyx_v_name, __pyx_v_value); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2876; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __pyx_f_7netCDF4_8_netCDF4__set_att(__pyx_t_1, __pyx_v_self->_varid, __pyx_v_name, __pyx_v_value); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2876; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":2877 + /* "netCDF4/_netCDF4.pyx":2877 * if self._grp.data_model != 'NETCDF4': self._grp._redef() * _set_att(self._grp, self._varid, name, value) * if self._grp.data_model != 'NETCDF4': self._grp._enddef() # <<<<<<<<<<<<<< @@ -40066,7 +40066,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_16setncattr(struct __pyx_obj_7netCD } __pyx_L4:; - /* "netCDF4.pyx":2868 + /* "netCDF4/_netCDF4.pyx":2868 * return _get_att_names(self._grpid, self._varid) * * def setncattr(self,name,value): # <<<<<<<<<<<<<< @@ -40081,7 +40081,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_16setncattr(struct __pyx_obj_7netCD __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); - __Pyx_AddTraceback("netCDF4.Variable.setncattr", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.setncattr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -40089,7 +40089,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_16setncattr(struct __pyx_obj_7netCD return __pyx_r; } -/* "netCDF4.pyx":2879 +/* "netCDF4/_netCDF4.pyx":2879 * if self._grp.data_model != 'NETCDF4': self._grp._enddef() * * def setncatts(self,attdict): # <<<<<<<<<<<<<< @@ -40098,20 +40098,20 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_16setncattr(struct __pyx_obj_7netCD */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_19setncatts(PyObject *__pyx_v_self, PyObject *__pyx_v_attdict); /*proto*/ -static char __pyx_doc_7netCDF4_8Variable_18setncatts[] = "\nsetncatts(self,attdict)\n\nset a bunch of netCDF variable attributes at once using a python dictionary.\nThis may be faster when setting a lot of attributes for a NETCDF3\nformatted file, since nc_redef/nc_enddef is not called in between setting\neach attribute"; -static PyObject *__pyx_pw_7netCDF4_8Variable_19setncatts(PyObject *__pyx_v_self, PyObject *__pyx_v_attdict) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_19setncatts(PyObject *__pyx_v_self, PyObject *__pyx_v_attdict); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_8Variable_18setncatts[] = "\nsetncatts(self,attdict)\n\nset a bunch of netCDF variable attributes at once using a python dictionary.\nThis may be faster when setting a lot of attributes for a NETCDF3\nformatted file, since nc_redef/nc_enddef is not called in between setting\neach attribute"; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_19setncatts(PyObject *__pyx_v_self, PyObject *__pyx_v_attdict) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("setncatts (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_18setncatts(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_attdict)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_18setncatts(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_attdict)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_18setncatts(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_attdict) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_18setncatts(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_attdict) { PyObject *__pyx_v_name = NULL; PyObject *__pyx_v_value = NULL; PyObject *__pyx_r = NULL; @@ -40130,7 +40130,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_18setncatts(struct __pyx_obj_7netCD int __pyx_clineno = 0; __Pyx_RefNannySetupContext("setncatts", 0); - /* "netCDF4.pyx":2887 + /* "netCDF4/_netCDF4.pyx":2887 * formatted file, since nc_redef/nc_enddef is not called in between setting * each attribute""" * if self._grp.data_model != 'NETCDF4': self._grp._redef() # <<<<<<<<<<<<<< @@ -40167,7 +40167,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_18setncatts(struct __pyx_obj_7netCD } __pyx_L3:; - /* "netCDF4.pyx":2888 + /* "netCDF4/_netCDF4.pyx":2888 * each attribute""" * if self._grp.data_model != 'NETCDF4': self._grp._redef() * for name, value in attdict.items(): # <<<<<<<<<<<<<< @@ -40287,7 +40287,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_18setncatts(struct __pyx_obj_7netCD __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":2889 + /* "netCDF4/_netCDF4.pyx":2889 * if self._grp.data_model != 'NETCDF4': self._grp._redef() * for name, value in attdict.items(): * _set_att(self._grp, self._varid, name, value) # <<<<<<<<<<<<<< @@ -40296,12 +40296,12 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_18setncatts(struct __pyx_obj_7netCD */ __pyx_t_1 = __pyx_v_self->_grp; __Pyx_INCREF(__pyx_t_1); - __pyx_t_7 = __pyx_f_7netCDF4__set_att(__pyx_t_1, __pyx_v_self->_varid, __pyx_v_name, __pyx_v_value); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2889; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_7 = __pyx_f_7netCDF4_8_netCDF4__set_att(__pyx_t_1, __pyx_v_self->_varid, __pyx_v_name, __pyx_v_value); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2889; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":2888 + /* "netCDF4/_netCDF4.pyx":2888 * each attribute""" * if self._grp.data_model != 'NETCDF4': self._grp._redef() * for name, value in attdict.items(): # <<<<<<<<<<<<<< @@ -40311,7 +40311,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_18setncatts(struct __pyx_obj_7netCD } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":2890 + /* "netCDF4/_netCDF4.pyx":2890 * for name, value in attdict.items(): * _set_att(self._grp, self._varid, name, value) * if self._grp.data_model != 'NETCDF4': self._grp._enddef() # <<<<<<<<<<<<<< @@ -40348,7 +40348,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_18setncatts(struct __pyx_obj_7netCD } __pyx_L8:; - /* "netCDF4.pyx":2879 + /* "netCDF4/_netCDF4.pyx":2879 * if self._grp.data_model != 'NETCDF4': self._grp._enddef() * * def setncatts(self,attdict): # <<<<<<<<<<<<<< @@ -40365,7 +40365,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_18setncatts(struct __pyx_obj_7netCD __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); - __Pyx_AddTraceback("netCDF4.Variable.setncatts", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.setncatts", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_name); @@ -40375,7 +40375,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_18setncatts(struct __pyx_obj_7netCD return __pyx_r; } -/* "netCDF4.pyx":2892 +/* "netCDF4/_netCDF4.pyx":2892 * if self._grp.data_model != 'NETCDF4': self._grp._enddef() * * def getncattr(self,name): # <<<<<<<<<<<<<< @@ -40384,20 +40384,20 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_18setncatts(struct __pyx_obj_7netCD */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_21getncattr(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/ -static char __pyx_doc_7netCDF4_8Variable_20getncattr[] = "\ngetncattr(self,name)\n\nretrievel a netCDF variable attribute. Only use if you need to set a\nnetCDF attribute with the same name as one of the reserved python\nattributes."; -static PyObject *__pyx_pw_7netCDF4_8Variable_21getncattr(PyObject *__pyx_v_self, PyObject *__pyx_v_name) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_21getncattr(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_8Variable_20getncattr[] = "\ngetncattr(self,name)\n\nretrievel a netCDF variable attribute. Only use if you need to set a\nnetCDF attribute with the same name as one of the reserved python\nattributes."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_21getncattr(PyObject *__pyx_v_self, PyObject *__pyx_v_name) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("getncattr (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_20getncattr(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_name)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_20getncattr(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_name)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_20getncattr(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_name) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_20getncattr(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_name) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -40407,7 +40407,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_20getncattr(struct __pyx_obj_7netCD int __pyx_clineno = 0; __Pyx_RefNannySetupContext("getncattr", 0); - /* "netCDF4.pyx":2899 + /* "netCDF4/_netCDF4.pyx":2899 * netCDF attribute with the same name as one of the reserved python * attributes.""" * return _get_att(self._grp, self._varid, name) # <<<<<<<<<<<<<< @@ -40417,14 +40417,14 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_20getncattr(struct __pyx_obj_7netCD __Pyx_XDECREF(__pyx_r); __pyx_t_1 = __pyx_v_self->_grp; __Pyx_INCREF(__pyx_t_1); - __pyx_t_2 = __pyx_f_7netCDF4__get_att(__pyx_t_1, __pyx_v_self->_varid, __pyx_v_name); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2899; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __pyx_f_7netCDF4_8_netCDF4__get_att(__pyx_t_1, __pyx_v_self->_varid, __pyx_v_name); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2899; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_r = __pyx_t_2; __pyx_t_2 = 0; goto __pyx_L0; - /* "netCDF4.pyx":2892 + /* "netCDF4/_netCDF4.pyx":2892 * if self._grp.data_model != 'NETCDF4': self._grp._enddef() * * def getncattr(self,name): # <<<<<<<<<<<<<< @@ -40436,7 +40436,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_20getncattr(struct __pyx_obj_7netCD __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); - __Pyx_AddTraceback("netCDF4.Variable.getncattr", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.getncattr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -40444,7 +40444,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_20getncattr(struct __pyx_obj_7netCD return __pyx_r; } -/* "netCDF4.pyx":2901 +/* "netCDF4/_netCDF4.pyx":2901 * return _get_att(self._grp, self._varid, name) * * def delncattr(self, name): # <<<<<<<<<<<<<< @@ -40453,20 +40453,20 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_20getncattr(struct __pyx_obj_7netCD */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_23delncattr(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/ -static char __pyx_doc_7netCDF4_8Variable_22delncattr[] = "\ndelncattr(self,name,value)\n\ndelete a netCDF variable attribute. Only use if you need to delete a\nnetCDF attribute with the same name as one of the reserved python\nattributes."; -static PyObject *__pyx_pw_7netCDF4_8Variable_23delncattr(PyObject *__pyx_v_self, PyObject *__pyx_v_name) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_23delncattr(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_8Variable_22delncattr[] = "\ndelncattr(self,name,value)\n\ndelete a netCDF variable attribute. Only use if you need to delete a\nnetCDF attribute with the same name as one of the reserved python\nattributes."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_23delncattr(PyObject *__pyx_v_self, PyObject *__pyx_v_name) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("delncattr (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_22delncattr(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_name)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_22delncattr(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_name)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_22delncattr(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_name) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_22delncattr(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_name) { char *__pyx_v_attname; PyObject *__pyx_v_bytestr = NULL; int __pyx_v_ierr; @@ -40482,19 +40482,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_22delncattr(struct __pyx_obj_7netCD int __pyx_clineno = 0; __Pyx_RefNannySetupContext("delncattr", 0); - /* "netCDF4.pyx":2909 + /* "netCDF4/_netCDF4.pyx":2909 * attributes.""" * cdef char *attname * bytestr = _strencode(name) # <<<<<<<<<<<<<< * attname = bytestr * if self._grp.data_model != 'NETCDF4': self._grp._redef() */ - __pyx_t_1 = __pyx_f_7netCDF4__strencode(__pyx_v_name, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2909; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_7netCDF4_8_netCDF4__strencode(__pyx_v_name, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2909; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_v_bytestr = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":2910 + /* "netCDF4/_netCDF4.pyx":2910 * cdef char *attname * bytestr = _strencode(name) * attname = bytestr # <<<<<<<<<<<<<< @@ -40504,7 +40504,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_22delncattr(struct __pyx_obj_7netCD __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_v_bytestr); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2910; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_attname = __pyx_t_2; - /* "netCDF4.pyx":2911 + /* "netCDF4/_netCDF4.pyx":2911 * bytestr = _strencode(name) * attname = bytestr * if self._grp.data_model != 'NETCDF4': self._grp._redef() # <<<<<<<<<<<<<< @@ -40541,7 +40541,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_22delncattr(struct __pyx_obj_7netCD } __pyx_L3:; - /* "netCDF4.pyx":2912 + /* "netCDF4/_netCDF4.pyx":2912 * attname = bytestr * if self._grp.data_model != 'NETCDF4': self._grp._redef() * ierr = nc_del_att(self._grpid, self._varid, attname) # <<<<<<<<<<<<<< @@ -40550,7 +40550,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_22delncattr(struct __pyx_obj_7netCD */ __pyx_v_ierr = nc_del_att(__pyx_v_self->_grpid, __pyx_v_self->_varid, __pyx_v_attname); - /* "netCDF4.pyx":2913 + /* "netCDF4/_netCDF4.pyx":2913 * if self._grp.data_model != 'NETCDF4': self._grp._redef() * ierr = nc_del_att(self._grpid, self._varid, attname) * if self._grp.data_model != 'NETCDF4': self._grp._enddef() # <<<<<<<<<<<<<< @@ -40587,7 +40587,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_22delncattr(struct __pyx_obj_7netCD } __pyx_L4:; - /* "netCDF4.pyx":2914 + /* "netCDF4/_netCDF4.pyx":2914 * ierr = nc_del_att(self._grpid, self._varid, attname) * if self._grp.data_model != 'NETCDF4': self._grp._enddef() * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -40597,7 +40597,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_22delncattr(struct __pyx_obj_7netCD __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":2915 + /* "netCDF4/_netCDF4.pyx":2915 * if self._grp.data_model != 'NETCDF4': self._grp._enddef() * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -40621,7 +40621,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_22delncattr(struct __pyx_obj_7netCD {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2915; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":2901 + /* "netCDF4/_netCDF4.pyx":2901 * return _get_att(self._grp, self._varid, name) * * def delncattr(self, name): # <<<<<<<<<<<<<< @@ -40636,7 +40636,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_22delncattr(struct __pyx_obj_7netCD __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); - __Pyx_AddTraceback("netCDF4.Variable.delncattr", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.delncattr", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_bytestr); @@ -40645,7 +40645,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_22delncattr(struct __pyx_obj_7netCD return __pyx_r; } -/* "netCDF4.pyx":2917 +/* "netCDF4/_netCDF4.pyx":2917 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * * def filters(self): # <<<<<<<<<<<<<< @@ -40654,20 +40654,20 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_22delncattr(struct __pyx_obj_7netCD */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_25filters(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static char __pyx_doc_7netCDF4_8Variable_24filters[] = "\nfilters(self)\n\nreturn dictionary containing HDF5 filter parameters."; -static PyObject *__pyx_pw_7netCDF4_8Variable_25filters(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_25filters(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_8Variable_24filters[] = "\nfilters(self)\n\nreturn dictionary containing HDF5 filter parameters."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_25filters(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("filters (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_24filters(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_24filters(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { int __pyx_v_ierr; int __pyx_v_ideflate; int __pyx_v_ishuffle; @@ -40686,7 +40686,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4 int __pyx_clineno = 0; __Pyx_RefNannySetupContext("filters", 0); - /* "netCDF4.pyx":2923 + /* "netCDF4/_netCDF4.pyx":2923 * return dictionary containing HDF5 filter parameters.""" * cdef int ierr,ideflate,ishuffle,ideflate_level,ifletcher32 * filtdict = {'zlib':False,'shuffle':False,'complevel':0,'fletcher32':False} # <<<<<<<<<<<<<< @@ -40702,7 +40702,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4 __pyx_v_filtdict = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":2924 + /* "netCDF4/_netCDF4.pyx":2924 * cdef int ierr,ideflate,ishuffle,ideflate_level,ifletcher32 * filtdict = {'zlib':False,'shuffle':False,'complevel':0,'fletcher32':False} * if self._grp.data_model not in ['NETCDF4_CLASSIC','NETCDF4']: return # <<<<<<<<<<<<<< @@ -40728,7 +40728,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4 goto __pyx_L0; } - /* "netCDF4.pyx":2925 + /* "netCDF4/_netCDF4.pyx":2925 * filtdict = {'zlib':False,'shuffle':False,'complevel':0,'fletcher32':False} * if self._grp.data_model not in ['NETCDF4_CLASSIC','NETCDF4']: return * with nogil: # <<<<<<<<<<<<<< @@ -40742,7 +40742,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4 #endif /*try:*/ { - /* "netCDF4.pyx":2926 + /* "netCDF4/_netCDF4.pyx":2926 * if self._grp.data_model not in ['NETCDF4_CLASSIC','NETCDF4']: return * with nogil: * ierr = nc_inq_var_deflate(self._grpid, self._varid, &ishuffle, &ideflate, &ideflate_level) # <<<<<<<<<<<<<< @@ -40752,7 +40752,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4 __pyx_v_ierr = nc_inq_var_deflate(__pyx_v_self->_grpid, __pyx_v_self->_varid, (&__pyx_v_ishuffle), (&__pyx_v_ideflate), (&__pyx_v_ideflate_level)); } - /* "netCDF4.pyx":2925 + /* "netCDF4/_netCDF4.pyx":2925 * filtdict = {'zlib':False,'shuffle':False,'complevel':0,'fletcher32':False} * if self._grp.data_model not in ['NETCDF4_CLASSIC','NETCDF4']: return * with nogil: # <<<<<<<<<<<<<< @@ -40770,7 +40770,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4 } } - /* "netCDF4.pyx":2927 + /* "netCDF4/_netCDF4.pyx":2927 * with nogil: * ierr = nc_inq_var_deflate(self._grpid, self._varid, &ishuffle, &ideflate, &ideflate_level) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -40780,7 +40780,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4 __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":2928 + /* "netCDF4/_netCDF4.pyx":2928 * ierr = nc_inq_var_deflate(self._grpid, self._varid, &ishuffle, &ideflate, &ideflate_level) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -40804,7 +40804,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2928; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":2929 + /* "netCDF4/_netCDF4.pyx":2929 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * with nogil: # <<<<<<<<<<<<<< @@ -40818,7 +40818,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4 #endif /*try:*/ { - /* "netCDF4.pyx":2930 + /* "netCDF4/_netCDF4.pyx":2930 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * with nogil: * ierr = nc_inq_var_fletcher32(self._grpid, self._varid, &ifletcher32) # <<<<<<<<<<<<<< @@ -40828,7 +40828,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4 __pyx_v_ierr = nc_inq_var_fletcher32(__pyx_v_self->_grpid, __pyx_v_self->_varid, (&__pyx_v_ifletcher32)); } - /* "netCDF4.pyx":2929 + /* "netCDF4/_netCDF4.pyx":2929 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * with nogil: # <<<<<<<<<<<<<< @@ -40846,7 +40846,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4 } } - /* "netCDF4.pyx":2931 + /* "netCDF4/_netCDF4.pyx":2931 * with nogil: * ierr = nc_inq_var_fletcher32(self._grpid, self._varid, &ifletcher32) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -40856,7 +40856,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4 __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":2932 + /* "netCDF4/_netCDF4.pyx":2932 * ierr = nc_inq_var_fletcher32(self._grpid, self._varid, &ifletcher32) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -40880,7 +40880,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4 {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2932; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":2933 + /* "netCDF4/_netCDF4.pyx":2933 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * if ideflate: # <<<<<<<<<<<<<< @@ -40890,7 +40890,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4 __pyx_t_3 = (__pyx_v_ideflate != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":2934 + /* "netCDF4/_netCDF4.pyx":2934 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * if ideflate: * filtdict['zlib']=True # <<<<<<<<<<<<<< @@ -40899,7 +40899,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4 */ if (unlikely(PyDict_SetItem(__pyx_v_filtdict, __pyx_n_s_zlib, Py_True) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2934; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":2935 + /* "netCDF4/_netCDF4.pyx":2935 * if ideflate: * filtdict['zlib']=True * filtdict['complevel']=ideflate_level # <<<<<<<<<<<<<< @@ -40914,7 +40914,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4 } __pyx_L14:; - /* "netCDF4.pyx":2936 + /* "netCDF4/_netCDF4.pyx":2936 * filtdict['zlib']=True * filtdict['complevel']=ideflate_level * if ishuffle: # <<<<<<<<<<<<<< @@ -40924,7 +40924,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4 __pyx_t_3 = (__pyx_v_ishuffle != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":2937 + /* "netCDF4/_netCDF4.pyx":2937 * filtdict['complevel']=ideflate_level * if ishuffle: * filtdict['shuffle']=True # <<<<<<<<<<<<<< @@ -40936,7 +40936,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4 } __pyx_L15:; - /* "netCDF4.pyx":2938 + /* "netCDF4/_netCDF4.pyx":2938 * if ishuffle: * filtdict['shuffle']=True * if ifletcher32: # <<<<<<<<<<<<<< @@ -40946,7 +40946,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4 __pyx_t_3 = (__pyx_v_ifletcher32 != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":2939 + /* "netCDF4/_netCDF4.pyx":2939 * filtdict['shuffle']=True * if ifletcher32: * filtdict['fletcher32']=True # <<<<<<<<<<<<<< @@ -40958,7 +40958,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4 } __pyx_L16:; - /* "netCDF4.pyx":2940 + /* "netCDF4/_netCDF4.pyx":2940 * if ifletcher32: * filtdict['fletcher32']=True * return filtdict # <<<<<<<<<<<<<< @@ -40970,7 +40970,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4 __pyx_r = __pyx_v_filtdict; goto __pyx_L0; - /* "netCDF4.pyx":2917 + /* "netCDF4/_netCDF4.pyx":2917 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * * def filters(self): # <<<<<<<<<<<<<< @@ -40982,7 +40982,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4 __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_5); - __Pyx_AddTraceback("netCDF4.Variable.filters", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.filters", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_filtdict); @@ -40991,7 +40991,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4 return __pyx_r; } -/* "netCDF4.pyx":2942 +/* "netCDF4/_netCDF4.pyx":2942 * return filtdict * * def endian(self): # <<<<<<<<<<<<<< @@ -41000,20 +41000,20 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_24filters(struct __pyx_obj_7netCDF4 */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_27endian(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static char __pyx_doc_7netCDF4_8Variable_26endian[] = "\nendian(self)\n\nreturn endian-ness (little,big,native) of variable (as stored in HDF5 file)."; -static PyObject *__pyx_pw_7netCDF4_8Variable_27endian(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_27endian(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_8Variable_26endian[] = "\nendian(self)\n\nreturn endian-ness (little,big,native) of variable (as stored in HDF5 file)."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_27endian(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("endian (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_26endian(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_26endian(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_26endian(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_26endian(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { int __pyx_v_ierr; int __pyx_v_iendian; PyObject *__pyx_r = NULL; @@ -41028,7 +41028,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_26endian(struct __pyx_obj_7netCDF4_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("endian", 0); - /* "netCDF4.pyx":2948 + /* "netCDF4/_netCDF4.pyx":2948 * return endian-ness (little,big,native) of variable (as stored in HDF5 file).""" * cdef int ierr, iendian * if self._grp.data_model not in ['NETCDF4_CLASSIC','NETCDF4']: # <<<<<<<<<<<<<< @@ -41050,7 +41050,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_26endian(struct __pyx_obj_7netCDF4_ __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":2949 + /* "netCDF4/_netCDF4.pyx":2949 * cdef int ierr, iendian * if self._grp.data_model not in ['NETCDF4_CLASSIC','NETCDF4']: * return 'native' # <<<<<<<<<<<<<< @@ -41063,7 +41063,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_26endian(struct __pyx_obj_7netCDF4_ goto __pyx_L0; } - /* "netCDF4.pyx":2950 + /* "netCDF4/_netCDF4.pyx":2950 * if self._grp.data_model not in ['NETCDF4_CLASSIC','NETCDF4']: * return 'native' * with nogil: # <<<<<<<<<<<<<< @@ -41077,7 +41077,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_26endian(struct __pyx_obj_7netCDF4_ #endif /*try:*/ { - /* "netCDF4.pyx":2951 + /* "netCDF4/_netCDF4.pyx":2951 * return 'native' * with nogil: * ierr = nc_inq_var_endian(self._grpid, self._varid, &iendian) # <<<<<<<<<<<<<< @@ -41087,7 +41087,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_26endian(struct __pyx_obj_7netCDF4_ __pyx_v_ierr = nc_inq_var_endian(__pyx_v_self->_grpid, __pyx_v_self->_varid, (&__pyx_v_iendian)); } - /* "netCDF4.pyx":2950 + /* "netCDF4/_netCDF4.pyx":2950 * if self._grp.data_model not in ['NETCDF4_CLASSIC','NETCDF4']: * return 'native' * with nogil: # <<<<<<<<<<<<<< @@ -41105,7 +41105,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_26endian(struct __pyx_obj_7netCDF4_ } } - /* "netCDF4.pyx":2952 + /* "netCDF4/_netCDF4.pyx":2952 * with nogil: * ierr = nc_inq_var_endian(self._grpid, self._varid, &iendian) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -41115,7 +41115,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_26endian(struct __pyx_obj_7netCDF4_ __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":2953 + /* "netCDF4/_netCDF4.pyx":2953 * ierr = nc_inq_var_endian(self._grpid, self._varid, &iendian) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -41139,7 +41139,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_26endian(struct __pyx_obj_7netCDF4_ {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2953; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":2956 + /* "netCDF4/_netCDF4.pyx":2956 * if iendian == NC_ENDIAN_LITTLE: * return 'little' * elif iendian == NC_ENDIAN_BIG: # <<<<<<<<<<<<<< @@ -41148,7 +41148,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_26endian(struct __pyx_obj_7netCDF4_ */ switch (__pyx_v_iendian) { - /* "netCDF4.pyx":2954 + /* "netCDF4/_netCDF4.pyx":2954 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * if iendian == NC_ENDIAN_LITTLE: # <<<<<<<<<<<<<< @@ -41157,7 +41157,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_26endian(struct __pyx_obj_7netCDF4_ */ case NC_ENDIAN_LITTLE: - /* "netCDF4.pyx":2955 + /* "netCDF4/_netCDF4.pyx":2955 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * if iendian == NC_ENDIAN_LITTLE: * return 'little' # <<<<<<<<<<<<<< @@ -41170,7 +41170,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_26endian(struct __pyx_obj_7netCDF4_ goto __pyx_L0; break; - /* "netCDF4.pyx":2956 + /* "netCDF4/_netCDF4.pyx":2956 * if iendian == NC_ENDIAN_LITTLE: * return 'little' * elif iendian == NC_ENDIAN_BIG: # <<<<<<<<<<<<<< @@ -41179,7 +41179,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_26endian(struct __pyx_obj_7netCDF4_ */ case NC_ENDIAN_BIG: - /* "netCDF4.pyx":2957 + /* "netCDF4/_netCDF4.pyx":2957 * return 'little' * elif iendian == NC_ENDIAN_BIG: * return 'big' # <<<<<<<<<<<<<< @@ -41193,7 +41193,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_26endian(struct __pyx_obj_7netCDF4_ break; default: - /* "netCDF4.pyx":2959 + /* "netCDF4/_netCDF4.pyx":2959 * return 'big' * else: * return 'native' # <<<<<<<<<<<<<< @@ -41207,7 +41207,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_26endian(struct __pyx_obj_7netCDF4_ break; } - /* "netCDF4.pyx":2942 + /* "netCDF4/_netCDF4.pyx":2942 * return filtdict * * def endian(self): # <<<<<<<<<<<<<< @@ -41219,7 +41219,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_26endian(struct __pyx_obj_7netCDF4_ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_5); - __Pyx_AddTraceback("netCDF4.Variable.endian", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.endian", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -41227,7 +41227,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_26endian(struct __pyx_obj_7netCDF4_ return __pyx_r; } -/* "netCDF4.pyx":2961 +/* "netCDF4/_netCDF4.pyx":2961 * return 'native' * * def chunking(self): # <<<<<<<<<<<<<< @@ -41236,20 +41236,20 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_26endian(struct __pyx_obj_7netCDF4_ */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_29chunking(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static char __pyx_doc_7netCDF4_8Variable_28chunking[] = "\nchunking(self)\n\nreturn variable chunking information. If the dataset is\ndefined to be contiguous (and hence there is no chunking) the word 'contiguous'\nis returned. Otherwise, a sequence with the chunksize for\neach dimension is returned."; -static PyObject *__pyx_pw_7netCDF4_8Variable_29chunking(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_29chunking(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_8Variable_28chunking[] = "\nchunking(self)\n\nreturn variable chunking information. If the dataset is\ndefined to be contiguous (and hence there is no chunking) the word 'contiguous'\nis returned. Otherwise, a sequence with the chunksize for\neach dimension is returned."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_29chunking(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("chunking (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_28chunking(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_28chunking(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_28chunking(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_28chunking(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { int __pyx_v_ierr; int __pyx_v_icontiguous; int __pyx_v_ndims; @@ -41270,7 +41270,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_28chunking(struct __pyx_obj_7netCDF int __pyx_clineno = 0; __Pyx_RefNannySetupContext("chunking", 0); - /* "netCDF4.pyx":2971 + /* "netCDF4/_netCDF4.pyx":2971 * cdef int ierr, icontiguous, ndims * cdef size_t *chunksizesp * if self._grp.data_model not in ['NETCDF4_CLASSIC','NETCDF4']: return None # <<<<<<<<<<<<<< @@ -41297,7 +41297,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_28chunking(struct __pyx_obj_7netCDF goto __pyx_L0; } - /* "netCDF4.pyx":2972 + /* "netCDF4/_netCDF4.pyx":2972 * cdef size_t *chunksizesp * if self._grp.data_model not in ['NETCDF4_CLASSIC','NETCDF4']: return None * ndims = self.ndim # <<<<<<<<<<<<<< @@ -41307,7 +41307,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_28chunking(struct __pyx_obj_7netCDF __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_v_self->ndim); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2972; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_ndims = __pyx_t_4; - /* "netCDF4.pyx":2973 + /* "netCDF4/_netCDF4.pyx":2973 * if self._grp.data_model not in ['NETCDF4_CLASSIC','NETCDF4']: return None * ndims = self.ndim * chunksizesp = malloc(sizeof(size_t) * ndims) # <<<<<<<<<<<<<< @@ -41316,7 +41316,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_28chunking(struct __pyx_obj_7netCDF */ __pyx_v_chunksizesp = ((size_t *)malloc(((sizeof(size_t)) * __pyx_v_ndims))); - /* "netCDF4.pyx":2974 + /* "netCDF4/_netCDF4.pyx":2974 * ndims = self.ndim * chunksizesp = malloc(sizeof(size_t) * ndims) * with nogil: # <<<<<<<<<<<<<< @@ -41330,7 +41330,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_28chunking(struct __pyx_obj_7netCDF #endif /*try:*/ { - /* "netCDF4.pyx":2975 + /* "netCDF4/_netCDF4.pyx":2975 * chunksizesp = malloc(sizeof(size_t) * ndims) * with nogil: * ierr = nc_inq_var_chunking(self._grpid, self._varid, &icontiguous, chunksizesp) # <<<<<<<<<<<<<< @@ -41340,7 +41340,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_28chunking(struct __pyx_obj_7netCDF __pyx_v_ierr = nc_inq_var_chunking(__pyx_v_self->_grpid, __pyx_v_self->_varid, (&__pyx_v_icontiguous), __pyx_v_chunksizesp); } - /* "netCDF4.pyx":2974 + /* "netCDF4/_netCDF4.pyx":2974 * ndims = self.ndim * chunksizesp = malloc(sizeof(size_t) * ndims) * with nogil: # <<<<<<<<<<<<<< @@ -41358,7 +41358,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_28chunking(struct __pyx_obj_7netCDF } } - /* "netCDF4.pyx":2976 + /* "netCDF4/_netCDF4.pyx":2976 * with nogil: * ierr = nc_inq_var_chunking(self._grpid, self._varid, &icontiguous, chunksizesp) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -41368,7 +41368,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_28chunking(struct __pyx_obj_7netCDF __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":2977 + /* "netCDF4/_netCDF4.pyx":2977 * ierr = nc_inq_var_chunking(self._grpid, self._varid, &icontiguous, chunksizesp) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -41392,7 +41392,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_28chunking(struct __pyx_obj_7netCDF {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2977; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":2978 + /* "netCDF4/_netCDF4.pyx":2978 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * chunksizes=[] # <<<<<<<<<<<<<< @@ -41404,7 +41404,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_28chunking(struct __pyx_obj_7netCDF __pyx_v_chunksizes = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":2979 + /* "netCDF4/_netCDF4.pyx":2979 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * chunksizes=[] * for n from 0 <= n < ndims: # <<<<<<<<<<<<<< @@ -41414,7 +41414,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_28chunking(struct __pyx_obj_7netCDF __pyx_t_4 = __pyx_v_ndims; for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_4; __pyx_v_n++) { - /* "netCDF4.pyx":2980 + /* "netCDF4/_netCDF4.pyx":2980 * chunksizes=[] * for n from 0 <= n < ndims: * chunksizes.append(chunksizesp[n]) # <<<<<<<<<<<<<< @@ -41427,7 +41427,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_28chunking(struct __pyx_obj_7netCDF __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } - /* "netCDF4.pyx":2981 + /* "netCDF4/_netCDF4.pyx":2981 * for n from 0 <= n < ndims: * chunksizes.append(chunksizesp[n]) * free(chunksizesp) # <<<<<<<<<<<<<< @@ -41436,7 +41436,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_28chunking(struct __pyx_obj_7netCDF */ free(__pyx_v_chunksizesp); - /* "netCDF4.pyx":2982 + /* "netCDF4/_netCDF4.pyx":2982 * chunksizes.append(chunksizesp[n]) * free(chunksizesp) * if icontiguous: # <<<<<<<<<<<<<< @@ -41446,7 +41446,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_28chunking(struct __pyx_obj_7netCDF __pyx_t_3 = (__pyx_v_icontiguous != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":2983 + /* "netCDF4/_netCDF4.pyx":2983 * free(chunksizesp) * if icontiguous: * return 'contiguous' # <<<<<<<<<<<<<< @@ -41460,7 +41460,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_28chunking(struct __pyx_obj_7netCDF } /*else*/ { - /* "netCDF4.pyx":2985 + /* "netCDF4/_netCDF4.pyx":2985 * return 'contiguous' * else: * return chunksizes # <<<<<<<<<<<<<< @@ -41473,7 +41473,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_28chunking(struct __pyx_obj_7netCDF goto __pyx_L0; } - /* "netCDF4.pyx":2961 + /* "netCDF4/_netCDF4.pyx":2961 * return 'native' * * def chunking(self): # <<<<<<<<<<<<<< @@ -41485,7 +41485,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_28chunking(struct __pyx_obj_7netCDF __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_6); - __Pyx_AddTraceback("netCDF4.Variable.chunking", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.chunking", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_chunksizes); @@ -41494,7 +41494,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_28chunking(struct __pyx_obj_7netCDF return __pyx_r; } -/* "netCDF4.pyx":2987 +/* "netCDF4/_netCDF4.pyx":2987 * return chunksizes * * def get_var_chunk_cache(self): # <<<<<<<<<<<<<< @@ -41503,20 +41503,20 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_28chunking(struct __pyx_obj_7netCDF */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_31get_var_chunk_cache(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static char __pyx_doc_7netCDF4_8Variable_30get_var_chunk_cache[] = "\nget_var_chunk_cache(self)\n\nreturn variable chunk cache information in a tuple (size,nelems,preemption).\nSee netcdf C library documentation for C{nc_get_var_chunk_cache} for\ndetails."; -static PyObject *__pyx_pw_7netCDF4_8Variable_31get_var_chunk_cache(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_31get_var_chunk_cache(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_8Variable_30get_var_chunk_cache[] = "\nget_var_chunk_cache(self)\n\nreturn variable chunk cache information in a tuple (size,nelems,preemption).\nSee netcdf C library documentation for C{nc_get_var_chunk_cache} for\ndetails."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_31get_var_chunk_cache(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("get_var_chunk_cache (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_30get_var_chunk_cache(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_30get_var_chunk_cache(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_30get_var_chunk_cache(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_30get_var_chunk_cache(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { int __pyx_v_ierr; size_t __pyx_v_sizep; size_t __pyx_v_nelemsp; @@ -41536,7 +41536,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_30get_var_chunk_cache(struct __pyx_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("get_var_chunk_cache", 0); - /* "netCDF4.pyx":2997 + /* "netCDF4/_netCDF4.pyx":2997 * cdef size_t sizep, nelemsp * cdef float preemptionp * with nogil: # <<<<<<<<<<<<<< @@ -41550,7 +41550,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_30get_var_chunk_cache(struct __pyx_ #endif /*try:*/ { - /* "netCDF4.pyx":2998 + /* "netCDF4/_netCDF4.pyx":2998 * cdef float preemptionp * with nogil: * ierr = nc_get_var_chunk_cache(self._grpid, self._varid, &sizep, # <<<<<<<<<<<<<< @@ -41560,7 +41560,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_30get_var_chunk_cache(struct __pyx_ __pyx_v_ierr = nc_get_var_chunk_cache(__pyx_v_self->_grpid, __pyx_v_self->_varid, (&__pyx_v_sizep), (&__pyx_v_nelemsp), (&__pyx_v_preemptionp)); } - /* "netCDF4.pyx":2997 + /* "netCDF4/_netCDF4.pyx":2997 * cdef size_t sizep, nelemsp * cdef float preemptionp * with nogil: # <<<<<<<<<<<<<< @@ -41578,7 +41578,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_30get_var_chunk_cache(struct __pyx_ } } - /* "netCDF4.pyx":3000 + /* "netCDF4/_netCDF4.pyx":3000 * ierr = nc_get_var_chunk_cache(self._grpid, self._varid, &sizep, * &nelemsp, &preemptionp) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -41588,7 +41588,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_30get_var_chunk_cache(struct __pyx_ __pyx_t_1 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":3001 + /* "netCDF4/_netCDF4.pyx":3001 * &nelemsp, &preemptionp) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -41612,7 +41612,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_30get_var_chunk_cache(struct __pyx_ {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3001; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3002 + /* "netCDF4/_netCDF4.pyx":3002 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * size = sizep; nelems = nelemsp; preemption = preemptionp # <<<<<<<<<<<<<< @@ -41626,7 +41626,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_30get_var_chunk_cache(struct __pyx_ __pyx_v_preemption = __pyx_t_3; __pyx_t_3 = 0; - /* "netCDF4.pyx":3003 + /* "netCDF4/_netCDF4.pyx":3003 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * size = sizep; nelems = nelemsp; preemption = preemptionp * return (size,nelems,preemption) # <<<<<<<<<<<<<< @@ -41653,7 +41653,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_30get_var_chunk_cache(struct __pyx_ __pyx_t_5 = 0; goto __pyx_L0; - /* "netCDF4.pyx":2987 + /* "netCDF4/_netCDF4.pyx":2987 * return chunksizes * * def get_var_chunk_cache(self): # <<<<<<<<<<<<<< @@ -41666,7 +41666,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_30get_var_chunk_cache(struct __pyx_ __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); - __Pyx_AddTraceback("netCDF4.Variable.get_var_chunk_cache", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.get_var_chunk_cache", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_preemption); @@ -41675,7 +41675,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_30get_var_chunk_cache(struct __pyx_ return __pyx_r; } -/* "netCDF4.pyx":3005 +/* "netCDF4/_netCDF4.pyx":3005 * return (size,nelems,preemption) * * def set_var_chunk_cache(self,size=None,nelems=None,preemption=None): # <<<<<<<<<<<<<< @@ -41684,9 +41684,9 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_30get_var_chunk_cache(struct __pyx_ */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_33set_var_chunk_cache(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_7netCDF4_8Variable_32set_var_chunk_cache[] = "\nset_var_chunk_cache(self,size=None,nelems=None,preemption=None)\n\nchange variable chunk cache settings.\nSee netcdf C library documentation for C{nc_set_var_chunk_cache} for\ndetails."; -static PyObject *__pyx_pw_7netCDF4_8Variable_33set_var_chunk_cache(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_33set_var_chunk_cache(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_8Variable_32set_var_chunk_cache[] = "\nset_var_chunk_cache(self,size=None,nelems=None,preemption=None)\n\nchange variable chunk cache settings.\nSee netcdf C library documentation for C{nc_set_var_chunk_cache} for\ndetails."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_33set_var_chunk_cache(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_size = 0; PyObject *__pyx_v_nelems = 0; PyObject *__pyx_v_preemption = 0; @@ -41750,18 +41750,18 @@ static PyObject *__pyx_pw_7netCDF4_8Variable_33set_var_chunk_cache(PyObject *__p __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("set_var_chunk_cache", 0, 0, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3005; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4.Variable.set_var_chunk_cache", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.set_var_chunk_cache", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_8Variable_32set_var_chunk_cache(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), __pyx_v_size, __pyx_v_nelems, __pyx_v_preemption); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_32set_var_chunk_cache(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), __pyx_v_size, __pyx_v_nelems, __pyx_v_preemption); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_32set_var_chunk_cache(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_size, PyObject *__pyx_v_nelems, PyObject *__pyx_v_preemption) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_32set_var_chunk_cache(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_size, PyObject *__pyx_v_nelems, PyObject *__pyx_v_preemption) { int __pyx_v_ierr; size_t __pyx_v_sizep; size_t __pyx_v_nelemsp; @@ -41787,7 +41787,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_32set_var_chunk_cache(struct __pyx_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_var_chunk_cache", 0); - /* "netCDF4.pyx":3016 + /* "netCDF4/_netCDF4.pyx":3016 * cdef float preemptionp * # reset chunk cache size, leave other parameters unchanged. * size_orig, nelems_orig, preemption_orig = self.get_var_chunk_cache() # <<<<<<<<<<<<<< @@ -41878,7 +41878,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_32set_var_chunk_cache(struct __pyx_ __pyx_v_preemption_orig = __pyx_t_4; __pyx_t_4 = 0; - /* "netCDF4.pyx":3017 + /* "netCDF4/_netCDF4.pyx":3017 * # reset chunk cache size, leave other parameters unchanged. * size_orig, nelems_orig, preemption_orig = self.get_var_chunk_cache() * if size is not None: # <<<<<<<<<<<<<< @@ -41889,7 +41889,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_32set_var_chunk_cache(struct __pyx_ __pyx_t_8 = (__pyx_t_7 != 0); if (__pyx_t_8) { - /* "netCDF4.pyx":3018 + /* "netCDF4/_netCDF4.pyx":3018 * size_orig, nelems_orig, preemption_orig = self.get_var_chunk_cache() * if size is not None: * sizep = size # <<<<<<<<<<<<<< @@ -41902,7 +41902,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_32set_var_chunk_cache(struct __pyx_ } /*else*/ { - /* "netCDF4.pyx":3020 + /* "netCDF4/_netCDF4.pyx":3020 * sizep = size * else: * sizep = size_orig # <<<<<<<<<<<<<< @@ -41914,7 +41914,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_32set_var_chunk_cache(struct __pyx_ } __pyx_L5:; - /* "netCDF4.pyx":3021 + /* "netCDF4/_netCDF4.pyx":3021 * else: * sizep = size_orig * if nelems is not None: # <<<<<<<<<<<<<< @@ -41925,7 +41925,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_32set_var_chunk_cache(struct __pyx_ __pyx_t_7 = (__pyx_t_8 != 0); if (__pyx_t_7) { - /* "netCDF4.pyx":3022 + /* "netCDF4/_netCDF4.pyx":3022 * sizep = size_orig * if nelems is not None: * nelemsp = nelems # <<<<<<<<<<<<<< @@ -41938,7 +41938,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_32set_var_chunk_cache(struct __pyx_ } /*else*/ { - /* "netCDF4.pyx":3024 + /* "netCDF4/_netCDF4.pyx":3024 * nelemsp = nelems * else: * nelemsp = nelems_orig # <<<<<<<<<<<<<< @@ -41950,7 +41950,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_32set_var_chunk_cache(struct __pyx_ } __pyx_L6:; - /* "netCDF4.pyx":3025 + /* "netCDF4/_netCDF4.pyx":3025 * else: * nelemsp = nelems_orig * if preemption is not None: # <<<<<<<<<<<<<< @@ -41961,7 +41961,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_32set_var_chunk_cache(struct __pyx_ __pyx_t_8 = (__pyx_t_7 != 0); if (__pyx_t_8) { - /* "netCDF4.pyx":3026 + /* "netCDF4/_netCDF4.pyx":3026 * nelemsp = nelems_orig * if preemption is not None: * preemptionp = preemption # <<<<<<<<<<<<<< @@ -41974,7 +41974,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_32set_var_chunk_cache(struct __pyx_ } /*else*/ { - /* "netCDF4.pyx":3028 + /* "netCDF4/_netCDF4.pyx":3028 * preemptionp = preemption * else: * preemptionp = preemption_orig # <<<<<<<<<<<<<< @@ -41986,7 +41986,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_32set_var_chunk_cache(struct __pyx_ } __pyx_L7:; - /* "netCDF4.pyx":3029 + /* "netCDF4/_netCDF4.pyx":3029 * else: * preemptionp = preemption_orig * ierr = nc_set_var_chunk_cache(self._grpid, self._varid, sizep, # <<<<<<<<<<<<<< @@ -41995,7 +41995,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_32set_var_chunk_cache(struct __pyx_ */ __pyx_v_ierr = nc_set_var_chunk_cache(__pyx_v_self->_grpid, __pyx_v_self->_varid, __pyx_v_sizep, __pyx_v_nelemsp, __pyx_v_preemptionp); - /* "netCDF4.pyx":3031 + /* "netCDF4/_netCDF4.pyx":3031 * ierr = nc_set_var_chunk_cache(self._grpid, self._varid, sizep, * nelemsp, preemptionp) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -42005,7 +42005,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_32set_var_chunk_cache(struct __pyx_ __pyx_t_8 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_8) { - /* "netCDF4.pyx":3032 + /* "netCDF4/_netCDF4.pyx":3032 * nelemsp, preemptionp) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -42029,7 +42029,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_32set_var_chunk_cache(struct __pyx_ {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3032; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3005 + /* "netCDF4/_netCDF4.pyx":3005 * return (size,nelems,preemption) * * def set_var_chunk_cache(self,size=None,nelems=None,preemption=None): # <<<<<<<<<<<<<< @@ -42046,7 +42046,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_32set_var_chunk_cache(struct __pyx_ __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); - __Pyx_AddTraceback("netCDF4.Variable.set_var_chunk_cache", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.set_var_chunk_cache", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_size_orig); @@ -42057,7 +42057,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_32set_var_chunk_cache(struct __pyx_ return __pyx_r; } -/* "netCDF4.pyx":3034 +/* "netCDF4/_netCDF4.pyx":3034 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * * def __delattr__(self,name): # <<<<<<<<<<<<<< @@ -42066,19 +42066,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_32set_var_chunk_cache(struct __pyx_ */ /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_35__delattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_35__delattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_35__delattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_35__delattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__delattr__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_34__delattr__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_name)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_34__delattr__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_name)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_34__delattr__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_name) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_34__delattr__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_name) { int __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -42092,7 +42092,7 @@ static int __pyx_pf_7netCDF4_8Variable_34__delattr__(struct __pyx_obj_7netCDF4_V int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__delattr__", 0); - /* "netCDF4.pyx":3036 + /* "netCDF4/_netCDF4.pyx":3036 * def __delattr__(self,name): * # if it's a netCDF attribute, remove it * if name not in _private_atts: # <<<<<<<<<<<<<< @@ -42106,7 +42106,7 @@ static int __pyx_pf_7netCDF4_8Variable_34__delattr__(struct __pyx_obj_7netCDF4_V __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":3037 + /* "netCDF4/_netCDF4.pyx":3037 * # if it's a netCDF attribute, remove it * if name not in _private_atts: * self.delncattr(name) # <<<<<<<<<<<<<< @@ -42145,7 +42145,7 @@ static int __pyx_pf_7netCDF4_8Variable_34__delattr__(struct __pyx_obj_7netCDF4_V } /*else*/ { - /* "netCDF4.pyx":3040 + /* "netCDF4/_netCDF4.pyx":3040 * else: * raise AttributeError( * "'%s' is one of the reserved attributes %s, cannot delete. Use delncattr instead." % (name, tuple(_private_atts))) # <<<<<<<<<<<<<< @@ -42169,7 +42169,7 @@ static int __pyx_pf_7netCDF4_8Variable_34__delattr__(struct __pyx_obj_7netCDF4_V __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":3039 + /* "netCDF4/_netCDF4.pyx":3039 * self.delncattr(name) * else: * raise AttributeError( # <<<<<<<<<<<<<< @@ -42190,7 +42190,7 @@ static int __pyx_pf_7netCDF4_8Variable_34__delattr__(struct __pyx_obj_7netCDF4_V } __pyx_L3:; - /* "netCDF4.pyx":3034 + /* "netCDF4/_netCDF4.pyx":3034 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * * def __delattr__(self,name): # <<<<<<<<<<<<<< @@ -42206,14 +42206,14 @@ static int __pyx_pf_7netCDF4_8Variable_34__delattr__(struct __pyx_obj_7netCDF4_V __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); - __Pyx_AddTraceback("netCDF4.Variable.__delattr__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.__delattr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } -/* "netCDF4.pyx":3042 +/* "netCDF4/_netCDF4.pyx":3042 * "'%s' is one of the reserved attributes %s, cannot delete. Use delncattr instead." % (name, tuple(_private_atts))) * * def __setattr__(self,name,value): # <<<<<<<<<<<<<< @@ -42222,19 +42222,19 @@ static int __pyx_pf_7netCDF4_8Variable_34__delattr__(struct __pyx_obj_7netCDF4_V */ /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_37__setattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_37__setattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_37__setattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_37__setattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setattr__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_36__setattr__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_name), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_36__setattr__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_name), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_36__setattr__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_36__setattr__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_name, PyObject *__pyx_v_value) { PyObject *__pyx_v_msg = NULL; int __pyx_r; __Pyx_RefNannyDeclarations @@ -42251,7 +42251,7 @@ static int __pyx_pf_7netCDF4_8Variable_36__setattr__(struct __pyx_obj_7netCDF4_V __Pyx_RefNannySetupContext("__setattr__", 0); __Pyx_INCREF(__pyx_v_value); - /* "netCDF4.pyx":3045 + /* "netCDF4/_netCDF4.pyx":3045 * # if name in _private_atts, it is stored at the python * # level and not in the netCDF file. * if name not in _private_atts: # <<<<<<<<<<<<<< @@ -42265,7 +42265,7 @@ static int __pyx_pf_7netCDF4_8Variable_36__setattr__(struct __pyx_obj_7netCDF4_V __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":3048 + /* "netCDF4/_netCDF4.pyx":3048 * # if setting _FillValue or missing_value, make sure value * # has same type as variable. * if name == '_FillValue': # <<<<<<<<<<<<<< @@ -42275,7 +42275,7 @@ static int __pyx_pf_7netCDF4_8Variable_36__setattr__(struct __pyx_obj_7netCDF4_V __pyx_t_3 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_FillValue, Py_EQ)); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3048; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_3) { - /* "netCDF4.pyx":3049 + /* "netCDF4/_netCDF4.pyx":3049 * # has same type as variable. * if name == '_FillValue': * msg='_FillValue attribute must be set when variable is '+\ # <<<<<<<<<<<<<< @@ -42287,7 +42287,7 @@ static int __pyx_pf_7netCDF4_8Variable_36__setattr__(struct __pyx_obj_7netCDF4_V __pyx_v_msg = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":3051 + /* "netCDF4/_netCDF4.pyx":3051 * msg='_FillValue attribute must be set when variable is '+\ * 'created (using fill_value keyword to createVariable)' * raise AttributeError(msg) # <<<<<<<<<<<<<< @@ -42307,7 +42307,7 @@ static int __pyx_pf_7netCDF4_8Variable_36__setattr__(struct __pyx_obj_7netCDF4_V {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3051; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3058 + /* "netCDF4/_netCDF4.pyx":3058 * # "VLEN or compound variable" * # raise AttributeError(msg) * elif name == 'missing_value' and self._isprimitive: # <<<<<<<<<<<<<< @@ -42325,7 +42325,7 @@ static int __pyx_pf_7netCDF4_8Variable_36__setattr__(struct __pyx_obj_7netCDF4_V __pyx_L5_bool_binop_done:; if (__pyx_t_3) { - /* "netCDF4.pyx":3059 + /* "netCDF4/_netCDF4.pyx":3059 * # raise AttributeError(msg) * elif name == 'missing_value' and self._isprimitive: * value = numpy.array(value, self.dtype) # <<<<<<<<<<<<<< @@ -42370,7 +42370,7 @@ static int __pyx_pf_7netCDF4_8Variable_36__setattr__(struct __pyx_obj_7netCDF4_V } __pyx_L4:; - /* "netCDF4.pyx":3060 + /* "netCDF4/_netCDF4.pyx":3060 * elif name == 'missing_value' and self._isprimitive: * value = numpy.array(value, self.dtype) * self.setncattr(name, value) # <<<<<<<<<<<<<< @@ -42410,7 +42410,7 @@ static int __pyx_pf_7netCDF4_8Variable_36__setattr__(struct __pyx_obj_7netCDF4_V goto __pyx_L3; } - /* "netCDF4.pyx":3061 + /* "netCDF4/_netCDF4.pyx":3061 * value = numpy.array(value, self.dtype) * self.setncattr(name, value) * elif not name.endswith('__'): # <<<<<<<<<<<<<< @@ -42427,7 +42427,7 @@ static int __pyx_pf_7netCDF4_8Variable_36__setattr__(struct __pyx_obj_7netCDF4_V __pyx_t_2 = ((!__pyx_t_3) != 0); if (__pyx_t_2) { - /* "netCDF4.pyx":3062 + /* "netCDF4/_netCDF4.pyx":3062 * self.setncattr(name, value) * elif not name.endswith('__'): * if hasattr(self,name): # <<<<<<<<<<<<<< @@ -42438,7 +42438,7 @@ static int __pyx_pf_7netCDF4_8Variable_36__setattr__(struct __pyx_obj_7netCDF4_V __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":3064 + /* "netCDF4/_netCDF4.pyx":3064 * if hasattr(self,name): * raise AttributeError( * "'%s' is one of the reserved attributes %s, cannot rebind. Use setncattr instead." % (name, tuple(_private_atts))) # <<<<<<<<<<<<<< @@ -42462,7 +42462,7 @@ static int __pyx_pf_7netCDF4_8Variable_36__setattr__(struct __pyx_obj_7netCDF4_V __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "netCDF4.pyx":3063 + /* "netCDF4/_netCDF4.pyx":3063 * elif not name.endswith('__'): * if hasattr(self,name): * raise AttributeError( # <<<<<<<<<<<<<< @@ -42483,7 +42483,7 @@ static int __pyx_pf_7netCDF4_8Variable_36__setattr__(struct __pyx_obj_7netCDF4_V } /*else*/ { - /* "netCDF4.pyx":3066 + /* "netCDF4/_netCDF4.pyx":3066 * "'%s' is one of the reserved attributes %s, cannot rebind. Use setncattr instead." % (name, tuple(_private_atts))) * else: * self.__dict__[name]=value # <<<<<<<<<<<<<< @@ -42499,7 +42499,7 @@ static int __pyx_pf_7netCDF4_8Variable_36__setattr__(struct __pyx_obj_7netCDF4_V } __pyx_L3:; - /* "netCDF4.pyx":3042 + /* "netCDF4/_netCDF4.pyx":3042 * "'%s' is one of the reserved attributes %s, cannot delete. Use delncattr instead." % (name, tuple(_private_atts))) * * def __setattr__(self,name,value): # <<<<<<<<<<<<<< @@ -42515,7 +42515,7 @@ static int __pyx_pf_7netCDF4_8Variable_36__setattr__(struct __pyx_obj_7netCDF4_V __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); - __Pyx_AddTraceback("netCDF4.Variable.__setattr__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.__setattr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_msg); @@ -42524,7 +42524,7 @@ static int __pyx_pf_7netCDF4_8Variable_36__setattr__(struct __pyx_obj_7netCDF4_V return __pyx_r; } -/* "netCDF4.pyx":3068 +/* "netCDF4/_netCDF4.pyx":3068 * self.__dict__[name]=value * * def __getattr__(self,name): # <<<<<<<<<<<<<< @@ -42533,19 +42533,19 @@ static int __pyx_pf_7netCDF4_8Variable_36__setattr__(struct __pyx_obj_7netCDF4_V */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_39__getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_39__getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_39__getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_39__getattr__(PyObject *__pyx_v_self, PyObject *__pyx_v_name) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__getattr__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_38__getattr__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_name)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_38__getattr__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_name)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_38__getattr__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_name) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_38__getattr__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_name) { PyObject *__pyx_v_names = NULL; PyObject *__pyx_v_values = NULL; PyObject *__pyx_r = NULL; @@ -42567,7 +42567,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_38__getattr__(struct __pyx_obj_7net __Pyx_RefNannySetupContext("__getattr__", 0); __Pyx_INCREF(__pyx_v_name); - /* "netCDF4.pyx":3071 + /* "netCDF4/_netCDF4.pyx":3071 * # if name in _private_atts, it is stored at the python * # level and not in the netCDF file. * if name.startswith('__') and name.endswith('__'): # <<<<<<<<<<<<<< @@ -42597,7 +42597,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_38__getattr__(struct __pyx_obj_7net __pyx_L4_bool_binop_done:; if (__pyx_t_1) { - /* "netCDF4.pyx":3073 + /* "netCDF4/_netCDF4.pyx":3073 * if name.startswith('__') and name.endswith('__'): * # if __dict__ requested, return a dict with netCDF attributes. * if name == '__dict__': # <<<<<<<<<<<<<< @@ -42607,7 +42607,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_38__getattr__(struct __pyx_obj_7net __pyx_t_1 = (__Pyx_PyString_Equals(__pyx_v_name, __pyx_n_s_dict, Py_EQ)); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3073; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":3074 + /* "netCDF4/_netCDF4.pyx":3074 * # if __dict__ requested, return a dict with netCDF attributes. * if name == '__dict__': * names = self.ncattrs() # <<<<<<<<<<<<<< @@ -42637,7 +42637,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_38__getattr__(struct __pyx_obj_7net __pyx_v_names = __pyx_t_2; __pyx_t_2 = 0; - /* "netCDF4.pyx":3075 + /* "netCDF4/_netCDF4.pyx":3075 * if name == '__dict__': * names = self.ncattrs() * values = [] # <<<<<<<<<<<<<< @@ -42649,7 +42649,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_38__getattr__(struct __pyx_obj_7net __pyx_v_values = ((PyObject*)__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":3076 + /* "netCDF4/_netCDF4.pyx":3076 * names = self.ncattrs() * values = [] * for name in names: # <<<<<<<<<<<<<< @@ -42696,7 +42696,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_38__getattr__(struct __pyx_obj_7net __Pyx_DECREF_SET(__pyx_v_name, __pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":3077 + /* "netCDF4/_netCDF4.pyx":3077 * values = [] * for name in names: * values.append(_get_att(self._grp, self._varid, name)) # <<<<<<<<<<<<<< @@ -42705,13 +42705,13 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_38__getattr__(struct __pyx_obj_7net */ __pyx_t_3 = __pyx_v_self->_grp; __Pyx_INCREF(__pyx_t_3); - __pyx_t_5 = __pyx_f_7netCDF4__get_att(__pyx_t_3, __pyx_v_self->_varid, __pyx_v_name); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3077; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __pyx_f_7netCDF4_8_netCDF4__get_att(__pyx_t_3, __pyx_v_self->_varid, __pyx_v_name); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3077; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_values, __pyx_t_5); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3077; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "netCDF4.pyx":3076 + /* "netCDF4/_netCDF4.pyx":3076 * names = self.ncattrs() * values = [] * for name in names: # <<<<<<<<<<<<<< @@ -42721,7 +42721,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_38__getattr__(struct __pyx_obj_7net } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":3078 + /* "netCDF4/_netCDF4.pyx":3078 * for name in names: * values.append(_get_att(self._grp, self._varid, name)) * return OrderedDict(zip(names,values)) # <<<<<<<<<<<<<< @@ -42792,7 +42792,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_38__getattr__(struct __pyx_obj_7net } /*else*/ { - /* "netCDF4.pyx":3080 + /* "netCDF4/_netCDF4.pyx":3080 * return OrderedDict(zip(names,values)) * else: * raise AttributeError # <<<<<<<<<<<<<< @@ -42804,7 +42804,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_38__getattr__(struct __pyx_obj_7net } } - /* "netCDF4.pyx":3081 + /* "netCDF4/_netCDF4.pyx":3081 * else: * raise AttributeError * elif name in _private_atts: # <<<<<<<<<<<<<< @@ -42818,7 +42818,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_38__getattr__(struct __pyx_obj_7net __pyx_t_4 = (__pyx_t_1 != 0); if (__pyx_t_4) { - /* "netCDF4.pyx":3082 + /* "netCDF4/_netCDF4.pyx":3082 * raise AttributeError * elif name in _private_atts: * return self.__dict__[name] # <<<<<<<<<<<<<< @@ -42837,7 +42837,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_38__getattr__(struct __pyx_obj_7net } /*else*/ { - /* "netCDF4.pyx":3084 + /* "netCDF4/_netCDF4.pyx":3084 * return self.__dict__[name] * else: * return self.getncattr(name) # <<<<<<<<<<<<<< @@ -42877,7 +42877,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_38__getattr__(struct __pyx_obj_7net goto __pyx_L0; } - /* "netCDF4.pyx":3068 + /* "netCDF4/_netCDF4.pyx":3068 * self.__dict__[name]=value * * def __getattr__(self,name): # <<<<<<<<<<<<<< @@ -42893,7 +42893,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_38__getattr__(struct __pyx_obj_7net __Pyx_XDECREF(__pyx_t_9); __Pyx_XDECREF(__pyx_t_10); __Pyx_XDECREF(__pyx_t_11); - __Pyx_AddTraceback("netCDF4.Variable.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.__getattr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_names); @@ -42904,7 +42904,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_38__getattr__(struct __pyx_obj_7net return __pyx_r; } -/* "netCDF4.pyx":3086 +/* "netCDF4/_netCDF4.pyx":3086 * return self.getncattr(name) * * def renameAttribute(self, oldname, newname): # <<<<<<<<<<<<<< @@ -42913,9 +42913,9 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_38__getattr__(struct __pyx_obj_7net */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_41renameAttribute(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_7netCDF4_8Variable_40renameAttribute[] = "\nrenameAttribute(self, oldname, newname)\n\nrename a L{Variable} attribute named C{oldname} to C{newname}."; -static PyObject *__pyx_pw_7netCDF4_8Variable_41renameAttribute(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_41renameAttribute(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_8Variable_40renameAttribute[] = "\nrenameAttribute(self, oldname, newname)\n\nrename a L{Variable} attribute named C{oldname} to C{newname}."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_41renameAttribute(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_oldname = 0; PyObject *__pyx_v_newname = 0; int __pyx_lineno = 0; @@ -42963,18 +42963,18 @@ static PyObject *__pyx_pw_7netCDF4_8Variable_41renameAttribute(PyObject *__pyx_v __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("renameAttribute", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3086; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4.Variable.renameAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.renameAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_8Variable_40renameAttribute(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), __pyx_v_oldname, __pyx_v_newname); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_40renameAttribute(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), __pyx_v_oldname, __pyx_v_newname); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_40renameAttribute(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_oldname, PyObject *__pyx_v_newname) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_40renameAttribute(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_oldname, PyObject *__pyx_v_newname) { int __pyx_v_ierr; char *__pyx_v_oldnamec; char *__pyx_v_newnamec; @@ -42990,19 +42990,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_40renameAttribute(struct __pyx_obj_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("renameAttribute", 0); - /* "netCDF4.pyx":3094 + /* "netCDF4/_netCDF4.pyx":3094 * cdef char *oldnamec * cdef char *newnamec * bytestr = _strencode(oldname) # <<<<<<<<<<<<<< * oldnamec = bytestr * bytestr = _strencode(newname) */ - __pyx_t_1 = __pyx_f_7netCDF4__strencode(__pyx_v_oldname, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3094; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_7netCDF4_8_netCDF4__strencode(__pyx_v_oldname, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3094; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_v_bytestr = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":3095 + /* "netCDF4/_netCDF4.pyx":3095 * cdef char *newnamec * bytestr = _strencode(oldname) * oldnamec = bytestr # <<<<<<<<<<<<<< @@ -43012,19 +43012,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_40renameAttribute(struct __pyx_obj_ __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_v_bytestr); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3095; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_oldnamec = __pyx_t_2; - /* "netCDF4.pyx":3096 + /* "netCDF4/_netCDF4.pyx":3096 * bytestr = _strencode(oldname) * oldnamec = bytestr * bytestr = _strencode(newname) # <<<<<<<<<<<<<< * newnamec = bytestr * ierr = nc_rename_att(self._grpid, self._varid, oldnamec, newnamec) */ - __pyx_t_1 = __pyx_f_7netCDF4__strencode(__pyx_v_newname, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3096; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_7netCDF4_8_netCDF4__strencode(__pyx_v_newname, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3096; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF_SET(__pyx_v_bytestr, __pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":3097 + /* "netCDF4/_netCDF4.pyx":3097 * oldnamec = bytestr * bytestr = _strencode(newname) * newnamec = bytestr # <<<<<<<<<<<<<< @@ -43034,7 +43034,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_40renameAttribute(struct __pyx_obj_ __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_v_bytestr); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3097; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_newnamec = __pyx_t_2; - /* "netCDF4.pyx":3098 + /* "netCDF4/_netCDF4.pyx":3098 * bytestr = _strencode(newname) * newnamec = bytestr * ierr = nc_rename_att(self._grpid, self._varid, oldnamec, newnamec) # <<<<<<<<<<<<<< @@ -43043,7 +43043,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_40renameAttribute(struct __pyx_obj_ */ __pyx_v_ierr = nc_rename_att(__pyx_v_self->_grpid, __pyx_v_self->_varid, __pyx_v_oldnamec, __pyx_v_newnamec); - /* "netCDF4.pyx":3099 + /* "netCDF4/_netCDF4.pyx":3099 * newnamec = bytestr * ierr = nc_rename_att(self._grpid, self._varid, oldnamec, newnamec) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -43053,7 +43053,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_40renameAttribute(struct __pyx_obj_ __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":3100 + /* "netCDF4/_netCDF4.pyx":3100 * ierr = nc_rename_att(self._grpid, self._varid, oldnamec, newnamec) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -43077,7 +43077,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_40renameAttribute(struct __pyx_obj_ {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3100; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3086 + /* "netCDF4/_netCDF4.pyx":3086 * return self.getncattr(name) * * def renameAttribute(self, oldname, newname): # <<<<<<<<<<<<<< @@ -43091,7 +43091,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_40renameAttribute(struct __pyx_obj_ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_4); - __Pyx_AddTraceback("netCDF4.Variable.renameAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.renameAttribute", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_bytestr); @@ -43100,7 +43100,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_40renameAttribute(struct __pyx_obj_ return __pyx_r; } -/* "netCDF4.pyx":3102 +/* "netCDF4/_netCDF4.pyx":3102 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * * def __getitem__(self, elem): # <<<<<<<<<<<<<< @@ -43109,19 +43109,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_40renameAttribute(struct __pyx_obj_ */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_43__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_elem); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_43__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_elem) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_43__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_elem); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_43__getitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_elem) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_42__getitem__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_elem)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_42__getitem__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_elem)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_elem) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_42__getitem__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_elem) { PyObject *__pyx_v_start = NULL; PyObject *__pyx_v_count = NULL; PyObject *__pyx_v_stride = NULL; @@ -43163,7 +43163,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__getitem__", 0); - /* "netCDF4.pyx":3108 + /* "netCDF4/_netCDF4.pyx":3108 * # arguments to the nc_get_var() function, and is much more easy * # to use. * start, count, stride, put_ind = _StartCountStride(elem,self.shape) # <<<<<<<<<<<<<< @@ -43273,7 +43273,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __pyx_v_put_ind = __pyx_t_4; __pyx_t_4 = 0; - /* "netCDF4.pyx":3109 + /* "netCDF4/_netCDF4.pyx":3109 * # to use. * start, count, stride, put_ind = _StartCountStride(elem,self.shape) * datashape = _out_array_shape(count) # <<<<<<<<<<<<<< @@ -43310,7 +43310,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __pyx_v_datashape = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":3110 + /* "netCDF4/_netCDF4.pyx":3110 * start, count, stride, put_ind = _StartCountStride(elem,self.shape) * datashape = _out_array_shape(count) * if self._isvlen: # <<<<<<<<<<<<<< @@ -43320,7 +43320,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_v_self->_isvlen); if (unlikely(__pyx_t_9 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3110; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_9) { - /* "netCDF4.pyx":3111 + /* "netCDF4/_netCDF4.pyx":3111 * datashape = _out_array_shape(count) * if self._isvlen: * data = numpy.empty(datashape, dtype='O') # <<<<<<<<<<<<<< @@ -43351,7 +43351,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net } /*else*/ { - /* "netCDF4.pyx":3113 + /* "netCDF4/_netCDF4.pyx":3113 * data = numpy.empty(datashape, dtype='O') * else: * data = numpy.empty(datashape, dtype=self.dtype) # <<<<<<<<<<<<<< @@ -43381,7 +43381,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net } __pyx_L5:; - /* "netCDF4.pyx":3119 + /* "netCDF4/_netCDF4.pyx":3119 * # The convention used is that for those cases, * # put_ind for this dimension is set to -1 by _StartCountStride. * squeeze = data.ndim * [slice(None),] # <<<<<<<<<<<<<< @@ -43402,7 +43402,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __pyx_v_squeeze = __pyx_t_3; __pyx_t_3 = 0; - /* "netCDF4.pyx":3120 + /* "netCDF4/_netCDF4.pyx":3120 * # put_ind for this dimension is set to -1 by _StartCountStride. * squeeze = data.ndim * [slice(None),] * for i,n in enumerate(put_ind.shape[:-1]): # <<<<<<<<<<<<<< @@ -43464,7 +43464,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __pyx_t_3 = __pyx_t_4; __pyx_t_4 = 0; - /* "netCDF4.pyx":3121 + /* "netCDF4/_netCDF4.pyx":3121 * squeeze = data.ndim * [slice(None),] * for i,n in enumerate(put_ind.shape[:-1]): * if n == 1 and put_ind[...,i].ravel()[0] == -1: # <<<<<<<<<<<<<< @@ -43522,7 +43522,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __pyx_L9_bool_binop_done:; if (__pyx_t_9) { - /* "netCDF4.pyx":3122 + /* "netCDF4/_netCDF4.pyx":3122 * for i,n in enumerate(put_ind.shape[:-1]): * if n == 1 and put_ind[...,i].ravel()[0] == -1: * squeeze[i] = 0 # <<<<<<<<<<<<<< @@ -43534,7 +43534,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net } __pyx_L8:; - /* "netCDF4.pyx":3120 + /* "netCDF4/_netCDF4.pyx":3120 * # put_ind for this dimension is set to -1 by _StartCountStride. * squeeze = data.ndim * [slice(None),] * for i,n in enumerate(put_ind.shape[:-1]): # <<<<<<<<<<<<<< @@ -43545,7 +43545,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":3125 + /* "netCDF4/_netCDF4.pyx":3125 * * # Reshape the arrays so we can iterate over them. * start = start.reshape((-1, self.ndim or 1)) # <<<<<<<<<<<<<< @@ -43603,7 +43603,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __Pyx_DECREF_SET(__pyx_v_start, __pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":3126 + /* "netCDF4/_netCDF4.pyx":3126 * # Reshape the arrays so we can iterate over them. * start = start.reshape((-1, self.ndim or 1)) * count = count.reshape((-1, self.ndim or 1)) # <<<<<<<<<<<<<< @@ -43661,7 +43661,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __Pyx_DECREF_SET(__pyx_v_count, __pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":3127 + /* "netCDF4/_netCDF4.pyx":3127 * start = start.reshape((-1, self.ndim or 1)) * count = count.reshape((-1, self.ndim or 1)) * stride = stride.reshape((-1, self.ndim or 1)) # <<<<<<<<<<<<<< @@ -43719,7 +43719,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __Pyx_DECREF_SET(__pyx_v_stride, __pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":3128 + /* "netCDF4/_netCDF4.pyx":3128 * count = count.reshape((-1, self.ndim or 1)) * stride = stride.reshape((-1, self.ndim or 1)) * put_ind = put_ind.reshape((-1, self.ndim or 1)) # <<<<<<<<<<<<<< @@ -43777,7 +43777,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __Pyx_DECREF_SET(__pyx_v_put_ind, __pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":3131 + /* "netCDF4/_netCDF4.pyx":3131 * * # Fill output array with data chunks. * for (a,b,c,i) in zip(start, count, stride, put_ind): # <<<<<<<<<<<<<< @@ -43929,7 +43929,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":3132 + /* "netCDF4/_netCDF4.pyx":3132 * # Fill output array with data chunks. * for (a,b,c,i) in zip(start, count, stride, put_ind): * datout = self._get(a,b,c) # <<<<<<<<<<<<<< @@ -43971,7 +43971,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __Pyx_XDECREF_SET(__pyx_v_datout, __pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":3133 + /* "netCDF4/_netCDF4.pyx":3133 * for (a,b,c,i) in zip(start, count, stride, put_ind): * datout = self._get(a,b,c) * if not hasattr(datout,'shape') or data.shape == datout.shape: # <<<<<<<<<<<<<< @@ -43998,7 +43998,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __pyx_L24_bool_binop_done:; if (__pyx_t_9) { - /* "netCDF4.pyx":3134 + /* "netCDF4/_netCDF4.pyx":3134 * datout = self._get(a,b,c) * if not hasattr(datout,'shape') or data.shape == datout.shape: * data = datout # <<<<<<<<<<<<<< @@ -44011,7 +44011,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net } /*else*/ { - /* "netCDF4.pyx":3136 + /* "netCDF4/_netCDF4.pyx":3136 * data = datout * else: * shape = getattr(data[tuple(i)], 'shape', ()) # <<<<<<<<<<<<<< @@ -44029,7 +44029,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __Pyx_XDECREF_SET(__pyx_v_shape, __pyx_t_4); __pyx_t_4 = 0; - /* "netCDF4.pyx":3137 + /* "netCDF4/_netCDF4.pyx":3137 * else: * shape = getattr(data[tuple(i)], 'shape', ()) * data[tuple(i)] = datout.reshape(shape) # <<<<<<<<<<<<<< @@ -44071,7 +44071,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net } __pyx_L23:; - /* "netCDF4.pyx":3131 + /* "netCDF4/_netCDF4.pyx":3131 * * # Fill output array with data chunks. * for (a,b,c,i) in zip(start, count, stride, put_ind): # <<<<<<<<<<<<<< @@ -44081,7 +44081,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":3140 + /* "netCDF4/_netCDF4.pyx":3140 * * # Remove extra singleton dimensions. * if hasattr(data,'shape'): # <<<<<<<<<<<<<< @@ -44092,7 +44092,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __pyx_t_14 = (__pyx_t_9 != 0); if (__pyx_t_14) { - /* "netCDF4.pyx":3141 + /* "netCDF4/_netCDF4.pyx":3141 * # Remove extra singleton dimensions. * if hasattr(data,'shape'): * data = data[tuple(squeeze)] # <<<<<<<<<<<<<< @@ -44110,7 +44110,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net } __pyx_L26:; - /* "netCDF4.pyx":3142 + /* "netCDF4/_netCDF4.pyx":3142 * if hasattr(data,'shape'): * data = data[tuple(squeeze)] * if hasattr(data,'ndim') and self.ndim == 0: # <<<<<<<<<<<<<< @@ -44131,7 +44131,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __pyx_L28_bool_binop_done:; if (__pyx_t_14) { - /* "netCDF4.pyx":3145 + /* "netCDF4/_netCDF4.pyx":3145 * # Make sure a numpy scalar is returned instead of a 1-d array of * # length 1. * if data.ndim != 0: data = data[0] # <<<<<<<<<<<<<< @@ -44156,7 +44156,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net } __pyx_L27:; - /* "netCDF4.pyx":3155 + /* "netCDF4/_netCDF4.pyx":3155 * # missing_value/_Fill_Value. * # ignore for compound and vlen datatypes. * try: # check to see if scale_factor and add_offset is valid (issue 176). # <<<<<<<<<<<<<< @@ -44170,7 +44170,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __Pyx_XGOTREF(__pyx_t_17); /*try:*/ { - /* "netCDF4.pyx":3156 + /* "netCDF4/_netCDF4.pyx":3156 * # ignore for compound and vlen datatypes. * try: # check to see if scale_factor and add_offset is valid (issue 176). * if hasattr(self,'scale_factor'): float(self.scale_factor) # <<<<<<<<<<<<<< @@ -44188,7 +44188,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net } __pyx_L39:; - /* "netCDF4.pyx":3157 + /* "netCDF4/_netCDF4.pyx":3157 * try: # check to see if scale_factor and add_offset is valid (issue 176). * if hasattr(self,'scale_factor'): float(self.scale_factor) * if hasattr(self,'add_offset'): float(self.add_offset) # <<<<<<<<<<<<<< @@ -44206,7 +44206,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net } __pyx_L40:; - /* "netCDF4.pyx":3158 + /* "netCDF4/_netCDF4.pyx":3158 * if hasattr(self,'scale_factor'): float(self.scale_factor) * if hasattr(self,'add_offset'): float(self.add_offset) * valid_scaleoffset = True # <<<<<<<<<<<<<< @@ -44228,7 +44228,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":3159 + /* "netCDF4/_netCDF4.pyx":3159 * if hasattr(self,'add_offset'): float(self.add_offset) * valid_scaleoffset = True * except: # <<<<<<<<<<<<<< @@ -44236,13 +44236,13 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net * if self.scale: */ /*except:*/ { - __Pyx_AddTraceback("netCDF4.Variable.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_4, &__pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3159; __pyx_clineno = __LINE__; goto __pyx_L33_except_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_4); __Pyx_GOTREF(__pyx_t_7); - /* "netCDF4.pyx":3160 + /* "netCDF4/_netCDF4.pyx":3160 * valid_scaleoffset = True * except: * valid_scaleoffset = False # <<<<<<<<<<<<<< @@ -44251,7 +44251,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net */ __pyx_v_valid_scaleoffset = 0; - /* "netCDF4.pyx":3161 + /* "netCDF4/_netCDF4.pyx":3161 * except: * valid_scaleoffset = False * if self.scale: # <<<<<<<<<<<<<< @@ -44261,7 +44261,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __pyx_t_14 = __Pyx_PyObject_IsTrue(__pyx_v_self->scale); if (unlikely(__pyx_t_14 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3161; __pyx_clineno = __LINE__; goto __pyx_L33_except_error;} if (__pyx_t_14) { - /* "netCDF4.pyx":3162 + /* "netCDF4/_netCDF4.pyx":3162 * valid_scaleoffset = False * if self.scale: * msg = 'invalid scale_factor or add_offset attribute, no unpacking done...' # <<<<<<<<<<<<<< @@ -44271,7 +44271,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __Pyx_INCREF(__pyx_kp_s_invalid_scale_factor_or_add_offs); __pyx_v_msg = __pyx_kp_s_invalid_scale_factor_or_add_offs; - /* "netCDF4.pyx":3163 + /* "netCDF4/_netCDF4.pyx":3163 * if self.scale: * msg = 'invalid scale_factor or add_offset attribute, no unpacking done...' * warnings.warn(msg) # <<<<<<<<<<<<<< @@ -44331,7 +44331,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __pyx_L38_try_end:; } - /* "netCDF4.pyx":3164 + /* "netCDF4/_netCDF4.pyx":3164 * msg = 'invalid scale_factor or add_offset attribute, no unpacking done...' * warnings.warn(msg) * if self.mask and self._isprimitive: # <<<<<<<<<<<<<< @@ -44349,7 +44349,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __pyx_L45_bool_binop_done:; if (__pyx_t_14) { - /* "netCDF4.pyx":3165 + /* "netCDF4/_netCDF4.pyx":3165 * warnings.warn(msg) * if self.mask and self._isprimitive: * data = self._toma(data) # <<<<<<<<<<<<<< @@ -44389,7 +44389,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net } __pyx_L44:; - /* "netCDF4.pyx":3166 + /* "netCDF4/_netCDF4.pyx":3166 * if self.mask and self._isprimitive: * data = self._toma(data) * if self.scale and self._isprimitive and valid_scaleoffset: # <<<<<<<<<<<<<< @@ -44413,7 +44413,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __pyx_L48_bool_binop_done:; if (__pyx_t_14) { - /* "netCDF4.pyx":3168 + /* "netCDF4/_netCDF4.pyx":3168 * if self.scale and self._isprimitive and valid_scaleoffset: * # if variable has scale_factor and add_offset attributes, rescale. * if hasattr(self, 'scale_factor') and hasattr(self, 'add_offset') and\ # <<<<<<<<<<<<<< @@ -44435,7 +44435,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net goto __pyx_L52_bool_binop_done; } - /* "netCDF4.pyx":3169 + /* "netCDF4/_netCDF4.pyx":3169 * # if variable has scale_factor and add_offset attributes, rescale. * if hasattr(self, 'scale_factor') and hasattr(self, 'add_offset') and\ * (self.add_offset != 0.0 or self.scale_factor != 1.0): # <<<<<<<<<<<<<< @@ -44463,7 +44463,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __pyx_L52_bool_binop_done:; if (__pyx_t_14) { - /* "netCDF4.pyx":3170 + /* "netCDF4/_netCDF4.pyx":3170 * if hasattr(self, 'scale_factor') and hasattr(self, 'add_offset') and\ * (self.add_offset != 0.0 or self.scale_factor != 1.0): * data = data*self.scale_factor + self.add_offset # <<<<<<<<<<<<<< @@ -44486,7 +44486,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net goto __pyx_L51; } - /* "netCDF4.pyx":3172 + /* "netCDF4/_netCDF4.pyx":3172 * data = data*self.scale_factor + self.add_offset * # else if variable has only scale_factor attributes, rescale. * elif hasattr(self, 'scale_factor') and self.scale_factor != 1.0: # <<<<<<<<<<<<<< @@ -44510,7 +44510,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __pyx_L56_bool_binop_done:; if (__pyx_t_14) { - /* "netCDF4.pyx":3173 + /* "netCDF4/_netCDF4.pyx":3173 * # else if variable has only scale_factor attributes, rescale. * elif hasattr(self, 'scale_factor') and self.scale_factor != 1.0: * data = data*self.scale_factor # <<<<<<<<<<<<<< @@ -44527,7 +44527,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net goto __pyx_L51; } - /* "netCDF4.pyx":3175 + /* "netCDF4/_netCDF4.pyx":3175 * data = data*self.scale_factor * # else if variable has only add_offset attributes, rescale. * elif hasattr(self, 'add_offset') and self.add_offset != 0.0: # <<<<<<<<<<<<<< @@ -44551,7 +44551,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __pyx_L58_bool_binop_done:; if (__pyx_t_14) { - /* "netCDF4.pyx":3176 + /* "netCDF4/_netCDF4.pyx":3176 * # else if variable has only add_offset attributes, rescale. * elif hasattr(self, 'add_offset') and self.add_offset != 0.0: * data = data + self.add_offset # <<<<<<<<<<<<<< @@ -44572,7 +44572,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net } __pyx_L47:; - /* "netCDF4.pyx":3177 + /* "netCDF4/_netCDF4.pyx":3177 * elif hasattr(self, 'add_offset') and self.add_offset != 0.0: * data = data + self.add_offset * return data # <<<<<<<<<<<<<< @@ -44584,7 +44584,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __pyx_r = __pyx_v_data; goto __pyx_L0; - /* "netCDF4.pyx":3102 + /* "netCDF4/_netCDF4.pyx":3102 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * * def __getitem__(self, elem): # <<<<<<<<<<<<<< @@ -44601,7 +44601,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_12); - __Pyx_AddTraceback("netCDF4.Variable.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_start); @@ -44624,7 +44624,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net return __pyx_r; } -/* "netCDF4.pyx":3179 +/* "netCDF4/_netCDF4.pyx":3179 * return data * * def _toma(self,data): # <<<<<<<<<<<<<< @@ -44633,19 +44633,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_42__getitem__(struct __pyx_obj_7net */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_45_toma(PyObject *__pyx_v_self, PyObject *__pyx_v_data); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_45_toma(PyObject *__pyx_v_self, PyObject *__pyx_v_data) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_45_toma(PyObject *__pyx_v_self, PyObject *__pyx_v_data); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_45_toma(PyObject *__pyx_v_self, PyObject *__pyx_v_data) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("_toma (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_44_toma(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_data)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_44_toma(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_data)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_data) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_data) { int __pyx_v_ierr; int __pyx_v_no_fill; PyObject *__pyx_v_totalmask = NULL; @@ -44683,7 +44683,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __Pyx_RefNannySetupContext("_toma", 0); __Pyx_INCREF(__pyx_v_data); - /* "netCDF4.pyx":3183 + /* "netCDF4/_netCDF4.pyx":3183 * # private function for creating a masked array, masking missing_values * # and/or _FillValues. * totalmask = numpy.zeros(data.shape, numpy.bool) # <<<<<<<<<<<<<< @@ -44732,7 +44732,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __pyx_v_totalmask = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":3184 + /* "netCDF4/_netCDF4.pyx":3184 * # and/or _FillValues. * totalmask = numpy.zeros(data.shape, numpy.bool) * fill_value = None # <<<<<<<<<<<<<< @@ -44742,7 +44742,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __Pyx_INCREF(Py_None); __pyx_v_fill_value = Py_None; - /* "netCDF4.pyx":3185 + /* "netCDF4/_netCDF4.pyx":3185 * totalmask = numpy.zeros(data.shape, numpy.bool) * fill_value = None * if hasattr(self, 'missing_value'): # <<<<<<<<<<<<<< @@ -44753,7 +44753,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __pyx_t_9 = (__pyx_t_8 != 0); if (__pyx_t_9) { - /* "netCDF4.pyx":3186 + /* "netCDF4/_netCDF4.pyx":3186 * fill_value = None * if hasattr(self, 'missing_value'): * mval = numpy.array(self.missing_value, self.dtype) # <<<<<<<<<<<<<< @@ -44797,7 +44797,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __pyx_v_mval = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":3187 + /* "netCDF4/_netCDF4.pyx":3187 * if hasattr(self, 'missing_value'): * mval = numpy.array(self.missing_value, self.dtype) * if (self.endian() == 'big' and is_native_little) or\ # <<<<<<<<<<<<<< @@ -44841,7 +44841,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V } __pyx_L6_next_or:; - /* "netCDF4.pyx":3188 + /* "netCDF4/_netCDF4.pyx":3188 * mval = numpy.array(self.missing_value, self.dtype) * if (self.endian() == 'big' and is_native_little) or\ * (self.endian() == 'little' and is_native_big): # <<<<<<<<<<<<<< @@ -44883,7 +44883,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __pyx_L5_bool_binop_done:; if (__pyx_t_9) { - /* "netCDF4.pyx":3189 + /* "netCDF4/_netCDF4.pyx":3189 * if (self.endian() == 'big' and is_native_little) or\ * (self.endian() == 'little' and is_native_big): * mval.byteswap(True) # <<<<<<<<<<<<<< @@ -44900,7 +44900,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V } __pyx_L4:; - /* "netCDF4.pyx":3190 + /* "netCDF4/_netCDF4.pyx":3190 * (self.endian() == 'little' and is_native_big): * mval.byteswap(True) * if mval.shape == (): # mval a scalar. # <<<<<<<<<<<<<< @@ -44915,7 +44915,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_9) { - /* "netCDF4.pyx":3191 + /* "netCDF4/_netCDF4.pyx":3191 * mval.byteswap(True) * if mval.shape == (): # mval a scalar. * hasmval = data==mval # <<<<<<<<<<<<<< @@ -44926,7 +44926,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __pyx_v_hasmval = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":3193 + /* "netCDF4/_netCDF4.pyx":3193 * hasmval = data==mval * # is scalar missing value a NaN? * try: # <<<<<<<<<<<<<< @@ -44940,7 +44940,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __Pyx_XGOTREF(__pyx_t_12); /*try:*/ { - /* "netCDF4.pyx":3194 + /* "netCDF4/_netCDF4.pyx":3194 * # is scalar missing value a NaN? * try: * mvalisnan = numpy.isnan(mval) # <<<<<<<<<<<<<< @@ -44992,7 +44992,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":3195 + /* "netCDF4/_netCDF4.pyx":3195 * try: * mvalisnan = numpy.isnan(mval) * except TypeError: # isnan fails on some dtypes (issue 206) # <<<<<<<<<<<<<< @@ -45001,13 +45001,13 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V */ __pyx_t_13 = PyErr_ExceptionMatches(__pyx_builtin_TypeError); if (__pyx_t_13) { - __Pyx_AddTraceback("netCDF4.Variable._toma", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable._toma", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3195; __pyx_clineno = __LINE__; goto __pyx_L12_except_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_3); - /* "netCDF4.pyx":3196 + /* "netCDF4/_netCDF4.pyx":3196 * mvalisnan = numpy.isnan(mval) * except TypeError: # isnan fails on some dtypes (issue 206) * mvalisnan = False # <<<<<<<<<<<<<< @@ -45039,7 +45039,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V } /*else*/ { - /* "netCDF4.pyx":3198 + /* "netCDF4/_netCDF4.pyx":3198 * mvalisnan = False * else: # mval a vector. * hasmval = numpy.zeros(data.shape, numpy.bool) # <<<<<<<<<<<<<< @@ -45088,7 +45088,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __pyx_v_hasmval = __pyx_t_3; __pyx_t_3 = 0; - /* "netCDF4.pyx":3199 + /* "netCDF4/_netCDF4.pyx":3199 * else: # mval a vector. * hasmval = numpy.zeros(data.shape, numpy.bool) * for m in mval: # <<<<<<<<<<<<<< @@ -45135,7 +45135,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __Pyx_XDECREF_SET(__pyx_v_m, __pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":3200 + /* "netCDF4/_netCDF4.pyx":3200 * hasmval = numpy.zeros(data.shape, numpy.bool) * for m in mval: * m = numpy.array(m) # <<<<<<<<<<<<<< @@ -45175,7 +45175,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __Pyx_DECREF_SET(__pyx_v_m, __pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":3201 + /* "netCDF4/_netCDF4.pyx":3201 * for m in mval: * m = numpy.array(m) * hasmval += data == m # <<<<<<<<<<<<<< @@ -45189,7 +45189,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __Pyx_DECREF_SET(__pyx_v_hasmval, __pyx_t_5); __pyx_t_5 = 0; - /* "netCDF4.pyx":3199 + /* "netCDF4/_netCDF4.pyx":3199 * else: # mval a vector. * hasmval = numpy.zeros(data.shape, numpy.bool) * for m in mval: # <<<<<<<<<<<<<< @@ -45201,7 +45201,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V } __pyx_L9:; - /* "netCDF4.pyx":3202 + /* "netCDF4/_netCDF4.pyx":3202 * m = numpy.array(m) * hasmval += data == m * if mval.shape == () and mvalisnan: # <<<<<<<<<<<<<< @@ -45225,7 +45225,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __pyx_L23_bool_binop_done:; if (__pyx_t_9) { - /* "netCDF4.pyx":3203 + /* "netCDF4/_netCDF4.pyx":3203 * hasmval += data == m * if mval.shape == () and mvalisnan: * mask = numpy.isnan(data) # <<<<<<<<<<<<<< @@ -45267,7 +45267,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V goto __pyx_L22; } - /* "netCDF4.pyx":3204 + /* "netCDF4/_netCDF4.pyx":3204 * if mval.shape == () and mvalisnan: * mask = numpy.isnan(data) * elif hasmval.any(): # <<<<<<<<<<<<<< @@ -45298,7 +45298,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_9) { - /* "netCDF4.pyx":3205 + /* "netCDF4/_netCDF4.pyx":3205 * mask = numpy.isnan(data) * elif hasmval.any(): * mask = hasmval # <<<<<<<<<<<<<< @@ -45311,7 +45311,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V } /*else*/ { - /* "netCDF4.pyx":3207 + /* "netCDF4/_netCDF4.pyx":3207 * mask = hasmval * else: * mask = None # <<<<<<<<<<<<<< @@ -45323,7 +45323,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V } __pyx_L22:; - /* "netCDF4.pyx":3208 + /* "netCDF4/_netCDF4.pyx":3208 * else: * mask = None * if mask is not None: # <<<<<<<<<<<<<< @@ -45334,7 +45334,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __pyx_t_8 = (__pyx_t_9 != 0); if (__pyx_t_8) { - /* "netCDF4.pyx":3209 + /* "netCDF4/_netCDF4.pyx":3209 * mask = None * if mask is not None: * fill_value = mval # <<<<<<<<<<<<<< @@ -45344,7 +45344,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __Pyx_INCREF(__pyx_v_mval); __Pyx_DECREF_SET(__pyx_v_fill_value, __pyx_v_mval); - /* "netCDF4.pyx":3210 + /* "netCDF4/_netCDF4.pyx":3210 * if mask is not None: * fill_value = mval * totalmask += mask # <<<<<<<<<<<<<< @@ -45362,7 +45362,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V } __pyx_L3:; - /* "netCDF4.pyx":3211 + /* "netCDF4/_netCDF4.pyx":3211 * fill_value = mval * totalmask += mask * if hasattr(self, '_FillValue'): # <<<<<<<<<<<<<< @@ -45373,7 +45373,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __pyx_t_9 = (__pyx_t_8 != 0); if (__pyx_t_9) { - /* "netCDF4.pyx":3212 + /* "netCDF4/_netCDF4.pyx":3212 * totalmask += mask * if hasattr(self, '_FillValue'): * fval = numpy.array(self._FillValue, self.dtype) # <<<<<<<<<<<<<< @@ -45417,7 +45417,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __pyx_v_fval = __pyx_t_5; __pyx_t_5 = 0; - /* "netCDF4.pyx":3215 + /* "netCDF4/_netCDF4.pyx":3215 * # byte swap the _FillValue if endian-ness of the variable * # is not native. * if (self.endian() == 'big' and is_native_little) or\ # <<<<<<<<<<<<<< @@ -45461,7 +45461,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V } __pyx_L29_next_or:; - /* "netCDF4.pyx":3216 + /* "netCDF4/_netCDF4.pyx":3216 * # is not native. * if (self.endian() == 'big' and is_native_little) or\ * (self.endian() == 'little' and is_native_big): # <<<<<<<<<<<<<< @@ -45503,7 +45503,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __pyx_L28_bool_binop_done:; if (__pyx_t_9) { - /* "netCDF4.pyx":3217 + /* "netCDF4/_netCDF4.pyx":3217 * if (self.endian() == 'big' and is_native_little) or\ * (self.endian() == 'little' and is_native_big): * fval.byteswap(True) # <<<<<<<<<<<<<< @@ -45520,7 +45520,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V } __pyx_L27:; - /* "netCDF4.pyx":3219 + /* "netCDF4/_netCDF4.pyx":3219 * fval.byteswap(True) * # is _FillValue a NaN? * try: # <<<<<<<<<<<<<< @@ -45534,7 +45534,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __Pyx_XGOTREF(__pyx_t_10); /*try:*/ { - /* "netCDF4.pyx":3220 + /* "netCDF4/_netCDF4.pyx":3220 * # is _FillValue a NaN? * try: * fvalisnan = numpy.isnan(fval) # <<<<<<<<<<<<<< @@ -45586,7 +45586,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":3221 + /* "netCDF4/_netCDF4.pyx":3221 * try: * fvalisnan = numpy.isnan(fval) * except: # isnan fails on some dtypes (issue 202) # <<<<<<<<<<<<<< @@ -45594,13 +45594,13 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V * if fvalisnan: */ /*except:*/ { - __Pyx_AddTraceback("netCDF4.Variable._toma", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable._toma", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_4, &__pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3221; __pyx_clineno = __LINE__; goto __pyx_L34_except_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_4); __Pyx_GOTREF(__pyx_t_1); - /* "netCDF4.pyx":3222 + /* "netCDF4/_netCDF4.pyx":3222 * fvalisnan = numpy.isnan(fval) * except: # isnan fails on some dtypes (issue 202) * fvalisnan = False # <<<<<<<<<<<<<< @@ -45628,7 +45628,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __pyx_L39_try_end:; } - /* "netCDF4.pyx":3223 + /* "netCDF4/_netCDF4.pyx":3223 * except: # isnan fails on some dtypes (issue 202) * fvalisnan = False * if fvalisnan: # <<<<<<<<<<<<<< @@ -45638,7 +45638,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_v_fvalisnan); if (unlikely(__pyx_t_9 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3223; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_9) { - /* "netCDF4.pyx":3224 + /* "netCDF4/_netCDF4.pyx":3224 * fvalisnan = False * if fvalisnan: * mask = numpy.isnan(data) # <<<<<<<<<<<<<< @@ -45680,7 +45680,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V goto __pyx_L42; } - /* "netCDF4.pyx":3225 + /* "netCDF4/_netCDF4.pyx":3225 * if fvalisnan: * mask = numpy.isnan(data) * elif (data == fval).any(): # <<<<<<<<<<<<<< @@ -45713,7 +45713,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_9) { - /* "netCDF4.pyx":3226 + /* "netCDF4/_netCDF4.pyx":3226 * mask = numpy.isnan(data) * elif (data == fval).any(): * mask = data==fval # <<<<<<<<<<<<<< @@ -45727,7 +45727,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V } /*else*/ { - /* "netCDF4.pyx":3228 + /* "netCDF4/_netCDF4.pyx":3228 * mask = data==fval * else: * mask = None # <<<<<<<<<<<<<< @@ -45739,7 +45739,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V } __pyx_L42:; - /* "netCDF4.pyx":3229 + /* "netCDF4/_netCDF4.pyx":3229 * else: * mask = None * if mask is not None: # <<<<<<<<<<<<<< @@ -45750,7 +45750,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __pyx_t_8 = (__pyx_t_9 != 0); if (__pyx_t_8) { - /* "netCDF4.pyx":3230 + /* "netCDF4/_netCDF4.pyx":3230 * mask = None * if mask is not None: * if fill_value is None: # <<<<<<<<<<<<<< @@ -45761,7 +45761,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __pyx_t_9 = (__pyx_t_8 != 0); if (__pyx_t_9) { - /* "netCDF4.pyx":3231 + /* "netCDF4/_netCDF4.pyx":3231 * if mask is not None: * if fill_value is None: * fill_value = fval # <<<<<<<<<<<<<< @@ -45774,7 +45774,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V } __pyx_L44:; - /* "netCDF4.pyx":3232 + /* "netCDF4/_netCDF4.pyx":3232 * if fill_value is None: * fill_value = fval * totalmask += mask # <<<<<<<<<<<<<< @@ -45792,7 +45792,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V } /*else*/ { - /* "netCDF4.pyx":3236 + /* "netCDF4/_netCDF4.pyx":3236 * # is disabled. * else: * with nogil: # <<<<<<<<<<<<<< @@ -45806,7 +45806,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V #endif /*try:*/ { - /* "netCDF4.pyx":3237 + /* "netCDF4/_netCDF4.pyx":3237 * else: * with nogil: * ierr = nc_inq_var_fill(self._grpid,self._varid,&no_fill,NULL) # <<<<<<<<<<<<<< @@ -45816,7 +45816,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __pyx_v_ierr = nc_inq_var_fill(__pyx_v_self->_grpid, __pyx_v_self->_varid, (&__pyx_v_no_fill), NULL); } - /* "netCDF4.pyx":3236 + /* "netCDF4/_netCDF4.pyx":3236 * # is disabled. * else: * with nogil: # <<<<<<<<<<<<<< @@ -45834,7 +45834,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V } } - /* "netCDF4.pyx":3238 + /* "netCDF4/_netCDF4.pyx":3238 * with nogil: * ierr = nc_inq_var_fill(self._grpid,self._varid,&no_fill,NULL) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -45844,7 +45844,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __pyx_t_9 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_9) { - /* "netCDF4.pyx":3239 + /* "netCDF4/_netCDF4.pyx":3239 * ierr = nc_inq_var_fill(self._grpid,self._varid,&no_fill,NULL) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -45868,7 +45868,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3239; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3252 + /* "netCDF4/_netCDF4.pyx":3252 * # small to assume one of the values should appear as a missing * # value unless a _FillValue attribute is set explicitly." * if no_fill != 1 and self.dtype.str[1:] not in ['u1','i1']: # <<<<<<<<<<<<<< @@ -45901,7 +45901,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __pyx_L50_bool_binop_done:; if (__pyx_t_9) { - /* "netCDF4.pyx":3253 + /* "netCDF4/_netCDF4.pyx":3253 * # value unless a _FillValue attribute is set explicitly." * if no_fill != 1 and self.dtype.str[1:] not in ['u1','i1']: * fillval = numpy.array(default_fillvals[self.dtype.str[1:]],self.dtype) # <<<<<<<<<<<<<< @@ -45954,7 +45954,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __pyx_v_fillval = __pyx_t_5; __pyx_t_5 = 0; - /* "netCDF4.pyx":3256 + /* "netCDF4/_netCDF4.pyx":3256 * # byte swap the _FillValue if endian-ness of the variable * # is not native. * if (self.endian() == 'big' and is_native_little) or\ # <<<<<<<<<<<<<< @@ -45998,7 +45998,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V } __pyx_L56_next_or:; - /* "netCDF4.pyx":3257 + /* "netCDF4/_netCDF4.pyx":3257 * # is not native. * if (self.endian() == 'big' and is_native_little) or\ * (self.endian() == 'little' and is_native_big): # <<<<<<<<<<<<<< @@ -46040,7 +46040,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __pyx_L55_bool_binop_done:; if (__pyx_t_9) { - /* "netCDF4.pyx":3258 + /* "netCDF4/_netCDF4.pyx":3258 * if (self.endian() == 'big' and is_native_little) or\ * (self.endian() == 'little' and is_native_big): * fillval.byteswap(True) # <<<<<<<<<<<<<< @@ -46057,7 +46057,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V } __pyx_L54:; - /* "netCDF4.pyx":3259 + /* "netCDF4/_netCDF4.pyx":3259 * (self.endian() == 'little' and is_native_big): * fillval.byteswap(True) * has_fillval = data == fillval # <<<<<<<<<<<<<< @@ -46068,7 +46068,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __pyx_v_has_fillval = __pyx_t_2; __pyx_t_2 = 0; - /* "netCDF4.pyx":3262 + /* "netCDF4/_netCDF4.pyx":3262 * # if data is an array scalar, has_fillval will be a boolean. * # in that case convert to an array. * if type(has_fillval) == bool: has_fillval=numpy.asarray(has_fillval) # <<<<<<<<<<<<<< @@ -46115,7 +46115,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V } __pyx_L59:; - /* "netCDF4.pyx":3263 + /* "netCDF4/_netCDF4.pyx":3263 * # in that case convert to an array. * if type(has_fillval) == bool: has_fillval=numpy.asarray(has_fillval) * if has_fillval.any(): # <<<<<<<<<<<<<< @@ -46146,7 +46146,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_9) { - /* "netCDF4.pyx":3264 + /* "netCDF4/_netCDF4.pyx":3264 * if type(has_fillval) == bool: has_fillval=numpy.asarray(has_fillval) * if has_fillval.any(): * mask=data==fillval # <<<<<<<<<<<<<< @@ -46157,7 +46157,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __Pyx_XDECREF_SET(__pyx_v_mask, __pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":3265 + /* "netCDF4/_netCDF4.pyx":3265 * if has_fillval.any(): * mask=data==fillval * if fill_value is None: # <<<<<<<<<<<<<< @@ -46168,7 +46168,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __pyx_t_16 = (__pyx_t_9 != 0); if (__pyx_t_16) { - /* "netCDF4.pyx":3266 + /* "netCDF4/_netCDF4.pyx":3266 * mask=data==fillval * if fill_value is None: * fill_value = fillval # <<<<<<<<<<<<<< @@ -46181,7 +46181,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V } __pyx_L61:; - /* "netCDF4.pyx":3267 + /* "netCDF4/_netCDF4.pyx":3267 * if fill_value is None: * fill_value = fillval * totalmask += mask # <<<<<<<<<<<<<< @@ -46201,7 +46201,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V } __pyx_L26:; - /* "netCDF4.pyx":3271 + /* "netCDF4/_netCDF4.pyx":3271 * # masked. fill_value set to missing_value if it exists, * # otherwise _FillValue. * if fill_value is not None: # <<<<<<<<<<<<<< @@ -46212,7 +46212,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __pyx_t_9 = (__pyx_t_16 != 0); if (__pyx_t_9) { - /* "netCDF4.pyx":3272 + /* "netCDF4/_netCDF4.pyx":3272 * # otherwise _FillValue. * if fill_value is not None: * data = ma.masked_array(data,mask=totalmask,fill_value=fill_value) # <<<<<<<<<<<<<< @@ -46244,7 +46244,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V } __pyx_L62:; - /* "netCDF4.pyx":3273 + /* "netCDF4/_netCDF4.pyx":3273 * if fill_value is not None: * data = ma.masked_array(data,mask=totalmask,fill_value=fill_value) * return data # <<<<<<<<<<<<<< @@ -46256,7 +46256,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __pyx_r = __pyx_v_data; goto __pyx_L0; - /* "netCDF4.pyx":3179 + /* "netCDF4/_netCDF4.pyx":3179 * return data * * def _toma(self,data): # <<<<<<<<<<<<<< @@ -46272,7 +46272,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_7); - __Pyx_AddTraceback("netCDF4.Variable._toma", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable._toma", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF(__pyx_v_totalmask); @@ -46292,7 +46292,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V return __pyx_r; } -/* "netCDF4.pyx":3275 +/* "netCDF4/_netCDF4.pyx":3275 * return data * * def _assign_vlen(self, elem, data): # <<<<<<<<<<<<<< @@ -46301,9 +46301,9 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_44_toma(struct __pyx_obj_7netCDF4_V */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_47_assign_vlen(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_7netCDF4_8Variable_46_assign_vlen[] = "private method to assign data to a single item in a VLEN variable"; -static PyObject *__pyx_pw_7netCDF4_8Variable_47_assign_vlen(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_47_assign_vlen(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_8Variable_46_assign_vlen[] = "private method to assign data to a single item in a VLEN variable"; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_47_assign_vlen(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_elem = 0; PyObject *__pyx_v_data = 0; int __pyx_lineno = 0; @@ -46351,18 +46351,18 @@ static PyObject *__pyx_pw_7netCDF4_8Variable_47_assign_vlen(PyObject *__pyx_v_se __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("_assign_vlen", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3275; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4.Variable._assign_vlen", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable._assign_vlen", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_8Variable_46_assign_vlen(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), __pyx_v_elem, __pyx_v_data); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_46_assign_vlen(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), __pyx_v_elem, __pyx_v_data); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_elem, PyObject *__pyx_v_data) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_elem, PyObject *__pyx_v_data) { size_t __pyx_v_startp[NC_MAX_DIMS]; size_t __pyx_v_countp[NC_MAX_DIMS]; int __pyx_v_ndims; @@ -46397,7 +46397,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __Pyx_RefNannySetupContext("_assign_vlen", 0); __Pyx_INCREF(__pyx_v_elem); - /* "netCDF4.pyx":3283 + /* "netCDF4/_netCDF4.pyx":3283 * cdef char **strdata * cdef ndarray data2 * if not self._isvlen: # <<<<<<<<<<<<<< @@ -46408,7 +46408,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __pyx_t_2 = ((!__pyx_t_1) != 0); if (__pyx_t_2) { - /* "netCDF4.pyx":3284 + /* "netCDF4/_netCDF4.pyx":3284 * cdef ndarray data2 * if not self._isvlen: * raise TypeError('_assign_vlen method only for use with VLEN variables') # <<<<<<<<<<<<<< @@ -46422,7 +46422,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3284; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3285 + /* "netCDF4/_netCDF4.pyx":3285 * if not self._isvlen: * raise TypeError('_assign_vlen method only for use with VLEN variables') * ndims = self.ndim # <<<<<<<<<<<<<< @@ -46432,7 +46432,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_v_self->ndim); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3285; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_ndims = __pyx_t_4; - /* "netCDF4.pyx":3286 + /* "netCDF4/_netCDF4.pyx":3286 * raise TypeError('_assign_vlen method only for use with VLEN variables') * ndims = self.ndim * msg="single element VLEN slices must be specified by integers only" # <<<<<<<<<<<<<< @@ -46442,7 +46442,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __Pyx_INCREF(__pyx_kp_s_single_element_VLEN_slices_must); __pyx_v_msg = __pyx_kp_s_single_element_VLEN_slices_must; - /* "netCDF4.pyx":3289 + /* "netCDF4/_netCDF4.pyx":3289 * # check to see that elem is a tuple of integers. * # handle negative integers. * if isinstance(elem, int): # <<<<<<<<<<<<<< @@ -46453,7 +46453,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __pyx_t_1 = (__pyx_t_2 != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":3290 + /* "netCDF4/_netCDF4.pyx":3290 * # handle negative integers. * if isinstance(elem, int): * if ndims > 1: # <<<<<<<<<<<<<< @@ -46463,7 +46463,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __pyx_t_1 = ((__pyx_v_ndims > 1) != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":3291 + /* "netCDF4/_netCDF4.pyx":3291 * if isinstance(elem, int): * if ndims > 1: * raise IndexError(msg) # <<<<<<<<<<<<<< @@ -46483,7 +46483,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3291; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3292 + /* "netCDF4/_netCDF4.pyx":3292 * if ndims > 1: * raise IndexError(msg) * if elem < 0: # <<<<<<<<<<<<<< @@ -46495,7 +46495,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; if (__pyx_t_1) { - /* "netCDF4.pyx":3293 + /* "netCDF4/_netCDF4.pyx":3293 * raise IndexError(msg) * if elem < 0: * if self.shape[0]+elem >= 0: # <<<<<<<<<<<<<< @@ -46516,7 +46516,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_1) { - /* "netCDF4.pyx":3294 + /* "netCDF4/_netCDF4.pyx":3294 * if elem < 0: * if self.shape[0]+elem >= 0: * elem = self.shape[0]+elem # <<<<<<<<<<<<<< @@ -46537,7 +46537,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne } /*else*/ { - /* "netCDF4.pyx":3296 + /* "netCDF4/_netCDF4.pyx":3296 * elem = self.shape[0]+elem * else: * raise IndexError("Illegal index") # <<<<<<<<<<<<<< @@ -46557,7 +46557,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne goto __pyx_L4; } - /* "netCDF4.pyx":3297 + /* "netCDF4/_netCDF4.pyx":3297 * else: * raise IndexError("Illegal index") * elif isinstance(elem, tuple): # <<<<<<<<<<<<<< @@ -46568,7 +46568,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "netCDF4.pyx":3298 + /* "netCDF4/_netCDF4.pyx":3298 * raise IndexError("Illegal index") * elif isinstance(elem, tuple): * if len(elem) != ndims: # <<<<<<<<<<<<<< @@ -46579,7 +46579,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __pyx_t_2 = ((__pyx_t_6 != __pyx_v_ndims) != 0); if (__pyx_t_2) { - /* "netCDF4.pyx":3299 + /* "netCDF4/_netCDF4.pyx":3299 * elif isinstance(elem, tuple): * if len(elem) != ndims: * raise IndexError("Illegal index") # <<<<<<<<<<<<<< @@ -46593,7 +46593,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3299; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3300 + /* "netCDF4/_netCDF4.pyx":3300 * if len(elem) != ndims: * raise IndexError("Illegal index") * elemnew = [] # <<<<<<<<<<<<<< @@ -46605,7 +46605,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __pyx_v_elemnew = ((PyObject*)__pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":3301 + /* "netCDF4/_netCDF4.pyx":3301 * raise IndexError("Illegal index") * elemnew = [] * for n,e in enumerate(elem): # <<<<<<<<<<<<<< @@ -46655,7 +46655,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __pyx_v_n = __pyx_t_4; __pyx_t_4 = (__pyx_t_4 + 1); - /* "netCDF4.pyx":3302 + /* "netCDF4/_netCDF4.pyx":3302 * elemnew = [] * for n,e in enumerate(elem): * if not isinstance(e, int): # <<<<<<<<<<<<<< @@ -46666,7 +46666,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __pyx_t_1 = ((!(__pyx_t_2 != 0)) != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":3303 + /* "netCDF4/_netCDF4.pyx":3303 * for n,e in enumerate(elem): * if not isinstance(e, int): * raise IndexError(msg) # <<<<<<<<<<<<<< @@ -46686,7 +46686,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3303; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3304 + /* "netCDF4/_netCDF4.pyx":3304 * if not isinstance(e, int): * raise IndexError(msg) * elif e < 0: # <<<<<<<<<<<<<< @@ -46698,7 +46698,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (__pyx_t_1) { - /* "netCDF4.pyx":3305 + /* "netCDF4/_netCDF4.pyx":3305 * raise IndexError(msg) * elif e < 0: * enew = self.shape[n]+e # <<<<<<<<<<<<<< @@ -46716,7 +46716,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __Pyx_XDECREF_SET(__pyx_v_enew, __pyx_t_8); __pyx_t_8 = 0; - /* "netCDF4.pyx":3306 + /* "netCDF4/_netCDF4.pyx":3306 * elif e < 0: * enew = self.shape[n]+e * if enew < 0: # <<<<<<<<<<<<<< @@ -46728,7 +46728,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (__pyx_t_1) { - /* "netCDF4.pyx":3307 + /* "netCDF4/_netCDF4.pyx":3307 * enew = self.shape[n]+e * if enew < 0: * raise IndexError("Illegal index") # <<<<<<<<<<<<<< @@ -46743,7 +46743,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne } /*else*/ { - /* "netCDF4.pyx":3309 + /* "netCDF4/_netCDF4.pyx":3309 * raise IndexError("Illegal index") * else: * elemnew.append(self.shape[n]+e) # <<<<<<<<<<<<<< @@ -46765,7 +46765,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne } /*else*/ { - /* "netCDF4.pyx":3311 + /* "netCDF4/_netCDF4.pyx":3311 * elemnew.append(self.shape[n]+e) * else: * elemnew.append(e) # <<<<<<<<<<<<<< @@ -46776,7 +46776,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne } __pyx_L11:; - /* "netCDF4.pyx":3301 + /* "netCDF4/_netCDF4.pyx":3301 * raise IndexError("Illegal index") * elemnew = [] * for n,e in enumerate(elem): # <<<<<<<<<<<<<< @@ -46786,7 +46786,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne } __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":3312 + /* "netCDF4/_netCDF4.pyx":3312 * else: * elemnew.append(e) * elem = tuple(elemnew) # <<<<<<<<<<<<<< @@ -46801,7 +46801,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne } /*else*/ { - /* "netCDF4.pyx":3314 + /* "netCDF4/_netCDF4.pyx":3314 * elem = tuple(elemnew) * else: * raise IndexError(msg) # <<<<<<<<<<<<<< @@ -46822,7 +46822,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne } __pyx_L4:; - /* "netCDF4.pyx":3316 + /* "netCDF4/_netCDF4.pyx":3316 * raise IndexError(msg) * # set start, count * if isinstance(elem, tuple): # <<<<<<<<<<<<<< @@ -46833,7 +46833,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "netCDF4.pyx":3317 + /* "netCDF4/_netCDF4.pyx":3317 * # set start, count * if isinstance(elem, tuple): * start = list(elem) # <<<<<<<<<<<<<< @@ -46848,7 +46848,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne } /*else*/ { - /* "netCDF4.pyx":3319 + /* "netCDF4/_netCDF4.pyx":3319 * start = list(elem) * else: * start = [elem] # <<<<<<<<<<<<<< @@ -46865,7 +46865,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne } __pyx_L13:; - /* "netCDF4.pyx":3320 + /* "netCDF4/_netCDF4.pyx":3320 * else: * start = [elem] * count = [1]*ndims # <<<<<<<<<<<<<< @@ -46884,7 +46884,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __pyx_v_count = ((PyObject*)__pyx_t_8); __pyx_t_8 = 0; - /* "netCDF4.pyx":3321 + /* "netCDF4/_netCDF4.pyx":3321 * start = [elem] * count = [1]*ndims * for n from 0 <= n < ndims: # <<<<<<<<<<<<<< @@ -46894,7 +46894,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __pyx_t_4 = __pyx_v_ndims; for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_4; __pyx_v_n++) { - /* "netCDF4.pyx":3322 + /* "netCDF4/_netCDF4.pyx":3322 * count = [1]*ndims * for n from 0 <= n < ndims: * startp[n] = start[n] # <<<<<<<<<<<<<< @@ -46907,7 +46907,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; (__pyx_v_startp[__pyx_v_n]) = __pyx_t_10; - /* "netCDF4.pyx":3323 + /* "netCDF4/_netCDF4.pyx":3323 * for n from 0 <= n < ndims: * startp[n] = start[n] * countp[n] = count[n] # <<<<<<<<<<<<<< @@ -46921,7 +46921,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne (__pyx_v_countp[__pyx_v_n]) = __pyx_t_10; } - /* "netCDF4.pyx":3324 + /* "netCDF4/_netCDF4.pyx":3324 * startp[n] = start[n] * countp[n] = count[n] * if self.dtype == str: # VLEN string # <<<<<<<<<<<<<< @@ -46933,7 +46933,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (__pyx_t_2) { - /* "netCDF4.pyx":3325 + /* "netCDF4/_netCDF4.pyx":3325 * countp[n] = count[n] * if self.dtype == str: # VLEN string * strdata = malloc(sizeof(char *)) # <<<<<<<<<<<<<< @@ -46942,19 +46942,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne */ __pyx_v_strdata = ((char **)malloc((sizeof(char *)))); - /* "netCDF4.pyx":3326 + /* "netCDF4/_netCDF4.pyx":3326 * if self.dtype == str: # VLEN string * strdata = malloc(sizeof(char *)) * bytestr = _strencode(data) # <<<<<<<<<<<<<< * strdata[0] = bytestr * ierr = nc_put_vara(self._grpid, self._varid, */ - __pyx_t_8 = __pyx_f_7netCDF4__strencode(__pyx_v_data, NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3326; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_8 = __pyx_f_7netCDF4_8_netCDF4__strencode(__pyx_v_data, NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3326; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_8); __pyx_v_bytestr = __pyx_t_8; __pyx_t_8 = 0; - /* "netCDF4.pyx":3327 + /* "netCDF4/_netCDF4.pyx":3327 * strdata = malloc(sizeof(char *)) * bytestr = _strencode(data) * strdata[0] = bytestr # <<<<<<<<<<<<<< @@ -46964,7 +46964,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __pyx_t_11 = __Pyx_PyObject_AsString(__pyx_v_bytestr); if (unlikely((!__pyx_t_11) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3327; __pyx_clineno = __LINE__; goto __pyx_L1_error;} (__pyx_v_strdata[0]) = __pyx_t_11; - /* "netCDF4.pyx":3328 + /* "netCDF4/_netCDF4.pyx":3328 * bytestr = _strencode(data) * strdata[0] = bytestr * ierr = nc_put_vara(self._grpid, self._varid, # <<<<<<<<<<<<<< @@ -46973,7 +46973,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne */ __pyx_v_ierr = nc_put_vara(__pyx_v_self->_grpid, __pyx_v_self->_varid, __pyx_v_startp, __pyx_v_countp, __pyx_v_strdata); - /* "netCDF4.pyx":3330 + /* "netCDF4/_netCDF4.pyx":3330 * ierr = nc_put_vara(self._grpid, self._varid, * startp, countp, strdata) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -46983,7 +46983,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __pyx_t_2 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_2) { - /* "netCDF4.pyx":3331 + /* "netCDF4/_netCDF4.pyx":3331 * startp, countp, strdata) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -47007,7 +47007,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3331; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3332 + /* "netCDF4/_netCDF4.pyx":3332 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * free(strdata) # <<<<<<<<<<<<<< @@ -47019,7 +47019,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne } /*else*/ { - /* "netCDF4.pyx":3334 + /* "netCDF4/_netCDF4.pyx":3334 * free(strdata) * else: # regular VLEN * if data.dtype != self.dtype: # <<<<<<<<<<<<<< @@ -47034,7 +47034,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_2) { - /* "netCDF4.pyx":3335 + /* "netCDF4/_netCDF4.pyx":3335 * else: # regular VLEN * if data.dtype != self.dtype: * raise TypeError("wrong data type: should be %s, got %s" % (self.dtype,data.dtype)) # <<<<<<<<<<<<<< @@ -47067,20 +47067,20 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3335; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3336 + /* "netCDF4/_netCDF4.pyx":3336 * if data.dtype != self.dtype: * raise TypeError("wrong data type: should be %s, got %s" % (self.dtype,data.dtype)) * data2 = data # <<<<<<<<<<<<<< * vldata = malloc(sizeof(nc_vlen_t)) * vldata[0].len = PyArray_SIZE(data2) */ - if (!(likely(((__pyx_v_data) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_data, __pyx_ptype_7netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3336; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (!(likely(((__pyx_v_data) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_data, __pyx_ptype_7netCDF4_8_netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3336; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_3 = __pyx_v_data; __Pyx_INCREF(__pyx_t_3); __pyx_v_data2 = ((PyArrayObject *)__pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":3337 + /* "netCDF4/_netCDF4.pyx":3337 * raise TypeError("wrong data type: should be %s, got %s" % (self.dtype,data.dtype)) * data2 = data * vldata = malloc(sizeof(nc_vlen_t)) # <<<<<<<<<<<<<< @@ -47089,7 +47089,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne */ __pyx_v_vldata = ((nc_vlen_t *)malloc((sizeof(nc_vlen_t)))); - /* "netCDF4.pyx":3338 + /* "netCDF4/_netCDF4.pyx":3338 * data2 = data * vldata = malloc(sizeof(nc_vlen_t)) * vldata[0].len = PyArray_SIZE(data2) # <<<<<<<<<<<<<< @@ -47098,7 +47098,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne */ (__pyx_v_vldata[0]).len = PyArray_SIZE(__pyx_v_data2); - /* "netCDF4.pyx":3339 + /* "netCDF4/_netCDF4.pyx":3339 * vldata = malloc(sizeof(nc_vlen_t)) * vldata[0].len = PyArray_SIZE(data2) * vldata[0].p = data2.data # <<<<<<<<<<<<<< @@ -47108,7 +47108,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __pyx_t_11 = __pyx_v_data2->data; (__pyx_v_vldata[0]).p = __pyx_t_11; - /* "netCDF4.pyx":3340 + /* "netCDF4/_netCDF4.pyx":3340 * vldata[0].len = PyArray_SIZE(data2) * vldata[0].p = data2.data * ierr = nc_put_vara(self._grpid, self._varid, # <<<<<<<<<<<<<< @@ -47117,7 +47117,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne */ __pyx_v_ierr = nc_put_vara(__pyx_v_self->_grpid, __pyx_v_self->_varid, __pyx_v_startp, __pyx_v_countp, __pyx_v_vldata); - /* "netCDF4.pyx":3342 + /* "netCDF4/_netCDF4.pyx":3342 * ierr = nc_put_vara(self._grpid, self._varid, * startp, countp, vldata) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -47127,7 +47127,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __pyx_t_2 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_2) { - /* "netCDF4.pyx":3343 + /* "netCDF4/_netCDF4.pyx":3343 * startp, countp, vldata) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -47151,7 +47151,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3343; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3344 + /* "netCDF4/_netCDF4.pyx":3344 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * free(vldata) # <<<<<<<<<<<<<< @@ -47162,7 +47162,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne } __pyx_L16:; - /* "netCDF4.pyx":3275 + /* "netCDF4/_netCDF4.pyx":3275 * return data * * def _assign_vlen(self, elem, data): # <<<<<<<<<<<<<< @@ -47177,7 +47177,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_8); - __Pyx_AddTraceback("netCDF4.Variable._assign_vlen", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable._assign_vlen", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_data2); @@ -47194,7 +47194,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne return __pyx_r; } -/* "netCDF4.pyx":3346 +/* "netCDF4/_netCDF4.pyx":3346 * free(vldata) * * def __setitem__(self, elem, data): # <<<<<<<<<<<<<< @@ -47203,19 +47203,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_46_assign_vlen(struct __pyx_obj_7ne */ /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_49__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_elem, PyObject *__pyx_v_data); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_49__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_elem, PyObject *__pyx_v_data) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_49__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_elem, PyObject *__pyx_v_data); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_49__setitem__(PyObject *__pyx_v_self, PyObject *__pyx_v_elem, PyObject *__pyx_v_data) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__setitem__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_48__setitem__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_elem), ((PyObject *)__pyx_v_data)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_48__setitem__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_elem), ((PyObject *)__pyx_v_data)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_elem, PyObject *__pyx_v_data) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_elem, PyObject *__pyx_v_data) { PyObject *__pyx_v_msg = NULL; PyObject *__pyx_v_start = NULL; PyObject *__pyx_v_count = NULL; @@ -47251,7 +47251,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __Pyx_RefNannySetupContext("__setitem__", 0); __Pyx_INCREF(__pyx_v_data); - /* "netCDF4.pyx":3353 + /* "netCDF4/_netCDF4.pyx":3353 * # to use. * * if self._isvlen: # if vlen, should be object array (don't try casting) # <<<<<<<<<<<<<< @@ -47261,7 +47261,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_self->_isvlen); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3353; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":3354 + /* "netCDF4/_netCDF4.pyx":3354 * * if self._isvlen: # if vlen, should be object array (don't try casting) * if self.dtype == str: # <<<<<<<<<<<<<< @@ -47273,7 +47273,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_1) { - /* "netCDF4.pyx":3358 + /* "netCDF4/_netCDF4.pyx":3358 * # assume it is a python string and raise an error * # if it is an array, but not an object array. * if not hasattr(data,'ndim'): # <<<<<<<<<<<<<< @@ -47284,7 +47284,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __pyx_t_3 = ((!(__pyx_t_1 != 0)) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":3359 + /* "netCDF4/_netCDF4.pyx":3359 * # if it is an array, but not an object array. * if not hasattr(data,'ndim'): * self._assign_vlen(elem, data) # <<<<<<<<<<<<<< @@ -47322,7 +47322,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":3360 + /* "netCDF4/_netCDF4.pyx":3360 * if not hasattr(data,'ndim'): * self._assign_vlen(elem, data) * return # <<<<<<<<<<<<<< @@ -47333,7 +47333,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V goto __pyx_L0; } - /* "netCDF4.pyx":3361 + /* "netCDF4/_netCDF4.pyx":3361 * self._assign_vlen(elem, data) * return * elif data.dtype.kind in ['S', 'U']: # <<<<<<<<<<<<<< @@ -47358,7 +47358,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __pyx_t_1 = (__pyx_t_3 != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":3362 + /* "netCDF4/_netCDF4.pyx":3362 * return * elif data.dtype.kind in ['S', 'U']: * data = data.astype(object) # <<<<<<<<<<<<<< @@ -47397,7 +47397,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V goto __pyx_L5; } - /* "netCDF4.pyx":3363 + /* "netCDF4/_netCDF4.pyx":3363 * elif data.dtype.kind in ['S', 'U']: * data = data.astype(object) * elif data.dtype.kind != 'O': # <<<<<<<<<<<<<< @@ -47413,7 +47413,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_1) { - /* "netCDF4.pyx":3364 + /* "netCDF4/_netCDF4.pyx":3364 * data = data.astype(object) * elif data.dtype.kind != 'O': * msg = ('only numpy string, unicode or object arrays can ' # <<<<<<<<<<<<<< @@ -47423,7 +47423,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __Pyx_INCREF(__pyx_kp_s_only_numpy_string_unicode_or_obj); __pyx_v_msg = __pyx_kp_s_only_numpy_string_unicode_or_obj; - /* "netCDF4.pyx":3366 + /* "netCDF4/_netCDF4.pyx":3366 * msg = ('only numpy string, unicode or object arrays can ' * 'be assigned to VLEN str var slices') * raise TypeError(msg) # <<<<<<<<<<<<<< @@ -47447,7 +47447,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V } /*else*/ { - /* "netCDF4.pyx":3371 + /* "netCDF4/_netCDF4.pyx":3371 * # not an object array, assume it represents a single element * # of the vlen var. * if not hasattr(data,'ndim') or data.dtype.kind != 'O': # <<<<<<<<<<<<<< @@ -47472,7 +47472,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __pyx_L9_bool_binop_done:; if (__pyx_t_1) { - /* "netCDF4.pyx":3372 + /* "netCDF4/_netCDF4.pyx":3372 * # of the vlen var. * if not hasattr(data,'ndim') or data.dtype.kind != 'O': * self._assign_vlen(elem, data) # <<<<<<<<<<<<<< @@ -47510,7 +47510,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":3373 + /* "netCDF4/_netCDF4.pyx":3373 * if not hasattr(data,'ndim') or data.dtype.kind != 'O': * self._assign_vlen(elem, data) * return # <<<<<<<<<<<<<< @@ -47526,7 +47526,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V } __pyx_L3:; - /* "netCDF4.pyx":3377 + /* "netCDF4/_netCDF4.pyx":3377 * # A numpy array is needed. Convert if necessary. * # assume it's a numpy or masked array if it has an 'ndim' attribute. * if not hasattr(data,'ndim'): # <<<<<<<<<<<<<< @@ -47537,7 +47537,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __pyx_t_8 = ((!(__pyx_t_1 != 0)) != 0); if (__pyx_t_8) { - /* "netCDF4.pyx":3379 + /* "netCDF4/_netCDF4.pyx":3379 * if not hasattr(data,'ndim'): * # if auto scaling is to be done, don't cast to an integer yet. * if self.scale and self.dtype.kind == 'i' and \ # <<<<<<<<<<<<<< @@ -47558,7 +47558,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V } else { } - /* "netCDF4.pyx":3380 + /* "netCDF4/_netCDF4.pyx":3380 * # if auto scaling is to be done, don't cast to an integer yet. * if self.scale and self.dtype.kind == 'i' and \ * hasattr(self, 'scale_factor') or hasattr(self, 'add_offset'): # <<<<<<<<<<<<<< @@ -47579,7 +47579,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __pyx_L13_bool_binop_done:; if (__pyx_t_8) { - /* "netCDF4.pyx":3381 + /* "netCDF4/_netCDF4.pyx":3381 * if self.scale and self.dtype.kind == 'i' and \ * hasattr(self, 'scale_factor') or hasattr(self, 'add_offset'): * data = numpy.array(data,numpy.float) # <<<<<<<<<<<<<< @@ -47629,7 +47629,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V } /*else*/ { - /* "netCDF4.pyx":3383 + /* "netCDF4/_netCDF4.pyx":3383 * data = numpy.array(data,numpy.float) * else: * data = numpy.array(data,self.dtype) # <<<<<<<<<<<<<< @@ -47676,7 +47676,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V } __pyx_L11:; - /* "netCDF4.pyx":3386 + /* "netCDF4/_netCDF4.pyx":3386 * * start, count, stride, put_ind =\ * _StartCountStride(elem,self.shape,self.dimensions,self._grp,datashape=data.shape,put=True) # <<<<<<<<<<<<<< @@ -47779,7 +47779,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __pyx_L18_unpacking_done:; } - /* "netCDF4.pyx":3385 + /* "netCDF4/_netCDF4.pyx":3385 * data = numpy.array(data,self.dtype) * * start, count, stride, put_ind =\ # <<<<<<<<<<<<<< @@ -47795,7 +47795,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __pyx_v_put_ind = __pyx_t_4; __pyx_t_4 = 0; - /* "netCDF4.pyx":3387 + /* "netCDF4/_netCDF4.pyx":3387 * start, count, stride, put_ind =\ * _StartCountStride(elem,self.shape,self.dimensions,self._grp,datashape=data.shape,put=True) * datashape = _out_array_shape(count) # <<<<<<<<<<<<<< @@ -47832,7 +47832,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __pyx_v_datashape = __pyx_t_9; __pyx_t_9 = 0; - /* "netCDF4.pyx":3391 + /* "netCDF4/_netCDF4.pyx":3391 * # if a numpy scalar, create an array of the right size * # and fill with scalar values. * if data.shape == (): # <<<<<<<<<<<<<< @@ -47847,7 +47847,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_8) { - /* "netCDF4.pyx":3392 + /* "netCDF4/_netCDF4.pyx":3392 * # and fill with scalar values. * if data.shape == (): * data = numpy.tile(data,datashape) # <<<<<<<<<<<<<< @@ -47892,7 +47892,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V } __pyx_L19:; - /* "netCDF4.pyx":3395 + /* "netCDF4/_netCDF4.pyx":3395 * # reshape data array by adding extra singleton dimensions * # if needed to conform with start,count,stride. * if len(data.shape) != len(datashape): # <<<<<<<<<<<<<< @@ -47907,7 +47907,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __pyx_t_8 = ((__pyx_t_6 != __pyx_t_12) != 0); if (__pyx_t_8) { - /* "netCDF4.pyx":3397 + /* "netCDF4/_netCDF4.pyx":3397 * if len(data.shape) != len(datashape): * # create a view so shape in caller is not modified (issue 90) * data = data.view() # <<<<<<<<<<<<<< @@ -47937,7 +47937,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __Pyx_DECREF_SET(__pyx_v_data, __pyx_t_4); __pyx_t_4 = 0; - /* "netCDF4.pyx":3398 + /* "netCDF4/_netCDF4.pyx":3398 * # create a view so shape in caller is not modified (issue 90) * data = data.view() * data.shape = tuple(datashape) # <<<<<<<<<<<<<< @@ -47952,7 +47952,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V } __pyx_L20:; - /* "netCDF4.pyx":3401 + /* "netCDF4/_netCDF4.pyx":3401 * * # Reshape these arrays so we can iterate over them. * start = start.reshape((-1, self.ndim or 1)) # <<<<<<<<<<<<<< @@ -48010,7 +48010,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __Pyx_DECREF_SET(__pyx_v_start, __pyx_t_4); __pyx_t_4 = 0; - /* "netCDF4.pyx":3402 + /* "netCDF4/_netCDF4.pyx":3402 * # Reshape these arrays so we can iterate over them. * start = start.reshape((-1, self.ndim or 1)) * count = count.reshape((-1, self.ndim or 1)) # <<<<<<<<<<<<<< @@ -48068,7 +48068,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __Pyx_DECREF_SET(__pyx_v_count, __pyx_t_4); __pyx_t_4 = 0; - /* "netCDF4.pyx":3403 + /* "netCDF4/_netCDF4.pyx":3403 * start = start.reshape((-1, self.ndim or 1)) * count = count.reshape((-1, self.ndim or 1)) * stride = stride.reshape((-1, self.ndim or 1)) # <<<<<<<<<<<<<< @@ -48126,7 +48126,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __Pyx_DECREF_SET(__pyx_v_stride, __pyx_t_4); __pyx_t_4 = 0; - /* "netCDF4.pyx":3404 + /* "netCDF4/_netCDF4.pyx":3404 * count = count.reshape((-1, self.ndim or 1)) * stride = stride.reshape((-1, self.ndim or 1)) * put_ind = put_ind.reshape((-1, self.ndim or 1)) # <<<<<<<<<<<<<< @@ -48184,7 +48184,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __Pyx_DECREF_SET(__pyx_v_put_ind, __pyx_t_4); __pyx_t_4 = 0; - /* "netCDF4.pyx":3406 + /* "netCDF4/_netCDF4.pyx":3406 * put_ind = put_ind.reshape((-1, self.ndim or 1)) * * if 'least_significant_digit' in self.ncattrs(): # <<<<<<<<<<<<<< @@ -48216,7 +48216,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __pyx_t_1 = (__pyx_t_8 != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":3407 + /* "netCDF4/_netCDF4.pyx":3407 * * if 'least_significant_digit' in self.ncattrs(): * data = _quantize(data,self.least_significant_digit) # <<<<<<<<<<<<<< @@ -48260,7 +48260,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V } __pyx_L29:; - /* "netCDF4.pyx":3416 + /* "netCDF4/_netCDF4.pyx":3416 * # missing_value/_Fill_Value. * # ignore if not a primitive (not compound or vlen) datatype. * if self.mask and self._isprimitive: # <<<<<<<<<<<<<< @@ -48278,7 +48278,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __pyx_L31_bool_binop_done:; if (__pyx_t_1) { - /* "netCDF4.pyx":3419 + /* "netCDF4/_netCDF4.pyx":3419 * # use missing_value as fill value. * # if no missing value set, use _FillValue. * if hasattr(self, 'scale_factor') or hasattr(self, 'add_offset'): # <<<<<<<<<<<<<< @@ -48298,7 +48298,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __pyx_L34_bool_binop_done:; if (__pyx_t_1) { - /* "netCDF4.pyx":3421 + /* "netCDF4/_netCDF4.pyx":3421 * if hasattr(self, 'scale_factor') or hasattr(self, 'add_offset'): * # if not masked, create a masked array. * if not ma.isMA(data): data = self._toma(data) # <<<<<<<<<<<<<< @@ -48378,7 +48378,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V } __pyx_L30:; - /* "netCDF4.pyx":3422 + /* "netCDF4/_netCDF4.pyx":3422 * # if not masked, create a masked array. * if not ma.isMA(data): data = self._toma(data) * if self.scale and self._isprimitive: # <<<<<<<<<<<<<< @@ -48396,7 +48396,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __pyx_L38_bool_binop_done:; if (__pyx_t_8) { - /* "netCDF4.pyx":3424 + /* "netCDF4/_netCDF4.pyx":3424 * if self.scale and self._isprimitive: * # pack non-masked values using scale_factor and add_offset * if hasattr(self, 'scale_factor') and hasattr(self, 'add_offset'): # <<<<<<<<<<<<<< @@ -48416,7 +48416,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __pyx_L41_bool_binop_done:; if (__pyx_t_8) { - /* "netCDF4.pyx":3425 + /* "netCDF4/_netCDF4.pyx":3425 * # pack non-masked values using scale_factor and add_offset * if hasattr(self, 'scale_factor') and hasattr(self, 'add_offset'): * data = (data - self.add_offset)/self.scale_factor # <<<<<<<<<<<<<< @@ -48437,7 +48437,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __Pyx_DECREF_SET(__pyx_v_data, __pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":3426 + /* "netCDF4/_netCDF4.pyx":3426 * if hasattr(self, 'scale_factor') and hasattr(self, 'add_offset'): * data = (data - self.add_offset)/self.scale_factor * if self.dtype.kind == 'i': data = numpy.around(data) # <<<<<<<<<<<<<< @@ -48487,7 +48487,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V goto __pyx_L40; } - /* "netCDF4.pyx":3427 + /* "netCDF4/_netCDF4.pyx":3427 * data = (data - self.add_offset)/self.scale_factor * if self.dtype.kind == 'i': data = numpy.around(data) * elif hasattr(self, 'scale_factor'): # <<<<<<<<<<<<<< @@ -48498,7 +48498,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __pyx_t_1 = (__pyx_t_8 != 0); if (__pyx_t_1) { - /* "netCDF4.pyx":3428 + /* "netCDF4/_netCDF4.pyx":3428 * if self.dtype.kind == 'i': data = numpy.around(data) * elif hasattr(self, 'scale_factor'): * data = data/self.scale_factor # <<<<<<<<<<<<<< @@ -48513,7 +48513,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __Pyx_DECREF_SET(__pyx_v_data, __pyx_t_5); __pyx_t_5 = 0; - /* "netCDF4.pyx":3429 + /* "netCDF4/_netCDF4.pyx":3429 * elif hasattr(self, 'scale_factor'): * data = data/self.scale_factor * if self.dtype.kind == 'i': data = numpy.around(data) # <<<<<<<<<<<<<< @@ -48563,7 +48563,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V goto __pyx_L40; } - /* "netCDF4.pyx":3430 + /* "netCDF4/_netCDF4.pyx":3430 * data = data/self.scale_factor * if self.dtype.kind == 'i': data = numpy.around(data) * elif hasattr(self, 'add_offset'): # <<<<<<<<<<<<<< @@ -48574,7 +48574,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __pyx_t_8 = (__pyx_t_1 != 0); if (__pyx_t_8) { - /* "netCDF4.pyx":3431 + /* "netCDF4/_netCDF4.pyx":3431 * if self.dtype.kind == 'i': data = numpy.around(data) * elif hasattr(self, 'add_offset'): * data = data - self.add_offset # <<<<<<<<<<<<<< @@ -48589,7 +48589,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __Pyx_DECREF_SET(__pyx_v_data, __pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":3432 + /* "netCDF4/_netCDF4.pyx":3432 * elif hasattr(self, 'add_offset'): * data = data - self.add_offset * if self.dtype.kind == 'i': data = numpy.around(data) # <<<<<<<<<<<<<< @@ -48640,7 +48640,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V } __pyx_L40:; - /* "netCDF4.pyx":3433 + /* "netCDF4/_netCDF4.pyx":3433 * data = data - self.add_offset * if self.dtype.kind == 'i': data = numpy.around(data) * if ma.isMA(data): # <<<<<<<<<<<<<< @@ -48681,7 +48681,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_8) { - /* "netCDF4.pyx":3437 + /* "netCDF4/_netCDF4.pyx":3437 * # corresponds to missing values, don't fill masked array - * # just use underlying data instead * if hasattr(self, 'missing_value') and \ # <<<<<<<<<<<<<< @@ -48696,7 +48696,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V goto __pyx_L48_bool_binop_done; } - /* "netCDF4.pyx":3438 + /* "netCDF4/_netCDF4.pyx":3438 * # just use underlying data instead * if hasattr(self, 'missing_value') and \ * numpy.all(numpy.in1d(data.data[data.mask],self.missing_value)): # <<<<<<<<<<<<<< @@ -48782,7 +48782,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __pyx_L48_bool_binop_done:; if (__pyx_t_8) { - /* "netCDF4.pyx":3439 + /* "netCDF4/_netCDF4.pyx":3439 * if hasattr(self, 'missing_value') and \ * numpy.all(numpy.in1d(data.data[data.mask],self.missing_value)): * data = data.data # <<<<<<<<<<<<<< @@ -48797,7 +48797,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V } /*else*/ { - /* "netCDF4.pyx":3441 + /* "netCDF4/_netCDF4.pyx":3441 * data = data.data * else: * if hasattr(self, 'missing_value'): # <<<<<<<<<<<<<< @@ -48808,7 +48808,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __pyx_t_3 = (__pyx_t_8 != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":3445 + /* "netCDF4/_netCDF4.pyx":3445 * # if missing value is a vector, raise an exception * # since we then don't know how to fill in masked values. * if numpy.array(self.missing_value).shape == (): # <<<<<<<<<<<<<< @@ -48857,7 +48857,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; if (__pyx_t_3) { - /* "netCDF4.pyx":3446 + /* "netCDF4/_netCDF4.pyx":3446 * # since we then don't know how to fill in masked values. * if numpy.array(self.missing_value).shape == (): * fillval = self.missing_value # <<<<<<<<<<<<<< @@ -48872,7 +48872,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V } /*else*/ { - /* "netCDF4.pyx":3448 + /* "netCDF4/_netCDF4.pyx":3448 * fillval = self.missing_value * else: * msg="cannot assign fill_value for masked array when missing_value attribute is not a scalar" # <<<<<<<<<<<<<< @@ -48882,7 +48882,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __Pyx_INCREF(__pyx_kp_s_cannot_assign_fill_value_for_mas); __pyx_v_msg = __pyx_kp_s_cannot_assign_fill_value_for_mas; - /* "netCDF4.pyx":3449 + /* "netCDF4/_netCDF4.pyx":3449 * else: * msg="cannot assign fill_value for masked array when missing_value attribute is not a scalar" * raise RuntimeError(msg) # <<<<<<<<<<<<<< @@ -48903,7 +48903,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V } __pyx_L51:; - /* "netCDF4.pyx":3450 + /* "netCDF4/_netCDF4.pyx":3450 * msg="cannot assign fill_value for masked array when missing_value attribute is not a scalar" * raise RuntimeError(msg) * if numpy.array(fillval).shape != (): # <<<<<<<<<<<<<< @@ -48949,7 +48949,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; if (__pyx_t_3) { - /* "netCDF4.pyx":3451 + /* "netCDF4/_netCDF4.pyx":3451 * raise RuntimeError(msg) * if numpy.array(fillval).shape != (): * fillval = fillval[0] # <<<<<<<<<<<<<< @@ -48966,7 +48966,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V goto __pyx_L50; } - /* "netCDF4.pyx":3452 + /* "netCDF4/_netCDF4.pyx":3452 * if numpy.array(fillval).shape != (): * fillval = fillval[0] * elif hasattr(self, '_FillValue'): # <<<<<<<<<<<<<< @@ -48977,7 +48977,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __pyx_t_8 = (__pyx_t_3 != 0); if (__pyx_t_8) { - /* "netCDF4.pyx":3453 + /* "netCDF4/_netCDF4.pyx":3453 * fillval = fillval[0] * elif hasattr(self, '_FillValue'): * fillval = self._FillValue # <<<<<<<<<<<<<< @@ -48992,7 +48992,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V } /*else*/ { - /* "netCDF4.pyx":3455 + /* "netCDF4/_netCDF4.pyx":3455 * fillval = self._FillValue * else: * fillval = default_fillvals[self.dtype.str[1:]] # <<<<<<<<<<<<<< @@ -49015,7 +49015,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V } __pyx_L50:; - /* "netCDF4.pyx":3456 + /* "netCDF4/_netCDF4.pyx":3456 * else: * fillval = default_fillvals[self.dtype.str[1:]] * data = data.filled(fill_value=fillval) # <<<<<<<<<<<<<< @@ -49042,7 +49042,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V } __pyx_L37:; - /* "netCDF4.pyx":3459 + /* "netCDF4/_netCDF4.pyx":3459 * * # Fill output array with data chunks. * for (a,b,c,i) in zip(start, count, stride, put_ind): # <<<<<<<<<<<<<< @@ -49194,7 +49194,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_10); __pyx_t_10 = 0; - /* "netCDF4.pyx":3460 + /* "netCDF4/_netCDF4.pyx":3460 * # Fill output array with data chunks. * for (a,b,c,i) in zip(start, count, stride, put_ind): * dataput = data[tuple(i)] # <<<<<<<<<<<<<< @@ -49209,7 +49209,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __Pyx_XDECREF_SET(__pyx_v_dataput, __pyx_t_10); __pyx_t_10 = 0; - /* "netCDF4.pyx":3461 + /* "netCDF4/_netCDF4.pyx":3461 * for (a,b,c,i) in zip(start, count, stride, put_ind): * dataput = data[tuple(i)] * if dataput.size == 0: continue # nothing to write # <<<<<<<<<<<<<< @@ -49226,7 +49226,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V goto __pyx_L53_continue; } - /* "netCDF4.pyx":3463 + /* "netCDF4/_netCDF4.pyx":3463 * if dataput.size == 0: continue # nothing to write * # convert array scalar to regular array with one element. * if dataput.shape == (): # <<<<<<<<<<<<<< @@ -49241,7 +49241,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; if (__pyx_t_8) { - /* "netCDF4.pyx":3464 + /* "netCDF4/_netCDF4.pyx":3464 * # convert array scalar to regular array with one element. * if dataput.shape == (): * if self._isvlen: # <<<<<<<<<<<<<< @@ -49251,7 +49251,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_v_self->_isvlen); if (unlikely(__pyx_t_8 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3464; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_8) { - /* "netCDF4.pyx":3465 + /* "netCDF4/_netCDF4.pyx":3465 * if dataput.shape == (): * if self._isvlen: * dataput=numpy.array(dataput,'O') # <<<<<<<<<<<<<< @@ -49296,7 +49296,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V } /*else*/ { - /* "netCDF4.pyx":3467 + /* "netCDF4/_netCDF4.pyx":3467 * dataput=numpy.array(dataput,'O') * else: * dataput=numpy.array(dataput,dataput.dtype) # <<<<<<<<<<<<<< @@ -49345,7 +49345,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V } __pyx_L58:; - /* "netCDF4.pyx":3468 + /* "netCDF4/_netCDF4.pyx":3468 * else: * dataput=numpy.array(dataput,dataput.dtype) * self._put(dataput,a,b,c) # <<<<<<<<<<<<<< @@ -49389,7 +49389,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - /* "netCDF4.pyx":3459 + /* "netCDF4/_netCDF4.pyx":3459 * * # Fill output array with data chunks. * for (a,b,c,i) in zip(start, count, stride, put_ind): # <<<<<<<<<<<<<< @@ -49400,7 +49400,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "netCDF4.pyx":3346 + /* "netCDF4/_netCDF4.pyx":3346 * free(vldata) * * def __setitem__(self, elem, data): # <<<<<<<<<<<<<< @@ -49420,7 +49420,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V __Pyx_XDECREF(__pyx_t_10); __Pyx_XDECREF(__pyx_t_13); __Pyx_XDECREF(__pyx_t_14); - __Pyx_AddTraceback("netCDF4.Variable.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.__setitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_msg); @@ -49440,7 +49440,7 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V return __pyx_r; } -/* "netCDF4.pyx":3471 +/* "netCDF4/_netCDF4.pyx":3471 * * * def __len__(self): # <<<<<<<<<<<<<< @@ -49449,19 +49449,19 @@ static int __pyx_pf_7netCDF4_8Variable_48__setitem__(struct __pyx_obj_7netCDF4_V */ /* Python wrapper */ -static Py_ssize_t __pyx_pw_7netCDF4_8Variable_51__len__(PyObject *__pyx_v_self); /*proto*/ -static Py_ssize_t __pyx_pw_7netCDF4_8Variable_51__len__(PyObject *__pyx_v_self) { +static Py_ssize_t __pyx_pw_7netCDF4_8_netCDF4_8Variable_51__len__(PyObject *__pyx_v_self); /*proto*/ +static Py_ssize_t __pyx_pw_7netCDF4_8_netCDF4_8Variable_51__len__(PyObject *__pyx_v_self) { Py_ssize_t __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__len__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_50__len__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_50__len__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static Py_ssize_t __pyx_pf_7netCDF4_8Variable_50__len__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static Py_ssize_t __pyx_pf_7netCDF4_8_netCDF4_8Variable_50__len__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { Py_ssize_t __pyx_r; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -49472,7 +49472,7 @@ static Py_ssize_t __pyx_pf_7netCDF4_8Variable_50__len__(struct __pyx_obj_7netCDF int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__len__", 0); - /* "netCDF4.pyx":3472 + /* "netCDF4/_netCDF4.pyx":3472 * * def __len__(self): * return self.shape[0] # <<<<<<<<<<<<<< @@ -49489,7 +49489,7 @@ static Py_ssize_t __pyx_pf_7netCDF4_8Variable_50__len__(struct __pyx_obj_7netCDF __pyx_r = __pyx_t_3; goto __pyx_L0; - /* "netCDF4.pyx":3471 + /* "netCDF4/_netCDF4.pyx":3471 * * * def __len__(self): # <<<<<<<<<<<<<< @@ -49501,14 +49501,14 @@ static Py_ssize_t __pyx_pf_7netCDF4_8Variable_50__len__(struct __pyx_obj_7netCDF __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); - __Pyx_AddTraceback("netCDF4.Variable.__len__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.__len__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } -/* "netCDF4.pyx":3475 +/* "netCDF4/_netCDF4.pyx":3475 * * * def assignValue(self,val): # <<<<<<<<<<<<<< @@ -49517,20 +49517,20 @@ static Py_ssize_t __pyx_pf_7netCDF4_8Variable_50__len__(struct __pyx_obj_7netCDF */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_53assignValue(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/ -static char __pyx_doc_7netCDF4_8Variable_52assignValue[] = "\nassignValue(self, val)\n\nassign a value to a scalar variable. Provided for compatibility with\nScientific.IO.NetCDF, can also be done by assigning to a slice ([:])."; -static PyObject *__pyx_pw_7netCDF4_8Variable_53assignValue(PyObject *__pyx_v_self, PyObject *__pyx_v_val) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_53assignValue(PyObject *__pyx_v_self, PyObject *__pyx_v_val); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_8Variable_52assignValue[] = "\nassignValue(self, val)\n\nassign a value to a scalar variable. Provided for compatibility with\nScientific.IO.NetCDF, can also be done by assigning to a slice ([:])."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_53assignValue(PyObject *__pyx_v_self, PyObject *__pyx_v_val) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("assignValue (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_52assignValue(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_val)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_52assignValue(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_val)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_52assignValue(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_val) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_52assignValue(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_val) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -49541,7 +49541,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_52assignValue(struct __pyx_obj_7net int __pyx_clineno = 0; __Pyx_RefNannySetupContext("assignValue", 0); - /* "netCDF4.pyx":3481 + /* "netCDF4/_netCDF4.pyx":3481 * assign a value to a scalar variable. Provided for compatibility with * Scientific.IO.NetCDF, can also be done by assigning to a slice ([:]).""" * if len(self.dimensions): # <<<<<<<<<<<<<< @@ -49555,7 +49555,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_52assignValue(struct __pyx_obj_7net __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":3482 + /* "netCDF4/_netCDF4.pyx":3482 * Scientific.IO.NetCDF, can also be done by assigning to a slice ([:]).""" * if len(self.dimensions): * raise IndexError('to assign values to a non-scalar variable, use a slice') # <<<<<<<<<<<<<< @@ -49569,7 +49569,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_52assignValue(struct __pyx_obj_7net {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3482; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3483 + /* "netCDF4/_netCDF4.pyx":3483 * if len(self.dimensions): * raise IndexError('to assign values to a non-scalar variable, use a slice') * self[:]=val # <<<<<<<<<<<<<< @@ -49578,7 +49578,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_52assignValue(struct __pyx_obj_7net */ if (__Pyx_PyObject_SetSlice(((PyObject *)__pyx_v_self), __pyx_v_val, 0, 0, NULL, NULL, &__pyx_slice__83, 0, 0, 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3483; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":3475 + /* "netCDF4/_netCDF4.pyx":3475 * * * def assignValue(self,val): # <<<<<<<<<<<<<< @@ -49591,7 +49591,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_52assignValue(struct __pyx_obj_7net goto __pyx_L0; __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("netCDF4.Variable.assignValue", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.assignValue", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -49599,7 +49599,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_52assignValue(struct __pyx_obj_7net return __pyx_r; } -/* "netCDF4.pyx":3485 +/* "netCDF4/_netCDF4.pyx":3485 * self[:]=val * * def getValue(self): # <<<<<<<<<<<<<< @@ -49608,20 +49608,20 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_52assignValue(struct __pyx_obj_7net */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_55getValue(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static char __pyx_doc_7netCDF4_8Variable_54getValue[] = "\ngetValue(self)\n\nget the value of a scalar variable. Provided for compatibility with\nScientific.IO.NetCDF, can also be done by slicing ([:])."; -static PyObject *__pyx_pw_7netCDF4_8Variable_55getValue(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_55getValue(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_8Variable_54getValue[] = "\ngetValue(self)\n\nget the value of a scalar variable. Provided for compatibility with\nScientific.IO.NetCDF, can also be done by slicing ([:])."; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_55getValue(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("getValue (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_54getValue(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_54getValue(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_54getValue(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_54getValue(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -49632,7 +49632,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_54getValue(struct __pyx_obj_7netCDF int __pyx_clineno = 0; __Pyx_RefNannySetupContext("getValue", 0); - /* "netCDF4.pyx":3491 + /* "netCDF4/_netCDF4.pyx":3491 * get the value of a scalar variable. Provided for compatibility with * Scientific.IO.NetCDF, can also be done by slicing ([:]).""" * if len(self.dimensions): # <<<<<<<<<<<<<< @@ -49646,7 +49646,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_54getValue(struct __pyx_obj_7netCDF __pyx_t_3 = (__pyx_t_2 != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":3492 + /* "netCDF4/_netCDF4.pyx":3492 * Scientific.IO.NetCDF, can also be done by slicing ([:]).""" * if len(self.dimensions): * raise IndexError('to retrieve values from a non-scalar variable, use slicing') # <<<<<<<<<<<<<< @@ -49660,7 +49660,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_54getValue(struct __pyx_obj_7netCDF {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3492; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3493 + /* "netCDF4/_netCDF4.pyx":3493 * if len(self.dimensions): * raise IndexError('to retrieve values from a non-scalar variable, use slicing') * return self[slice(None)] # <<<<<<<<<<<<<< @@ -49674,7 +49674,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_54getValue(struct __pyx_obj_7netCDF __pyx_t_1 = 0; goto __pyx_L0; - /* "netCDF4.pyx":3485 + /* "netCDF4/_netCDF4.pyx":3485 * self[:]=val * * def getValue(self): # <<<<<<<<<<<<<< @@ -49685,7 +49685,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_54getValue(struct __pyx_obj_7netCDF /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("netCDF4.Variable.getValue", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.getValue", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -49693,7 +49693,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_54getValue(struct __pyx_obj_7netCDF return __pyx_r; } -/* "netCDF4.pyx":3495 +/* "netCDF4/_netCDF4.pyx":3495 * return self[slice(None)] * * def set_auto_maskandscale(self,maskandscale): # <<<<<<<<<<<<<< @@ -49702,20 +49702,20 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_54getValue(struct __pyx_obj_7netCDF */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_57set_auto_maskandscale(PyObject *__pyx_v_self, PyObject *__pyx_v_maskandscale); /*proto*/ -static char __pyx_doc_7netCDF4_8Variable_56set_auto_maskandscale[] = "\nset_auto_maskandscale(self,maskandscale)\n\nturn on or off automatic conversion of variable data to and\nfrom masked arrays and automatic packing/unpacking of variable\ndata using C{scale_factor} and C{add_offset} attributes.\n\nIf C{maskandscale} is set to C{True}, when data is read from a variable\nit is converted to a masked array if any of the values are exactly\nequal to the either the netCDF _FillValue or the value specified by the\nmissing_value variable attribute. The fill_value of the masked array\nis set to the missing_value attribute (if it exists), otherwise\nthe netCDF _FillValue attribute (which has a default value\nfor each data type). When data is written to a variable, the masked\narray is converted back to a regular numpy array by replacing all the\nmasked values by the fill_value of the masked array.\n\nIf C{maskandscale} is set to C{True}, and the variable has a\nC{scale_factor} or an C{add_offset} attribute, then data read\nfrom that variable is unpacked using::\n\n data = self.scale_factor*data + self.add_offset\n\nWhen data is written to a variable it is packed using::\n\n data = (data - self.add_offset)/self.scale_factor\n\nIf either scale_factor is present, but add_offset is missing, add_offset\nis assumed zero. If add_offset is present, but scale_factor is missing,\nscale_factor is assumed to be one.\nFor more information on how C{scale_factor} and C{add_offset} can be\nused to provide simple compression, see\nU{http://www.cdc.noaa.gov/cdc/conventions/cdc_netcdf_standard.shtml\n}.\n\nThe default value of C{maskandscale} is C{True}\n(automatic conversions are performed).\n "; -static PyObject *__pyx_pw_7netCDF4_8Variable_57set_auto_maskandscale(PyObject *__pyx_v_self, PyObject *__pyx_v_maskandscale) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_57set_auto_maskandscale(PyObject *__pyx_v_self, PyObject *__pyx_v_maskandscale); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_8Variable_56set_auto_maskandscale[] = "\nset_auto_maskandscale(self,maskandscale)\n\nturn on or off automatic conversion of variable data to and\nfrom masked arrays and automatic packing/unpacking of variable\ndata using C{scale_factor} and C{add_offset} attributes.\n\nIf C{maskandscale} is set to C{True}, when data is read from a variable\nit is converted to a masked array if any of the values are exactly\nequal to the either the netCDF _FillValue or the value specified by the\nmissing_value variable attribute. The fill_value of the masked array\nis set to the missing_value attribute (if it exists), otherwise\nthe netCDF _FillValue attribute (which has a default value\nfor each data type). When data is written to a variable, the masked\narray is converted back to a regular numpy array by replacing all the\nmasked values by the fill_value of the masked array.\n\nIf C{maskandscale} is set to C{True}, and the variable has a\nC{scale_factor} or an C{add_offset} attribute, then data read\nfrom that variable is unpacked using::\n\n data = self.scale_factor*data + self.add_offset\n\nWhen data is written to a variable it is packed using::\n\n data = (data - self.add_offset)/self.scale_factor\n\nIf either scale_factor is present, but add_offset is missing, add_offset\nis assumed zero. If add_offset is present, but scale_factor is missing,\nscale_factor is assumed to be one.\nFor more information on how C{scale_factor} and C{add_offset} can be\nused to provide simple compression, see\nU{http://www.cdc.noaa.gov/cdc/conventions/cdc_netcdf_standard.shtml\n}.\n\nThe default value of C{maskandscale} is C{True}\n(automatic conversions are performed).\n "; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_57set_auto_maskandscale(PyObject *__pyx_v_self, PyObject *__pyx_v_maskandscale) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_auto_maskandscale (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_56set_auto_maskandscale(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_maskandscale)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_56set_auto_maskandscale(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_maskandscale)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_56set_auto_maskandscale(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_maskandscale) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_56set_auto_maskandscale(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_maskandscale) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; @@ -49724,7 +49724,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_56set_auto_maskandscale(struct __py int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_auto_maskandscale", 0); - /* "netCDF4.pyx":3534 + /* "netCDF4/_netCDF4.pyx":3534 * (automatic conversions are performed). * """ * if maskandscale: # <<<<<<<<<<<<<< @@ -49734,7 +49734,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_56set_auto_maskandscale(struct __py __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_maskandscale); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3534; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":3535 + /* "netCDF4/_netCDF4.pyx":3535 * """ * if maskandscale: * self.scale = True # <<<<<<<<<<<<<< @@ -49747,7 +49747,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_56set_auto_maskandscale(struct __py __Pyx_DECREF(__pyx_v_self->scale); __pyx_v_self->scale = Py_True; - /* "netCDF4.pyx":3536 + /* "netCDF4/_netCDF4.pyx":3536 * if maskandscale: * self.scale = True * self.mask = True # <<<<<<<<<<<<<< @@ -49763,7 +49763,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_56set_auto_maskandscale(struct __py } /*else*/ { - /* "netCDF4.pyx":3538 + /* "netCDF4/_netCDF4.pyx":3538 * self.mask = True * else: * self.scale = False # <<<<<<<<<<<<<< @@ -49776,7 +49776,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_56set_auto_maskandscale(struct __py __Pyx_DECREF(__pyx_v_self->scale); __pyx_v_self->scale = Py_False; - /* "netCDF4.pyx":3539 + /* "netCDF4/_netCDF4.pyx":3539 * else: * self.scale = False * self.mask = False # <<<<<<<<<<<<<< @@ -49791,7 +49791,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_56set_auto_maskandscale(struct __py } __pyx_L3:; - /* "netCDF4.pyx":3495 + /* "netCDF4/_netCDF4.pyx":3495 * return self[slice(None)] * * def set_auto_maskandscale(self,maskandscale): # <<<<<<<<<<<<<< @@ -49803,7 +49803,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_56set_auto_maskandscale(struct __py __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; - __Pyx_AddTraceback("netCDF4.Variable.set_auto_maskandscale", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.set_auto_maskandscale", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -49811,7 +49811,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_56set_auto_maskandscale(struct __py return __pyx_r; } -/* "netCDF4.pyx":3541 +/* "netCDF4/_netCDF4.pyx":3541 * self.mask = False * * def set_auto_scale(self,scale): # <<<<<<<<<<<<<< @@ -49820,20 +49820,20 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_56set_auto_maskandscale(struct __py */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_59set_auto_scale(PyObject *__pyx_v_self, PyObject *__pyx_v_scale); /*proto*/ -static char __pyx_doc_7netCDF4_8Variable_58set_auto_scale[] = "\nset_auto_scale(self,scale)\n\nturn on or off automatic packing/unpacking of variable\ndata using C{scale_factor} and C{add_offset} attributes.\n\nIf C{scale} is set to C{True}, and the variable has a\nC{scale_factor} or an C{add_offset} attribute, then data read\nfrom that variable is unpacked using::\n\n data = self.scale_factor*data + self.add_offset\n\nWhen data is written to a variable it is packed using::\n\n data = (data - self.add_offset)/self.scale_factor\n\nIf either scale_factor is present, but add_offset is missing, add_offset\nis assumed zero. If add_offset is present, but scale_factor is missing,\nscale_factor is assumed to be one.\nFor more information on how C{scale_factor} and C{add_offset} can be\nused to provide simple compression, see\nU{http://www.cdc.noaa.gov/cdc/conventions/cdc_netcdf_standard.shtml\n}.\n\nThe default value of C{scale} is C{True}\n(automatic conversions are performed).\n "; -static PyObject *__pyx_pw_7netCDF4_8Variable_59set_auto_scale(PyObject *__pyx_v_self, PyObject *__pyx_v_scale) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_59set_auto_scale(PyObject *__pyx_v_self, PyObject *__pyx_v_scale); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_8Variable_58set_auto_scale[] = "\nset_auto_scale(self,scale)\n\nturn on or off automatic packing/unpacking of variable\ndata using C{scale_factor} and C{add_offset} attributes.\n\nIf C{scale} is set to C{True}, and the variable has a\nC{scale_factor} or an C{add_offset} attribute, then data read\nfrom that variable is unpacked using::\n\n data = self.scale_factor*data + self.add_offset\n\nWhen data is written to a variable it is packed using::\n\n data = (data - self.add_offset)/self.scale_factor\n\nIf either scale_factor is present, but add_offset is missing, add_offset\nis assumed zero. If add_offset is present, but scale_factor is missing,\nscale_factor is assumed to be one.\nFor more information on how C{scale_factor} and C{add_offset} can be\nused to provide simple compression, see\nU{http://www.cdc.noaa.gov/cdc/conventions/cdc_netcdf_standard.shtml\n}.\n\nThe default value of C{scale} is C{True}\n(automatic conversions are performed).\n "; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_59set_auto_scale(PyObject *__pyx_v_self, PyObject *__pyx_v_scale) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_auto_scale (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_58set_auto_scale(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_scale)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_58set_auto_scale(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_scale)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_58set_auto_scale(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_scale) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_58set_auto_scale(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_scale) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; @@ -49842,7 +49842,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_58set_auto_scale(struct __pyx_obj_7 int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_auto_scale", 0); - /* "netCDF4.pyx":3569 + /* "netCDF4/_netCDF4.pyx":3569 * (automatic conversions are performed). * """ * if scale: # <<<<<<<<<<<<<< @@ -49852,7 +49852,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_58set_auto_scale(struct __pyx_obj_7 __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_scale); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3569; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":3570 + /* "netCDF4/_netCDF4.pyx":3570 * """ * if scale: * self.scale = True # <<<<<<<<<<<<<< @@ -49868,7 +49868,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_58set_auto_scale(struct __pyx_obj_7 } /*else*/ { - /* "netCDF4.pyx":3572 + /* "netCDF4/_netCDF4.pyx":3572 * self.scale = True * else: * self.scale = False # <<<<<<<<<<<<<< @@ -49883,7 +49883,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_58set_auto_scale(struct __pyx_obj_7 } __pyx_L3:; - /* "netCDF4.pyx":3541 + /* "netCDF4/_netCDF4.pyx":3541 * self.mask = False * * def set_auto_scale(self,scale): # <<<<<<<<<<<<<< @@ -49895,7 +49895,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_58set_auto_scale(struct __pyx_obj_7 __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; - __Pyx_AddTraceback("netCDF4.Variable.set_auto_scale", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.set_auto_scale", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -49903,7 +49903,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_58set_auto_scale(struct __pyx_obj_7 return __pyx_r; } -/* "netCDF4.pyx":3574 +/* "netCDF4/_netCDF4.pyx":3574 * self.scale = False * * def set_auto_mask(self,mask): # <<<<<<<<<<<<<< @@ -49912,20 +49912,20 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_58set_auto_scale(struct __pyx_obj_7 */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_61set_auto_mask(PyObject *__pyx_v_self, PyObject *__pyx_v_mask); /*proto*/ -static char __pyx_doc_7netCDF4_8Variable_60set_auto_mask[] = "\nset_auto_mask(self,mask)\n\nturn on or off automatic conversion of variable data to and\nfrom masked arrays .\n\nIf C{mask} is set to C{True}, when data is read from a variable\nit is converted to a masked array if any of the values are exactly\nequal to the either the netCDF _FillValue or the value specified by the\nmissing_value variable attribute. The fill_value of the masked array\nis set to the missing_value attribute (if it exists), otherwise\nthe netCDF _FillValue attribute (which has a default value\nfor each data type). When data is written to a variable, the masked\narray is converted back to a regular numpy array by replacing all the\nmasked values by the fill_value of the masked array.\n\nThe default value of C{mask} is C{True}\n(automatic conversions are performed).\n "; -static PyObject *__pyx_pw_7netCDF4_8Variable_61set_auto_mask(PyObject *__pyx_v_self, PyObject *__pyx_v_mask) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_61set_auto_mask(PyObject *__pyx_v_self, PyObject *__pyx_v_mask); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_8Variable_60set_auto_mask[] = "\nset_auto_mask(self,mask)\n\nturn on or off automatic conversion of variable data to and\nfrom masked arrays .\n\nIf C{mask} is set to C{True}, when data is read from a variable\nit is converted to a masked array if any of the values are exactly\nequal to the either the netCDF _FillValue or the value specified by the\nmissing_value variable attribute. The fill_value of the masked array\nis set to the missing_value attribute (if it exists), otherwise\nthe netCDF _FillValue attribute (which has a default value\nfor each data type). When data is written to a variable, the masked\narray is converted back to a regular numpy array by replacing all the\nmasked values by the fill_value of the masked array.\n\nThe default value of C{mask} is C{True}\n(automatic conversions are performed).\n "; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_61set_auto_mask(PyObject *__pyx_v_self, PyObject *__pyx_v_mask) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("set_auto_mask (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_60set_auto_mask(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_mask)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_60set_auto_mask(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_mask)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_60set_auto_mask(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_mask) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_60set_auto_mask(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_mask) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations int __pyx_t_1; @@ -49934,7 +49934,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_60set_auto_mask(struct __pyx_obj_7n int __pyx_clineno = 0; __Pyx_RefNannySetupContext("set_auto_mask", 0); - /* "netCDF4.pyx":3594 + /* "netCDF4/_netCDF4.pyx":3594 * (automatic conversions are performed). * """ * if mask: # <<<<<<<<<<<<<< @@ -49944,7 +49944,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_60set_auto_mask(struct __pyx_obj_7n __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_mask); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3594; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_1) { - /* "netCDF4.pyx":3595 + /* "netCDF4/_netCDF4.pyx":3595 * """ * if mask: * self.mask = True # <<<<<<<<<<<<<< @@ -49960,7 +49960,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_60set_auto_mask(struct __pyx_obj_7n } /*else*/ { - /* "netCDF4.pyx":3597 + /* "netCDF4/_netCDF4.pyx":3597 * self.mask = True * else: * self.mask = False # <<<<<<<<<<<<<< @@ -49975,7 +49975,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_60set_auto_mask(struct __pyx_obj_7n } __pyx_L3:; - /* "netCDF4.pyx":3574 + /* "netCDF4/_netCDF4.pyx":3574 * self.scale = False * * def set_auto_mask(self,mask): # <<<<<<<<<<<<<< @@ -49987,7 +49987,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_60set_auto_mask(struct __pyx_obj_7n __pyx_r = Py_None; __Pyx_INCREF(Py_None); goto __pyx_L0; __pyx_L1_error:; - __Pyx_AddTraceback("netCDF4.Variable.set_auto_mask", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable.set_auto_mask", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -49995,7 +49995,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_60set_auto_mask(struct __pyx_obj_7n return __pyx_r; } -/* "netCDF4.pyx":3600 +/* "netCDF4/_netCDF4.pyx":3600 * * * def _put(self,ndarray data,start,count,stride): # <<<<<<<<<<<<<< @@ -50004,9 +50004,9 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_60set_auto_mask(struct __pyx_obj_7n */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_63_put(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_7netCDF4_8Variable_62_put[] = "Private method to put data into a netCDF variable"; -static PyObject *__pyx_pw_7netCDF4_8Variable_63_put(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_63_put(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_8Variable_62_put[] = "Private method to put data into a netCDF variable"; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_63_put(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyArrayObject *__pyx_v_data = 0; PyObject *__pyx_v_start = 0; PyObject *__pyx_v_count = 0; @@ -50072,12 +50072,12 @@ static PyObject *__pyx_pw_7netCDF4_8Variable_63_put(PyObject *__pyx_v_self, PyOb __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("_put", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3600; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4.Variable._put", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable._put", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), __pyx_ptype_7netCDF4_ndarray, 1, "data", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3600; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_r = __pyx_pf_7netCDF4_8Variable_62_put(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), __pyx_v_data, __pyx_v_start, __pyx_v_count, __pyx_v_stride); + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_data), __pyx_ptype_7netCDF4_8_netCDF4_ndarray, 1, "data", 0))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3600; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_62_put(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), __pyx_v_data, __pyx_v_start, __pyx_v_count, __pyx_v_stride); /* function exit code */ goto __pyx_L0; @@ -50088,7 +50088,7 @@ static PyObject *__pyx_pw_7netCDF4_8Variable_63_put(PyObject *__pyx_v_self, PyOb return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyArrayObject *__pyx_v_data, PyObject *__pyx_v_start, PyObject *__pyx_v_count, PyObject *__pyx_v_stride) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyArrayObject *__pyx_v_data, PyObject *__pyx_v_start, PyObject *__pyx_v_count, PyObject *__pyx_v_stride) { int __pyx_v_ierr; int __pyx_v_ndims; npy_intp __pyx_v_totelem; @@ -50129,7 +50129,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __Pyx_RefNannySetupContext("_put", 0); __Pyx_INCREF((PyObject *)__pyx_v_data); - /* "netCDF4.pyx":3613 + /* "netCDF4/_netCDF4.pyx":3613 * cdef nc_vlen_t *vldata * # rank of variable. * ndims = len(self.dimensions) # <<<<<<<<<<<<<< @@ -50142,7 +50142,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_ndims = __pyx_t_2; - /* "netCDF4.pyx":3616 + /* "netCDF4/_netCDF4.pyx":3616 * # make sure data is contiguous. * # if not, make a local copy. * if not PyArray_ISCONTIGUOUS(data): # <<<<<<<<<<<<<< @@ -50152,7 +50152,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __pyx_t_3 = ((!(PyArray_ISCONTIGUOUS(__pyx_v_data) != 0)) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":3617 + /* "netCDF4/_netCDF4.pyx":3617 * # if not, make a local copy. * if not PyArray_ISCONTIGUOUS(data): * data = data.copy() # <<<<<<<<<<<<<< @@ -50179,14 +50179,14 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_7netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3617; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_7netCDF4_8_netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3617; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF_SET(__pyx_v_data, ((PyArrayObject *)__pyx_t_1)); __pyx_t_1 = 0; goto __pyx_L3; } __pyx_L3:; - /* "netCDF4.pyx":3619 + /* "netCDF4/_netCDF4.pyx":3619 * data = data.copy() * # fill up startp,countp,stridep. * totelem = 1 # <<<<<<<<<<<<<< @@ -50195,7 +50195,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va */ __pyx_v_totelem = 1; - /* "netCDF4.pyx":3620 + /* "netCDF4/_netCDF4.pyx":3620 * # fill up startp,countp,stridep. * totelem = 1 * negstride = 0 # <<<<<<<<<<<<<< @@ -50204,7 +50204,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va */ __pyx_v_negstride = 0; - /* "netCDF4.pyx":3621 + /* "netCDF4/_netCDF4.pyx":3621 * totelem = 1 * negstride = 0 * sl = [] # <<<<<<<<<<<<<< @@ -50216,7 +50216,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __pyx_v_sl = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":3622 + /* "netCDF4/_netCDF4.pyx":3622 * negstride = 0 * sl = [] * for n from 0 <= n < ndims: # <<<<<<<<<<<<<< @@ -50230,7 +50230,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __Pyx_XDECREF_SET(__pyx_v_n, __pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":3623 + /* "netCDF4/_netCDF4.pyx":3623 * sl = [] * for n from 0 <= n < ndims: * count[n] = abs(count[n]) # make -1 into +1 # <<<<<<<<<<<<<< @@ -50245,7 +50245,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va if (unlikely(PyObject_SetItem(__pyx_v_count, __pyx_v_n, __pyx_t_4) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3623; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "netCDF4.pyx":3624 + /* "netCDF4/_netCDF4.pyx":3624 * for n from 0 <= n < ndims: * count[n] = abs(count[n]) # make -1 into +1 * countp[n] = count[n] # <<<<<<<<<<<<<< @@ -50259,7 +50259,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __pyx_t_2 = __Pyx_PyIndex_AsSsize_t(__pyx_v_n); if (unlikely((__pyx_t_2 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3624; __pyx_clineno = __LINE__; goto __pyx_L1_error;} (__pyx_v_countp[__pyx_t_2]) = __pyx_t_8; - /* "netCDF4.pyx":3626 + /* "netCDF4/_netCDF4.pyx":3626 * countp[n] = count[n] * # for neg strides, reverse order (then flip that axis after data read in) * if stride[n] < 0: # <<<<<<<<<<<<<< @@ -50274,7 +50274,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_3) { - /* "netCDF4.pyx":3627 + /* "netCDF4/_netCDF4.pyx":3627 * # for neg strides, reverse order (then flip that axis after data read in) * if stride[n] < 0: * negstride = 1 # <<<<<<<<<<<<<< @@ -50283,7 +50283,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va */ __pyx_v_negstride = 1; - /* "netCDF4.pyx":3628 + /* "netCDF4/_netCDF4.pyx":3628 * if stride[n] < 0: * negstride = 1 * stridep[n] = -stride[n] # <<<<<<<<<<<<<< @@ -50300,7 +50300,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __pyx_t_2 = __Pyx_PyIndex_AsSsize_t(__pyx_v_n); if (unlikely((__pyx_t_2 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3628; __pyx_clineno = __LINE__; goto __pyx_L1_error;} (__pyx_v_stridep[__pyx_t_2]) = __pyx_t_9; - /* "netCDF4.pyx":3629 + /* "netCDF4/_netCDF4.pyx":3629 * negstride = 1 * stridep[n] = -stride[n] * startp[n] = start[n]+stride[n]*(count[n]-1) # <<<<<<<<<<<<<< @@ -50329,7 +50329,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __pyx_t_2 = __Pyx_PyIndex_AsSsize_t(__pyx_v_n); if (unlikely((__pyx_t_2 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3629; __pyx_clineno = __LINE__; goto __pyx_L1_error;} (__pyx_v_startp[__pyx_t_2]) = __pyx_t_8; - /* "netCDF4.pyx":3630 + /* "netCDF4/_netCDF4.pyx":3630 * stridep[n] = -stride[n] * startp[n] = start[n]+stride[n]*(count[n]-1) * stride[n] = -stride[n] # <<<<<<<<<<<<<< @@ -50344,7 +50344,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va if (unlikely(PyObject_SetItem(__pyx_v_stride, __pyx_v_n, __pyx_t_5) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3630; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "netCDF4.pyx":3631 + /* "netCDF4/_netCDF4.pyx":3631 * startp[n] = start[n]+stride[n]*(count[n]-1) * stride[n] = -stride[n] * sl.append(slice(None, None, -1)) # this slice will reverse the data # <<<<<<<<<<<<<< @@ -50356,7 +50356,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va } /*else*/ { - /* "netCDF4.pyx":3633 + /* "netCDF4/_netCDF4.pyx":3633 * sl.append(slice(None, None, -1)) # this slice will reverse the data * else: * startp[n] = start[n] # <<<<<<<<<<<<<< @@ -50370,7 +50370,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __pyx_t_2 = __Pyx_PyIndex_AsSsize_t(__pyx_v_n); if (unlikely((__pyx_t_2 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3633; __pyx_clineno = __LINE__; goto __pyx_L1_error;} (__pyx_v_startp[__pyx_t_2]) = __pyx_t_8; - /* "netCDF4.pyx":3634 + /* "netCDF4/_netCDF4.pyx":3634 * else: * startp[n] = start[n] * stridep[n] = stride[n] # <<<<<<<<<<<<<< @@ -50384,7 +50384,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __pyx_t_2 = __Pyx_PyIndex_AsSsize_t(__pyx_v_n); if (unlikely((__pyx_t_2 == (Py_ssize_t)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3634; __pyx_clineno = __LINE__; goto __pyx_L1_error;} (__pyx_v_stridep[__pyx_t_2]) = __pyx_t_9; - /* "netCDF4.pyx":3635 + /* "netCDF4/_netCDF4.pyx":3635 * startp[n] = start[n] * stridep[n] = stride[n] * sl.append(slice(None,None, 1)) # <<<<<<<<<<<<<< @@ -50395,7 +50395,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va } __pyx_L6:; - /* "netCDF4.pyx":3636 + /* "netCDF4/_netCDF4.pyx":3636 * stridep[n] = stride[n] * sl.append(slice(None,None, 1)) * totelem = totelem*countp[n] # <<<<<<<<<<<<<< @@ -50407,7 +50407,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __pyx_t_7 = __Pyx_PyInt_As_long(__pyx_v_n); if (unlikely((__pyx_t_7 == (long)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3622; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3622 + /* "netCDF4/_netCDF4.pyx":3622 * negstride = 0 * sl = [] * for n from 0 <= n < ndims: # <<<<<<<<<<<<<< @@ -50419,7 +50419,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __Pyx_XDECREF_SET(__pyx_v_n, __pyx_t_5); __pyx_t_5 = 0; - /* "netCDF4.pyx":3639 + /* "netCDF4/_netCDF4.pyx":3639 * # check to see that size of data array is what is expected * # for slice given. * dataelem = PyArray_SIZE(data) # <<<<<<<<<<<<<< @@ -50428,7 +50428,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va */ __pyx_v_dataelem = PyArray_SIZE(__pyx_v_data); - /* "netCDF4.pyx":3640 + /* "netCDF4/_netCDF4.pyx":3640 * # for slice given. * dataelem = PyArray_SIZE(data) * if totelem != dataelem: # <<<<<<<<<<<<<< @@ -50438,7 +50438,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __pyx_t_3 = ((__pyx_v_totelem != __pyx_v_dataelem) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":3641 + /* "netCDF4/_netCDF4.pyx":3641 * dataelem = PyArray_SIZE(data) * if totelem != dataelem: * raise IndexError('size of data array does not conform to slice') # <<<<<<<<<<<<<< @@ -50452,7 +50452,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3641; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3642 + /* "netCDF4/_netCDF4.pyx":3642 * if totelem != dataelem: * raise IndexError('size of data array does not conform to slice') * if negstride: # <<<<<<<<<<<<<< @@ -50462,7 +50462,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __pyx_t_3 = (__pyx_v_negstride != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":3644 + /* "netCDF4/_netCDF4.pyx":3644 * if negstride: * # reverse data along axes with negative strides. * data = data[sl].copy() # make sure a copy is made. # <<<<<<<<<<<<<< @@ -50492,14 +50492,14 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va } __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_7netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3644; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (!(likely(((__pyx_t_5) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_5, __pyx_ptype_7netCDF4_8_netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3644; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF_SET(__pyx_v_data, ((PyArrayObject *)__pyx_t_5)); __pyx_t_5 = 0; goto __pyx_L8; } __pyx_L8:; - /* "netCDF4.pyx":3645 + /* "netCDF4/_netCDF4.pyx":3645 * # reverse data along axes with negative strides. * data = data[sl].copy() # make sure a copy is made. * if self._isprimitive or self._iscompound: # <<<<<<<<<<<<<< @@ -50517,7 +50517,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __pyx_L10_bool_binop_done:; if (__pyx_t_3) { - /* "netCDF4.pyx":3649 + /* "netCDF4/_netCDF4.pyx":3649 * # if data type of array doesn't match variable, * # try to cast the data. * if self.dtype != data.dtype: # <<<<<<<<<<<<<< @@ -50532,7 +50532,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_3) { - /* "netCDF4.pyx":3650 + /* "netCDF4/_netCDF4.pyx":3650 * # try to cast the data. * if self.dtype != data.dtype: * data = data.astype(self.dtype) # cast data, if necessary. # <<<<<<<<<<<<<< @@ -50566,14 +50566,14 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; } __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_7netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3650; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_7netCDF4_8_netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3650; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF_SET(__pyx_v_data, ((PyArrayObject *)__pyx_t_4)); __pyx_t_4 = 0; goto __pyx_L12; } __pyx_L12:; - /* "netCDF4.pyx":3653 + /* "netCDF4/_netCDF4.pyx":3653 * # make sure byte-order of data matches byte-order of netcdf * # variable. * if self.endian() == 'native': # <<<<<<<<<<<<<< @@ -50604,7 +50604,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_3) { - /* "netCDF4.pyx":3654 + /* "netCDF4/_netCDF4.pyx":3654 * # variable. * if self.endian() == 'native': * if is_native_little and data.dtype.byteorder == '>': # <<<<<<<<<<<<<< @@ -50631,7 +50631,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __pyx_L15_bool_binop_done:; if (__pyx_t_3) { - /* "netCDF4.pyx":3655 + /* "netCDF4/_netCDF4.pyx":3655 * if self.endian() == 'native': * if is_native_little and data.dtype.byteorder == '>': * data.byteswap(True) # <<<<<<<<<<<<<< @@ -50648,7 +50648,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va } __pyx_L14:; - /* "netCDF4.pyx":3656 + /* "netCDF4/_netCDF4.pyx":3656 * if is_native_little and data.dtype.byteorder == '>': * data.byteswap(True) * if is_native_big and data.dtype.byteorder == '<': # <<<<<<<<<<<<<< @@ -50675,7 +50675,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __pyx_L18_bool_binop_done:; if (__pyx_t_3) { - /* "netCDF4.pyx":3657 + /* "netCDF4/_netCDF4.pyx":3657 * data.byteswap(True) * if is_native_big and data.dtype.byteorder == '<': * data.byteswap(True) # <<<<<<<<<<<<<< @@ -50695,7 +50695,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va } __pyx_L13:; - /* "netCDF4.pyx":3658 + /* "netCDF4/_netCDF4.pyx":3658 * if is_native_big and data.dtype.byteorder == '<': * data.byteswap(True) * if self.endian() == 'big': # <<<<<<<<<<<<<< @@ -50726,7 +50726,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_3) { - /* "netCDF4.pyx":3659 + /* "netCDF4/_netCDF4.pyx":3659 * data.byteswap(True) * if self.endian() == 'big': * if is_native_big and data.dtype.byteorder not in ['=','|']: # <<<<<<<<<<<<<< @@ -50762,7 +50762,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __pyx_L22_bool_binop_done:; if (__pyx_t_3) { - /* "netCDF4.pyx":3660 + /* "netCDF4/_netCDF4.pyx":3660 * if self.endian() == 'big': * if is_native_big and data.dtype.byteorder not in ['=','|']: * data.byteswap(True) # <<<<<<<<<<<<<< @@ -50779,7 +50779,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va } __pyx_L21:; - /* "netCDF4.pyx":3661 + /* "netCDF4/_netCDF4.pyx":3661 * if is_native_big and data.dtype.byteorder not in ['=','|']: * data.byteswap(True) * if is_native_little and data.dtype.byteorder == '=': # <<<<<<<<<<<<<< @@ -50806,7 +50806,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __pyx_L27_bool_binop_done:; if (__pyx_t_3) { - /* "netCDF4.pyx":3662 + /* "netCDF4/_netCDF4.pyx":3662 * data.byteswap(True) * if is_native_little and data.dtype.byteorder == '=': * data.byteswap(True) # <<<<<<<<<<<<<< @@ -50826,7 +50826,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va } __pyx_L20:; - /* "netCDF4.pyx":3663 + /* "netCDF4/_netCDF4.pyx":3663 * if is_native_little and data.dtype.byteorder == '=': * data.byteswap(True) * if self.endian() == 'little': # <<<<<<<<<<<<<< @@ -50857,7 +50857,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_3) { - /* "netCDF4.pyx":3664 + /* "netCDF4/_netCDF4.pyx":3664 * data.byteswap(True) * if self.endian() == 'little': * if is_native_little and data.dtype.byteorder not in ['=','|']: # <<<<<<<<<<<<<< @@ -50893,7 +50893,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __pyx_L31_bool_binop_done:; if (__pyx_t_3) { - /* "netCDF4.pyx":3665 + /* "netCDF4/_netCDF4.pyx":3665 * if self.endian() == 'little': * if is_native_little and data.dtype.byteorder not in ['=','|']: * data.byteswap(True) # <<<<<<<<<<<<<< @@ -50910,7 +50910,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va } __pyx_L30:; - /* "netCDF4.pyx":3666 + /* "netCDF4/_netCDF4.pyx":3666 * if is_native_little and data.dtype.byteorder not in ['=','|']: * data.byteswap(True) * if is_native_big and data.dtype.byteorder == '=': # <<<<<<<<<<<<<< @@ -50937,7 +50937,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __pyx_L36_bool_binop_done:; if (__pyx_t_3) { - /* "netCDF4.pyx":3667 + /* "netCDF4/_netCDF4.pyx":3667 * data.byteswap(True) * if is_native_big and data.dtype.byteorder == '=': * data.byteswap(True) # <<<<<<<<<<<<<< @@ -50957,7 +50957,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va } __pyx_L29:; - /* "netCDF4.pyx":3669 + /* "netCDF4/_netCDF4.pyx":3669 * data.byteswap(True) * # strides all 1 or scalar variable, use put_vara (faster) * if sum(stride) == ndims or ndims == 0: # <<<<<<<<<<<<<< @@ -50989,7 +50989,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __pyx_L39_bool_binop_done:; if (__pyx_t_3) { - /* "netCDF4.pyx":3670 + /* "netCDF4/_netCDF4.pyx":3670 * # strides all 1 or scalar variable, use put_vara (faster) * if sum(stride) == ndims or ndims == 0: * ierr = nc_put_vara(self._grpid, self._varid, # <<<<<<<<<<<<<< @@ -51001,7 +51001,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va } /*else*/ { - /* "netCDF4.pyx":3673 + /* "netCDF4/_netCDF4.pyx":3673 * startp, countp, data.data) * else: * ierr = nc_put_vars(self._grpid, self._varid, # <<<<<<<<<<<<<< @@ -51012,7 +51012,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va } __pyx_L38:; - /* "netCDF4.pyx":3675 + /* "netCDF4/_netCDF4.pyx":3675 * ierr = nc_put_vars(self._grpid, self._varid, * startp, countp, stridep, data.data) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -51022,7 +51022,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":3676 + /* "netCDF4/_netCDF4.pyx":3676 * startp, countp, stridep, data.data) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -51048,7 +51048,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va goto __pyx_L9; } - /* "netCDF4.pyx":3677 + /* "netCDF4/_netCDF4.pyx":3677 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * elif self._isvlen: # <<<<<<<<<<<<<< @@ -51058,7 +51058,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_v_self->_isvlen); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3677; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_3) { - /* "netCDF4.pyx":3678 + /* "netCDF4/_netCDF4.pyx":3678 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * elif self._isvlen: * if data.dtype.char !='O': # <<<<<<<<<<<<<< @@ -51074,7 +51074,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_3) { - /* "netCDF4.pyx":3679 + /* "netCDF4/_netCDF4.pyx":3679 * elif self._isvlen: * if data.dtype.char !='O': * raise TypeError('data to put in string variable must be an object array containing Python strings') # <<<<<<<<<<<<<< @@ -51088,7 +51088,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3679; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3681 + /* "netCDF4/_netCDF4.pyx":3681 * raise TypeError('data to put in string variable must be an object array containing Python strings') * # flatten data array. * data = data.flatten() # <<<<<<<<<<<<<< @@ -51115,11 +51115,11 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va } __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_7netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3681; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_7netCDF4_8_netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3681; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF_SET(__pyx_v_data, ((PyArrayObject *)__pyx_t_4)); __pyx_t_4 = 0; - /* "netCDF4.pyx":3682 + /* "netCDF4/_netCDF4.pyx":3682 * # flatten data array. * data = data.flatten() * if self.dtype == str: # <<<<<<<<<<<<<< @@ -51131,7 +51131,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_3) { - /* "netCDF4.pyx":3684 + /* "netCDF4/_netCDF4.pyx":3684 * if self.dtype == str: * # convert all elements from strings to bytes * for n in range(data.shape[0]): # <<<<<<<<<<<<<< @@ -51192,7 +51192,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __Pyx_XDECREF_SET(__pyx_v_n, __pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":3685 + /* "netCDF4/_netCDF4.pyx":3685 * # convert all elements from strings to bytes * for n in range(data.shape[0]): * data[n] = _strencode(data[n]) # <<<<<<<<<<<<<< @@ -51201,13 +51201,13 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va */ __pyx_t_1 = PyObject_GetItem(((PyObject *)__pyx_v_data), __pyx_v_n); if (unlikely(__pyx_t_1 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3685; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; __Pyx_GOTREF(__pyx_t_1); - __pyx_t_5 = __pyx_f_7netCDF4__strencode(__pyx_t_1, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3685; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_5 = __pyx_f_7netCDF4_8_netCDF4__strencode(__pyx_t_1, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3685; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_5); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (unlikely(PyObject_SetItem(((PyObject *)__pyx_v_data), __pyx_v_n, __pyx_t_5) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3685; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - /* "netCDF4.pyx":3684 + /* "netCDF4/_netCDF4.pyx":3684 * if self.dtype == str: * # convert all elements from strings to bytes * for n in range(data.shape[0]): # <<<<<<<<<<<<<< @@ -51217,7 +51217,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va } __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "netCDF4.pyx":3690 + /* "netCDF4/_netCDF4.pyx":3690 * # each element in struct. * # allocate struct array to hold vlen data. * strdata = malloc(sizeof(char *)*totelem) # <<<<<<<<<<<<<< @@ -51226,7 +51226,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va */ __pyx_v_strdata = ((char **)malloc(((sizeof(char *)) * __pyx_v_totelem))); - /* "netCDF4.pyx":3691 + /* "netCDF4/_netCDF4.pyx":3691 * # allocate struct array to hold vlen data. * strdata = malloc(sizeof(char *)*totelem) * for i from 0<=imalloc(sizeof(char *)*totelem) * for i from 0<=inc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -51343,7 +51343,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3702; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3703 + /* "netCDF4/_netCDF4.pyx":3703 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * free(strdata) # <<<<<<<<<<<<<< @@ -51355,7 +51355,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va } /*else*/ { - /* "netCDF4.pyx":3708 + /* "netCDF4/_netCDF4.pyx":3708 * # loop over elements of object array, put data buffer for * # each element in struct. * databuff = data.data # <<<<<<<<<<<<<< @@ -51365,7 +51365,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __pyx_t_14 = __pyx_v_data->data; __pyx_v_databuff = __pyx_t_14; - /* "netCDF4.pyx":3710 + /* "netCDF4/_netCDF4.pyx":3710 * databuff = data.data * # allocate struct array to hold vlen data. * vldata = malloc(totelem*sizeof(nc_vlen_t)) # <<<<<<<<<<<<<< @@ -51374,7 +51374,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va */ __pyx_v_vldata = ((nc_vlen_t *)malloc((((size_t)__pyx_v_totelem) * (sizeof(nc_vlen_t))))); - /* "netCDF4.pyx":3711 + /* "netCDF4/_netCDF4.pyx":3711 * # allocate struct array to hold vlen data. * vldata = malloc(totelem*sizeof(nc_vlen_t)) * for i from 0<=imalloc(totelem*sizeof(nc_vlen_t)) * for i from 0<=idatabuff)[0] # <<<<<<<<<<<<<< @@ -51393,7 +51393,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va */ __pyx_v_elptr = (((void **)__pyx_v_databuff)[0]); - /* "netCDF4.pyx":3713 + /* "netCDF4/_netCDF4.pyx":3713 * for i from 0<=idatabuff)[0] * dataarr = elptr # <<<<<<<<<<<<<< @@ -51405,7 +51405,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __Pyx_XDECREF_SET(__pyx_v_dataarr, ((PyArrayObject *)__pyx_t_1)); __pyx_t_1 = 0; - /* "netCDF4.pyx":3714 + /* "netCDF4/_netCDF4.pyx":3714 * elptr = (databuff)[0] * dataarr = elptr * if self.dtype != dataarr.dtype.str[1:]: # <<<<<<<<<<<<<< @@ -51426,7 +51426,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_3) { - /* "netCDF4.pyx":3717 + /* "netCDF4/_netCDF4.pyx":3717 * #dataarr = dataarr.astype(self.dtype) # cast data, if necessary. * # casting doesn't work ?? just raise TypeError * raise TypeError("wrong data type in object array: should be %s, got %s" % (self.dtype,dataarr.dtype)) # <<<<<<<<<<<<<< @@ -51459,7 +51459,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3717; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3718 + /* "netCDF4/_netCDF4.pyx":3718 * # casting doesn't work ?? just raise TypeError * raise TypeError("wrong data type in object array: should be %s, got %s" % (self.dtype,dataarr.dtype)) * vldata[i].len = PyArray_SIZE(dataarr) # <<<<<<<<<<<<<< @@ -51468,7 +51468,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va */ (__pyx_v_vldata[__pyx_v_i]).len = PyArray_SIZE(__pyx_v_dataarr); - /* "netCDF4.pyx":3719 + /* "netCDF4/_netCDF4.pyx":3719 * raise TypeError("wrong data type in object array: should be %s, got %s" % (self.dtype,dataarr.dtype)) * vldata[i].len = PyArray_SIZE(dataarr) * vldata[i].p = dataarr.data # <<<<<<<<<<<<<< @@ -51478,7 +51478,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __pyx_t_14 = __pyx_v_dataarr->data; (__pyx_v_vldata[__pyx_v_i]).p = __pyx_t_14; - /* "netCDF4.pyx":3720 + /* "netCDF4/_netCDF4.pyx":3720 * vldata[i].len = PyArray_SIZE(dataarr) * vldata[i].p = dataarr.data * databuff = databuff + data.strides[0] # <<<<<<<<<<<<<< @@ -51488,7 +51488,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __pyx_v_databuff = (__pyx_v_databuff + (__pyx_v_data->strides[0])); } - /* "netCDF4.pyx":3722 + /* "netCDF4/_netCDF4.pyx":3722 * databuff = databuff + data.strides[0] * # strides all 1 or scalar variable, use put_vara (faster) * if sum(stride) == ndims or ndims == 0: # <<<<<<<<<<<<<< @@ -51520,7 +51520,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __pyx_L56_bool_binop_done:; if (__pyx_t_3) { - /* "netCDF4.pyx":3723 + /* "netCDF4/_netCDF4.pyx":3723 * # strides all 1 or scalar variable, use put_vara (faster) * if sum(stride) == ndims or ndims == 0: * ierr = nc_put_vara(self._grpid, self._varid, # <<<<<<<<<<<<<< @@ -51532,7 +51532,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va } /*else*/ { - /* "netCDF4.pyx":3726 + /* "netCDF4/_netCDF4.pyx":3726 * startp, countp, vldata) * else: * raise IndexError('strides must all be 1 for vlen variables') # <<<<<<<<<<<<<< @@ -51547,7 +51547,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va } __pyx_L55:; - /* "netCDF4.pyx":3729 + /* "netCDF4/_netCDF4.pyx":3729 * #ierr = nc_put_vars(self._grpid, self._varid, * # startp, countp, stridep, vldata) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -51557,7 +51557,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":3730 + /* "netCDF4/_netCDF4.pyx":3730 * # startp, countp, stridep, vldata) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -51581,7 +51581,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3730; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3732 + /* "netCDF4/_netCDF4.pyx":3732 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * # free the pointer array. * free(vldata) # <<<<<<<<<<<<<< @@ -51595,7 +51595,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va } __pyx_L9:; - /* "netCDF4.pyx":3600 + /* "netCDF4/_netCDF4.pyx":3600 * * * def _put(self,ndarray data,start,count,stride): # <<<<<<<<<<<<<< @@ -51611,7 +51611,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_10); - __Pyx_AddTraceback("netCDF4.Variable._put", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable._put", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_dataarr); @@ -51623,7 +51623,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va return __pyx_r; } -/* "netCDF4.pyx":3734 +/* "netCDF4/_netCDF4.pyx":3734 * free(vldata) * * def _get(self,start,count,stride): # <<<<<<<<<<<<<< @@ -51632,9 +51632,9 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_62_put(struct __pyx_obj_7netCDF4_Va */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_65_get(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_7netCDF4_8Variable_64_get[] = "Private method to retrieve data from a netCDF variable"; -static PyObject *__pyx_pw_7netCDF4_8Variable_65_get(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_65_get(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_7netCDF4_8_netCDF4_8Variable_64_get[] = "Private method to retrieve data from a netCDF variable"; +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_65_get(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_start = 0; PyObject *__pyx_v_count = 0; PyObject *__pyx_v_stride = 0; @@ -51691,18 +51691,18 @@ static PyObject *__pyx_pw_7netCDF4_8Variable_65_get(PyObject *__pyx_v_self, PyOb __pyx_L5_argtuple_error:; __Pyx_RaiseArgtupleInvalid("_get", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3734; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; - __Pyx_AddTraceback("netCDF4.Variable._get", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable._get", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return NULL; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_8Variable_64_get(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), __pyx_v_start, __pyx_v_count, __pyx_v_stride); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_64_get(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), __pyx_v_start, __pyx_v_count, __pyx_v_stride); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_start, PyObject *__pyx_v_count, PyObject *__pyx_v_stride) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_start, PyObject *__pyx_v_count, PyObject *__pyx_v_stride) { int __pyx_v_ierr; int __pyx_v_ndims; size_t __pyx_v_startp[NC_MAX_DIMS]; @@ -51743,7 +51743,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_get", 0); - /* "netCDF4.pyx":3747 + /* "netCDF4/_netCDF4.pyx":3747 * # and not a slice so the resulting array * # should be 'squeezed' to remove the singleton dimension. * shapeout = () # <<<<<<<<<<<<<< @@ -51753,7 +51753,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __Pyx_INCREF(__pyx_empty_tuple); __pyx_v_shapeout = __pyx_empty_tuple; - /* "netCDF4.pyx":3748 + /* "netCDF4/_netCDF4.pyx":3748 * # should be 'squeezed' to remove the singleton dimension. * shapeout = () * squeeze_out = False # <<<<<<<<<<<<<< @@ -51762,7 +51762,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va */ __pyx_v_squeeze_out = 0; - /* "netCDF4.pyx":3749 + /* "netCDF4/_netCDF4.pyx":3749 * shapeout = () * squeeze_out = False * for lendim in count: # <<<<<<<<<<<<<< @@ -51809,7 +51809,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __Pyx_XDECREF_SET(__pyx_v_lendim, __pyx_t_4); __pyx_t_4 = 0; - /* "netCDF4.pyx":3750 + /* "netCDF4/_netCDF4.pyx":3750 * squeeze_out = False * for lendim in count: * if lendim == -1: # <<<<<<<<<<<<<< @@ -51821,7 +51821,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; if (__pyx_t_5) { - /* "netCDF4.pyx":3751 + /* "netCDF4/_netCDF4.pyx":3751 * for lendim in count: * if lendim == -1: * shapeout = shapeout + (1,) # <<<<<<<<<<<<<< @@ -51833,7 +51833,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __Pyx_DECREF_SET(__pyx_v_shapeout, __pyx_t_4); __pyx_t_4 = 0; - /* "netCDF4.pyx":3752 + /* "netCDF4/_netCDF4.pyx":3752 * if lendim == -1: * shapeout = shapeout + (1,) * squeeze_out = True # <<<<<<<<<<<<<< @@ -51845,7 +51845,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va } /*else*/ { - /* "netCDF4.pyx":3754 + /* "netCDF4/_netCDF4.pyx":3754 * squeeze_out = True * else: * shapeout = shapeout + (lendim,) # <<<<<<<<<<<<<< @@ -51865,7 +51865,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va } __pyx_L5:; - /* "netCDF4.pyx":3749 + /* "netCDF4/_netCDF4.pyx":3749 * shapeout = () * squeeze_out = False * for lendim in count: # <<<<<<<<<<<<<< @@ -51875,7 +51875,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va } __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":3756 + /* "netCDF4/_netCDF4.pyx":3756 * shapeout = shapeout + (lendim,) * # rank of variable. * ndims = len(self.dimensions) # <<<<<<<<<<<<<< @@ -51888,7 +51888,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_ndims = __pyx_t_2; - /* "netCDF4.pyx":3758 + /* "netCDF4/_netCDF4.pyx":3758 * ndims = len(self.dimensions) * # fill up startp,countp,stridep. * negstride = 0 # <<<<<<<<<<<<<< @@ -51897,7 +51897,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va */ __pyx_v_negstride = 0; - /* "netCDF4.pyx":3759 + /* "netCDF4/_netCDF4.pyx":3759 * # fill up startp,countp,stridep. * negstride = 0 * sl = [] # <<<<<<<<<<<<<< @@ -51909,7 +51909,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __pyx_v_sl = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":3760 + /* "netCDF4/_netCDF4.pyx":3760 * negstride = 0 * sl = [] * for n from 0 <= n < ndims: # <<<<<<<<<<<<<< @@ -51919,7 +51919,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __pyx_t_7 = __pyx_v_ndims; for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_7; __pyx_v_n++) { - /* "netCDF4.pyx":3761 + /* "netCDF4/_netCDF4.pyx":3761 * sl = [] * for n from 0 <= n < ndims: * count[n] = abs(count[n]) # make -1 into +1 # <<<<<<<<<<<<<< @@ -51934,7 +51934,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va if (unlikely(__Pyx_SetItemInt(__pyx_v_count, __pyx_v_n, __pyx_t_6, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3761; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "netCDF4.pyx":3762 + /* "netCDF4/_netCDF4.pyx":3762 * for n from 0 <= n < ndims: * count[n] = abs(count[n]) # make -1 into +1 * countp[n] = count[n] # <<<<<<<<<<<<<< @@ -51947,7 +51947,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; (__pyx_v_countp[__pyx_v_n]) = __pyx_t_8; - /* "netCDF4.pyx":3764 + /* "netCDF4/_netCDF4.pyx":3764 * countp[n] = count[n] * # for neg strides, reverse order (then flip that axis after data read in) * if stride[n] < 0: # <<<<<<<<<<<<<< @@ -51962,7 +51962,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_5) { - /* "netCDF4.pyx":3765 + /* "netCDF4/_netCDF4.pyx":3765 * # for neg strides, reverse order (then flip that axis after data read in) * if stride[n] < 0: * negstride = 1 # <<<<<<<<<<<<<< @@ -51971,7 +51971,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va */ __pyx_v_negstride = 1; - /* "netCDF4.pyx":3766 + /* "netCDF4/_netCDF4.pyx":3766 * if stride[n] < 0: * negstride = 1 * stridep[n] = -stride[n] # <<<<<<<<<<<<<< @@ -51987,7 +51987,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; (__pyx_v_stridep[__pyx_v_n]) = __pyx_t_9; - /* "netCDF4.pyx":3767 + /* "netCDF4/_netCDF4.pyx":3767 * negstride = 1 * stridep[n] = -stride[n] * startp[n] = start[n]+stride[n]*(count[n]-1) # <<<<<<<<<<<<<< @@ -52015,7 +52015,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; (__pyx_v_startp[__pyx_v_n]) = __pyx_t_8; - /* "netCDF4.pyx":3768 + /* "netCDF4/_netCDF4.pyx":3768 * stridep[n] = -stride[n] * startp[n] = start[n]+stride[n]*(count[n]-1) * stride[n] = -stride[n] # <<<<<<<<<<<<<< @@ -52030,7 +52030,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va if (unlikely(__Pyx_SetItemInt(__pyx_v_stride, __pyx_v_n, __pyx_t_4, long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3768; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - /* "netCDF4.pyx":3769 + /* "netCDF4/_netCDF4.pyx":3769 * startp[n] = start[n]+stride[n]*(count[n]-1) * stride[n] = -stride[n] * sl.append(slice(None, None, -1)) # this slice will reverse the data # <<<<<<<<<<<<<< @@ -52042,7 +52042,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va } /*else*/ { - /* "netCDF4.pyx":3771 + /* "netCDF4/_netCDF4.pyx":3771 * sl.append(slice(None, None, -1)) # this slice will reverse the data * else: * startp[n] = start[n] # <<<<<<<<<<<<<< @@ -52055,7 +52055,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; (__pyx_v_startp[__pyx_v_n]) = __pyx_t_8; - /* "netCDF4.pyx":3772 + /* "netCDF4/_netCDF4.pyx":3772 * else: * startp[n] = start[n] * stridep[n] = stride[n] # <<<<<<<<<<<<<< @@ -52068,7 +52068,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; (__pyx_v_stridep[__pyx_v_n]) = __pyx_t_9; - /* "netCDF4.pyx":3773 + /* "netCDF4/_netCDF4.pyx":3773 * startp[n] = start[n] * stridep[n] = stride[n] * sl.append(slice(None,None, 1)) # <<<<<<<<<<<<<< @@ -52080,7 +52080,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __pyx_L8:; } - /* "netCDF4.pyx":3774 + /* "netCDF4/_netCDF4.pyx":3774 * stridep[n] = stride[n] * sl.append(slice(None,None, 1)) * if self._isprimitive or self._iscompound: # <<<<<<<<<<<<<< @@ -52098,7 +52098,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __pyx_L10_bool_binop_done:; if (__pyx_t_5) { - /* "netCDF4.pyx":3775 + /* "netCDF4/_netCDF4.pyx":3775 * sl.append(slice(None,None, 1)) * if self._isprimitive or self._iscompound: * data = numpy.empty(shapeout, self.dtype) # <<<<<<<<<<<<<< @@ -52137,11 +52137,11 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __Pyx_GOTREF(__pyx_t_4); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_7netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3775; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (!(likely(((__pyx_t_4) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_4, __pyx_ptype_7netCDF4_8_netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3775; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_data = ((PyArrayObject *)__pyx_t_4); __pyx_t_4 = 0; - /* "netCDF4.pyx":3777 + /* "netCDF4/_netCDF4.pyx":3777 * data = numpy.empty(shapeout, self.dtype) * # strides all 1 or scalar variable, use get_vara (faster) * if sum(stride) == ndims or ndims == 0: # <<<<<<<<<<<<<< @@ -52173,7 +52173,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __pyx_L13_bool_binop_done:; if (__pyx_t_5) { - /* "netCDF4.pyx":3778 + /* "netCDF4/_netCDF4.pyx":3778 * # strides all 1 or scalar variable, use get_vara (faster) * if sum(stride) == ndims or ndims == 0: * with nogil: # <<<<<<<<<<<<<< @@ -52187,7 +52187,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va #endif /*try:*/ { - /* "netCDF4.pyx":3779 + /* "netCDF4/_netCDF4.pyx":3779 * if sum(stride) == ndims or ndims == 0: * with nogil: * ierr = nc_get_vara(self._grpid, self._varid, # <<<<<<<<<<<<<< @@ -52197,7 +52197,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __pyx_v_ierr = nc_get_vara(__pyx_v_self->_grpid, __pyx_v_self->_varid, __pyx_v_startp, __pyx_v_countp, __pyx_v_data->data); } - /* "netCDF4.pyx":3778 + /* "netCDF4/_netCDF4.pyx":3778 * # strides all 1 or scalar variable, use get_vara (faster) * if sum(stride) == ndims or ndims == 0: * with nogil: # <<<<<<<<<<<<<< @@ -52218,7 +52218,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va } /*else*/ { - /* "netCDF4.pyx":3782 + /* "netCDF4/_netCDF4.pyx":3782 * startp, countp, data.data) * else: * with nogil: # <<<<<<<<<<<<<< @@ -52232,7 +52232,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va #endif /*try:*/ { - /* "netCDF4.pyx":3783 + /* "netCDF4/_netCDF4.pyx":3783 * else: * with nogil: * ierr = nc_get_vars(self._grpid, self._varid, # <<<<<<<<<<<<<< @@ -52242,7 +52242,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __pyx_v_ierr = nc_get_vars(__pyx_v_self->_grpid, __pyx_v_self->_varid, __pyx_v_startp, __pyx_v_countp, __pyx_v_stridep, __pyx_v_data->data); } - /* "netCDF4.pyx":3782 + /* "netCDF4/_netCDF4.pyx":3782 * startp, countp, data.data) * else: * with nogil: # <<<<<<<<<<<<<< @@ -52262,7 +52262,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va } __pyx_L12:; - /* "netCDF4.pyx":3785 + /* "netCDF4/_netCDF4.pyx":3785 * ierr = nc_get_vars(self._grpid, self._varid, * startp, countp, stridep, data.data) * if ierr == NC_EINVALCOORDS: # <<<<<<<<<<<<<< @@ -52272,7 +52272,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __pyx_t_5 = ((__pyx_v_ierr == NC_EINVALCOORDS) != 0); if (__pyx_t_5) { - /* "netCDF4.pyx":3786 + /* "netCDF4/_netCDF4.pyx":3786 * startp, countp, stridep, data.data) * if ierr == NC_EINVALCOORDS: * raise IndexError # <<<<<<<<<<<<<< @@ -52283,7 +52283,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3786; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3787 + /* "netCDF4/_netCDF4.pyx":3787 * if ierr == NC_EINVALCOORDS: * raise IndexError * elif ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -52293,7 +52293,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __pyx_t_5 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_5) { - /* "netCDF4.pyx":3788 + /* "netCDF4/_netCDF4.pyx":3788 * raise IndexError * elif ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -52319,7 +52319,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va goto __pyx_L9; } - /* "netCDF4.pyx":3789 + /* "netCDF4/_netCDF4.pyx":3789 * elif ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * elif self._isvlen: # <<<<<<<<<<<<<< @@ -52329,7 +52329,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __pyx_t_5 = __Pyx_PyObject_IsTrue(__pyx_v_self->_isvlen); if (unlikely(__pyx_t_5 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3789; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (__pyx_t_5) { - /* "netCDF4.pyx":3791 + /* "netCDF4/_netCDF4.pyx":3791 * elif self._isvlen: * # allocate array of correct primitive type. * data = numpy.empty(shapeout, 'O') # <<<<<<<<<<<<<< @@ -52368,11 +52368,11 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_7netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3791; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_7netCDF4_8_netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3791; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_data = ((PyArrayObject *)__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":3793 + /* "netCDF4/_netCDF4.pyx":3793 * data = numpy.empty(shapeout, 'O') * # flatten data array. * data = data.flatten() # <<<<<<<<<<<<<< @@ -52399,11 +52399,11 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va } __Pyx_GOTREF(__pyx_t_1); __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_7netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3793; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_7netCDF4_8_netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3793; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF_SET(__pyx_v_data, ((PyArrayObject *)__pyx_t_1)); __pyx_t_1 = 0; - /* "netCDF4.pyx":3794 + /* "netCDF4/_netCDF4.pyx":3794 * # flatten data array. * data = data.flatten() * totelem = PyArray_SIZE(data) # <<<<<<<<<<<<<< @@ -52415,7 +52415,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __pyx_v_totelem = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":3795 + /* "netCDF4/_netCDF4.pyx":3795 * data = data.flatten() * totelem = PyArray_SIZE(data) * if self.dtype == str: # <<<<<<<<<<<<<< @@ -52427,7 +52427,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_5) { - /* "netCDF4.pyx":3798 + /* "netCDF4/_netCDF4.pyx":3798 * # vlen string (NC_STRING) * # allocate pointer array to hold string data. * strdata = malloc(sizeof(char *) * totelem) # <<<<<<<<<<<<<< @@ -52443,7 +52443,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; __pyx_v_strdata = ((char **)malloc(__pyx_t_8)); - /* "netCDF4.pyx":3800 + /* "netCDF4/_netCDF4.pyx":3800 * strdata = malloc(sizeof(char *) * totelem) * # strides all 1 or scalar variable, use get_vara (faster) * if sum(stride) == ndims or ndims == 0: # <<<<<<<<<<<<<< @@ -52475,7 +52475,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __pyx_L24_bool_binop_done:; if (__pyx_t_5) { - /* "netCDF4.pyx":3801 + /* "netCDF4/_netCDF4.pyx":3801 * # strides all 1 or scalar variable, use get_vara (faster) * if sum(stride) == ndims or ndims == 0: * with nogil: # <<<<<<<<<<<<<< @@ -52489,7 +52489,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va #endif /*try:*/ { - /* "netCDF4.pyx":3802 + /* "netCDF4/_netCDF4.pyx":3802 * if sum(stride) == ndims or ndims == 0: * with nogil: * ierr = nc_get_vara(self._grpid, self._varid, # <<<<<<<<<<<<<< @@ -52499,7 +52499,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __pyx_v_ierr = nc_get_vara(__pyx_v_self->_grpid, __pyx_v_self->_varid, __pyx_v_startp, __pyx_v_countp, __pyx_v_strdata); } - /* "netCDF4.pyx":3801 + /* "netCDF4/_netCDF4.pyx":3801 * # strides all 1 or scalar variable, use get_vara (faster) * if sum(stride) == ndims or ndims == 0: * with nogil: # <<<<<<<<<<<<<< @@ -52520,7 +52520,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va } /*else*/ { - /* "netCDF4.pyx":3806 + /* "netCDF4/_netCDF4.pyx":3806 * else: * # FIXME: is this a bug in netCDF4? * raise IndexError('strides must all be 1 for string variables') # <<<<<<<<<<<<<< @@ -52535,7 +52535,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va } __pyx_L23:; - /* "netCDF4.pyx":3809 + /* "netCDF4/_netCDF4.pyx":3809 * #ierr = nc_get_vars(self._grpid, self._varid, * # startp, countp, stridep, strdata) * if ierr == NC_EINVALCOORDS: # <<<<<<<<<<<<<< @@ -52545,7 +52545,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __pyx_t_5 = ((__pyx_v_ierr == NC_EINVALCOORDS) != 0); if (__pyx_t_5) { - /* "netCDF4.pyx":3810 + /* "netCDF4/_netCDF4.pyx":3810 * # startp, countp, stridep, strdata) * if ierr == NC_EINVALCOORDS: * raise IndexError # <<<<<<<<<<<<<< @@ -52556,7 +52556,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3810; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3811 + /* "netCDF4/_netCDF4.pyx":3811 * if ierr == NC_EINVALCOORDS: * raise IndexError * elif ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -52566,7 +52566,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __pyx_t_5 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_5) { - /* "netCDF4.pyx":3812 + /* "netCDF4/_netCDF4.pyx":3812 * raise IndexError * elif ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -52590,7 +52590,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3812; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3815 + /* "netCDF4/_netCDF4.pyx":3815 * # loop over elements of object array, fill array with * # contents of strdata. * for i from 0<=imalloc(totelem*sizeof(nc_vlen_t)) # <<<<<<<<<<<<<< @@ -52715,7 +52715,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; __pyx_v_vldata = ((nc_vlen_t *)malloc(__pyx_t_8)); - /* "netCDF4.pyx":3825 + /* "netCDF4/_netCDF4.pyx":3825 * vldata = malloc(totelem*sizeof(nc_vlen_t)) * # strides all 1 or scalar variable, use get_vara (faster) * if sum(stride) == ndims or ndims == 0: # <<<<<<<<<<<<<< @@ -52747,7 +52747,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __pyx_L33_bool_binop_done:; if (__pyx_t_5) { - /* "netCDF4.pyx":3826 + /* "netCDF4/_netCDF4.pyx":3826 * # strides all 1 or scalar variable, use get_vara (faster) * if sum(stride) == ndims or ndims == 0: * with nogil: # <<<<<<<<<<<<<< @@ -52761,7 +52761,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va #endif /*try:*/ { - /* "netCDF4.pyx":3827 + /* "netCDF4/_netCDF4.pyx":3827 * if sum(stride) == ndims or ndims == 0: * with nogil: * ierr = nc_get_vara(self._grpid, self._varid, # <<<<<<<<<<<<<< @@ -52771,7 +52771,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __pyx_v_ierr = nc_get_vara(__pyx_v_self->_grpid, __pyx_v_self->_varid, __pyx_v_startp, __pyx_v_countp, __pyx_v_vldata); } - /* "netCDF4.pyx":3826 + /* "netCDF4/_netCDF4.pyx":3826 * # strides all 1 or scalar variable, use get_vara (faster) * if sum(stride) == ndims or ndims == 0: * with nogil: # <<<<<<<<<<<<<< @@ -52792,7 +52792,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va } /*else*/ { - /* "netCDF4.pyx":3830 + /* "netCDF4/_netCDF4.pyx":3830 * startp, countp, vldata) * else: * raise IndexError('strides must all be 1 for vlen variables') # <<<<<<<<<<<<<< @@ -52807,7 +52807,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va } __pyx_L32:; - /* "netCDF4.pyx":3833 + /* "netCDF4/_netCDF4.pyx":3833 * #ierr = nc_get_vars(self._grpid, self._varid, * # startp, countp, stridep, vldata) * if ierr == NC_EINVALCOORDS: # <<<<<<<<<<<<<< @@ -52817,7 +52817,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __pyx_t_5 = ((__pyx_v_ierr == NC_EINVALCOORDS) != 0); if (__pyx_t_5) { - /* "netCDF4.pyx":3834 + /* "netCDF4/_netCDF4.pyx":3834 * # startp, countp, stridep, vldata) * if ierr == NC_EINVALCOORDS: * raise IndexError # <<<<<<<<<<<<<< @@ -52828,7 +52828,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3834; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3835 + /* "netCDF4/_netCDF4.pyx":3835 * if ierr == NC_EINVALCOORDS: * raise IndexError * elif ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -52838,7 +52838,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __pyx_t_5 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_5) { - /* "netCDF4.pyx":3836 + /* "netCDF4/_netCDF4.pyx":3836 * raise IndexError * elif ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -52862,7 +52862,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3836; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3839 + /* "netCDF4/_netCDF4.pyx":3839 * # loop over elements of object array, fill array with * # contents of vlarray struct, put array in object array. * for i from 0<=ivldata[i].p # <<<<<<<<<<<<<< @@ -52936,7 +52936,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va */ __pyx_v_dataarr->data = ((char *)(__pyx_v_vldata[__pyx_v_i]).p); - /* "netCDF4.pyx":3843 + /* "netCDF4/_netCDF4.pyx":3843 * dataarr = numpy.empty(arrlen, self.dtype) * dataarr.data = vldata[i].p * data[i] = dataarr # <<<<<<<<<<<<<< @@ -52946,7 +52946,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va if (unlikely(__Pyx_SetItemInt(((PyObject *)__pyx_v_data), __pyx_v_i, ((PyObject *)__pyx_v_dataarr), long, 1, __Pyx_PyInt_From_long, 0, 1, 1) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3843; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3845 + /* "netCDF4/_netCDF4.pyx":3845 * data[i] = dataarr * # reshape the output array * data = numpy.reshape(data, shapeout) # <<<<<<<<<<<<<< @@ -52985,11 +52985,11 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (!(likely(((__pyx_t_6) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_6, __pyx_ptype_7netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3845; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (!(likely(((__pyx_t_6) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_6, __pyx_ptype_7netCDF4_8_netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3845; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF_SET(__pyx_v_data, ((PyArrayObject *)__pyx_t_6)); __pyx_t_6 = 0; - /* "netCDF4.pyx":3847 + /* "netCDF4/_netCDF4.pyx":3847 * data = numpy.reshape(data, shapeout) * # free the pointer array. * free(vldata) # <<<<<<<<<<<<<< @@ -53003,7 +53003,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va } __pyx_L9:; - /* "netCDF4.pyx":3848 + /* "netCDF4/_netCDF4.pyx":3848 * # free the pointer array. * free(vldata) * if negstride: # <<<<<<<<<<<<<< @@ -53013,7 +53013,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __pyx_t_5 = (__pyx_v_negstride != 0); if (__pyx_t_5) { - /* "netCDF4.pyx":3850 + /* "netCDF4/_netCDF4.pyx":3850 * if negstride: * # reverse data along axes with negative strides. * data = data[sl].copy() # make a copy so data is contiguous. # <<<<<<<<<<<<<< @@ -53044,14 +53044,14 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va } __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; - if (!(likely(((__pyx_t_6) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_6, __pyx_ptype_7netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3850; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (!(likely(((__pyx_t_6) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_6, __pyx_ptype_7netCDF4_8_netCDF4_ndarray))))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3850; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_XDECREF_SET(__pyx_v_data, ((PyArrayObject *)__pyx_t_6)); __pyx_t_6 = 0; goto __pyx_L41; } __pyx_L41:; - /* "netCDF4.pyx":3851 + /* "netCDF4/_netCDF4.pyx":3851 * # reverse data along axes with negative strides. * data = data[sl].copy() # make a copy so data is contiguous. * if not self.dimensions: # <<<<<<<<<<<<<< @@ -53065,7 +53065,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __pyx_t_12 = ((!__pyx_t_5) != 0); if (__pyx_t_12) { - /* "netCDF4.pyx":3852 + /* "netCDF4/_netCDF4.pyx":3852 * data = data[sl].copy() # make a copy so data is contiguous. * if not self.dimensions: * return data[0] # a scalar # <<<<<<<<<<<<<< @@ -53081,7 +53081,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va goto __pyx_L0; } - /* "netCDF4.pyx":3853 + /* "netCDF4/_netCDF4.pyx":3853 * if not self.dimensions: * return data[0] # a scalar * elif squeeze_out: # <<<<<<<<<<<<<< @@ -53091,7 +53091,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __pyx_t_12 = (__pyx_v_squeeze_out != 0); if (__pyx_t_12) { - /* "netCDF4.pyx":3854 + /* "netCDF4/_netCDF4.pyx":3854 * return data[0] # a scalar * elif squeeze_out: * return numpy.squeeze(data) # <<<<<<<<<<<<<< @@ -53136,7 +53136,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va } /*else*/ { - /* "netCDF4.pyx":3856 + /* "netCDF4/_netCDF4.pyx":3856 * return numpy.squeeze(data) * else: * return data # <<<<<<<<<<<<<< @@ -53150,7 +53150,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va goto __pyx_L0; } - /* "netCDF4.pyx":3734 + /* "netCDF4/_netCDF4.pyx":3734 * free(vldata) * * def _get(self,start,count,stride): # <<<<<<<<<<<<<< @@ -53165,7 +53165,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_10); __Pyx_XDECREF(__pyx_t_15); - __Pyx_AddTraceback("netCDF4.Variable._get", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable._get", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XDECREF((PyObject *)__pyx_v_data); @@ -53179,7 +53179,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va return __pyx_r; } -/* "netCDF4.pyx":2468 +/* "netCDF4/_netCDF4.pyx":2468 * that are 1d arrays or lists slice along each dimension independently. This * behavior is similar to Fortran or Matlab, but different than numpy.""" * cdef public int _varid, _grpid, _nunlimdim # <<<<<<<<<<<<<< @@ -53188,19 +53188,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_64_get(struct __pyx_obj_7netCDF4_Va */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_6_varid_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_6_varid_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_6_varid_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_6_varid_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_6_varid___get__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_6_varid___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_6_varid___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_6_varid___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -53218,7 +53218,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6_varid___get__(struct __pyx_obj_7n /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("netCDF4.Variable._varid.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable._varid.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -53227,19 +53227,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6_varid___get__(struct __pyx_obj_7n } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_6_varid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_6_varid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_6_varid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_6_varid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_6_varid_2__set__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_6_varid_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_6_varid_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_6_varid_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; @@ -53254,7 +53254,7 @@ static int __pyx_pf_7netCDF4_8Variable_6_varid_2__set__(struct __pyx_obj_7netCDF __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; - __Pyx_AddTraceback("netCDF4.Variable._varid.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable._varid.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); @@ -53262,19 +53262,19 @@ static int __pyx_pf_7netCDF4_8Variable_6_varid_2__set__(struct __pyx_obj_7netCDF } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_6_grpid_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_6_grpid_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_6_grpid_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_6_grpid_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_6_grpid___get__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_6_grpid___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_6_grpid___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_6_grpid___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -53292,7 +53292,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6_grpid___get__(struct __pyx_obj_7n /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("netCDF4.Variable._grpid.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable._grpid.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -53301,19 +53301,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_6_grpid___get__(struct __pyx_obj_7n } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_6_grpid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_6_grpid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_6_grpid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_6_grpid_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_6_grpid_2__set__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_6_grpid_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_6_grpid_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_6_grpid_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; @@ -53328,7 +53328,7 @@ static int __pyx_pf_7netCDF4_8Variable_6_grpid_2__set__(struct __pyx_obj_7netCDF __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; - __Pyx_AddTraceback("netCDF4.Variable._grpid.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable._grpid.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); @@ -53336,19 +53336,19 @@ static int __pyx_pf_7netCDF4_8Variable_6_grpid_2__set__(struct __pyx_obj_7netCDF } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_10_nunlimdim_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_10_nunlimdim_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_10_nunlimdim_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_10_nunlimdim_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_10_nunlimdim___get__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_10_nunlimdim___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_10_nunlimdim___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_10_nunlimdim___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -53366,7 +53366,7 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_10_nunlimdim___get__(struct __pyx_o /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("netCDF4.Variable._nunlimdim.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable._nunlimdim.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -53375,19 +53375,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_10_nunlimdim___get__(struct __pyx_o } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_10_nunlimdim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_10_nunlimdim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_10_nunlimdim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_10_nunlimdim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_10_nunlimdim_2__set__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_10_nunlimdim_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_10_nunlimdim_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_10_nunlimdim_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations int __pyx_t_1; @@ -53402,14 +53402,14 @@ static int __pyx_pf_7netCDF4_8Variable_10_nunlimdim_2__set__(struct __pyx_obj_7n __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; - __Pyx_AddTraceback("netCDF4.Variable._nunlimdim.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.Variable._nunlimdim.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } -/* "netCDF4.pyx":2469 +/* "netCDF4/_netCDF4.pyx":2469 * behavior is similar to Fortran or Matlab, but different than numpy.""" * cdef public int _varid, _grpid, _nunlimdim * cdef public _name, ndim, dtype, mask, scale, _isprimitive, _iscompound,\ # <<<<<<<<<<<<<< @@ -53418,19 +53418,19 @@ static int __pyx_pf_7netCDF4_8Variable_10_nunlimdim_2__set__(struct __pyx_obj_7n */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_5_name_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_5_name_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_5_name_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_5_name_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_5_name___get__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_5_name___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_5_name___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_5_name___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -53447,19 +53447,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_5_name___get__(struct __pyx_obj_7ne } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_5_name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_5_name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_5_name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_5_name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_5_name_2__set__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_5_name_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_5_name_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_5_name_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -53476,19 +53476,19 @@ static int __pyx_pf_7netCDF4_8Variable_5_name_2__set__(struct __pyx_obj_7netCDF4 } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_5_name_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_5_name_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_5_name_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_5_name_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_5_name_4__del__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_5_name_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_5_name_4__del__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_5_name_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -53505,19 +53505,19 @@ static int __pyx_pf_7netCDF4_8Variable_5_name_4__del__(struct __pyx_obj_7netCDF4 } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_4ndim_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_4ndim_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_4ndim_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_4ndim_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_4ndim___get__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_4ndim___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_4ndim___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_4ndim___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -53534,19 +53534,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_4ndim___get__(struct __pyx_obj_7net } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_4ndim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_4ndim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_4ndim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_4ndim_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_4ndim_2__set__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_4ndim_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_4ndim_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_4ndim_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -53563,19 +53563,19 @@ static int __pyx_pf_7netCDF4_8Variable_4ndim_2__set__(struct __pyx_obj_7netCDF4_ } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_4ndim_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_4ndim_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_4ndim_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_4ndim_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_4ndim_4__del__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_4ndim_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_4ndim_4__del__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_4ndim_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -53592,19 +53592,19 @@ static int __pyx_pf_7netCDF4_8Variable_4ndim_4__del__(struct __pyx_obj_7netCDF4_ } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_5dtype_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_5dtype_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_5dtype_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_5dtype_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_5dtype___get__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_5dtype___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_5dtype___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_5dtype___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -53621,19 +53621,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_5dtype___get__(struct __pyx_obj_7ne } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_5dtype_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_5dtype_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_5dtype_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_5dtype_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_5dtype_2__set__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_5dtype_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_5dtype_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_5dtype_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -53650,19 +53650,19 @@ static int __pyx_pf_7netCDF4_8Variable_5dtype_2__set__(struct __pyx_obj_7netCDF4 } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_5dtype_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_5dtype_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_5dtype_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_5dtype_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_5dtype_4__del__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_5dtype_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_5dtype_4__del__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_5dtype_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -53679,19 +53679,19 @@ static int __pyx_pf_7netCDF4_8Variable_5dtype_4__del__(struct __pyx_obj_7netCDF4 } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_4mask_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_4mask_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_4mask_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_4mask_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_4mask___get__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_4mask___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_4mask___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_4mask___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -53708,19 +53708,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_4mask___get__(struct __pyx_obj_7net } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_4mask_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_4mask_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_4mask_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_4mask_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_4mask_2__set__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_4mask_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_4mask_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_4mask_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -53737,19 +53737,19 @@ static int __pyx_pf_7netCDF4_8Variable_4mask_2__set__(struct __pyx_obj_7netCDF4_ } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_4mask_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_4mask_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_4mask_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_4mask_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_4mask_4__del__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_4mask_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_4mask_4__del__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_4mask_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -53766,19 +53766,19 @@ static int __pyx_pf_7netCDF4_8Variable_4mask_4__del__(struct __pyx_obj_7netCDF4_ } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_5scale_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_5scale_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_5scale_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_5scale_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_5scale___get__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_5scale___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_5scale___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_5scale___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -53795,19 +53795,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_5scale___get__(struct __pyx_obj_7ne } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_5scale_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_5scale_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_5scale_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_5scale_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_5scale_2__set__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_5scale_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_5scale_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_5scale_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -53824,19 +53824,19 @@ static int __pyx_pf_7netCDF4_8Variable_5scale_2__set__(struct __pyx_obj_7netCDF4 } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_5scale_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_5scale_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_5scale_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_5scale_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_5scale_4__del__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_5scale_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_5scale_4__del__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_5scale_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -53853,19 +53853,19 @@ static int __pyx_pf_7netCDF4_8Variable_5scale_4__del__(struct __pyx_obj_7netCDF4 } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_12_isprimitive_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_12_isprimitive_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_12_isprimitive_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_12_isprimitive_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_12_isprimitive___get__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_12_isprimitive___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_12_isprimitive___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_12_isprimitive___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -53882,19 +53882,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_12_isprimitive___get__(struct __pyx } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_12_isprimitive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_12_isprimitive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_12_isprimitive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_12_isprimitive_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_12_isprimitive_2__set__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_12_isprimitive_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_12_isprimitive_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_12_isprimitive_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -53911,19 +53911,19 @@ static int __pyx_pf_7netCDF4_8Variable_12_isprimitive_2__set__(struct __pyx_obj_ } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_12_isprimitive_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_12_isprimitive_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_12_isprimitive_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_12_isprimitive_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_12_isprimitive_4__del__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_12_isprimitive_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_12_isprimitive_4__del__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_12_isprimitive_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -53940,19 +53940,19 @@ static int __pyx_pf_7netCDF4_8Variable_12_isprimitive_4__del__(struct __pyx_obj_ } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_11_iscompound_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_11_iscompound_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_11_iscompound_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_11_iscompound_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_11_iscompound___get__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_11_iscompound___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_11_iscompound___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_11_iscompound___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -53969,19 +53969,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_11_iscompound___get__(struct __pyx_ } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_11_iscompound_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_11_iscompound_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_11_iscompound_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_11_iscompound_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_11_iscompound_2__set__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_11_iscompound_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_11_iscompound_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_11_iscompound_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -53998,19 +53998,19 @@ static int __pyx_pf_7netCDF4_8Variable_11_iscompound_2__set__(struct __pyx_obj_7 } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_11_iscompound_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_11_iscompound_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_11_iscompound_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_11_iscompound_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_11_iscompound_4__del__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_11_iscompound_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_11_iscompound_4__del__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_11_iscompound_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -54026,7 +54026,7 @@ static int __pyx_pf_7netCDF4_8Variable_11_iscompound_4__del__(struct __pyx_obj_7 return __pyx_r; } -/* "netCDF4.pyx":2470 +/* "netCDF4/_netCDF4.pyx":2470 * cdef public int _varid, _grpid, _nunlimdim * cdef public _name, ndim, dtype, mask, scale, _isprimitive, _iscompound,\ * _isvlen, _grp, _cmptype, _vltype, __orthogonal_indexing__ # <<<<<<<<<<<<<< @@ -54035,19 +54035,19 @@ static int __pyx_pf_7netCDF4_8Variable_11_iscompound_4__del__(struct __pyx_obj_7 */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_7_isvlen_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_7_isvlen_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_7_isvlen_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_7_isvlen_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_7_isvlen___get__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_7_isvlen___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_7_isvlen___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_7_isvlen___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -54064,19 +54064,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_7_isvlen___get__(struct __pyx_obj_7 } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_7_isvlen_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_7_isvlen_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_7_isvlen_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_7_isvlen_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_7_isvlen_2__set__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_7_isvlen_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_7_isvlen_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_7_isvlen_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -54093,19 +54093,19 @@ static int __pyx_pf_7netCDF4_8Variable_7_isvlen_2__set__(struct __pyx_obj_7netCD } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_7_isvlen_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_7_isvlen_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_7_isvlen_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_7_isvlen_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_7_isvlen_4__del__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_7_isvlen_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_7_isvlen_4__del__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_7_isvlen_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -54122,19 +54122,19 @@ static int __pyx_pf_7netCDF4_8Variable_7_isvlen_4__del__(struct __pyx_obj_7netCD } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_4_grp_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_4_grp_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_4_grp_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_4_grp_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_4_grp___get__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_4_grp___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_4_grp___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_4_grp___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -54151,19 +54151,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_4_grp___get__(struct __pyx_obj_7net } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_4_grp_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_4_grp_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_4_grp_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_4_grp_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_4_grp_2__set__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_4_grp_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_4_grp_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_4_grp_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -54180,19 +54180,19 @@ static int __pyx_pf_7netCDF4_8Variable_4_grp_2__set__(struct __pyx_obj_7netCDF4_ } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_4_grp_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_4_grp_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_4_grp_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_4_grp_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_4_grp_4__del__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_4_grp_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_4_grp_4__del__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_4_grp_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -54209,19 +54209,19 @@ static int __pyx_pf_7netCDF4_8Variable_4_grp_4__del__(struct __pyx_obj_7netCDF4_ } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_8_cmptype_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_8_cmptype_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_8_cmptype_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_8_cmptype_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_8_cmptype___get__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_8_cmptype___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_8_cmptype___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_8_cmptype___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -54238,19 +54238,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_8_cmptype___get__(struct __pyx_obj_ } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_8_cmptype_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_8_cmptype_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_8_cmptype_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_8_cmptype_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_8_cmptype_2__set__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_8_cmptype_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_8_cmptype_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_8_cmptype_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -54267,19 +54267,19 @@ static int __pyx_pf_7netCDF4_8Variable_8_cmptype_2__set__(struct __pyx_obj_7netC } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_8_cmptype_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_8_cmptype_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_8_cmptype_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_8_cmptype_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_8_cmptype_4__del__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_8_cmptype_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_8_cmptype_4__del__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_8_cmptype_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -54296,19 +54296,19 @@ static int __pyx_pf_7netCDF4_8Variable_8_cmptype_4__del__(struct __pyx_obj_7netC } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_7_vltype_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_7_vltype_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_7_vltype_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_7_vltype_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_7_vltype___get__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_7_vltype___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_7_vltype___get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_7_vltype___get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -54325,19 +54325,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_7_vltype___get__(struct __pyx_obj_7 } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_7_vltype_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_7_vltype_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_7_vltype_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_7_vltype_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_7_vltype_2__set__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_7_vltype_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_7_vltype_2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_7_vltype_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -54354,19 +54354,19 @@ static int __pyx_pf_7netCDF4_8Variable_7_vltype_2__set__(struct __pyx_obj_7netCD } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_7_vltype_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_7_vltype_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_7_vltype_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_7_vltype_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_7_vltype_4__del__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_7_vltype_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_7_vltype_4__del__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_7_vltype_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -54383,19 +54383,19 @@ static int __pyx_pf_7netCDF4_8Variable_7_vltype_4__del__(struct __pyx_obj_7netCD } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_8Variable_23__orthogonal_indexing___1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_8Variable_23__orthogonal_indexing___1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_23__orthogonal_indexing___1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_8Variable_23__orthogonal_indexing___1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_23__orthogonal_indexing_____get__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_23__orthogonal_indexing_____get__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_8Variable_23__orthogonal_indexing_____get__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_8Variable_23__orthogonal_indexing_____get__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -54412,19 +54412,19 @@ static PyObject *__pyx_pf_7netCDF4_8Variable_23__orthogonal_indexing_____get__(s } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_23__orthogonal_indexing___3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_23__orthogonal_indexing___3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_23__orthogonal_indexing___3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_23__orthogonal_indexing___3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_23__orthogonal_indexing___2__set__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_23__orthogonal_indexing___2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_23__orthogonal_indexing___2__set__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_23__orthogonal_indexing___2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -54441,19 +54441,19 @@ static int __pyx_pf_7netCDF4_8Variable_23__orthogonal_indexing___2__set__(struct } /* Python wrapper */ -static int __pyx_pw_7netCDF4_8Variable_23__orthogonal_indexing___5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_8Variable_23__orthogonal_indexing___5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_23__orthogonal_indexing___5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_8Variable_23__orthogonal_indexing___5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_8Variable_23__orthogonal_indexing___4__del__(((struct __pyx_obj_7netCDF4_Variable *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_8Variable_23__orthogonal_indexing___4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_8Variable_23__orthogonal_indexing___4__del__(struct __pyx_obj_7netCDF4_Variable *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_8Variable_23__orthogonal_indexing___4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_Variable *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -54469,7 +54469,7 @@ static int __pyx_pf_7netCDF4_8Variable_23__orthogonal_indexing___4__del__(struct return __pyx_r; } -/* "netCDF4.pyx":3900 +/* "netCDF4/_netCDF4.pyx":3900 * cdef public nc_type _nc_type * cdef public dtype, name * def __init__(self, grp, object dt, object dtype_name, **kwargs): # <<<<<<<<<<<<<< @@ -54478,8 +54478,8 @@ static int __pyx_pf_7netCDF4_8Variable_23__orthogonal_indexing___4__del__(struct */ /* Python wrapper */ -static int __pyx_pw_7netCDF4_12CompoundType_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static int __pyx_pw_7netCDF4_12CompoundType_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static int __pyx_pw_7netCDF4_8_netCDF4_12CompoundType_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_12CompoundType_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_grp = 0; PyObject *__pyx_v_dt = 0; PyObject *__pyx_v_dtype_name = 0; @@ -54540,11 +54540,11 @@ static int __pyx_pw_7netCDF4_12CompoundType_1__init__(PyObject *__pyx_v_self, Py __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3900; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0; - __Pyx_AddTraceback("netCDF4.CompoundType.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.CompoundType.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_12CompoundType___init__(((struct __pyx_obj_7netCDF4_CompoundType *)__pyx_v_self), __pyx_v_grp, __pyx_v_dt, __pyx_v_dtype_name, __pyx_v_kwargs); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_12CompoundType___init__(((struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *)__pyx_v_self), __pyx_v_grp, __pyx_v_dt, __pyx_v_dtype_name, __pyx_v_kwargs); /* function exit code */ __Pyx_XDECREF(__pyx_v_kwargs); @@ -54552,7 +54552,7 @@ static int __pyx_pw_7netCDF4_12CompoundType_1__init__(PyObject *__pyx_v_self, Py return __pyx_r; } -static int __pyx_pf_7netCDF4_12CompoundType___init__(struct __pyx_obj_7netCDF4_CompoundType *__pyx_v_self, PyObject *__pyx_v_grp, PyObject *__pyx_v_dt, PyObject *__pyx_v_dtype_name, PyObject *__pyx_v_kwargs) { +static int __pyx_pf_7netCDF4_8_netCDF4_12CompoundType___init__(struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *__pyx_v_self, PyObject *__pyx_v_grp, PyObject *__pyx_v_dt, PyObject *__pyx_v_dtype_name, PyObject *__pyx_v_kwargs) { nc_type __pyx_v_xtype; int __pyx_r; __Pyx_RefNannyDeclarations @@ -54569,7 +54569,7 @@ static int __pyx_pf_7netCDF4_12CompoundType___init__(struct __pyx_obj_7netCDF4_C __Pyx_RefNannySetupContext("__init__", 0); __Pyx_INCREF(__pyx_v_dt); - /* "netCDF4.pyx":3902 + /* "netCDF4/_netCDF4.pyx":3902 * def __init__(self, grp, object dt, object dtype_name, **kwargs): * cdef nc_type xtype * dt = numpy.dtype(dt,align=True) # <<<<<<<<<<<<<< @@ -54597,7 +54597,7 @@ static int __pyx_pf_7netCDF4_12CompoundType___init__(struct __pyx_obj_7netCDF4_C __Pyx_DECREF_SET(__pyx_v_dt, __pyx_t_4); __pyx_t_4 = 0; - /* "netCDF4.pyx":3903 + /* "netCDF4/_netCDF4.pyx":3903 * cdef nc_type xtype * dt = numpy.dtype(dt,align=True) * if 'typeid' in kwargs: # <<<<<<<<<<<<<< @@ -54608,7 +54608,7 @@ static int __pyx_pf_7netCDF4_12CompoundType___init__(struct __pyx_obj_7netCDF4_C __pyx_t_6 = (__pyx_t_5 != 0); if (__pyx_t_6) { - /* "netCDF4.pyx":3904 + /* "netCDF4/_netCDF4.pyx":3904 * dt = numpy.dtype(dt,align=True) * if 'typeid' in kwargs: * xtype = kwargs['typeid'] # <<<<<<<<<<<<<< @@ -54624,14 +54624,14 @@ static int __pyx_pf_7netCDF4_12CompoundType___init__(struct __pyx_obj_7netCDF4_C } /*else*/ { - /* "netCDF4.pyx":3906 + /* "netCDF4/_netCDF4.pyx":3906 * xtype = kwargs['typeid'] * else: * xtype = _def_compound(grp, dt, dtype_name) # <<<<<<<<<<<<<< * self._nc_type = xtype * self.dtype = dt */ - __pyx_t_4 = __pyx_f_7netCDF4__def_compound(__pyx_v_grp, __pyx_v_dt, __pyx_v_dtype_name); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3906; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_4 = __pyx_f_7netCDF4_8_netCDF4__def_compound(__pyx_v_grp, __pyx_v_dt, __pyx_v_dtype_name); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3906; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_4); __pyx_t_7 = __Pyx_PyInt_As_nc_type(__pyx_t_4); if (unlikely((__pyx_t_7 == (nc_type)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3906; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; @@ -54639,7 +54639,7 @@ static int __pyx_pf_7netCDF4_12CompoundType___init__(struct __pyx_obj_7netCDF4_C } __pyx_L3:; - /* "netCDF4.pyx":3907 + /* "netCDF4/_netCDF4.pyx":3907 * else: * xtype = _def_compound(grp, dt, dtype_name) * self._nc_type = xtype # <<<<<<<<<<<<<< @@ -54648,7 +54648,7 @@ static int __pyx_pf_7netCDF4_12CompoundType___init__(struct __pyx_obj_7netCDF4_C */ __pyx_v_self->_nc_type = __pyx_v_xtype; - /* "netCDF4.pyx":3908 + /* "netCDF4/_netCDF4.pyx":3908 * xtype = _def_compound(grp, dt, dtype_name) * self._nc_type = xtype * self.dtype = dt # <<<<<<<<<<<<<< @@ -54661,7 +54661,7 @@ static int __pyx_pf_7netCDF4_12CompoundType___init__(struct __pyx_obj_7netCDF4_C __Pyx_DECREF(__pyx_v_self->dtype); __pyx_v_self->dtype = __pyx_v_dt; - /* "netCDF4.pyx":3909 + /* "netCDF4/_netCDF4.pyx":3909 * self._nc_type = xtype * self.dtype = dt * self.name = dtype_name # <<<<<<<<<<<<<< @@ -54674,7 +54674,7 @@ static int __pyx_pf_7netCDF4_12CompoundType___init__(struct __pyx_obj_7netCDF4_C __Pyx_DECREF(__pyx_v_self->name); __pyx_v_self->name = __pyx_v_dtype_name; - /* "netCDF4.pyx":3900 + /* "netCDF4/_netCDF4.pyx":3900 * cdef public nc_type _nc_type * cdef public dtype, name * def __init__(self, grp, object dt, object dtype_name, **kwargs): # <<<<<<<<<<<<<< @@ -54690,7 +54690,7 @@ static int __pyx_pf_7netCDF4_12CompoundType___init__(struct __pyx_obj_7netCDF4_C __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); - __Pyx_AddTraceback("netCDF4.CompoundType.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.CompoundType.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_dt); @@ -54698,7 +54698,7 @@ static int __pyx_pf_7netCDF4_12CompoundType___init__(struct __pyx_obj_7netCDF4_C return __pyx_r; } -/* "netCDF4.pyx":3911 +/* "netCDF4/_netCDF4.pyx":3911 * self.name = dtype_name * * def __repr__(self): # <<<<<<<<<<<<<< @@ -54707,19 +54707,19 @@ static int __pyx_pf_7netCDF4_12CompoundType___init__(struct __pyx_obj_7netCDF4_C */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_12CompoundType_3__repr__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_12CompoundType_3__repr__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_12CompoundType_3__repr__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_12CompoundType_3__repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_12CompoundType_2__repr__(((struct __pyx_obj_7netCDF4_CompoundType *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_12CompoundType_2__repr__(((struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_12CompoundType_2__repr__(struct __pyx_obj_7netCDF4_CompoundType *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_12CompoundType_2__repr__(struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -54733,7 +54733,7 @@ static PyObject *__pyx_pf_7netCDF4_12CompoundType_2__repr__(struct __pyx_obj_7ne int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); - /* "netCDF4.pyx":3912 + /* "netCDF4/_netCDF4.pyx":3912 * * def __repr__(self): * if python3: # <<<<<<<<<<<<<< @@ -54746,7 +54746,7 @@ static PyObject *__pyx_pf_7netCDF4_12CompoundType_2__repr__(struct __pyx_obj_7ne __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { - /* "netCDF4.pyx":3913 + /* "netCDF4/_netCDF4.pyx":3913 * def __repr__(self): * if python3: * return self.__unicode__() # <<<<<<<<<<<<<< @@ -54780,7 +54780,7 @@ static PyObject *__pyx_pf_7netCDF4_12CompoundType_2__repr__(struct __pyx_obj_7ne } /*else*/ { - /* "netCDF4.pyx":3915 + /* "netCDF4/_netCDF4.pyx":3915 * return self.__unicode__() * else: * return unicode(self).encode(default_encoding) # <<<<<<<<<<<<<< @@ -54832,7 +54832,7 @@ static PyObject *__pyx_pf_7netCDF4_12CompoundType_2__repr__(struct __pyx_obj_7ne goto __pyx_L0; } - /* "netCDF4.pyx":3911 + /* "netCDF4/_netCDF4.pyx":3911 * self.name = dtype_name * * def __repr__(self): # <<<<<<<<<<<<<< @@ -54847,7 +54847,7 @@ static PyObject *__pyx_pf_7netCDF4_12CompoundType_2__repr__(struct __pyx_obj_7ne __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); - __Pyx_AddTraceback("netCDF4.CompoundType.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.CompoundType.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -54855,7 +54855,7 @@ static PyObject *__pyx_pf_7netCDF4_12CompoundType_2__repr__(struct __pyx_obj_7ne return __pyx_r; } -/* "netCDF4.pyx":3917 +/* "netCDF4/_netCDF4.pyx":3917 * return unicode(self).encode(default_encoding) * * def __unicode__(self): # <<<<<<<<<<<<<< @@ -54864,19 +54864,19 @@ static PyObject *__pyx_pf_7netCDF4_12CompoundType_2__repr__(struct __pyx_obj_7ne */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_12CompoundType_5__unicode__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_12CompoundType_5__unicode__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_12CompoundType_5__unicode__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_12CompoundType_5__unicode__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__unicode__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_12CompoundType_4__unicode__(((struct __pyx_obj_7netCDF4_CompoundType *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_12CompoundType_4__unicode__(((struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_12CompoundType_4__unicode__(struct __pyx_obj_7netCDF4_CompoundType *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_12CompoundType_4__unicode__(struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -54887,7 +54887,7 @@ static PyObject *__pyx_pf_7netCDF4_12CompoundType_4__unicode__(struct __pyx_obj_ int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__unicode__", 0); - /* "netCDF4.pyx":3918 + /* "netCDF4/_netCDF4.pyx":3918 * * def __unicode__(self): * return repr(type(self))+": name = '%s', numpy dtype = %s\n" %\ # <<<<<<<<<<<<<< @@ -54898,7 +54898,7 @@ static PyObject *__pyx_pf_7netCDF4_12CompoundType_4__unicode__(struct __pyx_obj_ __pyx_t_1 = PyObject_Repr(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self)))); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3918; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - /* "netCDF4.pyx":3919 + /* "netCDF4/_netCDF4.pyx":3919 * def __unicode__(self): * return repr(type(self))+": name = '%s', numpy dtype = %s\n" %\ * (self.name,self.dtype) # <<<<<<<<<<<<<< @@ -54914,7 +54914,7 @@ static PyObject *__pyx_pf_7netCDF4_12CompoundType_4__unicode__(struct __pyx_obj_ PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_self->dtype); __Pyx_GIVEREF(__pyx_v_self->dtype); - /* "netCDF4.pyx":3918 + /* "netCDF4/_netCDF4.pyx":3918 * * def __unicode__(self): * return repr(type(self))+": name = '%s', numpy dtype = %s\n" %\ # <<<<<<<<<<<<<< @@ -54932,7 +54932,7 @@ static PyObject *__pyx_pf_7netCDF4_12CompoundType_4__unicode__(struct __pyx_obj_ __pyx_t_2 = 0; goto __pyx_L0; - /* "netCDF4.pyx":3917 + /* "netCDF4/_netCDF4.pyx":3917 * return unicode(self).encode(default_encoding) * * def __unicode__(self): # <<<<<<<<<<<<<< @@ -54945,7 +54945,7 @@ static PyObject *__pyx_pf_7netCDF4_12CompoundType_4__unicode__(struct __pyx_obj_ __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_2); __Pyx_XDECREF(__pyx_t_3); - __Pyx_AddTraceback("netCDF4.CompoundType.__unicode__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.CompoundType.__unicode__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -54953,7 +54953,7 @@ static PyObject *__pyx_pf_7netCDF4_12CompoundType_4__unicode__(struct __pyx_obj_ return __pyx_r; } -/* "netCDF4.pyx":3898 +/* "netCDF4/_netCDF4.pyx":3898 * @ivar name: A python string describing the compound type. * """ * cdef public nc_type _nc_type # <<<<<<<<<<<<<< @@ -54962,19 +54962,19 @@ static PyObject *__pyx_pf_7netCDF4_12CompoundType_4__unicode__(struct __pyx_obj_ */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_12CompoundType_8_nc_type_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_12CompoundType_8_nc_type_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_12CompoundType_8_nc_type_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_12CompoundType_8_nc_type_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_12CompoundType_8_nc_type___get__(((struct __pyx_obj_7netCDF4_CompoundType *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_12CompoundType_8_nc_type___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_12CompoundType_8_nc_type___get__(struct __pyx_obj_7netCDF4_CompoundType *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_12CompoundType_8_nc_type___get__(struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -54992,7 +54992,7 @@ static PyObject *__pyx_pf_7netCDF4_12CompoundType_8_nc_type___get__(struct __pyx /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("netCDF4.CompoundType._nc_type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.CompoundType._nc_type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -55001,19 +55001,19 @@ static PyObject *__pyx_pf_7netCDF4_12CompoundType_8_nc_type___get__(struct __pyx } /* Python wrapper */ -static int __pyx_pw_7netCDF4_12CompoundType_8_nc_type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_12CompoundType_8_nc_type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_12CompoundType_8_nc_type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_12CompoundType_8_nc_type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_12CompoundType_8_nc_type_2__set__(((struct __pyx_obj_7netCDF4_CompoundType *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_12CompoundType_8_nc_type_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_12CompoundType_8_nc_type_2__set__(struct __pyx_obj_7netCDF4_CompoundType *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_12CompoundType_8_nc_type_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations nc_type __pyx_t_1; @@ -55028,14 +55028,14 @@ static int __pyx_pf_7netCDF4_12CompoundType_8_nc_type_2__set__(struct __pyx_obj_ __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; - __Pyx_AddTraceback("netCDF4.CompoundType._nc_type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.CompoundType._nc_type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } -/* "netCDF4.pyx":3899 +/* "netCDF4/_netCDF4.pyx":3899 * """ * cdef public nc_type _nc_type * cdef public dtype, name # <<<<<<<<<<<<<< @@ -55044,19 +55044,19 @@ static int __pyx_pf_7netCDF4_12CompoundType_8_nc_type_2__set__(struct __pyx_obj_ */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_12CompoundType_5dtype_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_12CompoundType_5dtype_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_12CompoundType_5dtype_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_12CompoundType_5dtype_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_12CompoundType_5dtype___get__(((struct __pyx_obj_7netCDF4_CompoundType *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_12CompoundType_5dtype___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_12CompoundType_5dtype___get__(struct __pyx_obj_7netCDF4_CompoundType *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_12CompoundType_5dtype___get__(struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -55073,19 +55073,19 @@ static PyObject *__pyx_pf_7netCDF4_12CompoundType_5dtype___get__(struct __pyx_ob } /* Python wrapper */ -static int __pyx_pw_7netCDF4_12CompoundType_5dtype_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_12CompoundType_5dtype_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_12CompoundType_5dtype_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_12CompoundType_5dtype_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_12CompoundType_5dtype_2__set__(((struct __pyx_obj_7netCDF4_CompoundType *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_12CompoundType_5dtype_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_12CompoundType_5dtype_2__set__(struct __pyx_obj_7netCDF4_CompoundType *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_12CompoundType_5dtype_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -55102,19 +55102,19 @@ static int __pyx_pf_7netCDF4_12CompoundType_5dtype_2__set__(struct __pyx_obj_7ne } /* Python wrapper */ -static int __pyx_pw_7netCDF4_12CompoundType_5dtype_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_12CompoundType_5dtype_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_12CompoundType_5dtype_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_12CompoundType_5dtype_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_12CompoundType_5dtype_4__del__(((struct __pyx_obj_7netCDF4_CompoundType *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_12CompoundType_5dtype_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_12CompoundType_5dtype_4__del__(struct __pyx_obj_7netCDF4_CompoundType *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_12CompoundType_5dtype_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -55131,19 +55131,19 @@ static int __pyx_pf_7netCDF4_12CompoundType_5dtype_4__del__(struct __pyx_obj_7ne } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_12CompoundType_4name_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_12CompoundType_4name_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_12CompoundType_4name_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_12CompoundType_4name_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_12CompoundType_4name___get__(((struct __pyx_obj_7netCDF4_CompoundType *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_12CompoundType_4name___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_12CompoundType_4name___get__(struct __pyx_obj_7netCDF4_CompoundType *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_12CompoundType_4name___get__(struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -55160,19 +55160,19 @@ static PyObject *__pyx_pf_7netCDF4_12CompoundType_4name___get__(struct __pyx_obj } /* Python wrapper */ -static int __pyx_pw_7netCDF4_12CompoundType_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_12CompoundType_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_12CompoundType_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_12CompoundType_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_12CompoundType_4name_2__set__(((struct __pyx_obj_7netCDF4_CompoundType *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_12CompoundType_4name_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_12CompoundType_4name_2__set__(struct __pyx_obj_7netCDF4_CompoundType *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_12CompoundType_4name_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -55189,19 +55189,19 @@ static int __pyx_pf_7netCDF4_12CompoundType_4name_2__set__(struct __pyx_obj_7net } /* Python wrapper */ -static int __pyx_pw_7netCDF4_12CompoundType_4name_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_12CompoundType_4name_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_12CompoundType_4name_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_12CompoundType_4name_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_12CompoundType_4name_4__del__(((struct __pyx_obj_7netCDF4_CompoundType *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_12CompoundType_4name_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_12CompoundType_4name_4__del__(struct __pyx_obj_7netCDF4_CompoundType *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_12CompoundType_4name_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -55217,7 +55217,7 @@ static int __pyx_pf_7netCDF4_12CompoundType_4name_4__del__(struct __pyx_obj_7net return __pyx_r; } -/* "netCDF4.pyx":3921 +/* "netCDF4/_netCDF4.pyx":3921 * (self.name,self.dtype) * * cdef _def_compound(grp, object dt, object dtype_name): # <<<<<<<<<<<<<< @@ -55225,7 +55225,7 @@ static int __pyx_pf_7netCDF4_12CompoundType_4name_4__del__(struct __pyx_obj_7net * # from a numpy dtype object by CompoundType.__init__. */ -static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject *__pyx_v_dt, PyObject *__pyx_v_dtype_name) { +static PyObject *__pyx_f_7netCDF4_8_netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject *__pyx_v_dt, PyObject *__pyx_v_dtype_name) { nc_type __pyx_v_xtype; nc_type __pyx_v_xtype_tmp; int __pyx_v_ierr; @@ -55270,19 +55270,19 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_def_compound", 0); - /* "netCDF4.pyx":3930 + /* "netCDF4/_netCDF4.pyx":3930 * cdef char *nested_namstring * cdef int dim_sizes[NC_MAX_DIMS] * bytestr = _strencode(dtype_name) # <<<<<<<<<<<<<< * namstring = bytestr * size = dt.itemsize */ - __pyx_t_1 = __pyx_f_7netCDF4__strencode(__pyx_v_dtype_name, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3930; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_7netCDF4_8_netCDF4__strencode(__pyx_v_dtype_name, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3930; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_v_bytestr = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":3931 + /* "netCDF4/_netCDF4.pyx":3931 * cdef int dim_sizes[NC_MAX_DIMS] * bytestr = _strencode(dtype_name) * namstring = bytestr # <<<<<<<<<<<<<< @@ -55292,7 +55292,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_v_bytestr); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3931; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_namstring = __pyx_t_2; - /* "netCDF4.pyx":3932 + /* "netCDF4/_netCDF4.pyx":3932 * bytestr = _strencode(dtype_name) * namstring = bytestr * size = dt.itemsize # <<<<<<<<<<<<<< @@ -55305,7 +55305,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_size = __pyx_t_3; - /* "netCDF4.pyx":3933 + /* "netCDF4/_netCDF4.pyx":3933 * namstring = bytestr * size = dt.itemsize * ierr = nc_def_compound(grp._grpid, size, namstring, &xtype) # <<<<<<<<<<<<<< @@ -55318,7 +55318,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_ierr = nc_def_compound(__pyx_t_4, __pyx_v_size, __pyx_v_namstring, (&__pyx_v_xtype)); - /* "netCDF4.pyx":3934 + /* "netCDF4/_netCDF4.pyx":3934 * size = dt.itemsize * ierr = nc_def_compound(grp._grpid, size, namstring, &xtype) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -55328,7 +55328,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __pyx_t_5 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_5) { - /* "netCDF4.pyx":3935 + /* "netCDF4/_netCDF4.pyx":3935 * ierr = nc_def_compound(grp._grpid, size, namstring, &xtype) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -55352,7 +55352,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3935; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":3936 + /* "netCDF4/_netCDF4.pyx":3936 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * names = list(dt.fields.keys()) # <<<<<<<<<<<<<< @@ -55388,7 +55388,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __pyx_v_names = __pyx_t_7; __pyx_t_7 = 0; - /* "netCDF4.pyx":3937 + /* "netCDF4/_netCDF4.pyx":3937 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * names = list(dt.fields.keys()) * formats = [v[0] for v in dt.fields.values()] # <<<<<<<<<<<<<< @@ -55469,7 +55469,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __pyx_v_formats = __pyx_t_7; __pyx_t_7 = 0; - /* "netCDF4.pyx":3938 + /* "netCDF4/_netCDF4.pyx":3938 * names = list(dt.fields.keys()) * formats = [v[0] for v in dt.fields.values()] * offsets = [v[1] for v in dt.fields.values()] # <<<<<<<<<<<<<< @@ -55550,7 +55550,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __pyx_v_offsets = ((PyObject*)__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":3941 + /* "netCDF4/_netCDF4.pyx":3941 * # make sure entries in lists sorted by offset. * # (don't know why this is necessary, but it is for version 4.0.1) * names = _sortbylist(names, offsets) # <<<<<<<<<<<<<< @@ -55589,7 +55589,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __Pyx_DECREF_SET(__pyx_v_names, __pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":3942 + /* "netCDF4/_netCDF4.pyx":3942 * # (don't know why this is necessary, but it is for version 4.0.1) * names = _sortbylist(names, offsets) * formats = _sortbylist(formats, offsets) # <<<<<<<<<<<<<< @@ -55628,7 +55628,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __Pyx_DECREF_SET(__pyx_v_formats, __pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":3943 + /* "netCDF4/_netCDF4.pyx":3943 * names = _sortbylist(names, offsets) * formats = _sortbylist(formats, offsets) * offsets.sort() # <<<<<<<<<<<<<< @@ -55637,7 +55637,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject */ __pyx_t_11 = PyList_Sort(__pyx_v_offsets); if (unlikely(__pyx_t_11 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3943; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":3944 + /* "netCDF4/_netCDF4.pyx":3944 * formats = _sortbylist(formats, offsets) * offsets.sort() * for name, format, offset in zip(names, formats, offsets): # <<<<<<<<<<<<<< @@ -55779,19 +55779,19 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __pyx_t_8 = 0; __pyx_v_offset = __pyx_t_3; - /* "netCDF4.pyx":3945 + /* "netCDF4/_netCDF4.pyx":3945 * offsets.sort() * for name, format, offset in zip(names, formats, offsets): * bytestr = _strencode(name) # <<<<<<<<<<<<<< * namstring = bytestr * if format.kind != 'V': # scalar primitive type */ - __pyx_t_7 = __pyx_f_7netCDF4__strencode(__pyx_v_name, NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3945; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_7 = __pyx_f_7netCDF4_8_netCDF4__strencode(__pyx_v_name, NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3945; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_DECREF_SET(__pyx_v_bytestr, __pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":3946 + /* "netCDF4/_netCDF4.pyx":3946 * for name, format, offset in zip(names, formats, offsets): * bytestr = _strencode(name) * namstring = bytestr # <<<<<<<<<<<<<< @@ -55801,7 +55801,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_v_bytestr); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3946; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_namstring = __pyx_t_2; - /* "netCDF4.pyx":3947 + /* "netCDF4/_netCDF4.pyx":3947 * bytestr = _strencode(name) * namstring = bytestr * if format.kind != 'V': # scalar primitive type # <<<<<<<<<<<<<< @@ -55814,7 +55814,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__pyx_t_5) { - /* "netCDF4.pyx":3948 + /* "netCDF4/_netCDF4.pyx":3948 * namstring = bytestr * if format.kind != 'V': # scalar primitive type * try: # <<<<<<<<<<<<<< @@ -55828,7 +55828,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __Pyx_XGOTREF(__pyx_t_17); /*try:*/ { - /* "netCDF4.pyx":3949 + /* "netCDF4/_netCDF4.pyx":3949 * if format.kind != 'V': # scalar primitive type * try: * xtype_tmp = _nptonctype[format.str[1:]] # <<<<<<<<<<<<<< @@ -55861,7 +55861,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; - /* "netCDF4.pyx":3950 + /* "netCDF4/_netCDF4.pyx":3950 * try: * xtype_tmp = _nptonctype[format.str[1:]] * except KeyError: # <<<<<<<<<<<<<< @@ -55870,13 +55870,13 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject */ __pyx_t_4 = PyErr_ExceptionMatches(__pyx_builtin_KeyError); if (__pyx_t_4) { - __Pyx_AddTraceback("netCDF4._def_compound", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._def_compound", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_12, &__pyx_t_8, &__pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3950; __pyx_clineno = __LINE__; goto __pyx_L15_except_error;} __Pyx_GOTREF(__pyx_t_12); __Pyx_GOTREF(__pyx_t_8); __Pyx_GOTREF(__pyx_t_7); - /* "netCDF4.pyx":3951 + /* "netCDF4/_netCDF4.pyx":3951 * xtype_tmp = _nptonctype[format.str[1:]] * except KeyError: * raise ValueError('Unsupported compound type element') # <<<<<<<<<<<<<< @@ -55899,7 +55899,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __pyx_L20_try_end:; } - /* "netCDF4.pyx":3952 + /* "netCDF4/_netCDF4.pyx":3952 * except KeyError: * raise ValueError('Unsupported compound type element') * ierr = nc_insert_compound(grp._grpid, xtype, namstring, # <<<<<<<<<<<<<< @@ -55911,7 +55911,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_7); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3952; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":3953 + /* "netCDF4/_netCDF4.pyx":3953 * raise ValueError('Unsupported compound type element') * ierr = nc_insert_compound(grp._grpid, xtype, namstring, * offset, xtype_tmp) # <<<<<<<<<<<<<< @@ -55920,7 +55920,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject */ __pyx_v_ierr = nc_insert_compound(__pyx_t_4, __pyx_v_xtype, __pyx_v_namstring, __pyx_v_offset, __pyx_v_xtype_tmp); - /* "netCDF4.pyx":3954 + /* "netCDF4/_netCDF4.pyx":3954 * ierr = nc_insert_compound(grp._grpid, xtype, namstring, * offset, xtype_tmp) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -55930,7 +55930,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __pyx_t_5 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_5) { - /* "netCDF4.pyx":3955 + /* "netCDF4/_netCDF4.pyx":3955 * offset, xtype_tmp) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -55957,7 +55957,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject } /*else*/ { - /* "netCDF4.pyx":3957 + /* "netCDF4/_netCDF4.pyx":3957 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * else: * if format.shape == (): # nested scalar compound type # <<<<<<<<<<<<<< @@ -55972,32 +55972,32 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (__pyx_t_5) { - /* "netCDF4.pyx":3959 + /* "netCDF4/_netCDF4.pyx":3959 * if format.shape == (): # nested scalar compound type * # find this compound type in this group or it's parents. * xtype_tmp = _find_cmptype(grp, format) # <<<<<<<<<<<<<< * bytestr = _strencode(name) * nested_namstring = bytestr */ - __pyx_t_8 = __pyx_f_7netCDF4__find_cmptype(__pyx_v_grp, __pyx_v_format); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3959; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_8 = __pyx_f_7netCDF4_8_netCDF4__find_cmptype(__pyx_v_grp, __pyx_v_format); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3959; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_8); __pyx_t_18 = __Pyx_PyInt_As_nc_type(__pyx_t_8); if (unlikely((__pyx_t_18 == (nc_type)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3959; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_v_xtype_tmp = __pyx_t_18; - /* "netCDF4.pyx":3960 + /* "netCDF4/_netCDF4.pyx":3960 * # find this compound type in this group or it's parents. * xtype_tmp = _find_cmptype(grp, format) * bytestr = _strencode(name) # <<<<<<<<<<<<<< * nested_namstring = bytestr * ierr = nc_insert_compound(grp._grpid, xtype,\ */ - __pyx_t_8 = __pyx_f_7netCDF4__strencode(__pyx_v_name, NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3960; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_8 = __pyx_f_7netCDF4_8_netCDF4__strencode(__pyx_v_name, NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3960; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF_SET(__pyx_v_bytestr, __pyx_t_8); __pyx_t_8 = 0; - /* "netCDF4.pyx":3961 + /* "netCDF4/_netCDF4.pyx":3961 * xtype_tmp = _find_cmptype(grp, format) * bytestr = _strencode(name) * nested_namstring = bytestr # <<<<<<<<<<<<<< @@ -56007,7 +56007,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_v_bytestr); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3961; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_nested_namstring = __pyx_t_2; - /* "netCDF4.pyx":3962 + /* "netCDF4/_netCDF4.pyx":3962 * bytestr = _strencode(name) * nested_namstring = bytestr * ierr = nc_insert_compound(grp._grpid, xtype,\ # <<<<<<<<<<<<<< @@ -56019,7 +56019,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_8); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3962; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "netCDF4.pyx":3964 + /* "netCDF4/_netCDF4.pyx":3964 * ierr = nc_insert_compound(grp._grpid, xtype,\ * nested_namstring,\ * offset, xtype_tmp) # <<<<<<<<<<<<<< @@ -56028,7 +56028,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject */ __pyx_v_ierr = nc_insert_compound(__pyx_t_4, __pyx_v_xtype, __pyx_v_nested_namstring, __pyx_v_offset, __pyx_v_xtype_tmp); - /* "netCDF4.pyx":3965 + /* "netCDF4/_netCDF4.pyx":3965 * nested_namstring,\ * offset, xtype_tmp) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -56038,7 +56038,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __pyx_t_5 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_5) { - /* "netCDF4.pyx":3966 + /* "netCDF4/_netCDF4.pyx":3966 * offset, xtype_tmp) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -56065,7 +56065,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject } /*else*/ { - /* "netCDF4.pyx":3968 + /* "netCDF4/_netCDF4.pyx":3968 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * else: # array compound element * ndims = len(format.shape) # <<<<<<<<<<<<<< @@ -56078,7 +56078,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_v_ndims = __pyx_t_19; - /* "netCDF4.pyx":3969 + /* "netCDF4/_netCDF4.pyx":3969 * else: # array compound element * ndims = len(format.shape) * for n from 0 <= n < ndims: # <<<<<<<<<<<<<< @@ -56088,7 +56088,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __pyx_t_4 = __pyx_v_ndims; for (__pyx_v_n = 0; __pyx_v_n < __pyx_t_4; __pyx_v_n++) { - /* "netCDF4.pyx":3970 + /* "netCDF4/_netCDF4.pyx":3970 * ndims = len(format.shape) * for n from 0 <= n < ndims: * dim_sizes[n] = format.shape[n] # <<<<<<<<<<<<<< @@ -56105,7 +56105,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject (__pyx_v_dim_sizes[__pyx_v_n]) = __pyx_t_20; } - /* "netCDF4.pyx":3971 + /* "netCDF4/_netCDF4.pyx":3971 * for n from 0 <= n < ndims: * dim_sizes[n] = format.shape[n] * if format.subdtype[0].str[1] != 'V': # primitive type. # <<<<<<<<<<<<<< @@ -56127,7 +56127,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (__pyx_t_5) { - /* "netCDF4.pyx":3972 + /* "netCDF4/_netCDF4.pyx":3972 * dim_sizes[n] = format.shape[n] * if format.subdtype[0].str[1] != 'V': # primitive type. * try: # <<<<<<<<<<<<<< @@ -56141,7 +56141,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __Pyx_XGOTREF(__pyx_t_15); /*try:*/ { - /* "netCDF4.pyx":3973 + /* "netCDF4/_netCDF4.pyx":3973 * if format.subdtype[0].str[1] != 'V': # primitive type. * try: * xtype_tmp = _nptonctype[format.subdtype[0].str[1:]] # <<<<<<<<<<<<<< @@ -56180,7 +56180,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":3974 + /* "netCDF4/_netCDF4.pyx":3974 * try: * xtype_tmp = _nptonctype[format.subdtype[0].str[1:]] * except KeyError: # <<<<<<<<<<<<<< @@ -56189,13 +56189,13 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject */ __pyx_t_4 = PyErr_ExceptionMatches(__pyx_builtin_KeyError); if (__pyx_t_4) { - __Pyx_AddTraceback("netCDF4._def_compound", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._def_compound", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_12, &__pyx_t_8) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3974; __pyx_clineno = __LINE__; goto __pyx_L31_except_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_GOTREF(__pyx_t_12); __Pyx_GOTREF(__pyx_t_8); - /* "netCDF4.pyx":3975 + /* "netCDF4/_netCDF4.pyx":3975 * xtype_tmp = _nptonctype[format.subdtype[0].str[1:]] * except KeyError: * raise ValueError('Unsupported compound type element') # <<<<<<<<<<<<<< @@ -56218,7 +56218,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __pyx_L36_try_end:; } - /* "netCDF4.pyx":3976 + /* "netCDF4/_netCDF4.pyx":3976 * except KeyError: * raise ValueError('Unsupported compound type element') * ierr = nc_insert_array_compound(grp._grpid,xtype,namstring, # <<<<<<<<<<<<<< @@ -56230,7 +56230,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_8); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3976; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "netCDF4.pyx":3977 + /* "netCDF4/_netCDF4.pyx":3977 * raise ValueError('Unsupported compound type element') * ierr = nc_insert_array_compound(grp._grpid,xtype,namstring, * offset,xtype_tmp,ndims,dim_sizes) # <<<<<<<<<<<<<< @@ -56239,7 +56239,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject */ __pyx_v_ierr = nc_insert_array_compound(__pyx_t_4, __pyx_v_xtype, __pyx_v_namstring, __pyx_v_offset, __pyx_v_xtype_tmp, __pyx_v_ndims, __pyx_v_dim_sizes); - /* "netCDF4.pyx":3978 + /* "netCDF4/_netCDF4.pyx":3978 * ierr = nc_insert_array_compound(grp._grpid,xtype,namstring, * offset,xtype_tmp,ndims,dim_sizes) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -56249,7 +56249,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __pyx_t_5 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_5) { - /* "netCDF4.pyx":3979 + /* "netCDF4/_netCDF4.pyx":3979 * offset,xtype_tmp,ndims,dim_sizes) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -56276,7 +56276,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject } /*else*/ { - /* "netCDF4.pyx":3982 + /* "netCDF4/_netCDF4.pyx":3982 * else: # nested array compound type. * # find this compound type in this group or it's parents. * xtype_tmp = _find_cmptype(grp, format.subdtype[0]) # <<<<<<<<<<<<<< @@ -56288,26 +56288,26 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __pyx_t_12 = __Pyx_GetItemInt(__pyx_t_8, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(__pyx_t_12 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3982; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; __Pyx_GOTREF(__pyx_t_12); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_8 = __pyx_f_7netCDF4__find_cmptype(__pyx_v_grp, __pyx_t_12); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3982; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_8 = __pyx_f_7netCDF4_8_netCDF4__find_cmptype(__pyx_v_grp, __pyx_t_12); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3982; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; __pyx_t_18 = __Pyx_PyInt_As_nc_type(__pyx_t_8); if (unlikely((__pyx_t_18 == (nc_type)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3982; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __pyx_v_xtype_tmp = __pyx_t_18; - /* "netCDF4.pyx":3983 + /* "netCDF4/_netCDF4.pyx":3983 * # find this compound type in this group or it's parents. * xtype_tmp = _find_cmptype(grp, format.subdtype[0]) * bytestr = _strencode(name) # <<<<<<<<<<<<<< * nested_namstring = bytestr * ierr = nc_insert_array_compound(grp._grpid,xtype,\ */ - __pyx_t_8 = __pyx_f_7netCDF4__strencode(__pyx_v_name, NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3983; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_8 = __pyx_f_7netCDF4_8_netCDF4__strencode(__pyx_v_name, NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3983; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_8); __Pyx_DECREF_SET(__pyx_v_bytestr, __pyx_t_8); __pyx_t_8 = 0; - /* "netCDF4.pyx":3984 + /* "netCDF4/_netCDF4.pyx":3984 * xtype_tmp = _find_cmptype(grp, format.subdtype[0]) * bytestr = _strencode(name) * nested_namstring = bytestr # <<<<<<<<<<<<<< @@ -56317,7 +56317,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_v_bytestr); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3984; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_nested_namstring = __pyx_t_2; - /* "netCDF4.pyx":3985 + /* "netCDF4/_netCDF4.pyx":3985 * bytestr = _strencode(name) * nested_namstring = bytestr * ierr = nc_insert_array_compound(grp._grpid,xtype,\ # <<<<<<<<<<<<<< @@ -56329,7 +56329,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_t_8); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3985; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - /* "netCDF4.pyx":3988 + /* "netCDF4/_netCDF4.pyx":3988 * nested_namstring,\ * offset,xtype_tmp,\ * ndims,dim_sizes) # <<<<<<<<<<<<<< @@ -56338,7 +56338,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject */ __pyx_v_ierr = nc_insert_array_compound(__pyx_t_4, __pyx_v_xtype, __pyx_v_nested_namstring, __pyx_v_offset, __pyx_v_xtype_tmp, __pyx_v_ndims, __pyx_v_dim_sizes); - /* "netCDF4.pyx":3989 + /* "netCDF4/_netCDF4.pyx":3989 * offset,xtype_tmp,\ * ndims,dim_sizes) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -56348,7 +56348,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __pyx_t_5 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_5) { - /* "netCDF4.pyx":3990 + /* "netCDF4/_netCDF4.pyx":3990 * ndims,dim_sizes) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -56378,7 +56378,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject } __pyx_L12:; - /* "netCDF4.pyx":3944 + /* "netCDF4/_netCDF4.pyx":3944 * formats = _sortbylist(formats, offsets) * offsets.sort() * for name, format, offset in zip(names, formats, offsets): # <<<<<<<<<<<<<< @@ -56388,7 +56388,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject } __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "netCDF4.pyx":3991 + /* "netCDF4/_netCDF4.pyx":3991 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * return xtype # <<<<<<<<<<<<<< @@ -56402,7 +56402,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __pyx_t_6 = 0; goto __pyx_L0; - /* "netCDF4.pyx":3921 + /* "netCDF4/_netCDF4.pyx":3921 * (self.name,self.dtype) * * cdef _def_compound(grp, object dt, object dtype_name): # <<<<<<<<<<<<<< @@ -56418,7 +56418,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_12); __Pyx_XDECREF(__pyx_t_13); - __Pyx_AddTraceback("netCDF4._def_compound", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._def_compound", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_bytestr); @@ -56433,7 +56433,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject return __pyx_r; } -/* "netCDF4.pyx":3993 +/* "netCDF4/_netCDF4.pyx":3993 * return xtype * * cdef _find_cmptype(grp, dtype): # <<<<<<<<<<<<<< @@ -56441,7 +56441,7 @@ static PyObject *__pyx_f_7netCDF4__def_compound(PyObject *__pyx_v_grp, PyObject * # return datatype id when found, if not found, raise exception. */ -static PyObject *__pyx_f_7netCDF4__find_cmptype(PyObject *__pyx_v_grp, PyObject *__pyx_v_dtype) { +static PyObject *__pyx_f_7netCDF4_8_netCDF4__find_cmptype(PyObject *__pyx_v_grp, PyObject *__pyx_v_dtype) { nc_type __pyx_v_xtype; int __pyx_v_match; CYTHON_UNUSED PyObject *__pyx_v_cmpname = NULL; @@ -56476,7 +56476,7 @@ static PyObject *__pyx_f_7netCDF4__find_cmptype(PyObject *__pyx_v_grp, PyObject int __pyx_clineno = 0; __Pyx_RefNannySetupContext("_find_cmptype", 0); - /* "netCDF4.pyx":3997 + /* "netCDF4/_netCDF4.pyx":3997 * # return datatype id when found, if not found, raise exception. * cdef nc_type xtype * match = False # <<<<<<<<<<<<<< @@ -56485,7 +56485,7 @@ static PyObject *__pyx_f_7netCDF4__find_cmptype(PyObject *__pyx_v_grp, PyObject */ __pyx_v_match = 0; - /* "netCDF4.pyx":3998 + /* "netCDF4/_netCDF4.pyx":3998 * cdef nc_type xtype * match = False * for cmpname, cmpdt in grp.cmptypes.items(): # <<<<<<<<<<<<<< @@ -56608,7 +56608,7 @@ static PyObject *__pyx_f_7netCDF4__find_cmptype(PyObject *__pyx_v_grp, PyObject __Pyx_XDECREF_SET(__pyx_v_cmpdt, __pyx_t_6); __pyx_t_6 = 0; - /* "netCDF4.pyx":3999 + /* "netCDF4/_netCDF4.pyx":3999 * match = False * for cmpname, cmpdt in grp.cmptypes.items(): * xtype = cmpdt._nc_type # <<<<<<<<<<<<<< @@ -56621,7 +56621,7 @@ static PyObject *__pyx_f_7netCDF4__find_cmptype(PyObject *__pyx_v_grp, PyObject __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v_xtype = __pyx_t_9; - /* "netCDF4.pyx":4000 + /* "netCDF4/_netCDF4.pyx":4000 * for cmpname, cmpdt in grp.cmptypes.items(): * xtype = cmpdt._nc_type * names1 = dtype.names; names2 = cmpdt.dtype.names # <<<<<<<<<<<<<< @@ -56640,7 +56640,7 @@ static PyObject *__pyx_f_7netCDF4__find_cmptype(PyObject *__pyx_v_grp, PyObject __Pyx_XDECREF_SET(__pyx_v_names2, __pyx_t_6); __pyx_t_6 = 0; - /* "netCDF4.pyx":4001 + /* "netCDF4/_netCDF4.pyx":4001 * xtype = cmpdt._nc_type * names1 = dtype.names; names2 = cmpdt.dtype.names * formats1 = [v[0] for v in dtype.fields.values()] # <<<<<<<<<<<<<< @@ -56721,7 +56721,7 @@ static PyObject *__pyx_f_7netCDF4__find_cmptype(PyObject *__pyx_v_grp, PyObject __Pyx_XDECREF_SET(__pyx_v_formats1, ((PyObject*)__pyx_t_6)); __pyx_t_6 = 0; - /* "netCDF4.pyx":4002 + /* "netCDF4/_netCDF4.pyx":4002 * names1 = dtype.names; names2 = cmpdt.dtype.names * formats1 = [v[0] for v in dtype.fields.values()] * formats2 = [v[0] for v in cmpdt.dtype.fields.values()] # <<<<<<<<<<<<<< @@ -56805,7 +56805,7 @@ static PyObject *__pyx_f_7netCDF4__find_cmptype(PyObject *__pyx_v_grp, PyObject __Pyx_XDECREF_SET(__pyx_v_formats2, ((PyObject*)__pyx_t_6)); __pyx_t_6 = 0; - /* "netCDF4.pyx":4005 + /* "netCDF4/_netCDF4.pyx":4005 * # match names, formats, but not offsets (they may be changed * # by netcdf lib). * if names1==names2 and formats1==formats2: # <<<<<<<<<<<<<< @@ -56827,7 +56827,7 @@ static PyObject *__pyx_f_7netCDF4__find_cmptype(PyObject *__pyx_v_grp, PyObject __pyx_L12_bool_binop_done:; if (__pyx_t_12) { - /* "netCDF4.pyx":4006 + /* "netCDF4/_netCDF4.pyx":4006 * # by netcdf lib). * if names1==names2 and formats1==formats2: * match = True # <<<<<<<<<<<<<< @@ -56836,7 +56836,7 @@ static PyObject *__pyx_f_7netCDF4__find_cmptype(PyObject *__pyx_v_grp, PyObject */ __pyx_v_match = 1; - /* "netCDF4.pyx":4007 + /* "netCDF4/_netCDF4.pyx":4007 * if names1==names2 and formats1==formats2: * match = True * break # <<<<<<<<<<<<<< @@ -56846,7 +56846,7 @@ static PyObject *__pyx_f_7netCDF4__find_cmptype(PyObject *__pyx_v_grp, PyObject goto __pyx_L4_break; } - /* "netCDF4.pyx":3998 + /* "netCDF4/_netCDF4.pyx":3998 * cdef nc_type xtype * match = False * for cmpname, cmpdt in grp.cmptypes.items(): # <<<<<<<<<<<<<< @@ -56857,7 +56857,7 @@ static PyObject *__pyx_f_7netCDF4__find_cmptype(PyObject *__pyx_v_grp, PyObject __pyx_L4_break:; __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":4008 + /* "netCDF4/_netCDF4.pyx":4008 * match = True * break * if not match: # <<<<<<<<<<<<<< @@ -56867,7 +56867,7 @@ static PyObject *__pyx_f_7netCDF4__find_cmptype(PyObject *__pyx_v_grp, PyObject __pyx_t_12 = ((!(__pyx_v_match != 0)) != 0); if (__pyx_t_12) { - /* "netCDF4.pyx":4009 + /* "netCDF4/_netCDF4.pyx":4009 * break * if not match: * try: # <<<<<<<<<<<<<< @@ -56881,7 +56881,7 @@ static PyObject *__pyx_f_7netCDF4__find_cmptype(PyObject *__pyx_v_grp, PyObject __Pyx_XGOTREF(__pyx_t_16); /*try:*/ { - /* "netCDF4.pyx":4010 + /* "netCDF4/_netCDF4.pyx":4010 * if not match: * try: * parent_grp = grp.parent # <<<<<<<<<<<<<< @@ -56904,7 +56904,7 @@ static PyObject *__pyx_f_7netCDF4__find_cmptype(PyObject *__pyx_v_grp, PyObject __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":4011 + /* "netCDF4/_netCDF4.pyx":4011 * try: * parent_grp = grp.parent * except AttributeError: # <<<<<<<<<<<<<< @@ -56913,13 +56913,13 @@ static PyObject *__pyx_f_7netCDF4__find_cmptype(PyObject *__pyx_v_grp, PyObject */ __pyx_t_17 = PyErr_ExceptionMatches(__pyx_builtin_AttributeError); if (__pyx_t_17) { - __Pyx_AddTraceback("netCDF4._find_cmptype", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._find_cmptype", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_3, &__pyx_t_6, &__pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4011; __pyx_clineno = __LINE__; goto __pyx_L17_except_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_1); - /* "netCDF4.pyx":4012 + /* "netCDF4/_netCDF4.pyx":4012 * parent_grp = grp.parent * except AttributeError: * raise ValueError("cannot find compound type in this group or parent groups") # <<<<<<<<<<<<<< @@ -56942,7 +56942,7 @@ static PyObject *__pyx_f_7netCDF4__find_cmptype(PyObject *__pyx_v_grp, PyObject __pyx_L22_try_end:; } - /* "netCDF4.pyx":4013 + /* "netCDF4/_netCDF4.pyx":4013 * except AttributeError: * raise ValueError("cannot find compound type in this group or parent groups") * if parent_grp is None: # <<<<<<<<<<<<<< @@ -56953,7 +56953,7 @@ static PyObject *__pyx_f_7netCDF4__find_cmptype(PyObject *__pyx_v_grp, PyObject __pyx_t_13 = (__pyx_t_12 != 0); if (__pyx_t_13) { - /* "netCDF4.pyx":4014 + /* "netCDF4/_netCDF4.pyx":4014 * raise ValueError("cannot find compound type in this group or parent groups") * if parent_grp is None: * raise ValueError("cannot find compound type in this group or parent groups") # <<<<<<<<<<<<<< @@ -56968,14 +56968,14 @@ static PyObject *__pyx_f_7netCDF4__find_cmptype(PyObject *__pyx_v_grp, PyObject } /*else*/ { - /* "netCDF4.pyx":4016 + /* "netCDF4/_netCDF4.pyx":4016 * raise ValueError("cannot find compound type in this group or parent groups") * else: * xtype = _find_cmptype(parent_grp,dtype) # <<<<<<<<<<<<<< * return xtype * */ - __pyx_t_1 = __pyx_f_7netCDF4__find_cmptype(__pyx_v_parent_grp, __pyx_v_dtype); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4016; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_7netCDF4_8_netCDF4__find_cmptype(__pyx_v_parent_grp, __pyx_v_dtype); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4016; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_t_9 = __Pyx_PyInt_As_nc_type(__pyx_t_1); if (unlikely((__pyx_t_9 == (nc_type)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4016; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -56985,7 +56985,7 @@ static PyObject *__pyx_f_7netCDF4__find_cmptype(PyObject *__pyx_v_grp, PyObject } __pyx_L14:; - /* "netCDF4.pyx":4017 + /* "netCDF4/_netCDF4.pyx":4017 * else: * xtype = _find_cmptype(parent_grp,dtype) * return xtype # <<<<<<<<<<<<<< @@ -56999,7 +56999,7 @@ static PyObject *__pyx_f_7netCDF4__find_cmptype(PyObject *__pyx_v_grp, PyObject __pyx_t_1 = 0; goto __pyx_L0; - /* "netCDF4.pyx":3993 + /* "netCDF4/_netCDF4.pyx":3993 * return xtype * * cdef _find_cmptype(grp, dtype): # <<<<<<<<<<<<<< @@ -57014,7 +57014,7 @@ static PyObject *__pyx_f_7netCDF4__find_cmptype(PyObject *__pyx_v_grp, PyObject __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); - __Pyx_AddTraceback("netCDF4._find_cmptype", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._find_cmptype", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_cmpname); @@ -57030,7 +57030,7 @@ static PyObject *__pyx_f_7netCDF4__find_cmptype(PyObject *__pyx_v_grp, PyObject return __pyx_r; } -/* "netCDF4.pyx":4019 +/* "netCDF4/_netCDF4.pyx":4019 * return xtype * * cdef _read_compound(group, nc_type xtype, endian=None): # <<<<<<<<<<<<<< @@ -57038,7 +57038,7 @@ static PyObject *__pyx_f_7netCDF4__find_cmptype(PyObject *__pyx_v_grp, PyObject * # construct a corresponding numpy dtype instance, */ -static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_type __pyx_v_xtype, struct __pyx_opt_args_7netCDF4__read_compound *__pyx_optional_args) { +static PyObject *__pyx_f_7netCDF4_8_netCDF4__read_compound(PyObject *__pyx_v_group, nc_type __pyx_v_xtype, struct __pyx_opt_args_7netCDF4_8_netCDF4__read_compound *__pyx_optional_args) { PyObject *__pyx_v_endian = ((PyObject *)Py_None); int __pyx_v_ierr; int __pyx_v_nf; @@ -57079,7 +57079,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ PyObject *__pyx_t_14 = NULL; PyObject *__pyx_t_15 = NULL; int __pyx_t_16; - struct __pyx_opt_args_7netCDF4__read_compound __pyx_t_17; + struct __pyx_opt_args_7netCDF4_8_netCDF4__read_compound __pyx_t_17; int __pyx_lineno = 0; const char *__pyx_filename = NULL; int __pyx_clineno = 0; @@ -57090,7 +57090,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ } } - /* "netCDF4.pyx":4032 + /* "netCDF4/_netCDF4.pyx":4032 * cdef char cmp_namstring[NC_MAX_NAME+1] * # get name and number of fields. * _grpid = group._grpid # <<<<<<<<<<<<<< @@ -57103,7 +57103,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v__grpid = __pyx_t_2; - /* "netCDF4.pyx":4033 + /* "netCDF4/_netCDF4.pyx":4033 * # get name and number of fields. * _grpid = group._grpid * with nogil: # <<<<<<<<<<<<<< @@ -57117,7 +57117,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ #endif /*try:*/ { - /* "netCDF4.pyx":4034 + /* "netCDF4/_netCDF4.pyx":4034 * _grpid = group._grpid * with nogil: * ierr = nc_inq_compound(_grpid, xtype, cmp_namstring, NULL, &nfields) # <<<<<<<<<<<<<< @@ -57127,7 +57127,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __pyx_v_ierr = nc_inq_compound(__pyx_v__grpid, __pyx_v_xtype, __pyx_v_cmp_namstring, NULL, (&__pyx_v_nfields)); } - /* "netCDF4.pyx":4033 + /* "netCDF4/_netCDF4.pyx":4033 * # get name and number of fields. * _grpid = group._grpid * with nogil: # <<<<<<<<<<<<<< @@ -57145,7 +57145,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ } } - /* "netCDF4.pyx":4035 + /* "netCDF4/_netCDF4.pyx":4035 * with nogil: * ierr = nc_inq_compound(_grpid, xtype, cmp_namstring, NULL, &nfields) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -57155,7 +57155,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":4036 + /* "netCDF4/_netCDF4.pyx":4036 * ierr = nc_inq_compound(_grpid, xtype, cmp_namstring, NULL, &nfields) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -57179,7 +57179,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4036; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":4037 + /* "netCDF4/_netCDF4.pyx":4037 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * name = cmp_namstring.decode(default_encoding,unicode_error) # <<<<<<<<<<<<<< @@ -57225,7 +57225,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __pyx_v_name = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":4039 + /* "netCDF4/_netCDF4.pyx":4039 * name = cmp_namstring.decode(default_encoding,unicode_error) * # loop over fields. * names = [] # <<<<<<<<<<<<<< @@ -57237,7 +57237,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __pyx_v_names = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":4040 + /* "netCDF4/_netCDF4.pyx":4040 * # loop over fields. * names = [] * formats = [] # <<<<<<<<<<<<<< @@ -57249,7 +57249,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __pyx_v_formats = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":4041 + /* "netCDF4/_netCDF4.pyx":4041 * names = [] * formats = [] * offsets = [] # <<<<<<<<<<<<<< @@ -57261,7 +57261,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __pyx_v_offsets = ((PyObject*)__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":4042 + /* "netCDF4/_netCDF4.pyx":4042 * formats = [] * offsets = [] * for nf from 0 <= nf < nfields: # <<<<<<<<<<<<<< @@ -57271,7 +57271,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __pyx_t_11 = __pyx_v_nfields; for (__pyx_v_nf = 0; __pyx_v_nf < __pyx_t_11; __pyx_v_nf++) { - /* "netCDF4.pyx":4043 + /* "netCDF4/_netCDF4.pyx":4043 * offsets = [] * for nf from 0 <= nf < nfields: * with nogil: # <<<<<<<<<<<<<< @@ -57285,7 +57285,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ #endif /*try:*/ { - /* "netCDF4.pyx":4044 + /* "netCDF4/_netCDF4.pyx":4044 * for nf from 0 <= nf < nfields: * with nogil: * ierr = nc_inq_compound_field(_grpid, # <<<<<<<<<<<<<< @@ -57295,7 +57295,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __pyx_v_ierr = nc_inq_compound_field(__pyx_v__grpid, __pyx_v_xtype, __pyx_v_nf, __pyx_v_field_namstring, (&__pyx_v_offset), (&__pyx_v_field_typeid), (&__pyx_v_numdims), __pyx_v_dim_sizes); } - /* "netCDF4.pyx":4043 + /* "netCDF4/_netCDF4.pyx":4043 * offsets = [] * for nf from 0 <= nf < nfields: * with nogil: # <<<<<<<<<<<<<< @@ -57313,7 +57313,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ } } - /* "netCDF4.pyx":4052 + /* "netCDF4/_netCDF4.pyx":4052 * &numdims, * dim_sizes) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -57323,7 +57323,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":4053 + /* "netCDF4/_netCDF4.pyx":4053 * dim_sizes) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -57347,7 +57347,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4053; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":4054 + /* "netCDF4/_netCDF4.pyx":4054 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * field_name = field_namstring.decode(default_encoding,unicode_error) # <<<<<<<<<<<<<< @@ -57393,7 +57393,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __Pyx_XDECREF_SET(__pyx_v_field_name, __pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":4055 + /* "netCDF4/_netCDF4.pyx":4055 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * field_name = field_namstring.decode(default_encoding,unicode_error) * names.append(field_name) # <<<<<<<<<<<<<< @@ -57402,7 +57402,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ */ __pyx_t_12 = __Pyx_PyObject_Append(__pyx_v_names, __pyx_v_field_name); if (unlikely(__pyx_t_12 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4055; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":4056 + /* "netCDF4/_netCDF4.pyx":4056 * field_name = field_namstring.decode(default_encoding,unicode_error) * names.append(field_name) * offsets.append(offset) # <<<<<<<<<<<<<< @@ -57414,7 +57414,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __pyx_t_12 = __Pyx_PyList_Append(__pyx_v_offsets, __pyx_t_1); if (unlikely(__pyx_t_12 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4056; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":4058 + /* "netCDF4/_netCDF4.pyx":4058 * offsets.append(offset) * # if numdims=0, not an array. * field_shape = () # <<<<<<<<<<<<<< @@ -57424,7 +57424,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __Pyx_INCREF(__pyx_empty_tuple); __Pyx_XDECREF_SET(__pyx_v_field_shape, __pyx_empty_tuple); - /* "netCDF4.pyx":4059 + /* "netCDF4/_netCDF4.pyx":4059 * # if numdims=0, not an array. * field_shape = () * if numdims != 0: # <<<<<<<<<<<<<< @@ -57434,7 +57434,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __pyx_t_3 = ((__pyx_v_numdims != 0) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":4060 + /* "netCDF4/_netCDF4.pyx":4060 * field_shape = () * if numdims != 0: * for ndim from 0 <= ndim < numdims: # <<<<<<<<<<<<<< @@ -57444,7 +57444,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __pyx_t_2 = __pyx_v_numdims; for (__pyx_v_ndim = 0; __pyx_v_ndim < __pyx_t_2; __pyx_v_ndim++) { - /* "netCDF4.pyx":4061 + /* "netCDF4/_netCDF4.pyx":4061 * if numdims != 0: * for ndim from 0 <= ndim < numdims: * field_shape = field_shape + (dim_sizes[ndim],) # <<<<<<<<<<<<<< @@ -57468,7 +57468,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ } __pyx_L15:; - /* "netCDF4.pyx":4063 + /* "netCDF4/_netCDF4.pyx":4063 * field_shape = field_shape + (dim_sizes[ndim],) * # check to see if this field is a nested compound type. * try: # <<<<<<<<<<<<<< @@ -57482,7 +57482,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __Pyx_XGOTREF(__pyx_t_15); /*try:*/ { - /* "netCDF4.pyx":4064 + /* "netCDF4/_netCDF4.pyx":4064 * # check to see if this field is a nested compound type. * try: * field_type = _nctonptype[field_typeid] # <<<<<<<<<<<<<< @@ -57497,7 +57497,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __Pyx_XDECREF_SET(__pyx_v_field_type, __pyx_t_10); __pyx_t_10 = 0; - /* "netCDF4.pyx":4065 + /* "netCDF4/_netCDF4.pyx":4065 * try: * field_type = _nctonptype[field_typeid] * if endian is not None: # <<<<<<<<<<<<<< @@ -57508,7 +57508,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __pyx_t_16 = (__pyx_t_3 != 0); if (__pyx_t_16) { - /* "netCDF4.pyx":4066 + /* "netCDF4/_netCDF4.pyx":4066 * field_type = _nctonptype[field_typeid] * if endian is not None: * format = endian + format # <<<<<<<<<<<<<< @@ -57536,7 +57536,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; - /* "netCDF4.pyx":4067 + /* "netCDF4/_netCDF4.pyx":4067 * if endian is not None: * format = endian + format * except KeyError: # <<<<<<<<<<<<<< @@ -57545,13 +57545,13 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ */ __pyx_t_2 = PyErr_ExceptionMatches(__pyx_builtin_KeyError); if (__pyx_t_2) { - __Pyx_AddTraceback("netCDF4._read_compound", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._read_compound", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_10, &__pyx_t_1, &__pyx_t_8) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4067; __pyx_clineno = __LINE__; goto __pyx_L20_except_error;} __Pyx_GOTREF(__pyx_t_10); __Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_8); - /* "netCDF4.pyx":4068 + /* "netCDF4/_netCDF4.pyx":4068 * format = endian + format * except KeyError: * with nogil: # <<<<<<<<<<<<<< @@ -57565,7 +57565,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ #endif /*try:*/ { - /* "netCDF4.pyx":4069 + /* "netCDF4/_netCDF4.pyx":4069 * except KeyError: * with nogil: * ierr = nc_inq_user_type(_grpid, # <<<<<<<<<<<<<< @@ -57575,7 +57575,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __pyx_v_ierr = nc_inq_user_type(__pyx_v__grpid, __pyx_v_field_typeid, NULL, NULL, NULL, NULL, (&__pyx_v_classp)); } - /* "netCDF4.pyx":4068 + /* "netCDF4/_netCDF4.pyx":4068 * format = endian + format * except KeyError: * with nogil: # <<<<<<<<<<<<<< @@ -57593,7 +57593,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ } } - /* "netCDF4.pyx":4071 + /* "netCDF4/_netCDF4.pyx":4071 * ierr = nc_inq_user_type(_grpid, * field_typeid,NULL,NULL,NULL,NULL,&classp) * if classp == NC_COMPOUND: # a compound type # <<<<<<<<<<<<<< @@ -57603,7 +57603,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __pyx_t_16 = ((__pyx_v_classp == NC_COMPOUND) != 0); if (__pyx_t_16) { - /* "netCDF4.pyx":4073 + /* "netCDF4/_netCDF4.pyx":4073 * if classp == NC_COMPOUND: # a compound type * # recursively call this function? * field_type = _read_compound(group, field_typeid, endian=endian) # <<<<<<<<<<<<<< @@ -57612,7 +57612,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ */ __pyx_t_17.__pyx_n = 1; __pyx_t_17.endian = __pyx_v_endian; - __pyx_t_7 = __pyx_f_7netCDF4__read_compound(__pyx_v_group, __pyx_v_field_typeid, &__pyx_t_17); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4073; __pyx_clineno = __LINE__; goto __pyx_L20_except_error;} + __pyx_t_7 = __pyx_f_7netCDF4_8_netCDF4__read_compound(__pyx_v_group, __pyx_v_field_typeid, &__pyx_t_17); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4073; __pyx_clineno = __LINE__; goto __pyx_L20_except_error;} __Pyx_GOTREF(__pyx_t_7); __Pyx_XDECREF_SET(__pyx_v_field_type, __pyx_t_7); __pyx_t_7 = 0; @@ -57620,7 +57620,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ } /*else*/ { - /* "netCDF4.pyx":4075 + /* "netCDF4/_netCDF4.pyx":4075 * field_type = _read_compound(group, field_typeid, endian=endian) * else: * raise KeyError('compound field of an unsupported data type') # <<<<<<<<<<<<<< @@ -57654,7 +57654,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __pyx_L25_try_end:; } - /* "netCDF4.pyx":4076 + /* "netCDF4/_netCDF4.pyx":4076 * else: * raise KeyError('compound field of an unsupported data type') * if field_shape != (): # <<<<<<<<<<<<<< @@ -57666,7 +57666,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; if (__pyx_t_16) { - /* "netCDF4.pyx":4077 + /* "netCDF4/_netCDF4.pyx":4077 * raise KeyError('compound field of an unsupported data type') * if field_shape != (): * formats.append((field_type,field_shape)) # <<<<<<<<<<<<<< @@ -57687,7 +57687,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ } /*else*/ { - /* "netCDF4.pyx":4079 + /* "netCDF4/_netCDF4.pyx":4079 * formats.append((field_type,field_shape)) * else: * formats.append(field_type) # <<<<<<<<<<<<<< @@ -57699,7 +57699,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __pyx_L35:; } - /* "netCDF4.pyx":4081 + /* "netCDF4/_netCDF4.pyx":4081 * formats.append(field_type) * # make sure entries in lists sorted by offset. * names = _sortbylist(names, offsets) # <<<<<<<<<<<<<< @@ -57738,7 +57738,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __Pyx_DECREF_SET(__pyx_v_names, __pyx_t_8); __pyx_t_8 = 0; - /* "netCDF4.pyx":4082 + /* "netCDF4/_netCDF4.pyx":4082 * # make sure entries in lists sorted by offset. * names = _sortbylist(names, offsets) * formats = _sortbylist(formats, offsets) # <<<<<<<<<<<<<< @@ -57777,7 +57777,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __Pyx_DECREF_SET(__pyx_v_formats, __pyx_t_8); __pyx_t_8 = 0; - /* "netCDF4.pyx":4083 + /* "netCDF4/_netCDF4.pyx":4083 * names = _sortbylist(names, offsets) * formats = _sortbylist(formats, offsets) * offsets.sort() # <<<<<<<<<<<<<< @@ -57786,7 +57786,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ */ __pyx_t_12 = PyList_Sort(__pyx_v_offsets); if (unlikely(__pyx_t_12 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4083; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":4085 + /* "netCDF4/_netCDF4.pyx":4085 * offsets.sort() * # create a dict that can be converted into a numpy dtype. * dtype_dict = {'names':names,'formats':formats,'offsets':offsets} # <<<<<<<<<<<<<< @@ -57801,7 +57801,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __pyx_v_dtype_dict = ((PyObject*)__pyx_t_8); __pyx_t_8 = 0; - /* "netCDF4.pyx":4086 + /* "netCDF4/_netCDF4.pyx":4086 * # create a dict that can be converted into a numpy dtype. * dtype_dict = {'names':names,'formats':formats,'offsets':offsets} * return CompoundType(group, dtype_dict, name, typeid=xtype) # <<<<<<<<<<<<<< @@ -57826,7 +57826,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __Pyx_GOTREF(__pyx_t_10); if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_typeid, __pyx_t_10) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4086; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_10 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_CompoundType)), __pyx_t_8, __pyx_t_1); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4086; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_10 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_CompoundType)), __pyx_t_8, __pyx_t_1); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4086; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_10); __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; @@ -57834,7 +57834,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __pyx_t_10 = 0; goto __pyx_L0; - /* "netCDF4.pyx":4019 + /* "netCDF4/_netCDF4.pyx":4019 * return xtype * * cdef _read_compound(group, nc_type xtype, endian=None): # <<<<<<<<<<<<<< @@ -57850,7 +57850,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_10); - __Pyx_AddTraceback("netCDF4._read_compound", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._read_compound", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_name); @@ -57867,7 +57867,7 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ return __pyx_r; } -/* "netCDF4.pyx":4124 +/* "netCDF4/_netCDF4.pyx":4124 * cdef public nc_type _nc_type * cdef public dtype, name * def __init__(self, grp, object dt, object dtype_name, **kwargs): # <<<<<<<<<<<<<< @@ -57876,8 +57876,8 @@ static PyObject *__pyx_f_7netCDF4__read_compound(PyObject *__pyx_v_group, nc_typ */ /* Python wrapper */ -static int __pyx_pw_7netCDF4_6VLType_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static int __pyx_pw_7netCDF4_6VLType_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { +static int __pyx_pw_7netCDF4_8_netCDF4_6VLType_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_6VLType_1__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { PyObject *__pyx_v_grp = 0; PyObject *__pyx_v_dt = 0; PyObject *__pyx_v_dtype_name = 0; @@ -57938,11 +57938,11 @@ static int __pyx_pw_7netCDF4_6VLType_1__init__(PyObject *__pyx_v_self, PyObject __Pyx_RaiseArgtupleInvalid("__init__", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4124; __pyx_clineno = __LINE__; goto __pyx_L3_error;} __pyx_L3_error:; __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0; - __Pyx_AddTraceback("netCDF4.VLType.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.VLType.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __Pyx_RefNannyFinishContext(); return -1; __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_7netCDF4_6VLType___init__(((struct __pyx_obj_7netCDF4_VLType *)__pyx_v_self), __pyx_v_grp, __pyx_v_dt, __pyx_v_dtype_name, __pyx_v_kwargs); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_6VLType___init__(((struct __pyx_obj_7netCDF4_8_netCDF4_VLType *)__pyx_v_self), __pyx_v_grp, __pyx_v_dt, __pyx_v_dtype_name, __pyx_v_kwargs); /* function exit code */ __Pyx_XDECREF(__pyx_v_kwargs); @@ -57950,7 +57950,7 @@ static int __pyx_pw_7netCDF4_6VLType_1__init__(PyObject *__pyx_v_self, PyObject return __pyx_r; } -static int __pyx_pf_7netCDF4_6VLType___init__(struct __pyx_obj_7netCDF4_VLType *__pyx_v_self, PyObject *__pyx_v_grp, PyObject *__pyx_v_dt, PyObject *__pyx_v_dtype_name, PyObject *__pyx_v_kwargs) { +static int __pyx_pf_7netCDF4_8_netCDF4_6VLType___init__(struct __pyx_obj_7netCDF4_8_netCDF4_VLType *__pyx_v_self, PyObject *__pyx_v_grp, PyObject *__pyx_v_dt, PyObject *__pyx_v_dtype_name, PyObject *__pyx_v_kwargs) { nc_type __pyx_v_xtype; int __pyx_r; __Pyx_RefNannyDeclarations @@ -57968,7 +57968,7 @@ static int __pyx_pf_7netCDF4_6VLType___init__(struct __pyx_obj_7netCDF4_VLType * __Pyx_RefNannySetupContext("__init__", 0); __Pyx_INCREF(__pyx_v_dt); - /* "netCDF4.pyx":4126 + /* "netCDF4/_netCDF4.pyx":4126 * def __init__(self, grp, object dt, object dtype_name, **kwargs): * cdef nc_type xtype * if 'typeid' in kwargs: # <<<<<<<<<<<<<< @@ -57979,7 +57979,7 @@ static int __pyx_pf_7netCDF4_6VLType___init__(struct __pyx_obj_7netCDF4_VLType * __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "netCDF4.pyx":4127 + /* "netCDF4/_netCDF4.pyx":4127 * cdef nc_type xtype * if 'typeid' in kwargs: * xtype = kwargs['typeid'] # <<<<<<<<<<<<<< @@ -57995,14 +57995,14 @@ static int __pyx_pf_7netCDF4_6VLType___init__(struct __pyx_obj_7netCDF4_VLType * } /*else*/ { - /* "netCDF4.pyx":4129 + /* "netCDF4/_netCDF4.pyx":4129 * xtype = kwargs['typeid'] * else: * xtype, dt = _def_vlen(grp, dt, dtype_name) # <<<<<<<<<<<<<< * self._nc_type = xtype * self.dtype = dt */ - __pyx_t_3 = __pyx_f_7netCDF4__def_vlen(__pyx_v_grp, __pyx_v_dt, __pyx_v_dtype_name); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4129; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_3 = __pyx_f_7netCDF4_8_netCDF4__def_vlen(__pyx_v_grp, __pyx_v_dt, __pyx_v_dtype_name); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4129; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); if ((likely(PyTuple_CheckExact(__pyx_t_3))) || (PyList_CheckExact(__pyx_t_3))) { PyObject* sequence = __pyx_t_3; @@ -58062,7 +58062,7 @@ static int __pyx_pf_7netCDF4_6VLType___init__(struct __pyx_obj_7netCDF4_VLType * } __pyx_L3:; - /* "netCDF4.pyx":4130 + /* "netCDF4/_netCDF4.pyx":4130 * else: * xtype, dt = _def_vlen(grp, dt, dtype_name) * self._nc_type = xtype # <<<<<<<<<<<<<< @@ -58071,7 +58071,7 @@ static int __pyx_pf_7netCDF4_6VLType___init__(struct __pyx_obj_7netCDF4_VLType * */ __pyx_v_self->_nc_type = __pyx_v_xtype; - /* "netCDF4.pyx":4131 + /* "netCDF4/_netCDF4.pyx":4131 * xtype, dt = _def_vlen(grp, dt, dtype_name) * self._nc_type = xtype * self.dtype = dt # <<<<<<<<<<<<<< @@ -58084,7 +58084,7 @@ static int __pyx_pf_7netCDF4_6VLType___init__(struct __pyx_obj_7netCDF4_VLType * __Pyx_DECREF(__pyx_v_self->dtype); __pyx_v_self->dtype = __pyx_v_dt; - /* "netCDF4.pyx":4132 + /* "netCDF4/_netCDF4.pyx":4132 * self._nc_type = xtype * self.dtype = dt * if dt == str: # <<<<<<<<<<<<<< @@ -58096,7 +58096,7 @@ static int __pyx_pf_7netCDF4_6VLType___init__(struct __pyx_obj_7netCDF4_VLType * __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; if (__pyx_t_2) { - /* "netCDF4.pyx":4133 + /* "netCDF4/_netCDF4.pyx":4133 * self.dtype = dt * if dt == str: * self.name = None # <<<<<<<<<<<<<< @@ -58112,7 +58112,7 @@ static int __pyx_pf_7netCDF4_6VLType___init__(struct __pyx_obj_7netCDF4_VLType * } /*else*/ { - /* "netCDF4.pyx":4135 + /* "netCDF4/_netCDF4.pyx":4135 * self.name = None * else: * self.name = dtype_name # <<<<<<<<<<<<<< @@ -58127,7 +58127,7 @@ static int __pyx_pf_7netCDF4_6VLType___init__(struct __pyx_obj_7netCDF4_VLType * } __pyx_L6:; - /* "netCDF4.pyx":4124 + /* "netCDF4/_netCDF4.pyx":4124 * cdef public nc_type _nc_type * cdef public dtype, name * def __init__(self, grp, object dt, object dtype_name, **kwargs): # <<<<<<<<<<<<<< @@ -58143,7 +58143,7 @@ static int __pyx_pf_7netCDF4_6VLType___init__(struct __pyx_obj_7netCDF4_VLType * __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); __Pyx_XDECREF(__pyx_t_7); - __Pyx_AddTraceback("netCDF4.VLType.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.VLType.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_XDECREF(__pyx_v_dt); @@ -58151,7 +58151,7 @@ static int __pyx_pf_7netCDF4_6VLType___init__(struct __pyx_obj_7netCDF4_VLType * return __pyx_r; } -/* "netCDF4.pyx":4137 +/* "netCDF4/_netCDF4.pyx":4137 * self.name = dtype_name * * def __repr__(self): # <<<<<<<<<<<<<< @@ -58160,19 +58160,19 @@ static int __pyx_pf_7netCDF4_6VLType___init__(struct __pyx_obj_7netCDF4_VLType * */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_6VLType_3__repr__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_6VLType_3__repr__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_6VLType_3__repr__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_6VLType_3__repr__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_6VLType_2__repr__(((struct __pyx_obj_7netCDF4_VLType *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_6VLType_2__repr__(((struct __pyx_obj_7netCDF4_8_netCDF4_VLType *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_6VLType_2__repr__(struct __pyx_obj_7netCDF4_VLType *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_6VLType_2__repr__(struct __pyx_obj_7netCDF4_8_netCDF4_VLType *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -58186,7 +58186,7 @@ static PyObject *__pyx_pf_7netCDF4_6VLType_2__repr__(struct __pyx_obj_7netCDF4_V int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__repr__", 0); - /* "netCDF4.pyx":4138 + /* "netCDF4/_netCDF4.pyx":4138 * * def __repr__(self): * if python3: # <<<<<<<<<<<<<< @@ -58199,7 +58199,7 @@ static PyObject *__pyx_pf_7netCDF4_6VLType_2__repr__(struct __pyx_obj_7netCDF4_V __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { - /* "netCDF4.pyx":4139 + /* "netCDF4/_netCDF4.pyx":4139 * def __repr__(self): * if python3: * return self.__unicode__() # <<<<<<<<<<<<<< @@ -58233,7 +58233,7 @@ static PyObject *__pyx_pf_7netCDF4_6VLType_2__repr__(struct __pyx_obj_7netCDF4_V } /*else*/ { - /* "netCDF4.pyx":4141 + /* "netCDF4/_netCDF4.pyx":4141 * return self.__unicode__() * else: * return unicode(self).encode(default_encoding) # <<<<<<<<<<<<<< @@ -58285,7 +58285,7 @@ static PyObject *__pyx_pf_7netCDF4_6VLType_2__repr__(struct __pyx_obj_7netCDF4_V goto __pyx_L0; } - /* "netCDF4.pyx":4137 + /* "netCDF4/_netCDF4.pyx":4137 * self.name = dtype_name * * def __repr__(self): # <<<<<<<<<<<<<< @@ -58300,7 +58300,7 @@ static PyObject *__pyx_pf_7netCDF4_6VLType_2__repr__(struct __pyx_obj_7netCDF4_V __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); - __Pyx_AddTraceback("netCDF4.VLType.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.VLType.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -58308,7 +58308,7 @@ static PyObject *__pyx_pf_7netCDF4_6VLType_2__repr__(struct __pyx_obj_7netCDF4_V return __pyx_r; } -/* "netCDF4.pyx":4143 +/* "netCDF4/_netCDF4.pyx":4143 * return unicode(self).encode(default_encoding) * * def __unicode__(self): # <<<<<<<<<<<<<< @@ -58317,19 +58317,19 @@ static PyObject *__pyx_pf_7netCDF4_6VLType_2__repr__(struct __pyx_obj_7netCDF4_V */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_6VLType_5__unicode__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_6VLType_5__unicode__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_6VLType_5__unicode__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_6VLType_5__unicode__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__unicode__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_6VLType_4__unicode__(((struct __pyx_obj_7netCDF4_VLType *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_6VLType_4__unicode__(((struct __pyx_obj_7netCDF4_8_netCDF4_VLType *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_6VLType_4__unicode__(struct __pyx_obj_7netCDF4_VLType *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_6VLType_4__unicode__(struct __pyx_obj_7netCDF4_8_netCDF4_VLType *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -58341,7 +58341,7 @@ static PyObject *__pyx_pf_7netCDF4_6VLType_4__unicode__(struct __pyx_obj_7netCDF int __pyx_clineno = 0; __Pyx_RefNannySetupContext("__unicode__", 0); - /* "netCDF4.pyx":4144 + /* "netCDF4/_netCDF4.pyx":4144 * * def __unicode__(self): * if self.dtype == str: # <<<<<<<<<<<<<< @@ -58353,7 +58353,7 @@ static PyObject *__pyx_pf_7netCDF4_6VLType_4__unicode__(struct __pyx_obj_7netCDF __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { - /* "netCDF4.pyx":4145 + /* "netCDF4/_netCDF4.pyx":4145 * def __unicode__(self): * if self.dtype == str: * return repr(type(self))+': string type' # <<<<<<<<<<<<<< @@ -58372,7 +58372,7 @@ static PyObject *__pyx_pf_7netCDF4_6VLType_4__unicode__(struct __pyx_obj_7netCDF } /*else*/ { - /* "netCDF4.pyx":4147 + /* "netCDF4/_netCDF4.pyx":4147 * return repr(type(self))+': string type' * else: * return repr(type(self))+": name = '%s', numpy dtype = %s\n" %\ # <<<<<<<<<<<<<< @@ -58383,7 +58383,7 @@ static PyObject *__pyx_pf_7netCDF4_6VLType_4__unicode__(struct __pyx_obj_7netCDF __pyx_t_3 = PyObject_Repr(((PyObject *)Py_TYPE(((PyObject *)__pyx_v_self)))); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4147; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_3); - /* "netCDF4.pyx":4148 + /* "netCDF4/_netCDF4.pyx":4148 * else: * return repr(type(self))+": name = '%s', numpy dtype = %s\n" %\ * (self.name, self.dtype) # <<<<<<<<<<<<<< @@ -58399,7 +58399,7 @@ static PyObject *__pyx_pf_7netCDF4_6VLType_4__unicode__(struct __pyx_obj_7netCDF PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_self->dtype); __Pyx_GIVEREF(__pyx_v_self->dtype); - /* "netCDF4.pyx":4147 + /* "netCDF4/_netCDF4.pyx":4147 * return repr(type(self))+': string type' * else: * return repr(type(self))+": name = '%s', numpy dtype = %s\n" %\ # <<<<<<<<<<<<<< @@ -58418,7 +58418,7 @@ static PyObject *__pyx_pf_7netCDF4_6VLType_4__unicode__(struct __pyx_obj_7netCDF goto __pyx_L0; } - /* "netCDF4.pyx":4143 + /* "netCDF4/_netCDF4.pyx":4143 * return unicode(self).encode(default_encoding) * * def __unicode__(self): # <<<<<<<<<<<<<< @@ -58431,7 +58431,7 @@ static PyObject *__pyx_pf_7netCDF4_6VLType_4__unicode__(struct __pyx_obj_7netCDF __Pyx_XDECREF(__pyx_t_1); __Pyx_XDECREF(__pyx_t_3); __Pyx_XDECREF(__pyx_t_4); - __Pyx_AddTraceback("netCDF4.VLType.__unicode__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.VLType.__unicode__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -58439,7 +58439,7 @@ static PyObject *__pyx_pf_7netCDF4_6VLType_4__unicode__(struct __pyx_obj_7netCDF return __pyx_r; } -/* "netCDF4.pyx":4122 +/* "netCDF4/_netCDF4.pyx":4122 * @ivar name: A python string describing the VLEN type. * """ * cdef public nc_type _nc_type # <<<<<<<<<<<<<< @@ -58448,19 +58448,19 @@ static PyObject *__pyx_pf_7netCDF4_6VLType_4__unicode__(struct __pyx_obj_7netCDF */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_6VLType_8_nc_type_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_6VLType_8_nc_type_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_6VLType_8_nc_type_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_6VLType_8_nc_type_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_6VLType_8_nc_type___get__(((struct __pyx_obj_7netCDF4_VLType *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_6VLType_8_nc_type___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_VLType *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_6VLType_8_nc_type___get__(struct __pyx_obj_7netCDF4_VLType *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_6VLType_8_nc_type___get__(struct __pyx_obj_7netCDF4_8_netCDF4_VLType *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations PyObject *__pyx_t_1 = NULL; @@ -58478,7 +58478,7 @@ static PyObject *__pyx_pf_7netCDF4_6VLType_8_nc_type___get__(struct __pyx_obj_7n /* function exit code */ __pyx_L1_error:; __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("netCDF4.VLType._nc_type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.VLType._nc_type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = NULL; __pyx_L0:; __Pyx_XGIVEREF(__pyx_r); @@ -58487,19 +58487,19 @@ static PyObject *__pyx_pf_7netCDF4_6VLType_8_nc_type___get__(struct __pyx_obj_7n } /* Python wrapper */ -static int __pyx_pw_7netCDF4_6VLType_8_nc_type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_6VLType_8_nc_type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_6VLType_8_nc_type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_6VLType_8_nc_type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_6VLType_8_nc_type_2__set__(((struct __pyx_obj_7netCDF4_VLType *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_6VLType_8_nc_type_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_VLType *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_6VLType_8_nc_type_2__set__(struct __pyx_obj_7netCDF4_VLType *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_6VLType_8_nc_type_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_VLType *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations nc_type __pyx_t_1; @@ -58514,14 +58514,14 @@ static int __pyx_pf_7netCDF4_6VLType_8_nc_type_2__set__(struct __pyx_obj_7netCDF __pyx_r = 0; goto __pyx_L0; __pyx_L1_error:; - __Pyx_AddTraceback("netCDF4.VLType._nc_type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4.VLType._nc_type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = -1; __pyx_L0:; __Pyx_RefNannyFinishContext(); return __pyx_r; } -/* "netCDF4.pyx":4123 +/* "netCDF4/_netCDF4.pyx":4123 * """ * cdef public nc_type _nc_type * cdef public dtype, name # <<<<<<<<<<<<<< @@ -58530,19 +58530,19 @@ static int __pyx_pf_7netCDF4_6VLType_8_nc_type_2__set__(struct __pyx_obj_7netCDF */ /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_6VLType_5dtype_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_6VLType_5dtype_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_6VLType_5dtype_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_6VLType_5dtype_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_6VLType_5dtype___get__(((struct __pyx_obj_7netCDF4_VLType *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_6VLType_5dtype___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_VLType *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_6VLType_5dtype___get__(struct __pyx_obj_7netCDF4_VLType *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_6VLType_5dtype___get__(struct __pyx_obj_7netCDF4_8_netCDF4_VLType *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -58559,19 +58559,19 @@ static PyObject *__pyx_pf_7netCDF4_6VLType_5dtype___get__(struct __pyx_obj_7netC } /* Python wrapper */ -static int __pyx_pw_7netCDF4_6VLType_5dtype_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_6VLType_5dtype_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_6VLType_5dtype_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_6VLType_5dtype_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_6VLType_5dtype_2__set__(((struct __pyx_obj_7netCDF4_VLType *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_6VLType_5dtype_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_VLType *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_6VLType_5dtype_2__set__(struct __pyx_obj_7netCDF4_VLType *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_6VLType_5dtype_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_VLType *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -58588,19 +58588,19 @@ static int __pyx_pf_7netCDF4_6VLType_5dtype_2__set__(struct __pyx_obj_7netCDF4_V } /* Python wrapper */ -static int __pyx_pw_7netCDF4_6VLType_5dtype_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_6VLType_5dtype_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_6VLType_5dtype_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_6VLType_5dtype_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_6VLType_5dtype_4__del__(((struct __pyx_obj_7netCDF4_VLType *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_6VLType_5dtype_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_VLType *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_6VLType_5dtype_4__del__(struct __pyx_obj_7netCDF4_VLType *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_6VLType_5dtype_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_VLType *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -58617,19 +58617,19 @@ static int __pyx_pf_7netCDF4_6VLType_5dtype_4__del__(struct __pyx_obj_7netCDF4_V } /* Python wrapper */ -static PyObject *__pyx_pw_7netCDF4_6VLType_4name_1__get__(PyObject *__pyx_v_self); /*proto*/ -static PyObject *__pyx_pw_7netCDF4_6VLType_4name_1__get__(PyObject *__pyx_v_self) { +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_6VLType_4name_1__get__(PyObject *__pyx_v_self); /*proto*/ +static PyObject *__pyx_pw_7netCDF4_8_netCDF4_6VLType_4name_1__get__(PyObject *__pyx_v_self) { PyObject *__pyx_r = 0; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_6VLType_4name___get__(((struct __pyx_obj_7netCDF4_VLType *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_6VLType_4name___get__(((struct __pyx_obj_7netCDF4_8_netCDF4_VLType *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static PyObject *__pyx_pf_7netCDF4_6VLType_4name___get__(struct __pyx_obj_7netCDF4_VLType *__pyx_v_self) { +static PyObject *__pyx_pf_7netCDF4_8_netCDF4_6VLType_4name___get__(struct __pyx_obj_7netCDF4_8_netCDF4_VLType *__pyx_v_self) { PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__get__", 0); @@ -58646,19 +58646,19 @@ static PyObject *__pyx_pf_7netCDF4_6VLType_4name___get__(struct __pyx_obj_7netCD } /* Python wrapper */ -static int __pyx_pw_7netCDF4_6VLType_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ -static int __pyx_pw_7netCDF4_6VLType_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pw_7netCDF4_8_netCDF4_6VLType_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_6VLType_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_6VLType_4name_2__set__(((struct __pyx_obj_7netCDF4_VLType *)__pyx_v_self), ((PyObject *)__pyx_v_value)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_6VLType_4name_2__set__(((struct __pyx_obj_7netCDF4_8_netCDF4_VLType *)__pyx_v_self), ((PyObject *)__pyx_v_value)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_6VLType_4name_2__set__(struct __pyx_obj_7netCDF4_VLType *__pyx_v_self, PyObject *__pyx_v_value) { +static int __pyx_pf_7netCDF4_8_netCDF4_6VLType_4name_2__set__(struct __pyx_obj_7netCDF4_8_netCDF4_VLType *__pyx_v_self, PyObject *__pyx_v_value) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__set__", 0); @@ -58675,19 +58675,19 @@ static int __pyx_pf_7netCDF4_6VLType_4name_2__set__(struct __pyx_obj_7netCDF4_VL } /* Python wrapper */ -static int __pyx_pw_7netCDF4_6VLType_4name_5__del__(PyObject *__pyx_v_self); /*proto*/ -static int __pyx_pw_7netCDF4_6VLType_4name_5__del__(PyObject *__pyx_v_self) { +static int __pyx_pw_7netCDF4_8_netCDF4_6VLType_4name_5__del__(PyObject *__pyx_v_self); /*proto*/ +static int __pyx_pw_7netCDF4_8_netCDF4_6VLType_4name_5__del__(PyObject *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__ (wrapper)", 0); - __pyx_r = __pyx_pf_7netCDF4_6VLType_4name_4__del__(((struct __pyx_obj_7netCDF4_VLType *)__pyx_v_self)); + __pyx_r = __pyx_pf_7netCDF4_8_netCDF4_6VLType_4name_4__del__(((struct __pyx_obj_7netCDF4_8_netCDF4_VLType *)__pyx_v_self)); /* function exit code */ __Pyx_RefNannyFinishContext(); return __pyx_r; } -static int __pyx_pf_7netCDF4_6VLType_4name_4__del__(struct __pyx_obj_7netCDF4_VLType *__pyx_v_self) { +static int __pyx_pf_7netCDF4_8_netCDF4_6VLType_4name_4__del__(struct __pyx_obj_7netCDF4_8_netCDF4_VLType *__pyx_v_self) { int __pyx_r; __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__del__", 0); @@ -58703,7 +58703,7 @@ static int __pyx_pf_7netCDF4_6VLType_4name_4__del__(struct __pyx_obj_7netCDF4_VL return __pyx_r; } -/* "netCDF4.pyx":4150 +/* "netCDF4/_netCDF4.pyx":4150 * (self.name, self.dtype) * * cdef _def_vlen(grp, object dt, object dtype_name): # <<<<<<<<<<<<<< @@ -58711,7 +58711,7 @@ static int __pyx_pf_7netCDF4_6VLType_4name_4__del__(struct __pyx_obj_7netCDF4_VL * # from a numpy dtype object or python str object by VLType.__init__. */ -static PyObject *__pyx_f_7netCDF4__def_vlen(PyObject *__pyx_v_grp, PyObject *__pyx_v_dt, PyObject *__pyx_v_dtype_name) { +static PyObject *__pyx_f_7netCDF4_8_netCDF4__def_vlen(PyObject *__pyx_v_grp, PyObject *__pyx_v_dt, PyObject *__pyx_v_dtype_name) { nc_type __pyx_v_xtype; nc_type __pyx_v_xtype_tmp; int __pyx_v_ierr; @@ -58734,7 +58734,7 @@ static PyObject *__pyx_f_7netCDF4__def_vlen(PyObject *__pyx_v_grp, PyObject *__p __Pyx_RefNannySetupContext("_def_vlen", 0); __Pyx_INCREF(__pyx_v_dt); - /* "netCDF4.pyx":4159 + /* "netCDF4/_netCDF4.pyx":4159 * cdef char *nested_namstring * cdef int dim_sizes[NC_MAX_DIMS] * if dt == str: # python string, use NC_STRING # <<<<<<<<<<<<<< @@ -58746,7 +58746,7 @@ static PyObject *__pyx_f_7netCDF4__def_vlen(PyObject *__pyx_v_grp, PyObject *__p __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; if (__pyx_t_2) { - /* "netCDF4.pyx":4160 + /* "netCDF4/_netCDF4.pyx":4160 * cdef int dim_sizes[NC_MAX_DIMS] * if dt == str: # python string, use NC_STRING * xtype = NC_STRING # <<<<<<<<<<<<<< @@ -58758,19 +58758,19 @@ static PyObject *__pyx_f_7netCDF4__def_vlen(PyObject *__pyx_v_grp, PyObject *__p } /*else*/ { - /* "netCDF4.pyx":4163 + /* "netCDF4/_netCDF4.pyx":4163 * # dtype_name ignored * else: # numpy datatype * bytestr = _strencode(dtype_name) # <<<<<<<<<<<<<< * namstring = bytestr * dt = numpy.dtype(dt) # convert to numpy datatype. */ - __pyx_t_1 = __pyx_f_7netCDF4__strencode(__pyx_v_dtype_name, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4163; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __pyx_f_7netCDF4_8_netCDF4__strencode(__pyx_v_dtype_name, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4163; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); __pyx_v_bytestr = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":4164 + /* "netCDF4/_netCDF4.pyx":4164 * else: # numpy datatype * bytestr = _strencode(dtype_name) * namstring = bytestr # <<<<<<<<<<<<<< @@ -58780,7 +58780,7 @@ static PyObject *__pyx_f_7netCDF4__def_vlen(PyObject *__pyx_v_grp, PyObject *__p __pyx_t_3 = __Pyx_PyObject_AsString(__pyx_v_bytestr); if (unlikely((!__pyx_t_3) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4164; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_v_namstring = __pyx_t_3; - /* "netCDF4.pyx":4165 + /* "netCDF4/_netCDF4.pyx":4165 * bytestr = _strencode(dtype_name) * namstring = bytestr * dt = numpy.dtype(dt) # convert to numpy datatype. # <<<<<<<<<<<<<< @@ -58820,7 +58820,7 @@ static PyObject *__pyx_f_7netCDF4__def_vlen(PyObject *__pyx_v_grp, PyObject *__p __Pyx_DECREF_SET(__pyx_v_dt, __pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":4166 + /* "netCDF4/_netCDF4.pyx":4166 * namstring = bytestr * dt = numpy.dtype(dt) # convert to numpy datatype. * if dt.str[1:] in _supportedtypes: # <<<<<<<<<<<<<< @@ -58840,7 +58840,7 @@ static PyObject *__pyx_f_7netCDF4__def_vlen(PyObject *__pyx_v_grp, PyObject *__p __pyx_t_7 = (__pyx_t_2 != 0); if (__pyx_t_7) { - /* "netCDF4.pyx":4169 + /* "netCDF4/_netCDF4.pyx":4169 * # find netCDF primitive data type corresponding to * # specified numpy data type. * xtype_tmp = _nptonctype[dt.str[1:]] # <<<<<<<<<<<<<< @@ -58862,7 +58862,7 @@ static PyObject *__pyx_f_7netCDF4__def_vlen(PyObject *__pyx_v_grp, PyObject *__p __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_xtype_tmp = __pyx_t_8; - /* "netCDF4.pyx":4170 + /* "netCDF4/_netCDF4.pyx":4170 * # specified numpy data type. * xtype_tmp = _nptonctype[dt.str[1:]] * ierr = nc_def_vlen(grp._grpid, namstring, xtype_tmp, &xtype); # <<<<<<<<<<<<<< @@ -58875,7 +58875,7 @@ static PyObject *__pyx_f_7netCDF4__def_vlen(PyObject *__pyx_v_grp, PyObject *__p __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; __pyx_v_ierr = nc_def_vlen(__pyx_t_9, __pyx_v_namstring, __pyx_v_xtype_tmp, (&__pyx_v_xtype)); - /* "netCDF4.pyx":4171 + /* "netCDF4/_netCDF4.pyx":4171 * xtype_tmp = _nptonctype[dt.str[1:]] * ierr = nc_def_vlen(grp._grpid, namstring, xtype_tmp, &xtype); * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -58885,7 +58885,7 @@ static PyObject *__pyx_f_7netCDF4__def_vlen(PyObject *__pyx_v_grp, PyObject *__p __pyx_t_7 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_7) { - /* "netCDF4.pyx":4172 + /* "netCDF4/_netCDF4.pyx":4172 * ierr = nc_def_vlen(grp._grpid, namstring, xtype_tmp, &xtype); * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -58912,7 +58912,7 @@ static PyObject *__pyx_f_7netCDF4__def_vlen(PyObject *__pyx_v_grp, PyObject *__p } /*else*/ { - /* "netCDF4.pyx":4174 + /* "netCDF4/_netCDF4.pyx":4174 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * else: * raise KeyError("unsupported datatype specified for VLEN") # <<<<<<<<<<<<<< @@ -58929,7 +58929,7 @@ static PyObject *__pyx_f_7netCDF4__def_vlen(PyObject *__pyx_v_grp, PyObject *__p } __pyx_L3:; - /* "netCDF4.pyx":4175 + /* "netCDF4/_netCDF4.pyx":4175 * else: * raise KeyError("unsupported datatype specified for VLEN") * return xtype, dt # <<<<<<<<<<<<<< @@ -58951,7 +58951,7 @@ static PyObject *__pyx_f_7netCDF4__def_vlen(PyObject *__pyx_v_grp, PyObject *__p __pyx_t_6 = 0; goto __pyx_L0; - /* "netCDF4.pyx":4150 + /* "netCDF4/_netCDF4.pyx":4150 * (self.name, self.dtype) * * cdef _def_vlen(grp, object dt, object dtype_name): # <<<<<<<<<<<<<< @@ -58965,7 +58965,7 @@ static PyObject *__pyx_f_7netCDF4__def_vlen(PyObject *__pyx_v_grp, PyObject *__p __Pyx_XDECREF(__pyx_t_4); __Pyx_XDECREF(__pyx_t_5); __Pyx_XDECREF(__pyx_t_6); - __Pyx_AddTraceback("netCDF4._def_vlen", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._def_vlen", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_bytestr); @@ -58975,7 +58975,7 @@ static PyObject *__pyx_f_7netCDF4__def_vlen(PyObject *__pyx_v_grp, PyObject *__p return __pyx_r; } -/* "netCDF4.pyx":4177 +/* "netCDF4/_netCDF4.pyx":4177 * return xtype, dt * * cdef _read_vlen(group, nc_type xtype, endian=None): # <<<<<<<<<<<<<< @@ -58983,7 +58983,7 @@ static PyObject *__pyx_f_7netCDF4__def_vlen(PyObject *__pyx_v_grp, PyObject *__p * # construct a corresponding numpy dtype instance, */ -static PyObject *__pyx_f_7netCDF4__read_vlen(PyObject *__pyx_v_group, nc_type __pyx_v_xtype, struct __pyx_opt_args_7netCDF4__read_vlen *__pyx_optional_args) { +static PyObject *__pyx_f_7netCDF4_8_netCDF4__read_vlen(PyObject *__pyx_v_group, nc_type __pyx_v_xtype, struct __pyx_opt_args_7netCDF4_8_netCDF4__read_vlen *__pyx_optional_args) { PyObject *__pyx_v_endian = ((PyObject *)Py_None); int __pyx_v_ierr; int __pyx_v__grpid; @@ -59019,7 +59019,7 @@ static PyObject *__pyx_f_7netCDF4__read_vlen(PyObject *__pyx_v_group, nc_type __ } } - /* "netCDF4.pyx":4186 + /* "netCDF4/_netCDF4.pyx":4186 * cdef nc_type base_xtype * cdef char vl_namstring[NC_MAX_NAME+1] * _grpid = group._grpid # <<<<<<<<<<<<<< @@ -59032,7 +59032,7 @@ static PyObject *__pyx_f_7netCDF4__read_vlen(PyObject *__pyx_v_group, nc_type __ __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_v__grpid = __pyx_t_2; - /* "netCDF4.pyx":4187 + /* "netCDF4/_netCDF4.pyx":4187 * cdef char vl_namstring[NC_MAX_NAME+1] * _grpid = group._grpid * if xtype == NC_STRING: # <<<<<<<<<<<<<< @@ -59042,7 +59042,7 @@ static PyObject *__pyx_f_7netCDF4__read_vlen(PyObject *__pyx_v_group, nc_type __ __pyx_t_3 = ((__pyx_v_xtype == NC_STRING) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":4188 + /* "netCDF4/_netCDF4.pyx":4188 * _grpid = group._grpid * if xtype == NC_STRING: * dt = str # <<<<<<<<<<<<<< @@ -59052,7 +59052,7 @@ static PyObject *__pyx_f_7netCDF4__read_vlen(PyObject *__pyx_v_group, nc_type __ __Pyx_INCREF(((PyObject *)((PyObject*)(&PyString_Type)))); __pyx_v_dt = ((PyObject *)((PyObject*)(&PyString_Type))); - /* "netCDF4.pyx":4189 + /* "netCDF4/_netCDF4.pyx":4189 * if xtype == NC_STRING: * dt = str * name = None # <<<<<<<<<<<<<< @@ -59065,7 +59065,7 @@ static PyObject *__pyx_f_7netCDF4__read_vlen(PyObject *__pyx_v_group, nc_type __ } /*else*/ { - /* "netCDF4.pyx":4191 + /* "netCDF4/_netCDF4.pyx":4191 * name = None * else: * with nogil: # <<<<<<<<<<<<<< @@ -59079,7 +59079,7 @@ static PyObject *__pyx_f_7netCDF4__read_vlen(PyObject *__pyx_v_group, nc_type __ #endif /*try:*/ { - /* "netCDF4.pyx":4192 + /* "netCDF4/_netCDF4.pyx":4192 * else: * with nogil: * ierr = nc_inq_vlen(_grpid, xtype, vl_namstring, &vlsize, &base_xtype) # <<<<<<<<<<<<<< @@ -59089,7 +59089,7 @@ static PyObject *__pyx_f_7netCDF4__read_vlen(PyObject *__pyx_v_group, nc_type __ __pyx_v_ierr = nc_inq_vlen(__pyx_v__grpid, __pyx_v_xtype, __pyx_v_vl_namstring, (&__pyx_v_vlsize), (&__pyx_v_base_xtype)); } - /* "netCDF4.pyx":4191 + /* "netCDF4/_netCDF4.pyx":4191 * name = None * else: * with nogil: # <<<<<<<<<<<<<< @@ -59107,7 +59107,7 @@ static PyObject *__pyx_f_7netCDF4__read_vlen(PyObject *__pyx_v_group, nc_type __ } } - /* "netCDF4.pyx":4193 + /* "netCDF4/_netCDF4.pyx":4193 * with nogil: * ierr = nc_inq_vlen(_grpid, xtype, vl_namstring, &vlsize, &base_xtype) * if ierr != NC_NOERR: # <<<<<<<<<<<<<< @@ -59117,7 +59117,7 @@ static PyObject *__pyx_f_7netCDF4__read_vlen(PyObject *__pyx_v_group, nc_type __ __pyx_t_3 = ((__pyx_v_ierr != NC_NOERR) != 0); if (__pyx_t_3) { - /* "netCDF4.pyx":4194 + /* "netCDF4/_netCDF4.pyx":4194 * ierr = nc_inq_vlen(_grpid, xtype, vl_namstring, &vlsize, &base_xtype) * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) # <<<<<<<<<<<<<< @@ -59141,7 +59141,7 @@ static PyObject *__pyx_f_7netCDF4__read_vlen(PyObject *__pyx_v_group, nc_type __ {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4194; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":4195 + /* "netCDF4/_netCDF4.pyx":4195 * if ierr != NC_NOERR: * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * name = vl_namstring.decode(default_encoding,unicode_error) # <<<<<<<<<<<<<< @@ -59187,7 +59187,7 @@ static PyObject *__pyx_f_7netCDF4__read_vlen(PyObject *__pyx_v_group, nc_type __ __pyx_v_name = __pyx_t_1; __pyx_t_1 = 0; - /* "netCDF4.pyx":4196 + /* "netCDF4/_netCDF4.pyx":4196 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * name = vl_namstring.decode(default_encoding,unicode_error) * try: # <<<<<<<<<<<<<< @@ -59201,7 +59201,7 @@ static PyObject *__pyx_f_7netCDF4__read_vlen(PyObject *__pyx_v_group, nc_type __ __Pyx_XGOTREF(__pyx_t_13); /*try:*/ { - /* "netCDF4.pyx":4197 + /* "netCDF4/_netCDF4.pyx":4197 * name = vl_namstring.decode(default_encoding,unicode_error) * try: * datatype = _nctonptype[base_xtype] # <<<<<<<<<<<<<< @@ -59216,7 +59216,7 @@ static PyObject *__pyx_f_7netCDF4__read_vlen(PyObject *__pyx_v_group, nc_type __ __pyx_v_datatype = __pyx_t_6; __pyx_t_6 = 0; - /* "netCDF4.pyx":4198 + /* "netCDF4/_netCDF4.pyx":4198 * try: * datatype = _nctonptype[base_xtype] * if endian is not None: datatype = endian + datatype # <<<<<<<<<<<<<< @@ -59234,7 +59234,7 @@ static PyObject *__pyx_f_7netCDF4__read_vlen(PyObject *__pyx_v_group, nc_type __ } __pyx_L16:; - /* "netCDF4.pyx":4199 + /* "netCDF4/_netCDF4.pyx":4199 * datatype = _nctonptype[base_xtype] * if endian is not None: datatype = endian + datatype * dt = numpy.dtype(datatype) # see if it is a primitive type # <<<<<<<<<<<<<< @@ -59286,7 +59286,7 @@ static PyObject *__pyx_f_7netCDF4__read_vlen(PyObject *__pyx_v_group, nc_type __ __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; - /* "netCDF4.pyx":4200 + /* "netCDF4/_netCDF4.pyx":4200 * if endian is not None: datatype = endian + datatype * dt = numpy.dtype(datatype) # see if it is a primitive type * except KeyError: # <<<<<<<<<<<<<< @@ -59295,13 +59295,13 @@ static PyObject *__pyx_f_7netCDF4__read_vlen(PyObject *__pyx_v_group, nc_type __ */ __pyx_t_2 = PyErr_ExceptionMatches(__pyx_builtin_KeyError); if (__pyx_t_2) { - __Pyx_AddTraceback("netCDF4._read_vlen", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._read_vlen", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_6, &__pyx_t_10, &__pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4200; __pyx_clineno = __LINE__; goto __pyx_L10_except_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_GOTREF(__pyx_t_10); __Pyx_GOTREF(__pyx_t_7); - /* "netCDF4.pyx":4201 + /* "netCDF4/_netCDF4.pyx":4201 * dt = numpy.dtype(datatype) # see if it is a primitive type * except KeyError: * raise KeyError("unsupported component type for VLEN") # <<<<<<<<<<<<<< @@ -59326,7 +59326,7 @@ static PyObject *__pyx_f_7netCDF4__read_vlen(PyObject *__pyx_v_group, nc_type __ } __pyx_L3:; - /* "netCDF4.pyx":4202 + /* "netCDF4/_netCDF4.pyx":4202 * except KeyError: * raise KeyError("unsupported component type for VLEN") * return VLType(group, dt, name, typeid=xtype) # <<<<<<<<<<<<<< @@ -59351,7 +59351,7 @@ static PyObject *__pyx_f_7netCDF4__read_vlen(PyObject *__pyx_v_group, nc_type __ __Pyx_GOTREF(__pyx_t_6); if (PyDict_SetItem(__pyx_t_10, __pyx_n_s_typeid, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4202; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_VLType)), __pyx_t_7, __pyx_t_10); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4202; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_6 = __Pyx_PyObject_Call(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_VLType)), __pyx_t_7, __pyx_t_10); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4202; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_6); __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; @@ -59359,7 +59359,7 @@ static PyObject *__pyx_f_7netCDF4__read_vlen(PyObject *__pyx_v_group, nc_type __ __pyx_t_6 = 0; goto __pyx_L0; - /* "netCDF4.pyx":4177 + /* "netCDF4/_netCDF4.pyx":4177 * return xtype, dt * * cdef _read_vlen(group, nc_type xtype, endian=None): # <<<<<<<<<<<<<< @@ -59375,7 +59375,7 @@ static PyObject *__pyx_f_7netCDF4__read_vlen(PyObject *__pyx_v_group, nc_type __ __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_10); - __Pyx_AddTraceback("netCDF4._read_vlen", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._read_vlen", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_dt); @@ -59386,7 +59386,7 @@ static PyObject *__pyx_f_7netCDF4__read_vlen(PyObject *__pyx_v_group, nc_type __ return __pyx_r; } -/* "netCDF4.pyx":4204 +/* "netCDF4/_netCDF4.pyx":4204 * return VLType(group, dt, name, typeid=xtype) * * cdef _strencode(pystr,encoding=None): # <<<<<<<<<<<<<< @@ -59394,7 +59394,7 @@ static PyObject *__pyx_f_7netCDF4__read_vlen(PyObject *__pyx_v_group, nc_type __ * # uses default_encoding module variable for default encoding. */ -static PyObject *__pyx_f_7netCDF4__strencode(PyObject *__pyx_v_pystr, struct __pyx_opt_args_7netCDF4__strencode *__pyx_optional_args) { +static PyObject *__pyx_f_7netCDF4_8_netCDF4__strencode(PyObject *__pyx_v_pystr, struct __pyx_opt_args_7netCDF4_8_netCDF4__strencode *__pyx_optional_args) { PyObject *__pyx_v_encoding = ((PyObject *)Py_None); PyObject *__pyx_r = NULL; __Pyx_RefNannyDeclarations @@ -59419,7 +59419,7 @@ static PyObject *__pyx_f_7netCDF4__strencode(PyObject *__pyx_v_pystr, struct __p } __Pyx_INCREF(__pyx_v_encoding); - /* "netCDF4.pyx":4207 + /* "netCDF4/_netCDF4.pyx":4207 * # encode a string into bytes. If already bytes, do nothing. * # uses default_encoding module variable for default encoding. * if encoding is None: # <<<<<<<<<<<<<< @@ -59430,7 +59430,7 @@ static PyObject *__pyx_f_7netCDF4__strencode(PyObject *__pyx_v_pystr, struct __p __pyx_t_2 = (__pyx_t_1 != 0); if (__pyx_t_2) { - /* "netCDF4.pyx":4208 + /* "netCDF4/_netCDF4.pyx":4208 * # uses default_encoding module variable for default encoding. * if encoding is None: * encoding = default_encoding # <<<<<<<<<<<<<< @@ -59445,7 +59445,7 @@ static PyObject *__pyx_f_7netCDF4__strencode(PyObject *__pyx_v_pystr, struct __p } __pyx_L3:; - /* "netCDF4.pyx":4209 + /* "netCDF4/_netCDF4.pyx":4209 * if encoding is None: * encoding = default_encoding * try: # <<<<<<<<<<<<<< @@ -59459,7 +59459,7 @@ static PyObject *__pyx_f_7netCDF4__strencode(PyObject *__pyx_v_pystr, struct __p __Pyx_XGOTREF(__pyx_t_6); /*try:*/ { - /* "netCDF4.pyx":4210 + /* "netCDF4/_netCDF4.pyx":4210 * encoding = default_encoding * try: * return pystr.encode(encoding) # <<<<<<<<<<<<<< @@ -59504,7 +59504,7 @@ static PyObject *__pyx_f_7netCDF4__strencode(PyObject *__pyx_v_pystr, struct __p __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - /* "netCDF4.pyx":4211 + /* "netCDF4/_netCDF4.pyx":4211 * try: * return pystr.encode(encoding) * except (AttributeError, UnicodeDecodeError): # <<<<<<<<<<<<<< @@ -59512,13 +59512,13 @@ static PyObject *__pyx_f_7netCDF4__strencode(PyObject *__pyx_v_pystr, struct __p */ __pyx_t_10 = PyErr_ExceptionMatches(__pyx_builtin_AttributeError) || PyErr_ExceptionMatches(__pyx_builtin_UnicodeDecodeError); if (__pyx_t_10) { - __Pyx_AddTraceback("netCDF4._strencode", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._strencode", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_3, &__pyx_t_7, &__pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4211; __pyx_clineno = __LINE__; goto __pyx_L6_except_error;} __Pyx_GOTREF(__pyx_t_3); __Pyx_GOTREF(__pyx_t_7); __Pyx_GOTREF(__pyx_t_9); - /* "netCDF4.pyx":4212 + /* "netCDF4/_netCDF4.pyx":4212 * return pystr.encode(encoding) * except (AttributeError, UnicodeDecodeError): * return pystr # already bytes or unicode? # <<<<<<<<<<<<<< @@ -59552,7 +59552,7 @@ static PyObject *__pyx_f_7netCDF4__strencode(PyObject *__pyx_v_pystr, struct __p goto __pyx_L0; } - /* "netCDF4.pyx":4204 + /* "netCDF4/_netCDF4.pyx":4204 * return VLType(group, dt, name, typeid=xtype) * * cdef _strencode(pystr,encoding=None): # <<<<<<<<<<<<<< @@ -59566,7 +59566,7 @@ static PyObject *__pyx_f_7netCDF4__strencode(PyObject *__pyx_v_pystr, struct __p __Pyx_XDECREF(__pyx_t_7); __Pyx_XDECREF(__pyx_t_8); __Pyx_XDECREF(__pyx_t_9); - __Pyx_AddTraceback("netCDF4._strencode", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4._strencode", __pyx_clineno, __pyx_lineno, __pyx_filename); __pyx_r = 0; __pyx_L0:; __Pyx_XDECREF(__pyx_v_encoding); @@ -59575,8 +59575,8 @@ static PyObject *__pyx_f_7netCDF4__strencode(PyObject *__pyx_v_pystr, struct __p return __pyx_r; } -static PyObject *__pyx_tp_new_7netCDF4_Dataset(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { - struct __pyx_obj_7netCDF4_Dataset *p; +static PyObject *__pyx_tp_new_7netCDF4_8_netCDF4_Dataset(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { + struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); @@ -59584,7 +59584,7 @@ static PyObject *__pyx_tp_new_7netCDF4_Dataset(PyTypeObject *t, CYTHON_UNUSED Py o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; - p = ((struct __pyx_obj_7netCDF4_Dataset *)o); + p = ((struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)o); p->groups = Py_None; Py_INCREF(Py_None); p->dimensions = Py_None; Py_INCREF(Py_None); p->variables = Py_None; Py_INCREF(Py_None); @@ -59600,8 +59600,8 @@ static PyObject *__pyx_tp_new_7netCDF4_Dataset(PyTypeObject *t, CYTHON_UNUSED Py return o; } -static void __pyx_tp_dealloc_7netCDF4_Dataset(PyObject *o) { - struct __pyx_obj_7netCDF4_Dataset *p = (struct __pyx_obj_7netCDF4_Dataset *)o; +static void __pyx_tp_dealloc_7netCDF4_8_netCDF4_Dataset(PyObject *o) { + struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *p = (struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)o; #if PY_VERSION_HEX >= 0x030400a1 if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) { if (PyObject_CallFinalizerFromDealloc(o)) return; @@ -59612,7 +59612,7 @@ static void __pyx_tp_dealloc_7netCDF4_Dataset(PyObject *o) { PyObject *etype, *eval, *etb; PyErr_Fetch(&etype, &eval, &etb); ++Py_REFCNT(o); - __pyx_pw_7netCDF4_7Dataset_15__dealloc__(o); + __pyx_pw_7netCDF4_8_netCDF4_7Dataset_15__dealloc__(o); --Py_REFCNT(o); PyErr_Restore(etype, eval, etb); } @@ -59632,9 +59632,9 @@ static void __pyx_tp_dealloc_7netCDF4_Dataset(PyObject *o) { (*Py_TYPE(o)->tp_free)(o); } -static int __pyx_tp_traverse_7netCDF4_Dataset(PyObject *o, visitproc v, void *a) { +static int __pyx_tp_traverse_7netCDF4_8_netCDF4_Dataset(PyObject *o, visitproc v, void *a) { int e; - struct __pyx_obj_7netCDF4_Dataset *p = (struct __pyx_obj_7netCDF4_Dataset *)o; + struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *p = (struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)o; if (p->groups) { e = (*v)(p->groups, a); if (e) return e; } @@ -59674,9 +59674,9 @@ static int __pyx_tp_traverse_7netCDF4_Dataset(PyObject *o, visitproc v, void *a) return 0; } -static int __pyx_tp_clear_7netCDF4_Dataset(PyObject *o) { +static int __pyx_tp_clear_7netCDF4_8_netCDF4_Dataset(PyObject *o) { PyObject* tmp; - struct __pyx_obj_7netCDF4_Dataset *p = (struct __pyx_obj_7netCDF4_Dataset *)o; + struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *p = (struct __pyx_obj_7netCDF4_8_netCDF4_Dataset *)o; tmp = ((PyObject*)p->groups); p->groups = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); @@ -59716,31 +59716,31 @@ static int __pyx_tp_clear_7netCDF4_Dataset(PyObject *o) { return 0; } -static PyObject *__pyx_tp_getattro_7netCDF4_Dataset(PyObject *o, PyObject *n) { +static PyObject *__pyx_tp_getattro_7netCDF4_8_netCDF4_Dataset(PyObject *o, PyObject *n) { PyObject *v = PyObject_GenericGetAttr(o, n); if (!v && PyErr_ExceptionMatches(PyExc_AttributeError)) { PyErr_Clear(); - v = __pyx_pw_7netCDF4_7Dataset_55__getattr__(o, n); + v = __pyx_pw_7netCDF4_8_netCDF4_7Dataset_55__getattr__(o, n); } return v; } -static int __pyx_tp_setattro_7netCDF4_Dataset(PyObject *o, PyObject *n, PyObject *v) { +static int __pyx_tp_setattro_7netCDF4_8_netCDF4_Dataset(PyObject *o, PyObject *n, PyObject *v) { if (v) { - return __pyx_pw_7netCDF4_7Dataset_53__setattr__(o, n, v); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_53__setattr__(o, n, v); } else { - return __pyx_pw_7netCDF4_7Dataset_49__delattr__(o, n); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_49__delattr__(o, n); } } -static PyObject *__pyx_getprop_7netCDF4_7Dataset__grpid(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_7Dataset_6_grpid_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_7Dataset__grpid(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_6_grpid_1__get__(o); } -static int __pyx_setprop_7netCDF4_7Dataset__grpid(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_7Dataset__grpid(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_7Dataset_6_grpid_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_6_grpid_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); @@ -59748,13 +59748,13 @@ static int __pyx_setprop_7netCDF4_7Dataset__grpid(PyObject *o, PyObject *v, CYTH } } -static PyObject *__pyx_getprop_7netCDF4_7Dataset__isopen(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_7Dataset_7_isopen_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_7Dataset__isopen(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_7_isopen_1__get__(o); } -static int __pyx_setprop_7netCDF4_7Dataset__isopen(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_7Dataset__isopen(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_7Dataset_7_isopen_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_7_isopen_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); @@ -59762,218 +59762,218 @@ static int __pyx_setprop_7netCDF4_7Dataset__isopen(PyObject *o, PyObject *v, CYT } } -static PyObject *__pyx_getprop_7netCDF4_7Dataset_groups(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_7Dataset_6groups_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_7Dataset_groups(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_6groups_1__get__(o); } -static int __pyx_setprop_7netCDF4_7Dataset_groups(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_7Dataset_groups(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_7Dataset_6groups_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_6groups_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_7Dataset_6groups_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_6groups_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_7Dataset_dimensions(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_7Dataset_10dimensions_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_7Dataset_dimensions(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_10dimensions_1__get__(o); } -static int __pyx_setprop_7netCDF4_7Dataset_dimensions(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_7Dataset_dimensions(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_7Dataset_10dimensions_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_10dimensions_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_7Dataset_10dimensions_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_10dimensions_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_7Dataset_variables(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_7Dataset_9variables_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_7Dataset_variables(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_9variables_1__get__(o); } -static int __pyx_setprop_7netCDF4_7Dataset_variables(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_7Dataset_variables(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_7Dataset_9variables_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_9variables_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_7Dataset_9variables_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_9variables_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_7Dataset_disk_format(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_7Dataset_11disk_format_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_7Dataset_disk_format(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_11disk_format_1__get__(o); } -static int __pyx_setprop_7netCDF4_7Dataset_disk_format(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_7Dataset_disk_format(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_7Dataset_11disk_format_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_11disk_format_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_7Dataset_11disk_format_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_11disk_format_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_7Dataset_path(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_7Dataset_4path_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_7Dataset_path(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_4path_1__get__(o); } -static int __pyx_setprop_7netCDF4_7Dataset_path(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_7Dataset_path(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_7Dataset_4path_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_4path_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_7Dataset_4path_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_4path_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_7Dataset_parent(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_7Dataset_6parent_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_7Dataset_parent(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_6parent_1__get__(o); } -static int __pyx_setprop_7netCDF4_7Dataset_parent(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_7Dataset_parent(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_7Dataset_6parent_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_6parent_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_7Dataset_6parent_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_6parent_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_7Dataset_file_format(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_7Dataset_11file_format_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_7Dataset_file_format(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_11file_format_1__get__(o); } -static int __pyx_setprop_7netCDF4_7Dataset_file_format(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_7Dataset_file_format(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_7Dataset_11file_format_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_11file_format_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_7Dataset_11file_format_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_11file_format_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_7Dataset_data_model(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_7Dataset_10data_model_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_7Dataset_data_model(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_10data_model_1__get__(o); } -static int __pyx_setprop_7netCDF4_7Dataset_data_model(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_7Dataset_data_model(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_7Dataset_10data_model_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_10data_model_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_7Dataset_10data_model_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_10data_model_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_7Dataset_cmptypes(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_7Dataset_8cmptypes_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_7Dataset_cmptypes(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_8cmptypes_1__get__(o); } -static int __pyx_setprop_7netCDF4_7Dataset_cmptypes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_7Dataset_cmptypes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_7Dataset_8cmptypes_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_8cmptypes_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_7Dataset_8cmptypes_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_8cmptypes_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_7Dataset_vltypes(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_7Dataset_7vltypes_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_7Dataset_vltypes(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_7vltypes_1__get__(o); } -static int __pyx_setprop_7netCDF4_7Dataset_vltypes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_7Dataset_vltypes(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_7Dataset_7vltypes_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_7vltypes_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_7Dataset_7vltypes_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_7vltypes_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_7Dataset_keepweakref(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_7Dataset_11keepweakref_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_7Dataset_keepweakref(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_11keepweakref_1__get__(o); } -static int __pyx_setprop_7netCDF4_7Dataset_keepweakref(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_7Dataset_keepweakref(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_7Dataset_11keepweakref_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_11keepweakref_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_7Dataset_11keepweakref_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_11keepweakref_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_7Dataset___orthogonal_indexing__(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_7Dataset_23__orthogonal_indexing___1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_7Dataset___orthogonal_indexing__(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_23__orthogonal_indexing___1__get__(o); } -static int __pyx_setprop_7netCDF4_7Dataset___orthogonal_indexing__(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_7Dataset___orthogonal_indexing__(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_7Dataset_23__orthogonal_indexing___3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_23__orthogonal_indexing___3__set__(o, v); } else { - return __pyx_pw_7netCDF4_7Dataset_23__orthogonal_indexing___5__del__(o); - } -} - -static PyMethodDef __pyx_methods_7netCDF4_Dataset[] = { - {"__enter__", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_3__enter__, METH_NOARGS, 0}, - {"__exit__", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_5__exit__, METH_VARARGS|METH_KEYWORDS, 0}, - {"filepath", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_7filepath, METH_NOARGS, __pyx_doc_7netCDF4_7Dataset_6filepath}, - {"__unicode__", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_11__unicode__, METH_NOARGS, 0}, - {"close", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_13close, METH_NOARGS, __pyx_doc_7netCDF4_7Dataset_12close}, - {"sync", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_17sync, METH_NOARGS, __pyx_doc_7netCDF4_7Dataset_16sync}, - {"_redef", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_19_redef, METH_NOARGS, 0}, - {"_enddef", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_21_enddef, METH_NOARGS, 0}, - {"set_fill_on", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_23set_fill_on, METH_NOARGS, __pyx_doc_7netCDF4_7Dataset_22set_fill_on}, - {"set_fill_off", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_25set_fill_off, METH_NOARGS, __pyx_doc_7netCDF4_7Dataset_24set_fill_off}, - {"createDimension", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_27createDimension, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_7Dataset_26createDimension}, - {"renameDimension", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_29renameDimension, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_7Dataset_28renameDimension}, - {"createCompoundType", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_31createCompoundType, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_7Dataset_30createCompoundType}, - {"createVLType", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_33createVLType, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_7Dataset_32createVLType}, - {"createVariable", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_35createVariable, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_7Dataset_34createVariable}, - {"renameVariable", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_37renameVariable, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_7Dataset_36renameVariable}, - {"createGroup", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_39createGroup, METH_O, __pyx_doc_7netCDF4_7Dataset_38createGroup}, - {"ncattrs", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_41ncattrs, METH_NOARGS, __pyx_doc_7netCDF4_7Dataset_40ncattrs}, - {"setncattr", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_43setncattr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_7Dataset_42setncattr}, - {"setncatts", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_45setncatts, METH_O, __pyx_doc_7netCDF4_7Dataset_44setncatts}, - {"getncattr", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_47getncattr, METH_O, __pyx_doc_7netCDF4_7Dataset_46getncattr}, - {"delncattr", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_51delncattr, METH_O, __pyx_doc_7netCDF4_7Dataset_50delncattr}, - {"__getattr__", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_55__getattr__, METH_O|METH_COEXIST, 0}, - {"renameAttribute", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_57renameAttribute, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_7Dataset_56renameAttribute}, - {"renameGroup", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_59renameGroup, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_7Dataset_58renameGroup}, - {"set_auto_maskandscale", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_61set_auto_maskandscale, METH_O, __pyx_doc_7netCDF4_7Dataset_60set_auto_maskandscale}, - {"set_auto_mask", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_63set_auto_mask, METH_O, __pyx_doc_7netCDF4_7Dataset_62set_auto_mask}, - {"set_auto_scale", (PyCFunction)__pyx_pw_7netCDF4_7Dataset_65set_auto_scale, METH_O, __pyx_doc_7netCDF4_7Dataset_64set_auto_scale}, + return __pyx_pw_7netCDF4_8_netCDF4_7Dataset_23__orthogonal_indexing___5__del__(o); + } +} + +static PyMethodDef __pyx_methods_7netCDF4_8_netCDF4_Dataset[] = { + {"__enter__", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_3__enter__, METH_NOARGS, 0}, + {"__exit__", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_5__exit__, METH_VARARGS|METH_KEYWORDS, 0}, + {"filepath", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_7filepath, METH_NOARGS, __pyx_doc_7netCDF4_8_netCDF4_7Dataset_6filepath}, + {"__unicode__", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_11__unicode__, METH_NOARGS, 0}, + {"close", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_13close, METH_NOARGS, __pyx_doc_7netCDF4_8_netCDF4_7Dataset_12close}, + {"sync", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_17sync, METH_NOARGS, __pyx_doc_7netCDF4_8_netCDF4_7Dataset_16sync}, + {"_redef", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_19_redef, METH_NOARGS, 0}, + {"_enddef", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_21_enddef, METH_NOARGS, 0}, + {"set_fill_on", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_23set_fill_on, METH_NOARGS, __pyx_doc_7netCDF4_8_netCDF4_7Dataset_22set_fill_on}, + {"set_fill_off", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_25set_fill_off, METH_NOARGS, __pyx_doc_7netCDF4_8_netCDF4_7Dataset_24set_fill_off}, + {"createDimension", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_27createDimension, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8_netCDF4_7Dataset_26createDimension}, + {"renameDimension", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_29renameDimension, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8_netCDF4_7Dataset_28renameDimension}, + {"createCompoundType", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_31createCompoundType, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8_netCDF4_7Dataset_30createCompoundType}, + {"createVLType", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_33createVLType, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8_netCDF4_7Dataset_32createVLType}, + {"createVariable", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_35createVariable, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8_netCDF4_7Dataset_34createVariable}, + {"renameVariable", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_37renameVariable, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8_netCDF4_7Dataset_36renameVariable}, + {"createGroup", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_39createGroup, METH_O, __pyx_doc_7netCDF4_8_netCDF4_7Dataset_38createGroup}, + {"ncattrs", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_41ncattrs, METH_NOARGS, __pyx_doc_7netCDF4_8_netCDF4_7Dataset_40ncattrs}, + {"setncattr", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_43setncattr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8_netCDF4_7Dataset_42setncattr}, + {"setncatts", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_45setncatts, METH_O, __pyx_doc_7netCDF4_8_netCDF4_7Dataset_44setncatts}, + {"getncattr", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_47getncattr, METH_O, __pyx_doc_7netCDF4_8_netCDF4_7Dataset_46getncattr}, + {"delncattr", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_51delncattr, METH_O, __pyx_doc_7netCDF4_8_netCDF4_7Dataset_50delncattr}, + {"__getattr__", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_55__getattr__, METH_O|METH_COEXIST, 0}, + {"renameAttribute", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_57renameAttribute, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8_netCDF4_7Dataset_56renameAttribute}, + {"renameGroup", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_59renameGroup, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8_netCDF4_7Dataset_58renameGroup}, + {"set_auto_maskandscale", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_61set_auto_maskandscale, METH_O, __pyx_doc_7netCDF4_8_netCDF4_7Dataset_60set_auto_maskandscale}, + {"set_auto_mask", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_63set_auto_mask, METH_O, __pyx_doc_7netCDF4_8_netCDF4_7Dataset_62set_auto_mask}, + {"set_auto_scale", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_7Dataset_65set_auto_scale, METH_O, __pyx_doc_7netCDF4_8_netCDF4_7Dataset_64set_auto_scale}, {0, 0, 0, 0} }; -static struct PyGetSetDef __pyx_getsets_7netCDF4_Dataset[] = { - {(char *)"_grpid", __pyx_getprop_7netCDF4_7Dataset__grpid, __pyx_setprop_7netCDF4_7Dataset__grpid, 0, 0}, - {(char *)"_isopen", __pyx_getprop_7netCDF4_7Dataset__isopen, __pyx_setprop_7netCDF4_7Dataset__isopen, 0, 0}, - {(char *)"groups", __pyx_getprop_7netCDF4_7Dataset_groups, __pyx_setprop_7netCDF4_7Dataset_groups, 0, 0}, - {(char *)"dimensions", __pyx_getprop_7netCDF4_7Dataset_dimensions, __pyx_setprop_7netCDF4_7Dataset_dimensions, 0, 0}, - {(char *)"variables", __pyx_getprop_7netCDF4_7Dataset_variables, __pyx_setprop_7netCDF4_7Dataset_variables, 0, 0}, - {(char *)"disk_format", __pyx_getprop_7netCDF4_7Dataset_disk_format, __pyx_setprop_7netCDF4_7Dataset_disk_format, 0, 0}, - {(char *)"path", __pyx_getprop_7netCDF4_7Dataset_path, __pyx_setprop_7netCDF4_7Dataset_path, 0, 0}, - {(char *)"parent", __pyx_getprop_7netCDF4_7Dataset_parent, __pyx_setprop_7netCDF4_7Dataset_parent, 0, 0}, - {(char *)"file_format", __pyx_getprop_7netCDF4_7Dataset_file_format, __pyx_setprop_7netCDF4_7Dataset_file_format, 0, 0}, - {(char *)"data_model", __pyx_getprop_7netCDF4_7Dataset_data_model, __pyx_setprop_7netCDF4_7Dataset_data_model, 0, 0}, - {(char *)"cmptypes", __pyx_getprop_7netCDF4_7Dataset_cmptypes, __pyx_setprop_7netCDF4_7Dataset_cmptypes, 0, 0}, - {(char *)"vltypes", __pyx_getprop_7netCDF4_7Dataset_vltypes, __pyx_setprop_7netCDF4_7Dataset_vltypes, 0, 0}, - {(char *)"keepweakref", __pyx_getprop_7netCDF4_7Dataset_keepweakref, __pyx_setprop_7netCDF4_7Dataset_keepweakref, 0, 0}, - {(char *)"__orthogonal_indexing__", __pyx_getprop_7netCDF4_7Dataset___orthogonal_indexing__, __pyx_setprop_7netCDF4_7Dataset___orthogonal_indexing__, 0, 0}, +static struct PyGetSetDef __pyx_getsets_7netCDF4_8_netCDF4_Dataset[] = { + {(char *)"_grpid", __pyx_getprop_7netCDF4_8_netCDF4_7Dataset__grpid, __pyx_setprop_7netCDF4_8_netCDF4_7Dataset__grpid, 0, 0}, + {(char *)"_isopen", __pyx_getprop_7netCDF4_8_netCDF4_7Dataset__isopen, __pyx_setprop_7netCDF4_8_netCDF4_7Dataset__isopen, 0, 0}, + {(char *)"groups", __pyx_getprop_7netCDF4_8_netCDF4_7Dataset_groups, __pyx_setprop_7netCDF4_8_netCDF4_7Dataset_groups, 0, 0}, + {(char *)"dimensions", __pyx_getprop_7netCDF4_8_netCDF4_7Dataset_dimensions, __pyx_setprop_7netCDF4_8_netCDF4_7Dataset_dimensions, 0, 0}, + {(char *)"variables", __pyx_getprop_7netCDF4_8_netCDF4_7Dataset_variables, __pyx_setprop_7netCDF4_8_netCDF4_7Dataset_variables, 0, 0}, + {(char *)"disk_format", __pyx_getprop_7netCDF4_8_netCDF4_7Dataset_disk_format, __pyx_setprop_7netCDF4_8_netCDF4_7Dataset_disk_format, 0, 0}, + {(char *)"path", __pyx_getprop_7netCDF4_8_netCDF4_7Dataset_path, __pyx_setprop_7netCDF4_8_netCDF4_7Dataset_path, 0, 0}, + {(char *)"parent", __pyx_getprop_7netCDF4_8_netCDF4_7Dataset_parent, __pyx_setprop_7netCDF4_8_netCDF4_7Dataset_parent, 0, 0}, + {(char *)"file_format", __pyx_getprop_7netCDF4_8_netCDF4_7Dataset_file_format, __pyx_setprop_7netCDF4_8_netCDF4_7Dataset_file_format, 0, 0}, + {(char *)"data_model", __pyx_getprop_7netCDF4_8_netCDF4_7Dataset_data_model, __pyx_setprop_7netCDF4_8_netCDF4_7Dataset_data_model, 0, 0}, + {(char *)"cmptypes", __pyx_getprop_7netCDF4_8_netCDF4_7Dataset_cmptypes, __pyx_setprop_7netCDF4_8_netCDF4_7Dataset_cmptypes, 0, 0}, + {(char *)"vltypes", __pyx_getprop_7netCDF4_8_netCDF4_7Dataset_vltypes, __pyx_setprop_7netCDF4_8_netCDF4_7Dataset_vltypes, 0, 0}, + {(char *)"keepweakref", __pyx_getprop_7netCDF4_8_netCDF4_7Dataset_keepweakref, __pyx_setprop_7netCDF4_8_netCDF4_7Dataset_keepweakref, 0, 0}, + {(char *)"__orthogonal_indexing__", __pyx_getprop_7netCDF4_8_netCDF4_7Dataset___orthogonal_indexing__, __pyx_setprop_7netCDF4_8_netCDF4_7Dataset___orthogonal_indexing__, 0, 0}, {0, 0, 0, 0, 0} }; -static PyTypeObject __pyx_type_7netCDF4_Dataset = { +static PyTypeObject __pyx_type_7netCDF4_8_netCDF4_Dataset = { PyVarObject_HEAD_INIT(0, 0) - "netCDF4.Dataset", /*tp_name*/ - sizeof(struct __pyx_obj_7netCDF4_Dataset), /*tp_basicsize*/ + "netCDF4._netCDF4.Dataset", /*tp_name*/ + sizeof(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset), /*tp_basicsize*/ 0, /*tp_itemsize*/ - __pyx_tp_dealloc_7netCDF4_Dataset, /*tp_dealloc*/ + __pyx_tp_dealloc_7netCDF4_8_netCDF4_Dataset, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ @@ -59982,35 +59982,35 @@ static PyTypeObject __pyx_type_7netCDF4_Dataset = { #else 0, /*reserved*/ #endif - __pyx_pw_7netCDF4_7Dataset_9__repr__, /*tp_repr*/ + __pyx_pw_7netCDF4_8_netCDF4_7Dataset_9__repr__, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ - __pyx_tp_getattro_7netCDF4_Dataset, /*tp_getattro*/ - __pyx_tp_setattro_7netCDF4_Dataset, /*tp_setattro*/ + __pyx_tp_getattro_7netCDF4_8_netCDF4_Dataset, /*tp_getattro*/ + __pyx_tp_setattro_7netCDF4_8_netCDF4_Dataset, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ "\nDataset(self, filename, mode=\"r\", clobber=True, diskless=False, persist=False, keepweakref=False, format='NETCDF4')\n\nA netCDF L{Dataset} is a collection of dimensions, groups, variables and\nattributes. Together they describe the meaning of data and relations among\ndata fields stored in a netCDF file.\n\nB{Parameters:}\n\nB{C{filename}} - Name of netCDF file to hold dataset.\n\nB{Keywords}:\n\nB{C{mode}} - access mode. C{r} means read-only; no data can be\nmodified. C{w} means write; a new file is created, an existing file with\nthe same name is deleted. C{a} and C{r+} mean append (in analogy with\nserial files); an existing file is opened for reading and writing.\nAppending C{s} to modes C{w}, C{r+} or C{a} will enable unbuffered shared\naccess to C{NETCDF3_CLASSIC} or C{NETCDF3_64BIT} formatted files.\nUnbuffered acesss may be useful even if you don't need shared\naccess, since it may be faster for programs that don't access data\nsequentially. This option is ignored for C{NETCDF4} and C{NETCDF4_CLASSIC}\nformatted files.\n\nB{C{clobber}} - if C{True} (default), opening a file with C{mode='w'}\nwill clobber an existing file with the same name. if C{False}, an\nexception will be raised if a file with the same name already exists.\n\nB{C{format}} - underlying file format (one of C{'NETCDF4',\n'NETCDF4_CLASSIC', 'NETCDF3_CLASSIC'} or C{'NETCDF3_64BIT'}. Only\nrelevant if C{mode = 'w'} (if C{mode = 'r','a'} or C{'r+'} the file format\nis automatically detected). Default C{'NETCDF4'}, which means the data is\nstored in an HDF5 file, using netCDF 4 API features. Setting\nC{format='NETCDF4_CLASSIC'} will create an HDF5 file, using only netCDF 3\ncompatibile API features. netCDF 3 clients must be recompiled and linked\nagainst the netCDF 4 library to read files in C{NETCDF4_CLASSIC} format.\nC{'NETCDF3_CLASSIC'} is the classic netCDF 3 file format that does not\nhandle 2+ Gb files very well. C{'NETCDF3_64BIT'} is the 64-bit offset\nversion of the netCDF 3 file format, which fully supports 2+ GB files, but\nis only compatible with clients linked against netCDF version 3.6.0 or\nlater.\n\nC{diskless} - create diskless (in memory) file. This is an experimental\nfeature added to the C library after the netcdf-4.2 release.\n\nC{persist} - if diskless=True, persist file to disk when closed (default False).\n\nC{keepweakref} - if keepweakref=True, child Dimension and Variable instances will keep weak\nreferences to the parent Dataset or Group object. Default is False, which\nmeans strong references will be kept. Having Dimension and Variable instances\nkeep a strong reference to the parent Dataset instance, which in turn keeps a\nreference to child Dimension and Variable instances, creates circular references.\nCircular references complicate garbage collection, which may mean increased\nmemory usage for programs that create may Dataset instances with lots of\nVariables. Setting keepweakref to True allows Dataset instances to be\ngarbage collected as soon as they go out of scope, potential reducing memory\nusage. However, in most cases this is not desirable, since the associated\nVariable instances may still be needed, but are rendered unusable when the\nparent Dataset instance is garbage collected.\n\nB{Returns:}\n\na L{Dataset} instance. All further operations on the netCDF\nDataset are accomplised via L{Dataset} instance methods.\n\nA list of attribute names corresponding to global netCDF attributes\ndefined for the L{Dataset} can be obtained with the L{ncattrs()} method.\nThese attributes can be created by assigning to an attribute of the\nL{Dataset} instance. A dictionary containing all the netCDF attribute\nname/value pairs is provided by the C{__dict__} attribute of a\nL{Dataset} instance.\n\nThe instance variables C{dimensions, variables, groups,\ncmptypes, data_model, disk_format} and C{path} are read-only (and should not be modified by the\nuser).\n\n@ivar dimensions: The C{dimensions} dictionary maps the names of\ndimensions defined for the L{Group} or L{Dataset} to instances of the\nL{Dimension} class.\n\n@ivar variables: The C{variables} dictionary maps the names of variables\ndefined for this L{Dataset} or L{Group} to instances of the L{Variable}\nclass.\n\n@ivar groups: The groups dictionary maps the names of groups created for\nthis L{Dataset} or L{Group} to instances of the L{Group} class (the\nL{Dataset} class is simply a special case of the L{Group} class which\ndescribes the root group in the netCDF file).\n\n@ivar cmptypes: The C{cmptypes} dictionary maps the names of\ncompound types defined for the L{Group} or L{Dataset} to instances of the\nL{CompoundType} class.\n\n@ivar vltypes: The C{vltypes} dictionary maps the names of\nvariable-length types defined for the L{Group} or L{Dataset} to instances of the\nL{VLType} class.\n\n@ivar data_model: The C{data_model} attribute describes the netCDF\ndata model version, one of C{NETCDF3_CLASSIC}, C{NETCDF4},\nC{NETCDF4_CLASSIC} or C{NETCDF3_64BIT}.\n\n@ivar file_format: same as C{data_model}, retained for backwards\ncompatibility.\n\n@ivar disk_format: The C{disk_format} attribute describes the underlying\nfile format, one of C{NETCDF3}, C{HDF5}, C{HDF4},\nC{PNETCDF}, C{DAP2}, C{DAP4} or C{UNDEFINED}. Only available if using\nnetcdf C library version >= 4.3.1, otherwise will always return C{UNDEFINED}.\n\n@ivar path: The C{path} attribute shows the location of the L{Group} in\nthe L{Dataset} in a unix directory format (the names of groups in the\nhierarchy separated by backslashes). A L{Dataset} instance is the root\ngroup, so the path is simply C{'/'}.\n\n@ivar parent: The C{parent} attribute is a reference to the parent\nL{Group} instance. C{None} for a the root group or L{Dataset} instance", /*tp_doc*/ - __pyx_tp_traverse_7netCDF4_Dataset, /*tp_traverse*/ - __pyx_tp_clear_7netCDF4_Dataset, /*tp_clear*/ + __pyx_tp_traverse_7netCDF4_8_netCDF4_Dataset, /*tp_traverse*/ + __pyx_tp_clear_7netCDF4_8_netCDF4_Dataset, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ - __pyx_methods_7netCDF4_Dataset, /*tp_methods*/ + __pyx_methods_7netCDF4_8_netCDF4_Dataset, /*tp_methods*/ 0, /*tp_members*/ - __pyx_getsets_7netCDF4_Dataset, /*tp_getset*/ + __pyx_getsets_7netCDF4_8_netCDF4_Dataset, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ - __pyx_pw_7netCDF4_7Dataset_1__init__, /*tp_init*/ + __pyx_pw_7netCDF4_8_netCDF4_7Dataset_1__init__, /*tp_init*/ 0, /*tp_alloc*/ - __pyx_tp_new_7netCDF4_Dataset, /*tp_new*/ + __pyx_tp_new_7netCDF4_8_netCDF4_Dataset, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ @@ -60025,19 +60025,19 @@ static PyTypeObject __pyx_type_7netCDF4_Dataset = { #endif }; -static PyObject *__pyx_tp_new_7netCDF4_Group(PyTypeObject *t, PyObject *a, PyObject *k) { - PyObject *o = __pyx_tp_new_7netCDF4_Dataset(t, a, k); +static PyObject *__pyx_tp_new_7netCDF4_8_netCDF4_Group(PyTypeObject *t, PyObject *a, PyObject *k) { + PyObject *o = __pyx_tp_new_7netCDF4_8_netCDF4_Dataset(t, a, k); if (unlikely(!o)) return 0; return o; } -static PyObject *__pyx_getprop_7netCDF4_5Group_name(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_5Group_4name_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_5Group_name(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_5Group_4name_1__get__(o); } -static int __pyx_setprop_7netCDF4_5Group_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_5Group_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_5Group_4name_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_5Group_4name_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); @@ -60045,23 +60045,23 @@ static int __pyx_setprop_7netCDF4_5Group_name(PyObject *o, PyObject *v, CYTHON_U } } -static PyMethodDef __pyx_methods_7netCDF4_Group[] = { - {"close", (PyCFunction)__pyx_pw_7netCDF4_5Group_3close, METH_NOARGS, __pyx_doc_7netCDF4_5Group_2close}, - {"_getname", (PyCFunction)__pyx_pw_7netCDF4_5Group_5_getname, METH_NOARGS, 0}, +static PyMethodDef __pyx_methods_7netCDF4_8_netCDF4_Group[] = { + {"close", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_5Group_3close, METH_NOARGS, __pyx_doc_7netCDF4_8_netCDF4_5Group_2close}, + {"_getname", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_5Group_5_getname, METH_NOARGS, 0}, {0, 0, 0, 0} }; -static struct PyGetSetDef __pyx_getsets_7netCDF4_Group[] = { - {(char *)"name", __pyx_getprop_7netCDF4_5Group_name, __pyx_setprop_7netCDF4_5Group_name, __pyx_k_string_name_of_Group_instance, 0}, +static struct PyGetSetDef __pyx_getsets_7netCDF4_8_netCDF4_Group[] = { + {(char *)"name", __pyx_getprop_7netCDF4_8_netCDF4_5Group_name, __pyx_setprop_7netCDF4_8_netCDF4_5Group_name, __pyx_k_string_name_of_Group_instance, 0}, {0, 0, 0, 0, 0} }; -static PyTypeObject __pyx_type_7netCDF4_Group = { +static PyTypeObject __pyx_type_7netCDF4_8_netCDF4_Group = { PyVarObject_HEAD_INIT(0, 0) - "netCDF4.Group", /*tp_name*/ - sizeof(struct __pyx_obj_7netCDF4_Group), /*tp_basicsize*/ + "netCDF4._netCDF4.Group", /*tp_name*/ + sizeof(struct __pyx_obj_7netCDF4_8_netCDF4_Group), /*tp_basicsize*/ 0, /*tp_itemsize*/ - __pyx_tp_dealloc_7netCDF4_Dataset, /*tp_dealloc*/ + __pyx_tp_dealloc_7netCDF4_8_netCDF4_Dataset, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ @@ -60071,7 +60071,7 @@ static PyTypeObject __pyx_type_7netCDF4_Group = { 0, /*reserved*/ #endif #if CYTHON_COMPILING_IN_PYPY - __pyx_pw_7netCDF4_7Dataset_9__repr__, /*tp_repr*/ + __pyx_pw_7netCDF4_8_netCDF4_7Dataset_9__repr__, /*tp_repr*/ #else 0, /*tp_repr*/ #endif @@ -60086,23 +60086,23 @@ static PyTypeObject __pyx_type_7netCDF4_Group = { 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ "\nGroup(self, parent, name)\n\nGroups define a hierarchical namespace within a netCDF file. They are\nanalagous to directories in a unix filesystem. Each L{Group} behaves like\na L{Dataset} within a Dataset, and can contain it's own variables,\ndimensions and attributes (and other Groups).\n\nL{Group} instances should be created using the\nL{createGroup} method of a L{Dataset} instance, or\nanother L{Group} instance, not using this class directly.\n\nB{Parameters:}\n\nB{C{parent}} - L{Group} instance for the parent group. If being created\nin the root group, use a L{Dataset} instance.\n\nB{C{name}} - Name of the group.\n\nB{Returns:}\n\na L{Group} instance. All further operations on the netCDF\nGroup are accomplished via L{Group} instance methods.\n\nL{Group} inherits from L{Dataset}, so all the L{Dataset} class methods and\nvariables are available to a L{Group} instance (except the C{close}\nmethod).", /*tp_doc*/ - __pyx_tp_traverse_7netCDF4_Dataset, /*tp_traverse*/ - __pyx_tp_clear_7netCDF4_Dataset, /*tp_clear*/ + __pyx_tp_traverse_7netCDF4_8_netCDF4_Dataset, /*tp_traverse*/ + __pyx_tp_clear_7netCDF4_8_netCDF4_Dataset, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ - __pyx_methods_7netCDF4_Group, /*tp_methods*/ + __pyx_methods_7netCDF4_8_netCDF4_Group, /*tp_methods*/ 0, /*tp_members*/ - __pyx_getsets_7netCDF4_Group, /*tp_getset*/ + __pyx_getsets_7netCDF4_8_netCDF4_Group, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ - __pyx_pw_7netCDF4_5Group_1__init__, /*tp_init*/ + __pyx_pw_7netCDF4_8_netCDF4_5Group_1__init__, /*tp_init*/ 0, /*tp_alloc*/ - __pyx_tp_new_7netCDF4_Group, /*tp_new*/ + __pyx_tp_new_7netCDF4_8_netCDF4_Group, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ @@ -60117,8 +60117,8 @@ static PyTypeObject __pyx_type_7netCDF4_Group = { #endif }; -static PyObject *__pyx_tp_new_7netCDF4_Dimension(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { - struct __pyx_obj_7netCDF4_Dimension *p; +static PyObject *__pyx_tp_new_7netCDF4_8_netCDF4_Dimension(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { + struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); @@ -60126,15 +60126,15 @@ static PyObject *__pyx_tp_new_7netCDF4_Dimension(PyTypeObject *t, CYTHON_UNUSED o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; - p = ((struct __pyx_obj_7netCDF4_Dimension *)o); + p = ((struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)o); p->_data_model = Py_None; Py_INCREF(Py_None); p->_name = Py_None; Py_INCREF(Py_None); p->_grp = Py_None; Py_INCREF(Py_None); return o; } -static void __pyx_tp_dealloc_7netCDF4_Dimension(PyObject *o) { - struct __pyx_obj_7netCDF4_Dimension *p = (struct __pyx_obj_7netCDF4_Dimension *)o; +static void __pyx_tp_dealloc_7netCDF4_8_netCDF4_Dimension(PyObject *o) { + struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *p = (struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)o; #if PY_VERSION_HEX >= 0x030400a1 if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) { if (PyObject_CallFinalizerFromDealloc(o)) return; @@ -60147,9 +60147,9 @@ static void __pyx_tp_dealloc_7netCDF4_Dimension(PyObject *o) { (*Py_TYPE(o)->tp_free)(o); } -static int __pyx_tp_traverse_7netCDF4_Dimension(PyObject *o, visitproc v, void *a) { +static int __pyx_tp_traverse_7netCDF4_8_netCDF4_Dimension(PyObject *o, visitproc v, void *a) { int e; - struct __pyx_obj_7netCDF4_Dimension *p = (struct __pyx_obj_7netCDF4_Dimension *)o; + struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *p = (struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)o; if (p->_data_model) { e = (*v)(p->_data_model, a); if (e) return e; } @@ -60162,9 +60162,9 @@ static int __pyx_tp_traverse_7netCDF4_Dimension(PyObject *o, visitproc v, void * return 0; } -static int __pyx_tp_clear_7netCDF4_Dimension(PyObject *o) { +static int __pyx_tp_clear_7netCDF4_8_netCDF4_Dimension(PyObject *o) { PyObject* tmp; - struct __pyx_obj_7netCDF4_Dimension *p = (struct __pyx_obj_7netCDF4_Dimension *)o; + struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *p = (struct __pyx_obj_7netCDF4_8_netCDF4_Dimension *)o; tmp = ((PyObject*)p->_data_model); p->_data_model = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); @@ -60177,13 +60177,13 @@ static int __pyx_tp_clear_7netCDF4_Dimension(PyObject *o) { return 0; } -static PyObject *__pyx_getprop_7netCDF4_9Dimension_name(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_9Dimension_4name_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_9Dimension_name(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_9Dimension_4name_1__get__(o); } -static int __pyx_setprop_7netCDF4_9Dimension_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_9Dimension_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_9Dimension_4name_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_9Dimension_4name_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); @@ -60191,13 +60191,13 @@ static int __pyx_setprop_7netCDF4_9Dimension_name(PyObject *o, PyObject *v, CYTH } } -static PyObject *__pyx_getprop_7netCDF4_9Dimension__dimid(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_9Dimension_6_dimid_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_9Dimension__dimid(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_9Dimension_6_dimid_1__get__(o); } -static int __pyx_setprop_7netCDF4_9Dimension__dimid(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_9Dimension__dimid(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_9Dimension_6_dimid_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_9Dimension_6_dimid_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); @@ -60205,13 +60205,13 @@ static int __pyx_setprop_7netCDF4_9Dimension__dimid(PyObject *o, PyObject *v, CY } } -static PyObject *__pyx_getprop_7netCDF4_9Dimension__grpid(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_9Dimension_6_grpid_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_9Dimension__grpid(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_9Dimension_6_grpid_1__get__(o); } -static int __pyx_setprop_7netCDF4_9Dimension__grpid(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_9Dimension__grpid(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_9Dimension_6_grpid_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_9Dimension_6_grpid_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); @@ -60219,65 +60219,65 @@ static int __pyx_setprop_7netCDF4_9Dimension__grpid(PyObject *o, PyObject *v, CY } } -static PyObject *__pyx_getprop_7netCDF4_9Dimension__data_model(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_9Dimension_11_data_model_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_9Dimension__data_model(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_9Dimension_11_data_model_1__get__(o); } -static int __pyx_setprop_7netCDF4_9Dimension__data_model(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_9Dimension__data_model(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_9Dimension_11_data_model_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_9Dimension_11_data_model_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_9Dimension_11_data_model_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_9Dimension_11_data_model_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_9Dimension__name(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_9Dimension_5_name_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_9Dimension__name(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_9Dimension_5_name_1__get__(o); } -static int __pyx_setprop_7netCDF4_9Dimension__name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_9Dimension__name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_9Dimension_5_name_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_9Dimension_5_name_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_9Dimension_5_name_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_9Dimension_5_name_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_9Dimension__grp(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_9Dimension_4_grp_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_9Dimension__grp(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_9Dimension_4_grp_1__get__(o); } -static int __pyx_setprop_7netCDF4_9Dimension__grp(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_9Dimension__grp(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_9Dimension_4_grp_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_9Dimension_4_grp_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_9Dimension_4_grp_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_9Dimension_4_grp_5__del__(o); } } -static PyMethodDef __pyx_methods_7netCDF4_Dimension[] = { - {"_getname", (PyCFunction)__pyx_pw_7netCDF4_9Dimension_3_getname, METH_NOARGS, 0}, - {"__unicode__", (PyCFunction)__pyx_pw_7netCDF4_9Dimension_7__unicode__, METH_NOARGS, 0}, - {"group", (PyCFunction)__pyx_pw_7netCDF4_9Dimension_11group, METH_NOARGS, __pyx_doc_7netCDF4_9Dimension_10group}, - {"isunlimited", (PyCFunction)__pyx_pw_7netCDF4_9Dimension_13isunlimited, METH_NOARGS, __pyx_doc_7netCDF4_9Dimension_12isunlimited}, +static PyMethodDef __pyx_methods_7netCDF4_8_netCDF4_Dimension[] = { + {"_getname", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_9Dimension_3_getname, METH_NOARGS, 0}, + {"__unicode__", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_9Dimension_7__unicode__, METH_NOARGS, 0}, + {"group", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_9Dimension_11group, METH_NOARGS, __pyx_doc_7netCDF4_8_netCDF4_9Dimension_10group}, + {"isunlimited", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_9Dimension_13isunlimited, METH_NOARGS, __pyx_doc_7netCDF4_8_netCDF4_9Dimension_12isunlimited}, {0, 0, 0, 0} }; -static struct PyGetSetDef __pyx_getsets_7netCDF4_Dimension[] = { - {(char *)"name", __pyx_getprop_7netCDF4_9Dimension_name, __pyx_setprop_7netCDF4_9Dimension_name, __pyx_k_string_name_of_Dimension_instanc, 0}, - {(char *)"_dimid", __pyx_getprop_7netCDF4_9Dimension__dimid, __pyx_setprop_7netCDF4_9Dimension__dimid, 0, 0}, - {(char *)"_grpid", __pyx_getprop_7netCDF4_9Dimension__grpid, __pyx_setprop_7netCDF4_9Dimension__grpid, 0, 0}, - {(char *)"_data_model", __pyx_getprop_7netCDF4_9Dimension__data_model, __pyx_setprop_7netCDF4_9Dimension__data_model, 0, 0}, - {(char *)"_name", __pyx_getprop_7netCDF4_9Dimension__name, __pyx_setprop_7netCDF4_9Dimension__name, 0, 0}, - {(char *)"_grp", __pyx_getprop_7netCDF4_9Dimension__grp, __pyx_setprop_7netCDF4_9Dimension__grp, 0, 0}, +static struct PyGetSetDef __pyx_getsets_7netCDF4_8_netCDF4_Dimension[] = { + {(char *)"name", __pyx_getprop_7netCDF4_8_netCDF4_9Dimension_name, __pyx_setprop_7netCDF4_8_netCDF4_9Dimension_name, __pyx_k_string_name_of_Dimension_instanc, 0}, + {(char *)"_dimid", __pyx_getprop_7netCDF4_8_netCDF4_9Dimension__dimid, __pyx_setprop_7netCDF4_8_netCDF4_9Dimension__dimid, 0, 0}, + {(char *)"_grpid", __pyx_getprop_7netCDF4_8_netCDF4_9Dimension__grpid, __pyx_setprop_7netCDF4_8_netCDF4_9Dimension__grpid, 0, 0}, + {(char *)"_data_model", __pyx_getprop_7netCDF4_8_netCDF4_9Dimension__data_model, __pyx_setprop_7netCDF4_8_netCDF4_9Dimension__data_model, 0, 0}, + {(char *)"_name", __pyx_getprop_7netCDF4_8_netCDF4_9Dimension__name, __pyx_setprop_7netCDF4_8_netCDF4_9Dimension__name, 0, 0}, + {(char *)"_grp", __pyx_getprop_7netCDF4_8_netCDF4_9Dimension__grp, __pyx_setprop_7netCDF4_8_netCDF4_9Dimension__grp, 0, 0}, {0, 0, 0, 0, 0} }; static PySequenceMethods __pyx_tp_as_sequence_Dimension = { - __pyx_pw_7netCDF4_9Dimension_9__len__, /*sq_length*/ + __pyx_pw_7netCDF4_8_netCDF4_9Dimension_9__len__, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ 0, /*sq_item*/ @@ -60290,17 +60290,17 @@ static PySequenceMethods __pyx_tp_as_sequence_Dimension = { }; static PyMappingMethods __pyx_tp_as_mapping_Dimension = { - __pyx_pw_7netCDF4_9Dimension_9__len__, /*mp_length*/ + __pyx_pw_7netCDF4_8_netCDF4_9Dimension_9__len__, /*mp_length*/ 0, /*mp_subscript*/ 0, /*mp_ass_subscript*/ }; -static PyTypeObject __pyx_type_7netCDF4_Dimension = { +static PyTypeObject __pyx_type_7netCDF4_8_netCDF4_Dimension = { PyVarObject_HEAD_INIT(0, 0) - "netCDF4.Dimension", /*tp_name*/ - sizeof(struct __pyx_obj_7netCDF4_Dimension), /*tp_basicsize*/ + "netCDF4._netCDF4.Dimension", /*tp_name*/ + sizeof(struct __pyx_obj_7netCDF4_8_netCDF4_Dimension), /*tp_basicsize*/ 0, /*tp_itemsize*/ - __pyx_tp_dealloc_7netCDF4_Dimension, /*tp_dealloc*/ + __pyx_tp_dealloc_7netCDF4_8_netCDF4_Dimension, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ @@ -60309,7 +60309,7 @@ static PyTypeObject __pyx_type_7netCDF4_Dimension = { #else 0, /*reserved*/ #endif - __pyx_pw_7netCDF4_9Dimension_5__repr__, /*tp_repr*/ + __pyx_pw_7netCDF4_8_netCDF4_9Dimension_5__repr__, /*tp_repr*/ 0, /*tp_as_number*/ &__pyx_tp_as_sequence_Dimension, /*tp_as_sequence*/ &__pyx_tp_as_mapping_Dimension, /*tp_as_mapping*/ @@ -60321,23 +60321,23 @@ static PyTypeObject __pyx_type_7netCDF4_Dimension = { 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ "\nDimension(self, group, name, size=None)\n\nA netCDF L{Dimension} is used to describe the coordinates of a L{Variable}.\n\nL{Dimension} instances should be created using the\nL{createDimension} method of a L{Group} or\nL{Dataset} instance, not using this class directly.\n\nB{Parameters:}\n\nB{C{group}} - L{Group} instance to associate with dimension.\n\nB{C{name}} - Name of the dimension.\n\nB{Keywords:}\n\nB{C{size}} - Size of the dimension. C{None} or 0 means unlimited. (Default C{None}).\n\nB{Returns:}\n\na L{Dimension} instance. All further operations on the netCDF Dimension\nare accomplised via L{Dimension} instance methods.\n\nThe current maximum size of a L{Dimension} instance can be obtained by\ncalling the python C{len} function on the L{Dimension} instance. The\nC{isunlimited()} method of a L{Dimension} instance can be used to\ndetermine if the dimension is unlimited", /*tp_doc*/ - __pyx_tp_traverse_7netCDF4_Dimension, /*tp_traverse*/ - __pyx_tp_clear_7netCDF4_Dimension, /*tp_clear*/ + __pyx_tp_traverse_7netCDF4_8_netCDF4_Dimension, /*tp_traverse*/ + __pyx_tp_clear_7netCDF4_8_netCDF4_Dimension, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ - __pyx_methods_7netCDF4_Dimension, /*tp_methods*/ + __pyx_methods_7netCDF4_8_netCDF4_Dimension, /*tp_methods*/ 0, /*tp_members*/ - __pyx_getsets_7netCDF4_Dimension, /*tp_getset*/ + __pyx_getsets_7netCDF4_8_netCDF4_Dimension, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ - __pyx_pw_7netCDF4_9Dimension_1__init__, /*tp_init*/ + __pyx_pw_7netCDF4_8_netCDF4_9Dimension_1__init__, /*tp_init*/ 0, /*tp_alloc*/ - __pyx_tp_new_7netCDF4_Dimension, /*tp_new*/ + __pyx_tp_new_7netCDF4_8_netCDF4_Dimension, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ @@ -60352,8 +60352,8 @@ static PyTypeObject __pyx_type_7netCDF4_Dimension = { #endif }; -static PyObject *__pyx_tp_new_7netCDF4_Variable(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { - struct __pyx_obj_7netCDF4_Variable *p; +static PyObject *__pyx_tp_new_7netCDF4_8_netCDF4_Variable(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { + struct __pyx_obj_7netCDF4_8_netCDF4_Variable *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); @@ -60361,7 +60361,7 @@ static PyObject *__pyx_tp_new_7netCDF4_Variable(PyTypeObject *t, CYTHON_UNUSED P o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; - p = ((struct __pyx_obj_7netCDF4_Variable *)o); + p = ((struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)o); p->_name = Py_None; Py_INCREF(Py_None); p->ndim = Py_None; Py_INCREF(Py_None); p->dtype = Py_None; Py_INCREF(Py_None); @@ -60377,8 +60377,8 @@ static PyObject *__pyx_tp_new_7netCDF4_Variable(PyTypeObject *t, CYTHON_UNUSED P return o; } -static void __pyx_tp_dealloc_7netCDF4_Variable(PyObject *o) { - struct __pyx_obj_7netCDF4_Variable *p = (struct __pyx_obj_7netCDF4_Variable *)o; +static void __pyx_tp_dealloc_7netCDF4_8_netCDF4_Variable(PyObject *o) { + struct __pyx_obj_7netCDF4_8_netCDF4_Variable *p = (struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)o; #if PY_VERSION_HEX >= 0x030400a1 if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) { if (PyObject_CallFinalizerFromDealloc(o)) return; @@ -60400,9 +60400,9 @@ static void __pyx_tp_dealloc_7netCDF4_Variable(PyObject *o) { (*Py_TYPE(o)->tp_free)(o); } -static int __pyx_tp_traverse_7netCDF4_Variable(PyObject *o, visitproc v, void *a) { +static int __pyx_tp_traverse_7netCDF4_8_netCDF4_Variable(PyObject *o, visitproc v, void *a) { int e; - struct __pyx_obj_7netCDF4_Variable *p = (struct __pyx_obj_7netCDF4_Variable *)o; + struct __pyx_obj_7netCDF4_8_netCDF4_Variable *p = (struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)o; if (p->_name) { e = (*v)(p->_name, a); if (e) return e; } @@ -60442,9 +60442,9 @@ static int __pyx_tp_traverse_7netCDF4_Variable(PyObject *o, visitproc v, void *a return 0; } -static int __pyx_tp_clear_7netCDF4_Variable(PyObject *o) { +static int __pyx_tp_clear_7netCDF4_8_netCDF4_Variable(PyObject *o) { PyObject* tmp; - struct __pyx_obj_7netCDF4_Variable *p = (struct __pyx_obj_7netCDF4_Variable *)o; + struct __pyx_obj_7netCDF4_8_netCDF4_Variable *p = (struct __pyx_obj_7netCDF4_8_netCDF4_Variable *)o; tmp = ((PyObject*)p->_name); p->_name = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); @@ -60483,7 +60483,7 @@ static int __pyx_tp_clear_7netCDF4_Variable(PyObject *o) { Py_XDECREF(tmp); return 0; } -static PyObject *__pyx_sq_item_7netCDF4_Variable(PyObject *o, Py_ssize_t i) { +static PyObject *__pyx_sq_item_7netCDF4_8_netCDF4_Variable(PyObject *o, Py_ssize_t i) { PyObject *r; PyObject *x = PyInt_FromSsize_t(i); if(!x) return 0; r = Py_TYPE(o)->tp_as_mapping->mp_subscript(o, x); @@ -60491,9 +60491,9 @@ static PyObject *__pyx_sq_item_7netCDF4_Variable(PyObject *o, Py_ssize_t i) { return r; } -static int __pyx_mp_ass_subscript_7netCDF4_Variable(PyObject *o, PyObject *i, PyObject *v) { +static int __pyx_mp_ass_subscript_7netCDF4_8_netCDF4_Variable(PyObject *o, PyObject *i, PyObject *v) { if (v) { - return __pyx_pw_7netCDF4_8Variable_49__setitem__(o, i, v); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_49__setitem__(o, i, v); } else { PyErr_Format(PyExc_NotImplementedError, @@ -60502,31 +60502,31 @@ static int __pyx_mp_ass_subscript_7netCDF4_Variable(PyObject *o, PyObject *i, Py } } -static PyObject *__pyx_tp_getattro_7netCDF4_Variable(PyObject *o, PyObject *n) { +static PyObject *__pyx_tp_getattro_7netCDF4_8_netCDF4_Variable(PyObject *o, PyObject *n) { PyObject *v = PyObject_GenericGetAttr(o, n); if (!v && PyErr_ExceptionMatches(PyExc_AttributeError)) { PyErr_Clear(); - v = __pyx_pw_7netCDF4_8Variable_39__getattr__(o, n); + v = __pyx_pw_7netCDF4_8_netCDF4_8Variable_39__getattr__(o, n); } return v; } -static int __pyx_tp_setattro_7netCDF4_Variable(PyObject *o, PyObject *n, PyObject *v) { +static int __pyx_tp_setattro_7netCDF4_8_netCDF4_Variable(PyObject *o, PyObject *n, PyObject *v) { if (v) { - return __pyx_pw_7netCDF4_8Variable_37__setattr__(o, n, v); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_37__setattr__(o, n, v); } else { - return __pyx_pw_7netCDF4_8Variable_35__delattr__(o, n); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_35__delattr__(o, n); } } -static PyObject *__pyx_getprop_7netCDF4_8Variable_name(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_8Variable_4name_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_8Variable_name(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_4name_1__get__(o); } -static int __pyx_setprop_7netCDF4_8Variable_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_8Variable_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_8Variable_4name_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_4name_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); @@ -60534,17 +60534,17 @@ static int __pyx_setprop_7netCDF4_8Variable_name(PyObject *o, PyObject *v, CYTHO } } -static PyObject *__pyx_getprop_7netCDF4_8Variable_datatype(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_8Variable_8datatype_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_8Variable_datatype(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_8datatype_1__get__(o); } -static PyObject *__pyx_getprop_7netCDF4_8Variable_shape(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_8Variable_5shape_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_8Variable_shape(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_5shape_1__get__(o); } -static int __pyx_setprop_7netCDF4_8Variable_shape(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_8Variable_shape(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_8Variable_5shape_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_5shape_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); @@ -60552,17 +60552,17 @@ static int __pyx_setprop_7netCDF4_8Variable_shape(PyObject *o, PyObject *v, CYTH } } -static PyObject *__pyx_getprop_7netCDF4_8Variable_size(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_8Variable_4size_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_8Variable_size(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_4size_1__get__(o); } -static PyObject *__pyx_getprop_7netCDF4_8Variable_dimensions(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_8Variable_10dimensions_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_8Variable_dimensions(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_10dimensions_1__get__(o); } -static int __pyx_setprop_7netCDF4_8Variable_dimensions(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_8Variable_dimensions(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_8Variable_10dimensions_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_10dimensions_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); @@ -60570,13 +60570,13 @@ static int __pyx_setprop_7netCDF4_8Variable_dimensions(PyObject *o, PyObject *v, } } -static PyObject *__pyx_getprop_7netCDF4_8Variable__varid(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_8Variable_6_varid_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_8Variable__varid(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_6_varid_1__get__(o); } -static int __pyx_setprop_7netCDF4_8Variable__varid(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_8Variable__varid(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_8Variable_6_varid_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_6_varid_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); @@ -60584,13 +60584,13 @@ static int __pyx_setprop_7netCDF4_8Variable__varid(PyObject *o, PyObject *v, CYT } } -static PyObject *__pyx_getprop_7netCDF4_8Variable__grpid(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_8Variable_6_grpid_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_8Variable__grpid(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_6_grpid_1__get__(o); } -static int __pyx_setprop_7netCDF4_8Variable__grpid(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_8Variable__grpid(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_8Variable_6_grpid_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_6_grpid_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); @@ -60598,13 +60598,13 @@ static int __pyx_setprop_7netCDF4_8Variable__grpid(PyObject *o, PyObject *v, CYT } } -static PyObject *__pyx_getprop_7netCDF4_8Variable__nunlimdim(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_8Variable_10_nunlimdim_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_8Variable__nunlimdim(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_10_nunlimdim_1__get__(o); } -static int __pyx_setprop_7netCDF4_8Variable__nunlimdim(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_8Variable__nunlimdim(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_8Variable_10_nunlimdim_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_10_nunlimdim_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); @@ -60612,221 +60612,221 @@ static int __pyx_setprop_7netCDF4_8Variable__nunlimdim(PyObject *o, PyObject *v, } } -static PyObject *__pyx_getprop_7netCDF4_8Variable__name(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_8Variable_5_name_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_8Variable__name(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_5_name_1__get__(o); } -static int __pyx_setprop_7netCDF4_8Variable__name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_8Variable__name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_8Variable_5_name_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_5_name_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_8Variable_5_name_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_5_name_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_8Variable_ndim(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_8Variable_4ndim_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_8Variable_ndim(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_4ndim_1__get__(o); } -static int __pyx_setprop_7netCDF4_8Variable_ndim(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_8Variable_ndim(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_8Variable_4ndim_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_4ndim_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_8Variable_4ndim_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_4ndim_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_8Variable_dtype(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_8Variable_5dtype_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_8Variable_dtype(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_5dtype_1__get__(o); } -static int __pyx_setprop_7netCDF4_8Variable_dtype(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_8Variable_dtype(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_8Variable_5dtype_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_5dtype_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_8Variable_5dtype_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_5dtype_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_8Variable_mask(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_8Variable_4mask_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_8Variable_mask(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_4mask_1__get__(o); } -static int __pyx_setprop_7netCDF4_8Variable_mask(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_8Variable_mask(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_8Variable_4mask_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_4mask_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_8Variable_4mask_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_4mask_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_8Variable_scale(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_8Variable_5scale_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_8Variable_scale(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_5scale_1__get__(o); } -static int __pyx_setprop_7netCDF4_8Variable_scale(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_8Variable_scale(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_8Variable_5scale_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_5scale_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_8Variable_5scale_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_5scale_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_8Variable__isprimitive(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_8Variable_12_isprimitive_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_8Variable__isprimitive(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_12_isprimitive_1__get__(o); } -static int __pyx_setprop_7netCDF4_8Variable__isprimitive(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_8Variable__isprimitive(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_8Variable_12_isprimitive_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_12_isprimitive_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_8Variable_12_isprimitive_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_12_isprimitive_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_8Variable__iscompound(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_8Variable_11_iscompound_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_8Variable__iscompound(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_11_iscompound_1__get__(o); } -static int __pyx_setprop_7netCDF4_8Variable__iscompound(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_8Variable__iscompound(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_8Variable_11_iscompound_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_11_iscompound_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_8Variable_11_iscompound_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_11_iscompound_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_8Variable__isvlen(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_8Variable_7_isvlen_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_8Variable__isvlen(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_7_isvlen_1__get__(o); } -static int __pyx_setprop_7netCDF4_8Variable__isvlen(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_8Variable__isvlen(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_8Variable_7_isvlen_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_7_isvlen_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_8Variable_7_isvlen_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_7_isvlen_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_8Variable__grp(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_8Variable_4_grp_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_8Variable__grp(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_4_grp_1__get__(o); } -static int __pyx_setprop_7netCDF4_8Variable__grp(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_8Variable__grp(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_8Variable_4_grp_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_4_grp_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_8Variable_4_grp_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_4_grp_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_8Variable__cmptype(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_8Variable_8_cmptype_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_8Variable__cmptype(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_8_cmptype_1__get__(o); } -static int __pyx_setprop_7netCDF4_8Variable__cmptype(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_8Variable__cmptype(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_8Variable_8_cmptype_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_8_cmptype_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_8Variable_8_cmptype_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_8_cmptype_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_8Variable__vltype(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_8Variable_7_vltype_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_8Variable__vltype(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_7_vltype_1__get__(o); } -static int __pyx_setprop_7netCDF4_8Variable__vltype(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_8Variable__vltype(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_8Variable_7_vltype_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_7_vltype_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_8Variable_7_vltype_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_7_vltype_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_8Variable___orthogonal_indexing__(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_8Variable_23__orthogonal_indexing___1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_8Variable___orthogonal_indexing__(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_23__orthogonal_indexing___1__get__(o); } -static int __pyx_setprop_7netCDF4_8Variable___orthogonal_indexing__(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_8Variable___orthogonal_indexing__(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_8Variable_23__orthogonal_indexing___3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_23__orthogonal_indexing___3__set__(o, v); } else { - return __pyx_pw_7netCDF4_8Variable_23__orthogonal_indexing___5__del__(o); - } -} - -static PyMethodDef __pyx_methods_7netCDF4_Variable[] = { - {"__array__", (PyCFunction)__pyx_pw_7netCDF4_8Variable_3__array__, METH_NOARGS, 0}, - {"__unicode__", (PyCFunction)__pyx_pw_7netCDF4_8Variable_7__unicode__, METH_NOARGS, 0}, - {"_getdims", (PyCFunction)__pyx_pw_7netCDF4_8Variable_9_getdims, METH_NOARGS, 0}, - {"_getname", (PyCFunction)__pyx_pw_7netCDF4_8Variable_11_getname, METH_NOARGS, 0}, - {"group", (PyCFunction)__pyx_pw_7netCDF4_8Variable_13group, METH_NOARGS, __pyx_doc_7netCDF4_8Variable_12group}, - {"ncattrs", (PyCFunction)__pyx_pw_7netCDF4_8Variable_15ncattrs, METH_NOARGS, __pyx_doc_7netCDF4_8Variable_14ncattrs}, - {"setncattr", (PyCFunction)__pyx_pw_7netCDF4_8Variable_17setncattr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8Variable_16setncattr}, - {"setncatts", (PyCFunction)__pyx_pw_7netCDF4_8Variable_19setncatts, METH_O, __pyx_doc_7netCDF4_8Variable_18setncatts}, - {"getncattr", (PyCFunction)__pyx_pw_7netCDF4_8Variable_21getncattr, METH_O, __pyx_doc_7netCDF4_8Variable_20getncattr}, - {"delncattr", (PyCFunction)__pyx_pw_7netCDF4_8Variable_23delncattr, METH_O, __pyx_doc_7netCDF4_8Variable_22delncattr}, - {"filters", (PyCFunction)__pyx_pw_7netCDF4_8Variable_25filters, METH_NOARGS, __pyx_doc_7netCDF4_8Variable_24filters}, - {"endian", (PyCFunction)__pyx_pw_7netCDF4_8Variable_27endian, METH_NOARGS, __pyx_doc_7netCDF4_8Variable_26endian}, - {"chunking", (PyCFunction)__pyx_pw_7netCDF4_8Variable_29chunking, METH_NOARGS, __pyx_doc_7netCDF4_8Variable_28chunking}, - {"get_var_chunk_cache", (PyCFunction)__pyx_pw_7netCDF4_8Variable_31get_var_chunk_cache, METH_NOARGS, __pyx_doc_7netCDF4_8Variable_30get_var_chunk_cache}, - {"set_var_chunk_cache", (PyCFunction)__pyx_pw_7netCDF4_8Variable_33set_var_chunk_cache, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8Variable_32set_var_chunk_cache}, - {"__getattr__", (PyCFunction)__pyx_pw_7netCDF4_8Variable_39__getattr__, METH_O|METH_COEXIST, 0}, - {"renameAttribute", (PyCFunction)__pyx_pw_7netCDF4_8Variable_41renameAttribute, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8Variable_40renameAttribute}, - {"_toma", (PyCFunction)__pyx_pw_7netCDF4_8Variable_45_toma, METH_O, 0}, - {"_assign_vlen", (PyCFunction)__pyx_pw_7netCDF4_8Variable_47_assign_vlen, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8Variable_46_assign_vlen}, - {"assignValue", (PyCFunction)__pyx_pw_7netCDF4_8Variable_53assignValue, METH_O, __pyx_doc_7netCDF4_8Variable_52assignValue}, - {"getValue", (PyCFunction)__pyx_pw_7netCDF4_8Variable_55getValue, METH_NOARGS, __pyx_doc_7netCDF4_8Variable_54getValue}, - {"set_auto_maskandscale", (PyCFunction)__pyx_pw_7netCDF4_8Variable_57set_auto_maskandscale, METH_O, __pyx_doc_7netCDF4_8Variable_56set_auto_maskandscale}, - {"set_auto_scale", (PyCFunction)__pyx_pw_7netCDF4_8Variable_59set_auto_scale, METH_O, __pyx_doc_7netCDF4_8Variable_58set_auto_scale}, - {"set_auto_mask", (PyCFunction)__pyx_pw_7netCDF4_8Variable_61set_auto_mask, METH_O, __pyx_doc_7netCDF4_8Variable_60set_auto_mask}, - {"_put", (PyCFunction)__pyx_pw_7netCDF4_8Variable_63_put, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8Variable_62_put}, - {"_get", (PyCFunction)__pyx_pw_7netCDF4_8Variable_65_get, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8Variable_64_get}, + return __pyx_pw_7netCDF4_8_netCDF4_8Variable_23__orthogonal_indexing___5__del__(o); + } +} + +static PyMethodDef __pyx_methods_7netCDF4_8_netCDF4_Variable[] = { + {"__array__", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_3__array__, METH_NOARGS, 0}, + {"__unicode__", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_7__unicode__, METH_NOARGS, 0}, + {"_getdims", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_9_getdims, METH_NOARGS, 0}, + {"_getname", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_11_getname, METH_NOARGS, 0}, + {"group", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_13group, METH_NOARGS, __pyx_doc_7netCDF4_8_netCDF4_8Variable_12group}, + {"ncattrs", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_15ncattrs, METH_NOARGS, __pyx_doc_7netCDF4_8_netCDF4_8Variable_14ncattrs}, + {"setncattr", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_17setncattr, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8_netCDF4_8Variable_16setncattr}, + {"setncatts", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_19setncatts, METH_O, __pyx_doc_7netCDF4_8_netCDF4_8Variable_18setncatts}, + {"getncattr", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_21getncattr, METH_O, __pyx_doc_7netCDF4_8_netCDF4_8Variable_20getncattr}, + {"delncattr", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_23delncattr, METH_O, __pyx_doc_7netCDF4_8_netCDF4_8Variable_22delncattr}, + {"filters", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_25filters, METH_NOARGS, __pyx_doc_7netCDF4_8_netCDF4_8Variable_24filters}, + {"endian", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_27endian, METH_NOARGS, __pyx_doc_7netCDF4_8_netCDF4_8Variable_26endian}, + {"chunking", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_29chunking, METH_NOARGS, __pyx_doc_7netCDF4_8_netCDF4_8Variable_28chunking}, + {"get_var_chunk_cache", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_31get_var_chunk_cache, METH_NOARGS, __pyx_doc_7netCDF4_8_netCDF4_8Variable_30get_var_chunk_cache}, + {"set_var_chunk_cache", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_33set_var_chunk_cache, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8_netCDF4_8Variable_32set_var_chunk_cache}, + {"__getattr__", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_39__getattr__, METH_O|METH_COEXIST, 0}, + {"renameAttribute", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_41renameAttribute, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8_netCDF4_8Variable_40renameAttribute}, + {"_toma", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_45_toma, METH_O, 0}, + {"_assign_vlen", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_47_assign_vlen, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8_netCDF4_8Variable_46_assign_vlen}, + {"assignValue", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_53assignValue, METH_O, __pyx_doc_7netCDF4_8_netCDF4_8Variable_52assignValue}, + {"getValue", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_55getValue, METH_NOARGS, __pyx_doc_7netCDF4_8_netCDF4_8Variable_54getValue}, + {"set_auto_maskandscale", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_57set_auto_maskandscale, METH_O, __pyx_doc_7netCDF4_8_netCDF4_8Variable_56set_auto_maskandscale}, + {"set_auto_scale", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_59set_auto_scale, METH_O, __pyx_doc_7netCDF4_8_netCDF4_8Variable_58set_auto_scale}, + {"set_auto_mask", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_61set_auto_mask, METH_O, __pyx_doc_7netCDF4_8_netCDF4_8Variable_60set_auto_mask}, + {"_put", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_63_put, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8_netCDF4_8Variable_62_put}, + {"_get", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_8Variable_65_get, METH_VARARGS|METH_KEYWORDS, __pyx_doc_7netCDF4_8_netCDF4_8Variable_64_get}, {0, 0, 0, 0} }; -static struct PyGetSetDef __pyx_getsets_7netCDF4_Variable[] = { - {(char *)"name", __pyx_getprop_7netCDF4_8Variable_name, __pyx_setprop_7netCDF4_8Variable_name, __pyx_k_string_name_of_Variable_instance, 0}, - {(char *)"datatype", __pyx_getprop_7netCDF4_8Variable_datatype, 0, __pyx_k_numpy_data_type_for_primitive_da, 0}, - {(char *)"shape", __pyx_getprop_7netCDF4_8Variable_shape, __pyx_setprop_7netCDF4_8Variable_shape, __pyx_k_find_current_sizes_of_all_variab, 0}, - {(char *)"size", __pyx_getprop_7netCDF4_8Variable_size, 0, __pyx_k_Return_the_number_of_stored_elem, 0}, - {(char *)"dimensions", __pyx_getprop_7netCDF4_8Variable_dimensions, __pyx_setprop_7netCDF4_8Variable_dimensions, __pyx_k_get_variables_s_dimension_names, 0}, - {(char *)"_varid", __pyx_getprop_7netCDF4_8Variable__varid, __pyx_setprop_7netCDF4_8Variable__varid, 0, 0}, - {(char *)"_grpid", __pyx_getprop_7netCDF4_8Variable__grpid, __pyx_setprop_7netCDF4_8Variable__grpid, 0, 0}, - {(char *)"_nunlimdim", __pyx_getprop_7netCDF4_8Variable__nunlimdim, __pyx_setprop_7netCDF4_8Variable__nunlimdim, 0, 0}, - {(char *)"_name", __pyx_getprop_7netCDF4_8Variable__name, __pyx_setprop_7netCDF4_8Variable__name, 0, 0}, - {(char *)"ndim", __pyx_getprop_7netCDF4_8Variable_ndim, __pyx_setprop_7netCDF4_8Variable_ndim, 0, 0}, - {(char *)"dtype", __pyx_getprop_7netCDF4_8Variable_dtype, __pyx_setprop_7netCDF4_8Variable_dtype, 0, 0}, - {(char *)"mask", __pyx_getprop_7netCDF4_8Variable_mask, __pyx_setprop_7netCDF4_8Variable_mask, 0, 0}, - {(char *)"scale", __pyx_getprop_7netCDF4_8Variable_scale, __pyx_setprop_7netCDF4_8Variable_scale, 0, 0}, - {(char *)"_isprimitive", __pyx_getprop_7netCDF4_8Variable__isprimitive, __pyx_setprop_7netCDF4_8Variable__isprimitive, 0, 0}, - {(char *)"_iscompound", __pyx_getprop_7netCDF4_8Variable__iscompound, __pyx_setprop_7netCDF4_8Variable__iscompound, 0, 0}, - {(char *)"_isvlen", __pyx_getprop_7netCDF4_8Variable__isvlen, __pyx_setprop_7netCDF4_8Variable__isvlen, 0, 0}, - {(char *)"_grp", __pyx_getprop_7netCDF4_8Variable__grp, __pyx_setprop_7netCDF4_8Variable__grp, 0, 0}, - {(char *)"_cmptype", __pyx_getprop_7netCDF4_8Variable__cmptype, __pyx_setprop_7netCDF4_8Variable__cmptype, 0, 0}, - {(char *)"_vltype", __pyx_getprop_7netCDF4_8Variable__vltype, __pyx_setprop_7netCDF4_8Variable__vltype, 0, 0}, - {(char *)"__orthogonal_indexing__", __pyx_getprop_7netCDF4_8Variable___orthogonal_indexing__, __pyx_setprop_7netCDF4_8Variable___orthogonal_indexing__, 0, 0}, +static struct PyGetSetDef __pyx_getsets_7netCDF4_8_netCDF4_Variable[] = { + {(char *)"name", __pyx_getprop_7netCDF4_8_netCDF4_8Variable_name, __pyx_setprop_7netCDF4_8_netCDF4_8Variable_name, __pyx_k_string_name_of_Variable_instance, 0}, + {(char *)"datatype", __pyx_getprop_7netCDF4_8_netCDF4_8Variable_datatype, 0, __pyx_k_numpy_data_type_for_primitive_da, 0}, + {(char *)"shape", __pyx_getprop_7netCDF4_8_netCDF4_8Variable_shape, __pyx_setprop_7netCDF4_8_netCDF4_8Variable_shape, __pyx_k_find_current_sizes_of_all_variab, 0}, + {(char *)"size", __pyx_getprop_7netCDF4_8_netCDF4_8Variable_size, 0, __pyx_k_Return_the_number_of_stored_elem, 0}, + {(char *)"dimensions", __pyx_getprop_7netCDF4_8_netCDF4_8Variable_dimensions, __pyx_setprop_7netCDF4_8_netCDF4_8Variable_dimensions, __pyx_k_get_variables_s_dimension_names, 0}, + {(char *)"_varid", __pyx_getprop_7netCDF4_8_netCDF4_8Variable__varid, __pyx_setprop_7netCDF4_8_netCDF4_8Variable__varid, 0, 0}, + {(char *)"_grpid", __pyx_getprop_7netCDF4_8_netCDF4_8Variable__grpid, __pyx_setprop_7netCDF4_8_netCDF4_8Variable__grpid, 0, 0}, + {(char *)"_nunlimdim", __pyx_getprop_7netCDF4_8_netCDF4_8Variable__nunlimdim, __pyx_setprop_7netCDF4_8_netCDF4_8Variable__nunlimdim, 0, 0}, + {(char *)"_name", __pyx_getprop_7netCDF4_8_netCDF4_8Variable__name, __pyx_setprop_7netCDF4_8_netCDF4_8Variable__name, 0, 0}, + {(char *)"ndim", __pyx_getprop_7netCDF4_8_netCDF4_8Variable_ndim, __pyx_setprop_7netCDF4_8_netCDF4_8Variable_ndim, 0, 0}, + {(char *)"dtype", __pyx_getprop_7netCDF4_8_netCDF4_8Variable_dtype, __pyx_setprop_7netCDF4_8_netCDF4_8Variable_dtype, 0, 0}, + {(char *)"mask", __pyx_getprop_7netCDF4_8_netCDF4_8Variable_mask, __pyx_setprop_7netCDF4_8_netCDF4_8Variable_mask, 0, 0}, + {(char *)"scale", __pyx_getprop_7netCDF4_8_netCDF4_8Variable_scale, __pyx_setprop_7netCDF4_8_netCDF4_8Variable_scale, 0, 0}, + {(char *)"_isprimitive", __pyx_getprop_7netCDF4_8_netCDF4_8Variable__isprimitive, __pyx_setprop_7netCDF4_8_netCDF4_8Variable__isprimitive, 0, 0}, + {(char *)"_iscompound", __pyx_getprop_7netCDF4_8_netCDF4_8Variable__iscompound, __pyx_setprop_7netCDF4_8_netCDF4_8Variable__iscompound, 0, 0}, + {(char *)"_isvlen", __pyx_getprop_7netCDF4_8_netCDF4_8Variable__isvlen, __pyx_setprop_7netCDF4_8_netCDF4_8Variable__isvlen, 0, 0}, + {(char *)"_grp", __pyx_getprop_7netCDF4_8_netCDF4_8Variable__grp, __pyx_setprop_7netCDF4_8_netCDF4_8Variable__grp, 0, 0}, + {(char *)"_cmptype", __pyx_getprop_7netCDF4_8_netCDF4_8Variable__cmptype, __pyx_setprop_7netCDF4_8_netCDF4_8Variable__cmptype, 0, 0}, + {(char *)"_vltype", __pyx_getprop_7netCDF4_8_netCDF4_8Variable__vltype, __pyx_setprop_7netCDF4_8_netCDF4_8Variable__vltype, 0, 0}, + {(char *)"__orthogonal_indexing__", __pyx_getprop_7netCDF4_8_netCDF4_8Variable___orthogonal_indexing__, __pyx_setprop_7netCDF4_8_netCDF4_8Variable___orthogonal_indexing__, 0, 0}, {0, 0, 0, 0, 0} }; static PySequenceMethods __pyx_tp_as_sequence_Variable = { - __pyx_pw_7netCDF4_8Variable_51__len__, /*sq_length*/ + __pyx_pw_7netCDF4_8_netCDF4_8Variable_51__len__, /*sq_length*/ 0, /*sq_concat*/ 0, /*sq_repeat*/ - __pyx_sq_item_7netCDF4_Variable, /*sq_item*/ + __pyx_sq_item_7netCDF4_8_netCDF4_Variable, /*sq_item*/ 0, /*sq_slice*/ 0, /*sq_ass_item*/ 0, /*sq_ass_slice*/ @@ -60836,17 +60836,17 @@ static PySequenceMethods __pyx_tp_as_sequence_Variable = { }; static PyMappingMethods __pyx_tp_as_mapping_Variable = { - __pyx_pw_7netCDF4_8Variable_51__len__, /*mp_length*/ - __pyx_pw_7netCDF4_8Variable_43__getitem__, /*mp_subscript*/ - __pyx_mp_ass_subscript_7netCDF4_Variable, /*mp_ass_subscript*/ + __pyx_pw_7netCDF4_8_netCDF4_8Variable_51__len__, /*mp_length*/ + __pyx_pw_7netCDF4_8_netCDF4_8Variable_43__getitem__, /*mp_subscript*/ + __pyx_mp_ass_subscript_7netCDF4_8_netCDF4_Variable, /*mp_ass_subscript*/ }; -static PyTypeObject __pyx_type_7netCDF4_Variable = { +static PyTypeObject __pyx_type_7netCDF4_8_netCDF4_Variable = { PyVarObject_HEAD_INIT(0, 0) - "netCDF4.Variable", /*tp_name*/ - sizeof(struct __pyx_obj_7netCDF4_Variable), /*tp_basicsize*/ + "netCDF4._netCDF4.Variable", /*tp_name*/ + sizeof(struct __pyx_obj_7netCDF4_8_netCDF4_Variable), /*tp_basicsize*/ 0, /*tp_itemsize*/ - __pyx_tp_dealloc_7netCDF4_Variable, /*tp_dealloc*/ + __pyx_tp_dealloc_7netCDF4_8_netCDF4_Variable, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ @@ -60855,35 +60855,35 @@ static PyTypeObject __pyx_type_7netCDF4_Variable = { #else 0, /*reserved*/ #endif - __pyx_pw_7netCDF4_8Variable_5__repr__, /*tp_repr*/ + __pyx_pw_7netCDF4_8_netCDF4_8Variable_5__repr__, /*tp_repr*/ 0, /*tp_as_number*/ &__pyx_tp_as_sequence_Variable, /*tp_as_sequence*/ &__pyx_tp_as_mapping_Variable, /*tp_as_mapping*/ 0, /*tp_hash*/ 0, /*tp_call*/ 0, /*tp_str*/ - __pyx_tp_getattro_7netCDF4_Variable, /*tp_getattro*/ - __pyx_tp_setattro_7netCDF4_Variable, /*tp_setattro*/ + __pyx_tp_getattro_7netCDF4_8_netCDF4_Variable, /*tp_getattro*/ + __pyx_tp_setattro_7netCDF4_8_netCDF4_Variable, /*tp_setattro*/ 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ "\nVariable(self, group, name, datatype, dimensions=(), zlib=False, complevel=4, shuffle=True, fletcher32=False, contiguous=False, chunksizes=None, endian='native', least_significant_digit=None,fill_value=None)\n\nA netCDF L{Variable} is used to read and write netCDF data. They are\nanalagous to numpy array objects.\n\nL{Variable} instances should be created using the\nL{createVariable} method of a L{Dataset} or\nL{Group} instance, not using this class directly.\n\nB{Parameters:}\n\nB{C{group}} - L{Group} or L{Dataset} instance to associate with variable.\n\nB{C{name}} - Name of the variable.\n\nB{C{datatype}} - L{Variable} data type. Can be specified by providing a\nnumpy dtype object, or a string that describes a numpy dtype object.\nSupported values, corresponding to C{str} attribute of numpy dtype\nobjects, include C{'f4'} (32-bit floating point), C{'f8'} (64-bit floating\npoint), C{'i4'} (32-bit signed integer), C{'i2'} (16-bit signed integer),\nC{'i8'} (64-bit singed integer), C{'i4'} (8-bit singed integer), C{'i1'}\n(8-bit signed integer), C{'u1'} (8-bit unsigned integer), C{'u2'} (16-bit\nunsigned integer), C{'u4'} (32-bit unsigned integer), C{'u8'} (64-bit\nunsigned integer), or C{'S1'} (single-character string). From\ncompatibility with Scientific.IO.NetCDF, the old Numeric single character\ntypecodes can also be used (C{'f'} instead of C{'f4'}, C{'d'} instead of\nC{'f8'}, C{'h'} or C{'s'} instead of C{'i2'}, C{'b'} or C{'B'} instead of\nC{'i1'}, C{'c'} instead of C{'S1'}, and C{'i'} or C{'l'} instead of\nC{'i4'}). C{datatype} can also be a L{CompoundType} instance\n(for a structured, or compound array), a L{VLType} instance\n(for a variable-length array), or the python C{str} builtin\n(for a variable-length string array). Numpy string and unicode datatypes with\nlength greater than one are aliases for C{str}.\n\nB{Keywords:}\n\nB{C{dimensions}} - a tuple containing the variable's dimension names\n(defined previously with C{createDimension}). Default is an empty tuple\nwhich means the variable is a scalar (and therefore has no dimensions).\n\nB{C{zlib}} - if C{True}, data assigned to the L{Variable}\ninstance is compressed on disk. Default C{False}.\n\nB{C{complevel}} - the level of zlib compression to use (1 is the fastest,\nbut poorest compression, 9 is the slowest but best compression). Default 4.\nIgnored if C{zlib=False}.\n\nB{C{shuffle}} - if C{True}, the HDF5 shuffle filter is applied\nto improve compression. Default C{True}. Ignored if C{zlib=False}.\n\nB{C{fletcher32}} - if C{True} (default C{False}), the Fletcher32 checksum\nalgorithm is used for error detection.\n\nB{C{contiguous}} - if C{True} (default C{False}), the variable data is\nstored contiguously on disk. Default C{False}. Setting to C{True} for\na variable with an unlimited dimension will trigger an error.\n\nB{C{chunksizes}} - Can be used to specify the HDF5 chunksizes for each\ndimension of the variable. A detailed discussion of HDF chunking and I/O\nperformance is available U{here\n}.\nBasically, you want the chunk size for each dimension to match as\nclosely as possible the size of the data block that users will read\nfrom the file. C{chunksizes} cannot be set if C{contiguous=True}.\n\nB{C{endian}} - Can be used to control whether the\ndata is stored in little or big endian format on disk. Possible\nvalues are C{little, big} or C{native} (default). The library\nwill automatically handle endian conversions when the data is read,\nbut if the data is always going to be read on a computer with the\nopposite format as the one used to create the file, there may be\nsome performance advantage to be gained by setting the endian-ness.\nFor netCDF 3 files (that don't use HDF5), only C{endian='native'} is allowed.\n\nThe C{zlib, complevel, shuffle, fletcher32, contiguous} and {chunksizes}\nkeywords are silently ignored for netCDF 3 files that do not use HDF5.\n\nB{C{least_significant_digit}} - If specified, variable data will be\ntruncated (quantized). In conjunction with C{zlib=True} this produces\n'lossy', but significantly more efficient compression. For example, if\nC{least_significant_digit=1}, data will be quantized using\naround(scale*data)/scale, where scale = 2**bits, and bits is determined\nso that a precision of 0.1 is retained (in this case bits=4). Default is\nC{None}, or no quantization.\n\nB{C{fill_value}} - If specified, the default netCDF C{_FillValue} (the\nvalue that the variable gets filled with before any data is written to it)\nis replaced with this value. If fill_value is set to C{False}, then\nthe variable is not pre-filled. The default netCDF fill values can be found\nin netCDF4.default_fillvals.\n\nB{Returns:}\n\na L{Variable} instance. All further operations on the netCDF Variable are\naccomplised via L{Variable} instance methods.\n\nA list of attribute names corresponding to netCDF attributes defined for\nthe variable can be obtained with the C{ncattrs()} method. These\nattributes can be created by assigning to an attribute of the\nL{Variable} instance. A dictionary containing all the netCDF attribute\nname/value pairs is provided by the C{__dict__} attribute of a\nL{Variable} instance.\n\nThe instance variables C{dimensions, dtype, ndim, shape}\nand C{least_significant_digit} are read-only (and\nshould not be modified by the user).\n\n@ivar dimensions: A tuple containing the names of the dimensions\nassociated with this variable.\n\n@ivar dtype: A numpy dtype object describing the variable's data type.\n\n@ivar ndim: The number of variable dimensions.\n\n@ivar shape: a tuple describing the current size of all the variable's\ndimensions.\n\n@ivar scale: if True, C{scale_factor} and C{add_offset} are automatically\napplied. Default is C{True}, can be reset using L{set_auto_scale} and\nL{set_auto_maskandscale} methods.\n\n@ivar mask: if True, data is automatically converted to/from masked arrays\nwhen missing values or fill values are present. Default is C{True}, can be\nreset using L{set_auto_mask} and L{set_auto_maskandscale} methods.\n\n@ivar least_significant_digit: Describes the power of ten of the smallest\ndecimal place in the data the contains a reliable value. Data is\ntruncated to this decimal place when it is assigned to the L{Variable}\ninstance. If C{None}, the data is not truncated. \n\n@ivar __orthogonal_indexing__: Always C{True}. Indicates to client code\nthat the object supports \"orthogonal indexing\", which means that slices\nthat are 1d arrays or lists slice along each dimension independently. This\nbehavior is similar to Fortran or Matlab, but different than numpy.", /*tp_doc*/ - __pyx_tp_traverse_7netCDF4_Variable, /*tp_traverse*/ - __pyx_tp_clear_7netCDF4_Variable, /*tp_clear*/ + __pyx_tp_traverse_7netCDF4_8_netCDF4_Variable, /*tp_traverse*/ + __pyx_tp_clear_7netCDF4_8_netCDF4_Variable, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ - __pyx_methods_7netCDF4_Variable, /*tp_methods*/ + __pyx_methods_7netCDF4_8_netCDF4_Variable, /*tp_methods*/ 0, /*tp_members*/ - __pyx_getsets_7netCDF4_Variable, /*tp_getset*/ + __pyx_getsets_7netCDF4_8_netCDF4_Variable, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ - __pyx_pw_7netCDF4_8Variable_1__init__, /*tp_init*/ + __pyx_pw_7netCDF4_8_netCDF4_8Variable_1__init__, /*tp_init*/ 0, /*tp_alloc*/ - __pyx_tp_new_7netCDF4_Variable, /*tp_new*/ + __pyx_tp_new_7netCDF4_8_netCDF4_Variable, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ @@ -60898,8 +60898,8 @@ static PyTypeObject __pyx_type_7netCDF4_Variable = { #endif }; -static PyObject *__pyx_tp_new_7netCDF4_CompoundType(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { - struct __pyx_obj_7netCDF4_CompoundType *p; +static PyObject *__pyx_tp_new_7netCDF4_8_netCDF4_CompoundType(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { + struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); @@ -60907,14 +60907,14 @@ static PyObject *__pyx_tp_new_7netCDF4_CompoundType(PyTypeObject *t, CYTHON_UNUS o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; - p = ((struct __pyx_obj_7netCDF4_CompoundType *)o); + p = ((struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *)o); p->dtype = Py_None; Py_INCREF(Py_None); p->name = Py_None; Py_INCREF(Py_None); return o; } -static void __pyx_tp_dealloc_7netCDF4_CompoundType(PyObject *o) { - struct __pyx_obj_7netCDF4_CompoundType *p = (struct __pyx_obj_7netCDF4_CompoundType *)o; +static void __pyx_tp_dealloc_7netCDF4_8_netCDF4_CompoundType(PyObject *o) { + struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *p = (struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *)o; #if PY_VERSION_HEX >= 0x030400a1 if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) { if (PyObject_CallFinalizerFromDealloc(o)) return; @@ -60926,9 +60926,9 @@ static void __pyx_tp_dealloc_7netCDF4_CompoundType(PyObject *o) { (*Py_TYPE(o)->tp_free)(o); } -static int __pyx_tp_traverse_7netCDF4_CompoundType(PyObject *o, visitproc v, void *a) { +static int __pyx_tp_traverse_7netCDF4_8_netCDF4_CompoundType(PyObject *o, visitproc v, void *a) { int e; - struct __pyx_obj_7netCDF4_CompoundType *p = (struct __pyx_obj_7netCDF4_CompoundType *)o; + struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *p = (struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *)o; if (p->dtype) { e = (*v)(p->dtype, a); if (e) return e; } @@ -60938,9 +60938,9 @@ static int __pyx_tp_traverse_7netCDF4_CompoundType(PyObject *o, visitproc v, voi return 0; } -static int __pyx_tp_clear_7netCDF4_CompoundType(PyObject *o) { +static int __pyx_tp_clear_7netCDF4_8_netCDF4_CompoundType(PyObject *o) { PyObject* tmp; - struct __pyx_obj_7netCDF4_CompoundType *p = (struct __pyx_obj_7netCDF4_CompoundType *)o; + struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *p = (struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType *)o; tmp = ((PyObject*)p->dtype); p->dtype = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); @@ -60950,13 +60950,13 @@ static int __pyx_tp_clear_7netCDF4_CompoundType(PyObject *o) { return 0; } -static PyObject *__pyx_getprop_7netCDF4_12CompoundType__nc_type(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_12CompoundType_8_nc_type_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_12CompoundType__nc_type(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_12CompoundType_8_nc_type_1__get__(o); } -static int __pyx_setprop_7netCDF4_12CompoundType__nc_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_12CompoundType__nc_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_12CompoundType_8_nc_type_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_12CompoundType_8_nc_type_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); @@ -60964,50 +60964,50 @@ static int __pyx_setprop_7netCDF4_12CompoundType__nc_type(PyObject *o, PyObject } } -static PyObject *__pyx_getprop_7netCDF4_12CompoundType_dtype(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_12CompoundType_5dtype_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_12CompoundType_dtype(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_12CompoundType_5dtype_1__get__(o); } -static int __pyx_setprop_7netCDF4_12CompoundType_dtype(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_12CompoundType_dtype(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_12CompoundType_5dtype_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_12CompoundType_5dtype_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_12CompoundType_5dtype_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_12CompoundType_5dtype_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_12CompoundType_name(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_12CompoundType_4name_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_12CompoundType_name(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_12CompoundType_4name_1__get__(o); } -static int __pyx_setprop_7netCDF4_12CompoundType_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_12CompoundType_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_12CompoundType_4name_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_12CompoundType_4name_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_12CompoundType_4name_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_12CompoundType_4name_5__del__(o); } } -static PyMethodDef __pyx_methods_7netCDF4_CompoundType[] = { - {"__unicode__", (PyCFunction)__pyx_pw_7netCDF4_12CompoundType_5__unicode__, METH_NOARGS, 0}, +static PyMethodDef __pyx_methods_7netCDF4_8_netCDF4_CompoundType[] = { + {"__unicode__", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_12CompoundType_5__unicode__, METH_NOARGS, 0}, {0, 0, 0, 0} }; -static struct PyGetSetDef __pyx_getsets_7netCDF4_CompoundType[] = { - {(char *)"_nc_type", __pyx_getprop_7netCDF4_12CompoundType__nc_type, __pyx_setprop_7netCDF4_12CompoundType__nc_type, 0, 0}, - {(char *)"dtype", __pyx_getprop_7netCDF4_12CompoundType_dtype, __pyx_setprop_7netCDF4_12CompoundType_dtype, 0, 0}, - {(char *)"name", __pyx_getprop_7netCDF4_12CompoundType_name, __pyx_setprop_7netCDF4_12CompoundType_name, 0, 0}, +static struct PyGetSetDef __pyx_getsets_7netCDF4_8_netCDF4_CompoundType[] = { + {(char *)"_nc_type", __pyx_getprop_7netCDF4_8_netCDF4_12CompoundType__nc_type, __pyx_setprop_7netCDF4_8_netCDF4_12CompoundType__nc_type, 0, 0}, + {(char *)"dtype", __pyx_getprop_7netCDF4_8_netCDF4_12CompoundType_dtype, __pyx_setprop_7netCDF4_8_netCDF4_12CompoundType_dtype, 0, 0}, + {(char *)"name", __pyx_getprop_7netCDF4_8_netCDF4_12CompoundType_name, __pyx_setprop_7netCDF4_8_netCDF4_12CompoundType_name, 0, 0}, {0, 0, 0, 0, 0} }; -static PyTypeObject __pyx_type_7netCDF4_CompoundType = { +static PyTypeObject __pyx_type_7netCDF4_8_netCDF4_CompoundType = { PyVarObject_HEAD_INIT(0, 0) - "netCDF4.CompoundType", /*tp_name*/ - sizeof(struct __pyx_obj_7netCDF4_CompoundType), /*tp_basicsize*/ + "netCDF4._netCDF4.CompoundType", /*tp_name*/ + sizeof(struct __pyx_obj_7netCDF4_8_netCDF4_CompoundType), /*tp_basicsize*/ 0, /*tp_itemsize*/ - __pyx_tp_dealloc_7netCDF4_CompoundType, /*tp_dealloc*/ + __pyx_tp_dealloc_7netCDF4_8_netCDF4_CompoundType, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ @@ -61016,7 +61016,7 @@ static PyTypeObject __pyx_type_7netCDF4_CompoundType = { #else 0, /*reserved*/ #endif - __pyx_pw_7netCDF4_12CompoundType_3__repr__, /*tp_repr*/ + __pyx_pw_7netCDF4_8_netCDF4_12CompoundType_3__repr__, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ @@ -61028,23 +61028,23 @@ static PyTypeObject __pyx_type_7netCDF4_CompoundType = { 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ "\nA L{CompoundType} instance is used to describe a compound data type.\n\nConstructor: C{CompoundType(group, datatype, datatype_name)}\n\n@attention: When creating nested compound data types,\nthe inner compound data types must already be associated with CompoundType\ninstances (so create CompoundType instances for the innermost structures\nfirst).\n\nL{CompoundType} instances should be created using the\nL{createCompoundType}\nmethod of a Dataset or L{Group} instance, not using this class directly.\n\nB{Parameters:}\n\nB{C{group}} - L{Group} instance to associate with the compound datatype.\n\nB{C{datatype}} - A numpy dtype object describing a structured (a.k.a record)\narray. Can be composed of homogeneous numeric or character data types, or\nother structured array data types.\n\nB{C{datatype_name}} - a Python string containing a description of the\ncompound data type.\n\nB{Returns:}\n\na L{CompoundType} instance, which can be passed to the C{createVariable}\nmethod of a L{Dataset} or L{Group} instance.\n\nThe instance variables C{dtype} and C{name} should not be modified by\nthe user.\n\n@ivar dtype: A numpy dtype object describing the compound data type.\n\n@ivar name: A python string describing the compound type.\n", /*tp_doc*/ - __pyx_tp_traverse_7netCDF4_CompoundType, /*tp_traverse*/ - __pyx_tp_clear_7netCDF4_CompoundType, /*tp_clear*/ + __pyx_tp_traverse_7netCDF4_8_netCDF4_CompoundType, /*tp_traverse*/ + __pyx_tp_clear_7netCDF4_8_netCDF4_CompoundType, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ - __pyx_methods_7netCDF4_CompoundType, /*tp_methods*/ + __pyx_methods_7netCDF4_8_netCDF4_CompoundType, /*tp_methods*/ 0, /*tp_members*/ - __pyx_getsets_7netCDF4_CompoundType, /*tp_getset*/ + __pyx_getsets_7netCDF4_8_netCDF4_CompoundType, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ - __pyx_pw_7netCDF4_12CompoundType_1__init__, /*tp_init*/ + __pyx_pw_7netCDF4_8_netCDF4_12CompoundType_1__init__, /*tp_init*/ 0, /*tp_alloc*/ - __pyx_tp_new_7netCDF4_CompoundType, /*tp_new*/ + __pyx_tp_new_7netCDF4_8_netCDF4_CompoundType, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ @@ -61059,8 +61059,8 @@ static PyTypeObject __pyx_type_7netCDF4_CompoundType = { #endif }; -static PyObject *__pyx_tp_new_7netCDF4_VLType(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { - struct __pyx_obj_7netCDF4_VLType *p; +static PyObject *__pyx_tp_new_7netCDF4_8_netCDF4_VLType(PyTypeObject *t, CYTHON_UNUSED PyObject *a, CYTHON_UNUSED PyObject *k) { + struct __pyx_obj_7netCDF4_8_netCDF4_VLType *p; PyObject *o; if (likely((t->tp_flags & Py_TPFLAGS_IS_ABSTRACT) == 0)) { o = (*t->tp_alloc)(t, 0); @@ -61068,14 +61068,14 @@ static PyObject *__pyx_tp_new_7netCDF4_VLType(PyTypeObject *t, CYTHON_UNUSED PyO o = (PyObject *) PyBaseObject_Type.tp_new(t, __pyx_empty_tuple, 0); } if (unlikely(!o)) return 0; - p = ((struct __pyx_obj_7netCDF4_VLType *)o); + p = ((struct __pyx_obj_7netCDF4_8_netCDF4_VLType *)o); p->dtype = Py_None; Py_INCREF(Py_None); p->name = Py_None; Py_INCREF(Py_None); return o; } -static void __pyx_tp_dealloc_7netCDF4_VLType(PyObject *o) { - struct __pyx_obj_7netCDF4_VLType *p = (struct __pyx_obj_7netCDF4_VLType *)o; +static void __pyx_tp_dealloc_7netCDF4_8_netCDF4_VLType(PyObject *o) { + struct __pyx_obj_7netCDF4_8_netCDF4_VLType *p = (struct __pyx_obj_7netCDF4_8_netCDF4_VLType *)o; #if PY_VERSION_HEX >= 0x030400a1 if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) { if (PyObject_CallFinalizerFromDealloc(o)) return; @@ -61087,9 +61087,9 @@ static void __pyx_tp_dealloc_7netCDF4_VLType(PyObject *o) { (*Py_TYPE(o)->tp_free)(o); } -static int __pyx_tp_traverse_7netCDF4_VLType(PyObject *o, visitproc v, void *a) { +static int __pyx_tp_traverse_7netCDF4_8_netCDF4_VLType(PyObject *o, visitproc v, void *a) { int e; - struct __pyx_obj_7netCDF4_VLType *p = (struct __pyx_obj_7netCDF4_VLType *)o; + struct __pyx_obj_7netCDF4_8_netCDF4_VLType *p = (struct __pyx_obj_7netCDF4_8_netCDF4_VLType *)o; if (p->dtype) { e = (*v)(p->dtype, a); if (e) return e; } @@ -61099,9 +61099,9 @@ static int __pyx_tp_traverse_7netCDF4_VLType(PyObject *o, visitproc v, void *a) return 0; } -static int __pyx_tp_clear_7netCDF4_VLType(PyObject *o) { +static int __pyx_tp_clear_7netCDF4_8_netCDF4_VLType(PyObject *o) { PyObject* tmp; - struct __pyx_obj_7netCDF4_VLType *p = (struct __pyx_obj_7netCDF4_VLType *)o; + struct __pyx_obj_7netCDF4_8_netCDF4_VLType *p = (struct __pyx_obj_7netCDF4_8_netCDF4_VLType *)o; tmp = ((PyObject*)p->dtype); p->dtype = Py_None; Py_INCREF(Py_None); Py_XDECREF(tmp); @@ -61111,13 +61111,13 @@ static int __pyx_tp_clear_7netCDF4_VLType(PyObject *o) { return 0; } -static PyObject *__pyx_getprop_7netCDF4_6VLType__nc_type(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_6VLType_8_nc_type_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_6VLType__nc_type(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_6VLType_8_nc_type_1__get__(o); } -static int __pyx_setprop_7netCDF4_6VLType__nc_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_6VLType__nc_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_6VLType_8_nc_type_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_6VLType_8_nc_type_3__set__(o, v); } else { PyErr_SetString(PyExc_NotImplementedError, "__del__"); @@ -61125,50 +61125,50 @@ static int __pyx_setprop_7netCDF4_6VLType__nc_type(PyObject *o, PyObject *v, CYT } } -static PyObject *__pyx_getprop_7netCDF4_6VLType_dtype(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_6VLType_5dtype_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_6VLType_dtype(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_6VLType_5dtype_1__get__(o); } -static int __pyx_setprop_7netCDF4_6VLType_dtype(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_6VLType_dtype(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_6VLType_5dtype_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_6VLType_5dtype_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_6VLType_5dtype_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_6VLType_5dtype_5__del__(o); } } -static PyObject *__pyx_getprop_7netCDF4_6VLType_name(PyObject *o, CYTHON_UNUSED void *x) { - return __pyx_pw_7netCDF4_6VLType_4name_1__get__(o); +static PyObject *__pyx_getprop_7netCDF4_8_netCDF4_6VLType_name(PyObject *o, CYTHON_UNUSED void *x) { + return __pyx_pw_7netCDF4_8_netCDF4_6VLType_4name_1__get__(o); } -static int __pyx_setprop_7netCDF4_6VLType_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { +static int __pyx_setprop_7netCDF4_8_netCDF4_6VLType_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) { if (v) { - return __pyx_pw_7netCDF4_6VLType_4name_3__set__(o, v); + return __pyx_pw_7netCDF4_8_netCDF4_6VLType_4name_3__set__(o, v); } else { - return __pyx_pw_7netCDF4_6VLType_4name_5__del__(o); + return __pyx_pw_7netCDF4_8_netCDF4_6VLType_4name_5__del__(o); } } -static PyMethodDef __pyx_methods_7netCDF4_VLType[] = { - {"__unicode__", (PyCFunction)__pyx_pw_7netCDF4_6VLType_5__unicode__, METH_NOARGS, 0}, +static PyMethodDef __pyx_methods_7netCDF4_8_netCDF4_VLType[] = { + {"__unicode__", (PyCFunction)__pyx_pw_7netCDF4_8_netCDF4_6VLType_5__unicode__, METH_NOARGS, 0}, {0, 0, 0, 0} }; -static struct PyGetSetDef __pyx_getsets_7netCDF4_VLType[] = { - {(char *)"_nc_type", __pyx_getprop_7netCDF4_6VLType__nc_type, __pyx_setprop_7netCDF4_6VLType__nc_type, 0, 0}, - {(char *)"dtype", __pyx_getprop_7netCDF4_6VLType_dtype, __pyx_setprop_7netCDF4_6VLType_dtype, 0, 0}, - {(char *)"name", __pyx_getprop_7netCDF4_6VLType_name, __pyx_setprop_7netCDF4_6VLType_name, 0, 0}, +static struct PyGetSetDef __pyx_getsets_7netCDF4_8_netCDF4_VLType[] = { + {(char *)"_nc_type", __pyx_getprop_7netCDF4_8_netCDF4_6VLType__nc_type, __pyx_setprop_7netCDF4_8_netCDF4_6VLType__nc_type, 0, 0}, + {(char *)"dtype", __pyx_getprop_7netCDF4_8_netCDF4_6VLType_dtype, __pyx_setprop_7netCDF4_8_netCDF4_6VLType_dtype, 0, 0}, + {(char *)"name", __pyx_getprop_7netCDF4_8_netCDF4_6VLType_name, __pyx_setprop_7netCDF4_8_netCDF4_6VLType_name, 0, 0}, {0, 0, 0, 0, 0} }; -static PyTypeObject __pyx_type_7netCDF4_VLType = { +static PyTypeObject __pyx_type_7netCDF4_8_netCDF4_VLType = { PyVarObject_HEAD_INIT(0, 0) - "netCDF4.VLType", /*tp_name*/ - sizeof(struct __pyx_obj_7netCDF4_VLType), /*tp_basicsize*/ + "netCDF4._netCDF4.VLType", /*tp_name*/ + sizeof(struct __pyx_obj_7netCDF4_8_netCDF4_VLType), /*tp_basicsize*/ 0, /*tp_itemsize*/ - __pyx_tp_dealloc_7netCDF4_VLType, /*tp_dealloc*/ + __pyx_tp_dealloc_7netCDF4_8_netCDF4_VLType, /*tp_dealloc*/ 0, /*tp_print*/ 0, /*tp_getattr*/ 0, /*tp_setattr*/ @@ -61177,7 +61177,7 @@ static PyTypeObject __pyx_type_7netCDF4_VLType = { #else 0, /*reserved*/ #endif - __pyx_pw_7netCDF4_6VLType_3__repr__, /*tp_repr*/ + __pyx_pw_7netCDF4_8_netCDF4_6VLType_3__repr__, /*tp_repr*/ 0, /*tp_as_number*/ 0, /*tp_as_sequence*/ 0, /*tp_as_mapping*/ @@ -61189,23 +61189,23 @@ static PyTypeObject __pyx_type_7netCDF4_VLType = { 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/ "\nA L{VLType} instance is used to describe a variable length (VLEN) data type.\n\nConstructor: C{VLType(group, datatype, datatype_name)}\n\nL{VLType} instances should be created using the\nL{createVLType}\nmethod of a Dataset or L{Group} instance, not using this class directly.\n\nB{Parameters:}\n\nB{C{group}} - L{Group} instance to associate with the VLEN datatype.\n\nB{C{datatype}} - An numpy dtype object describing a the component type for the\nvariable length array.\n\nB{C{datatype_name}} - a Python string containing a description of the\nVLEN data type.\n\nB{Returns:}\n\na L{VLType} instance, which can be passed to the C{createVariable}\nmethod of a L{Dataset} or L{Group} instance.\n\nThe instance variables C{dtype} and C{name} should not be modified by\nthe user.\n\n@ivar dtype: An object describing the VLEN type.\n\n@ivar name: A python string describing the VLEN type.\n", /*tp_doc*/ - __pyx_tp_traverse_7netCDF4_VLType, /*tp_traverse*/ - __pyx_tp_clear_7netCDF4_VLType, /*tp_clear*/ + __pyx_tp_traverse_7netCDF4_8_netCDF4_VLType, /*tp_traverse*/ + __pyx_tp_clear_7netCDF4_8_netCDF4_VLType, /*tp_clear*/ 0, /*tp_richcompare*/ 0, /*tp_weaklistoffset*/ 0, /*tp_iter*/ 0, /*tp_iternext*/ - __pyx_methods_7netCDF4_VLType, /*tp_methods*/ + __pyx_methods_7netCDF4_8_netCDF4_VLType, /*tp_methods*/ 0, /*tp_members*/ - __pyx_getsets_7netCDF4_VLType, /*tp_getset*/ + __pyx_getsets_7netCDF4_8_netCDF4_VLType, /*tp_getset*/ 0, /*tp_base*/ 0, /*tp_dict*/ 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ - __pyx_pw_7netCDF4_6VLType_1__init__, /*tp_init*/ + __pyx_pw_7netCDF4_8_netCDF4_6VLType_1__init__, /*tp_init*/ 0, /*tp_alloc*/ - __pyx_tp_new_7netCDF4_VLType, /*tp_new*/ + __pyx_tp_new_7netCDF4_8_netCDF4_VLType, /*tp_new*/ 0, /*tp_free*/ 0, /*tp_is_gc*/ 0, /*tp_bases*/ @@ -61231,7 +61231,7 @@ static struct PyModuleDef __pyx_moduledef = { #else PyModuleDef_HEAD_INIT, #endif - "netCDF4", + "_netCDF4", __pyx_k_Introduction_Python_interface_t, /* m_doc */ -1, /* m_size */ __pyx_methods /* m_methods */, @@ -61299,8 +61299,6 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_UNDEFINED, __pyx_k_UNDEFINED, sizeof(__pyx_k_UNDEFINED), 0, 0, 1, 1}, {&__pyx_n_s_UnicodeDecodeError, __pyx_k_UnicodeDecodeError, sizeof(__pyx_k_UnicodeDecodeError), 0, 0, 1, 1}, {&__pyx_kp_s_Unsupported_compound_type_elemen, __pyx_k_Unsupported_compound_type_elemen, sizeof(__pyx_k_Unsupported_compound_type_elemen), 0, 0, 1, 0}, - {&__pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_k_Users_jsw_python_netcdf4_python, sizeof(__pyx_k_Users_jsw_python_netcdf4_python), 0, 0, 1, 0}, - {&__pyx_kp_s_Users_jsw_python_netcdf4_python_2, __pyx_k_Users_jsw_python_netcdf4_python_2, sizeof(__pyx_k_Users_jsw_python_netcdf4_python_2), 0, 0, 1, 0}, {&__pyx_n_s_V, __pyx_k_V, sizeof(__pyx_k_V), 0, 0, 1, 1}, {&__pyx_n_s_ValueError, __pyx_k_ValueError, sizeof(__pyx_k_ValueError), 0, 0, 1, 1}, {&__pyx_n_s_Variable, __pyx_k_Variable, sizeof(__pyx_k_Variable), 0, 0, 1, 1}, @@ -61511,6 +61509,7 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_has_nc_inq_path, __pyx_k_has_nc_inq_path, sizeof(__pyx_k_has_nc_inq_path), 0, 0, 1, 1}, {&__pyx_n_s_has_rename_grp, __pyx_k_has_rename_grp, sizeof(__pyx_k_has_rename_grp), 0, 0, 1, 1}, {&__pyx_n_s_hdf5libversion, __pyx_k_hdf5libversion, sizeof(__pyx_k_hdf5libversion), 0, 0, 1, 1}, + {&__pyx_kp_s_home_mb312_dev_trees_netcdf4_py, __pyx_k_home_mb312_dev_trees_netcdf4_py, sizeof(__pyx_k_home_mb312_dev_trees_netcdf4_py), 0, 0, 1, 0}, {&__pyx_n_s_hour, __pyx_k_hour, sizeof(__pyx_k_hour), 0, 0, 1, 1}, {&__pyx_n_s_hr_units, __pyx_k_hr_units, sizeof(__pyx_k_hr_units), 0, 0, 1, 1}, {&__pyx_n_s_http, __pyx_k_http, sizeof(__pyx_k_http), 0, 0, 1, 1}, @@ -61526,6 +61525,7 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_s_illegal_primitive_data_type_must, __pyx_k_illegal_primitive_data_type_must, sizeof(__pyx_k_illegal_primitive_data_type_must), 0, 0, 1, 0}, {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1}, {&__pyx_n_s_in1d, __pyx_k_in1d, sizeof(__pyx_k_in1d), 0, 0, 1, 1}, + {&__pyx_kp_s_include_utils_pyx, __pyx_k_include_utils_pyx, sizeof(__pyx_k_include_utils_pyx), 0, 0, 1, 0}, {&__pyx_n_s_ind, __pyx_k_ind, sizeof(__pyx_k_ind), 0, 0, 1, 1}, {&__pyx_n_s_init, __pyx_k_init, sizeof(__pyx_k_init), 0, 0, 1, 1}, {&__pyx_kp_s_invalid_scale_factor_or_add_offs, __pyx_k_invalid_scale_factor_or_add_offs, sizeof(__pyx_k_invalid_scale_factor_or_add_offs), 0, 0, 1, 0}, @@ -61603,8 +61603,7 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_ndim, __pyx_k_ndim, sizeof(__pyx_k_ndim), 0, 0, 1, 1}, {&__pyx_kp_s_negative_strides_not_allowed_whe, __pyx_k_negative_strides_not_allowed_whe, sizeof(__pyx_k_negative_strides_not_allowed_whe), 0, 0, 1, 0}, {&__pyx_n_s_nelems, __pyx_k_nelems, sizeof(__pyx_k_nelems), 0, 0, 1, 1}, - {&__pyx_n_s_netCDF4, __pyx_k_netCDF4, sizeof(__pyx_k_netCDF4), 0, 0, 1, 1}, - {&__pyx_n_s_netCDF4_utils, __pyx_k_netCDF4_utils, sizeof(__pyx_k_netCDF4_utils), 0, 0, 1, 1}, + {&__pyx_n_s_netCDF4__netCDF4, __pyx_k_netCDF4__netCDF4, sizeof(__pyx_k_netCDF4__netCDF4), 0, 0, 1, 1}, {&__pyx_n_s_netcdf4libversion, __pyx_k_netcdf4libversion, sizeof(__pyx_k_netcdf4libversion), 0, 0, 1, 1}, {&__pyx_n_s_netcdftime, __pyx_k_netcdftime, sizeof(__pyx_k_netcdftime), 0, 0, 1, 1}, {&__pyx_n_s_newSlice, __pyx_k_newSlice, sizeof(__pyx_k_newSlice), 0, 0, 1, 1}, @@ -61767,6 +61766,7 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_kp_s_unsupported_time_units, __pyx_k_unsupported_time_units, sizeof(__pyx_k_unsupported_time_units), 0, 0, 1, 0}, {&__pyx_n_s_utc_offset, __pyx_k_utc_offset, sizeof(__pyx_k_utc_offset), 0, 0, 1, 1}, {&__pyx_kp_s_utf_8, __pyx_k_utf_8, sizeof(__pyx_k_utf_8), 0, 0, 1, 0}, + {&__pyx_n_s_utils, __pyx_k_utils, sizeof(__pyx_k_utils), 0, 0, 1, 1}, {&__pyx_n_s_utime, __pyx_k_utime, sizeof(__pyx_k_utime), 0, 0, 1, 1}, {&__pyx_n_s_v, __pyx_k_v, sizeof(__pyx_k_v), 0, 0, 1, 1}, {&__pyx_n_s_vInst, __pyx_k_vInst, sizeof(__pyx_k_vInst), 0, 0, 1, 1}, @@ -61834,7 +61834,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_RefNannyDeclarations __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0); - /* "utils.pyx":16 + /* "include/utils.pyx":16 * units = timestr_split[0].lower() * if timestr_split[1].lower() != 'since': * raise ValueError("no 'since' in unit_string") # <<<<<<<<<<<<<< @@ -61845,7 +61845,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple_); __Pyx_GIVEREF(__pyx_tuple_); - /* "utils.pyx":18 + /* "include/utils.pyx":18 * raise ValueError("no 'since' in unit_string") * # parse the date string. * n = timestr.find('since')+6 # <<<<<<<<<<<<<< @@ -61856,7 +61856,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__2); __Pyx_GIVEREF(__pyx_tuple__2); - /* "utils.pyx":47 + /* "include/utils.pyx":47 * (default) or 'U1' (if dtype='U')""" * if dtype not in ["S","U"]: * raise ValueError("dtype must string or unicode ('S' or 'U')") # <<<<<<<<<<<<<< @@ -61867,7 +61867,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__3); __Pyx_GIVEREF(__pyx_tuple__3); - /* "utils.pyx":66 + /* "include/utils.pyx":66 * dtype = a.dtype.kind * if dtype not in ["S","U"]: * raise ValueError("type must string or unicode ('S' or 'U')") # <<<<<<<<<<<<<< @@ -61878,7 +61878,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__4); __Pyx_GIVEREF(__pyx_tuple__4); - /* "utils.pyx":85 + /* "include/utils.pyx":85 * dtype = b.dtype.kind * if dtype not in ["S","U"]: * raise ValueError("type must string or unicode ('S' or 'U')") # <<<<<<<<<<<<<< @@ -61889,7 +61889,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__5); __Pyx_GIVEREF(__pyx_tuple__5); - /* "utils.pyx":89 + /* "include/utils.pyx":89 * slen = int(b.shape[-1]) * a = numpy.array([bs[n1:n1+slen] for n1 in range(0,len(bs),slen)],dtype+repr(slen)) * a.shape = b.shape[:-1] # <<<<<<<<<<<<<< @@ -61900,7 +61900,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__6); __Pyx_GIVEREF(__pyx_slice__6); - /* "utils.pyx":162 + /* "include/utils.pyx":162 * times.append(totaltime/1.e6/3600./24.) * else: * raise ValueError('unsupported time units') # <<<<<<<<<<<<<< @@ -61911,7 +61911,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__7); __Pyx_GIVEREF(__pyx_tuple__7); - /* "utils.pyx":248 + /* "include/utils.pyx":248 * tsecs = time*86400. * else: * raise ValueError('unsupported time units') # <<<<<<<<<<<<<< @@ -61922,7 +61922,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__8); __Pyx_GIVEREF(__pyx_tuple__8); - /* "utils.pyx":387 + /* "include/utils.pyx":387 * # can be used like a CDF instance. * if isinstance(files, str): * if files.startswith('http'): # <<<<<<<<<<<<<< @@ -61933,7 +61933,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__9); __Pyx_GIVEREF(__pyx_tuple__9); - /* "utils.pyx":449 + /* "include/utils.pyx":449 * # Make sure each file defines the same aggregation variables as the master * # and that the variables are defined in the same way (name, shape and type) * for f in files[1:]: # <<<<<<<<<<<<<< @@ -61944,7 +61944,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__10); __Pyx_GIVEREF(__pyx_slice__10); - /* "utils.pyx":460 + /* "include/utils.pyx":460 * #if not vInst.dimensions[0] != aggDimName: * * masterDims, masterShape, masterType = masterRecVar[v][:3] # <<<<<<<<<<<<<< @@ -61955,7 +61955,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__11); __Pyx_GIVEREF(__pyx_slice__11); - /* "utils.pyx":477 + /* "include/utils.pyx":477 * "master %s (%s) and extension %s (%s)" % * (v, master, len(masterShape), f, len(extShape))) * if masterShape[1:] != extShape[1:]: # <<<<<<<<<<<<<< @@ -61969,7 +61969,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__13); __Pyx_GIVEREF(__pyx_slice__13); - /* "utils.pyx":520 + /* "include/utils.pyx":520 * for dset in self._cdf: * if dset.file_format == 'NETCDF4' or dset.data_model == 'NETCDF4': * raise ValueError('MFNetCDF4 only works with NETCDF3_CLASSIC, NETCDF3_64BIT and NETCDF4_CLASSIC formatted files, not NETCDF4') # <<<<<<<<<<<<<< @@ -61980,7 +61980,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__14); __Pyx_GIVEREF(__pyx_tuple__14); - /* "utils.pyx":628 + /* "include/utils.pyx":628 * def _shape(self): * recdimlen = len(self._dset.dimensions[self._recdimname]) * return (recdimlen,) + self._mastervar.shape[1:] # <<<<<<<<<<<<<< @@ -61991,7 +61991,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__17); __Pyx_GIVEREF(__pyx_slice__17); - /* "utils.pyx":649 + /* "include/utils.pyx":649 * # The convention used is that for those cases, * # put_ind for this dimension is set to -1 by _StartCountStride. * squeeze = data.ndim * [slice(None),] # <<<<<<<<<<<<<< @@ -62002,7 +62002,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__18); __Pyx_GIVEREF(__pyx_slice__18); - /* "utils.pyx":650 + /* "include/utils.pyx":650 * # put_ind for this dimension is set to -1 by _StartCountStride. * squeeze = data.ndim * [slice(None),] * for i,n in enumerate(put_ind.shape[:-1]): # <<<<<<<<<<<<<< @@ -62013,7 +62013,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__19); __Pyx_GIVEREF(__pyx_slice__19); - /* "utils.pyx":667 + /* "include/utils.pyx":667 * count = [abs(cnt) for cnt in count] * if (numpy.array(stride) < 0).any(): * raise IndexError('negative strides not allowed when slicing MFVariable Variable instance') # <<<<<<<<<<<<<< @@ -62024,7 +62024,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__20); __Pyx_GIVEREF(__pyx_tuple__20); - /* "utils.pyx":691 + /* "include/utils.pyx":691 * * # Rebuild the slicing expression for dimensions 1 and ssq. * newSlice = [slice(None, None, None)] # <<<<<<<<<<<<<< @@ -62035,7 +62035,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__21); __Pyx_GIVEREF(__pyx_slice__21); - /* "utils.pyx":792 + /* "include/utils.pyx":792 * for t in self._recVar: * if not hasattr(t,'calendar'): * raise ValueError('MFTime requires that the time variable in all files have a calendar attribute') # <<<<<<<<<<<<<< @@ -62046,7 +62046,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__22); __Pyx_GIVEREF(__pyx_tuple__22); - /* "utils.pyx":796 + /* "include/utils.pyx":796 * # Check that calendar is the same in all files. * if len(set([t.calendar for t in self._recVar])) > 1: * raise ValueError('MFTime requires that the same time calendar is used by all files.') # <<<<<<<<<<<<<< @@ -62057,7 +62057,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__23); __Pyx_GIVEREF(__pyx_tuple__23); - /* "utils.pyx":802 + /* "include/utils.pyx":802 * * # Reference date to compute the difference between different time units. * ref_date = datetime.datetime(1900,1,1) # <<<<<<<<<<<<<< @@ -62068,7 +62068,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__24); __Pyx_GIVEREF(__pyx_tuple__24); - /* "netCDF4.pyx":930 + /* "netCDF4/_netCDF4.pyx":930 * else: * pstring =\ * value_arr.tostring().decode(default_encoding,unicode_error).replace('\x00','') # <<<<<<<<<<<<<< @@ -62079,7 +62079,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__26); __Pyx_GIVEREF(__pyx_tuple__26); - /* "netCDF4.pyx":936 + /* "netCDF4/_netCDF4.pyx":936 * with nogil: * ierr = nc_get_att_string(_grpid, varid, attname, &stratt) * pstring = stratt.decode(default_encoding,unicode_error).replace('\x00','') # <<<<<<<<<<<<<< @@ -62090,7 +62090,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__27); __Pyx_GIVEREF(__pyx_tuple__27); - /* "netCDF4.pyx":939 + /* "netCDF4/_netCDF4.pyx":939 * return pstring * else: * raise KeyError('vlen string array attributes not supported') # <<<<<<<<<<<<<< @@ -62101,7 +62101,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__28); __Pyx_GIVEREF(__pyx_tuple__28); - /* "netCDF4.pyx":1033 + /* "netCDF4/_netCDF4.pyx":1033 * # if 64-bit datatype not supported, cast to 32 bit integers. * fmt = _get_format(grp._grpid) * is_netcdf3 = fmt.startswith('NETCDF3') or fmt == 'NETCDF4_CLASSIC' # <<<<<<<<<<<<<< @@ -62112,7 +62112,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__29); __Pyx_GIVEREF(__pyx_tuple__29); - /* "netCDF4.pyx":1034 + /* "netCDF4/_netCDF4.pyx":1034 * fmt = _get_format(grp._grpid) * is_netcdf3 = fmt.startswith('NETCDF3') or fmt == 'NETCDF4_CLASSIC' * if value_arr.dtype.str[1:] == 'i8' and ('i8' not in _supportedtypes or\ # <<<<<<<<<<<<<< @@ -62123,7 +62123,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__30); __Pyx_GIVEREF(__pyx_slice__30); - /* "netCDF4.pyx":1036 + /* "netCDF4/_netCDF4.pyx":1036 * if value_arr.dtype.str[1:] == 'i8' and ('i8' not in _supportedtypes or\ * is_netcdf3): * value_arr = value_arr.astype('i4') # <<<<<<<<<<<<<< @@ -62134,7 +62134,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__31); __Pyx_GIVEREF(__pyx_tuple__31); - /* "netCDF4.pyx":1062 + /* "netCDF4/_netCDF4.pyx":1062 * if value_arr.dtype.kind == 'V': # compound attribute. * xtype = _find_cmptype(grp,value_arr.dtype) * elif value_arr.dtype.str[1:] not in _supportedtypes: # <<<<<<<<<<<<<< @@ -62145,7 +62145,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__32); __Pyx_GIVEREF(__pyx_slice__32); - /* "netCDF4.pyx":1063 + /* "netCDF4/_netCDF4.pyx":1063 * xtype = _find_cmptype(grp,value_arr.dtype) * elif value_arr.dtype.str[1:] not in _supportedtypes: * raise TypeError, 'illegal data type for attribute, must be one of %s, got %s' % (_supportedtypes, value_arr.dtype.str[1:]) # <<<<<<<<<<<<<< @@ -62156,7 +62156,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__33); __Pyx_GIVEREF(__pyx_slice__33); - /* "netCDF4.pyx":1065 + /* "netCDF4/_netCDF4.pyx":1065 * raise TypeError, 'illegal data type for attribute, must be one of %s, got %s' % (_supportedtypes, value_arr.dtype.str[1:]) * else: * xtype = _nptonctype[value_arr.dtype.str[1:]] # <<<<<<<<<<<<<< @@ -62167,7 +62167,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__34); __Pyx_GIVEREF(__pyx_slice__34); - /* "netCDF4.pyx":1568 + /* "netCDF4/_netCDF4.pyx":1568 * [_tostr(self.variables[varname].dtype)+' \033[4m'+_tostr(varname)+'\033[0m'+ * (((_tostr(self.variables[varname].dimensions) * .replace("u'",""))\ # <<<<<<<<<<<<<< @@ -62178,7 +62178,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__37); __Pyx_GIVEREF(__pyx_tuple__37); - /* "netCDF4.pyx":1569 + /* "netCDF4/_netCDF4.pyx":1569 * (((_tostr(self.variables[varname].dimensions) * .replace("u'",""))\ * .replace("'",""))\ # <<<<<<<<<<<<<< @@ -62189,7 +62189,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__39); __Pyx_GIVEREF(__pyx_tuple__39); - /* "netCDF4.pyx":1570 + /* "netCDF4/_netCDF4.pyx":1570 * .replace("u'",""))\ * .replace("'",""))\ * .replace(", ",","))\ # <<<<<<<<<<<<<< @@ -62200,7 +62200,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__42); __Pyx_GIVEREF(__pyx_tuple__42); - /* "netCDF4.pyx":1571 + /* "netCDF4/_netCDF4.pyx":1571 * .replace("'",""))\ * .replace(", ",","))\ * .replace(",)",")") for varname in self.variables.keys()]) # <<<<<<<<<<<<<< @@ -62211,7 +62211,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__45); __Pyx_GIVEREF(__pyx_tuple__45); - /* "netCDF4.pyx":1950 + /* "netCDF4/_netCDF4.pyx":1950 * if name not in _private_atts: * self.setncattr(name, value) * elif not name.endswith('__'): # <<<<<<<<<<<<<< @@ -62222,7 +62222,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__47); __Pyx_GIVEREF(__pyx_tuple__47); - /* "netCDF4.pyx":1960 + /* "netCDF4/_netCDF4.pyx":1960 * # if name in _private_atts, it is stored at the python * # level and not in the netCDF file. * if name.startswith('__') and name.endswith('__'): # <<<<<<<<<<<<<< @@ -62236,7 +62236,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__49); __Pyx_GIVEREF(__pyx_tuple__49); - /* "netCDF4.pyx":2168 + /* "netCDF4/_netCDF4.pyx":2168 * overrides L{Dataset} close method which does not apply to L{Group} * instances, raises IOError.""" * raise IOError('cannot close a L{Group} (only applies to Dataset)') # <<<<<<<<<<<<<< @@ -62247,7 +62247,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__50); __Pyx_GIVEREF(__pyx_tuple__50); - /* "netCDF4.pyx":2185 + /* "netCDF4/_netCDF4.pyx":2185 * return self._getname() * def __set__(self,value): * raise AttributeError("name cannot be altered") # <<<<<<<<<<<<<< @@ -62258,7 +62258,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__51); __Pyx_GIVEREF(__pyx_tuple__51); - /* "netCDF4.pyx":2264 + /* "netCDF4/_netCDF4.pyx":2264 * return self._getname() * def __set__(self,value): * raise AttributeError("name cannot be altered") # <<<<<<<<<<<<<< @@ -62269,7 +62269,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__52); __Pyx_GIVEREF(__pyx_tuple__52); - /* "netCDF4.pyx":2541 + /* "netCDF4/_netCDF4.pyx":2541 * if datatype==str: * if grp.data_model != 'NETCDF4': * raise ValueError( # <<<<<<<<<<<<<< @@ -62280,7 +62280,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__55); __Pyx_GIVEREF(__pyx_tuple__55); - /* "netCDF4.pyx":2551 + /* "netCDF4/_netCDF4.pyx":2551 * # dtype variable attribute is a numpy datatype object. * self.dtype = datatype.dtype * elif datatype.str[1:] in _supportedtypes: # <<<<<<<<<<<<<< @@ -62291,7 +62291,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__56); __Pyx_GIVEREF(__pyx_slice__56); - /* "netCDF4.pyx":2555 + /* "netCDF4/_netCDF4.pyx":2555 * # find netCDF primitive data type corresponding to * # specified numpy data type. * xtype = _nptonctype[datatype.str[1:]] # <<<<<<<<<<<<<< @@ -62302,7 +62302,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__57); __Pyx_GIVEREF(__pyx_slice__57); - /* "netCDF4.pyx":2591 + /* "netCDF4/_netCDF4.pyx":2591 * # of vars are created. This change only lasts as long as file is * # open. * if grp.data_model.startswith('NETCDF4') and chunk_cache is not None: # <<<<<<<<<<<<<< @@ -62313,7 +62313,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__58); __Pyx_GIVEREF(__pyx_tuple__58); - /* "netCDF4.pyx":2633 + /* "netCDF4/_netCDF4.pyx":2633 * icontiguous = NC_CONTIGUOUS * if chunksizes is not None: * raise ValueError('cannot specify chunksizes for a contiguous dataset') # <<<<<<<<<<<<<< @@ -62324,7 +62324,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__59); __Pyx_GIVEREF(__pyx_tuple__59); - /* "netCDF4.pyx":2641 + /* "netCDF4/_netCDF4.pyx":2641 * if len(chunksizes) != len(dimensions): * if grp.data_model != 'NETCDF4': grp._enddef() * raise ValueError('chunksizes must be a sequence with the same length as dimensions') # <<<<<<<<<<<<<< @@ -62335,7 +62335,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__60); __Pyx_GIVEREF(__pyx_tuple__60); - /* "netCDF4.pyx":2688 + /* "netCDF4/_netCDF4.pyx":2688 * _set_att(self._grp, self._varid, '_FillValue', fillval) * else: * raise AttributeError("cannot set _FillValue attribute for VLEN or compound variable") # <<<<<<<<<<<<<< @@ -62346,7 +62346,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__61); __Pyx_GIVEREF(__pyx_tuple__61); - /* "netCDF4.pyx":2763 + /* "netCDF4/_netCDF4.pyx":2763 * msg = 'filling on' * except AttributeError: * fillval = default_fillvals[self.dtype.str[1:]] # <<<<<<<<<<<<<< @@ -62357,7 +62357,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__62); __Pyx_GIVEREF(__pyx_slice__62); - /* "netCDF4.pyx":2764 + /* "netCDF4/_netCDF4.pyx":2764 * except AttributeError: * fillval = default_fillvals[self.dtype.str[1:]] * if self.dtype.str[1:] in ['u1','i1']: # <<<<<<<<<<<<<< @@ -62368,7 +62368,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__63); __Pyx_GIVEREF(__pyx_slice__63); - /* "netCDF4.pyx":2817 + /* "netCDF4/_netCDF4.pyx":2817 * return self._getname() * def __set__(self,value): * raise AttributeError("name cannot be altered") # <<<<<<<<<<<<<< @@ -62379,7 +62379,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__64); __Pyx_GIVEREF(__pyx_tuple__64); - /* "netCDF4.pyx":2839 + /* "netCDF4/_netCDF4.pyx":2839 * return shape * def __set__(self,value): * raise AttributeError("shape cannot be altered") # <<<<<<<<<<<<<< @@ -62390,7 +62390,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__65); __Pyx_GIVEREF(__pyx_tuple__65); - /* "netCDF4.pyx":2851 + /* "netCDF4/_netCDF4.pyx":2851 * return self._getdims() * def __set__(self,value): * raise AttributeError("dimensions cannot be altered") # <<<<<<<<<<<<<< @@ -62401,7 +62401,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__66); __Pyx_GIVEREF(__pyx_tuple__66); - /* "netCDF4.pyx":3061 + /* "netCDF4/_netCDF4.pyx":3061 * value = numpy.array(value, self.dtype) * self.setncattr(name, value) * elif not name.endswith('__'): # <<<<<<<<<<<<<< @@ -62412,7 +62412,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__67); __Pyx_GIVEREF(__pyx_tuple__67); - /* "netCDF4.pyx":3071 + /* "netCDF4/_netCDF4.pyx":3071 * # if name in _private_atts, it is stored at the python * # level and not in the netCDF file. * if name.startswith('__') and name.endswith('__'): # <<<<<<<<<<<<<< @@ -62426,7 +62426,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__69); __Pyx_GIVEREF(__pyx_tuple__69); - /* "netCDF4.pyx":3119 + /* "netCDF4/_netCDF4.pyx":3119 * # The convention used is that for those cases, * # put_ind for this dimension is set to -1 by _StartCountStride. * squeeze = data.ndim * [slice(None),] # <<<<<<<<<<<<<< @@ -62437,7 +62437,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__70); __Pyx_GIVEREF(__pyx_slice__70); - /* "netCDF4.pyx":3120 + /* "netCDF4/_netCDF4.pyx":3120 * # put_ind for this dimension is set to -1 by _StartCountStride. * squeeze = data.ndim * [slice(None),] * for i,n in enumerate(put_ind.shape[:-1]): # <<<<<<<<<<<<<< @@ -62448,7 +62448,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__71); __Pyx_GIVEREF(__pyx_slice__71); - /* "netCDF4.pyx":3189 + /* "netCDF4/_netCDF4.pyx":3189 * if (self.endian() == 'big' and is_native_little) or\ * (self.endian() == 'little' and is_native_big): * mval.byteswap(True) # <<<<<<<<<<<<<< @@ -62459,7 +62459,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__72); __Pyx_GIVEREF(__pyx_tuple__72); - /* "netCDF4.pyx":3217 + /* "netCDF4/_netCDF4.pyx":3217 * if (self.endian() == 'big' and is_native_little) or\ * (self.endian() == 'little' and is_native_big): * fval.byteswap(True) # <<<<<<<<<<<<<< @@ -62470,7 +62470,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__73); __Pyx_GIVEREF(__pyx_tuple__73); - /* "netCDF4.pyx":3252 + /* "netCDF4/_netCDF4.pyx":3252 * # small to assume one of the values should appear as a missing * # value unless a _FillValue attribute is set explicitly." * if no_fill != 1 and self.dtype.str[1:] not in ['u1','i1']: # <<<<<<<<<<<<<< @@ -62481,7 +62481,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__74); __Pyx_GIVEREF(__pyx_slice__74); - /* "netCDF4.pyx":3253 + /* "netCDF4/_netCDF4.pyx":3253 * # value unless a _FillValue attribute is set explicitly." * if no_fill != 1 and self.dtype.str[1:] not in ['u1','i1']: * fillval = numpy.array(default_fillvals[self.dtype.str[1:]],self.dtype) # <<<<<<<<<<<<<< @@ -62492,7 +62492,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__75); __Pyx_GIVEREF(__pyx_slice__75); - /* "netCDF4.pyx":3258 + /* "netCDF4/_netCDF4.pyx":3258 * if (self.endian() == 'big' and is_native_little) or\ * (self.endian() == 'little' and is_native_big): * fillval.byteswap(True) # <<<<<<<<<<<<<< @@ -62503,7 +62503,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__76); __Pyx_GIVEREF(__pyx_tuple__76); - /* "netCDF4.pyx":3284 + /* "netCDF4/_netCDF4.pyx":3284 * cdef ndarray data2 * if not self._isvlen: * raise TypeError('_assign_vlen method only for use with VLEN variables') # <<<<<<<<<<<<<< @@ -62514,7 +62514,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__77); __Pyx_GIVEREF(__pyx_tuple__77); - /* "netCDF4.pyx":3296 + /* "netCDF4/_netCDF4.pyx":3296 * elem = self.shape[0]+elem * else: * raise IndexError("Illegal index") # <<<<<<<<<<<<<< @@ -62525,7 +62525,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__78); __Pyx_GIVEREF(__pyx_tuple__78); - /* "netCDF4.pyx":3299 + /* "netCDF4/_netCDF4.pyx":3299 * elif isinstance(elem, tuple): * if len(elem) != ndims: * raise IndexError("Illegal index") # <<<<<<<<<<<<<< @@ -62536,7 +62536,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__79); __Pyx_GIVEREF(__pyx_tuple__79); - /* "netCDF4.pyx":3307 + /* "netCDF4/_netCDF4.pyx":3307 * enew = self.shape[n]+e * if enew < 0: * raise IndexError("Illegal index") # <<<<<<<<<<<<<< @@ -62547,7 +62547,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__80); __Pyx_GIVEREF(__pyx_tuple__80); - /* "netCDF4.pyx":3455 + /* "netCDF4/_netCDF4.pyx":3455 * fillval = self._FillValue * else: * fillval = default_fillvals[self.dtype.str[1:]] # <<<<<<<<<<<<<< @@ -62558,7 +62558,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__81); __Pyx_GIVEREF(__pyx_slice__81); - /* "netCDF4.pyx":3482 + /* "netCDF4/_netCDF4.pyx":3482 * Scientific.IO.NetCDF, can also be done by assigning to a slice ([:]).""" * if len(self.dimensions): * raise IndexError('to assign values to a non-scalar variable, use a slice') # <<<<<<<<<<<<<< @@ -62569,7 +62569,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__82); __Pyx_GIVEREF(__pyx_tuple__82); - /* "netCDF4.pyx":3483 + /* "netCDF4/_netCDF4.pyx":3483 * if len(self.dimensions): * raise IndexError('to assign values to a non-scalar variable, use a slice') * self[:]=val # <<<<<<<<<<<<<< @@ -62580,7 +62580,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__83); __Pyx_GIVEREF(__pyx_slice__83); - /* "netCDF4.pyx":3492 + /* "netCDF4/_netCDF4.pyx":3492 * Scientific.IO.NetCDF, can also be done by slicing ([:]).""" * if len(self.dimensions): * raise IndexError('to retrieve values from a non-scalar variable, use slicing') # <<<<<<<<<<<<<< @@ -62591,7 +62591,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__84); __Pyx_GIVEREF(__pyx_tuple__84); - /* "netCDF4.pyx":3493 + /* "netCDF4/_netCDF4.pyx":3493 * if len(self.dimensions): * raise IndexError('to retrieve values from a non-scalar variable, use slicing') * return self[slice(None)] # <<<<<<<<<<<<<< @@ -62602,7 +62602,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__85); __Pyx_GIVEREF(__pyx_slice__85); - /* "netCDF4.pyx":3631 + /* "netCDF4/_netCDF4.pyx":3631 * startp[n] = start[n]+stride[n]*(count[n]-1) * stride[n] = -stride[n] * sl.append(slice(None, None, -1)) # this slice will reverse the data # <<<<<<<<<<<<<< @@ -62613,7 +62613,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__86); __Pyx_GIVEREF(__pyx_slice__86); - /* "netCDF4.pyx":3635 + /* "netCDF4/_netCDF4.pyx":3635 * startp[n] = start[n] * stridep[n] = stride[n] * sl.append(slice(None,None, 1)) # <<<<<<<<<<<<<< @@ -62624,7 +62624,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__87); __Pyx_GIVEREF(__pyx_slice__87); - /* "netCDF4.pyx":3641 + /* "netCDF4/_netCDF4.pyx":3641 * dataelem = PyArray_SIZE(data) * if totelem != dataelem: * raise IndexError('size of data array does not conform to slice') # <<<<<<<<<<<<<< @@ -62635,7 +62635,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__88); __Pyx_GIVEREF(__pyx_tuple__88); - /* "netCDF4.pyx":3655 + /* "netCDF4/_netCDF4.pyx":3655 * if self.endian() == 'native': * if is_native_little and data.dtype.byteorder == '>': * data.byteswap(True) # <<<<<<<<<<<<<< @@ -62646,7 +62646,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__89); __Pyx_GIVEREF(__pyx_tuple__89); - /* "netCDF4.pyx":3657 + /* "netCDF4/_netCDF4.pyx":3657 * data.byteswap(True) * if is_native_big and data.dtype.byteorder == '<': * data.byteswap(True) # <<<<<<<<<<<<<< @@ -62657,7 +62657,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__90); __Pyx_GIVEREF(__pyx_tuple__90); - /* "netCDF4.pyx":3660 + /* "netCDF4/_netCDF4.pyx":3660 * if self.endian() == 'big': * if is_native_big and data.dtype.byteorder not in ['=','|']: * data.byteswap(True) # <<<<<<<<<<<<<< @@ -62668,7 +62668,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__91); __Pyx_GIVEREF(__pyx_tuple__91); - /* "netCDF4.pyx":3662 + /* "netCDF4/_netCDF4.pyx":3662 * data.byteswap(True) * if is_native_little and data.dtype.byteorder == '=': * data.byteswap(True) # <<<<<<<<<<<<<< @@ -62679,7 +62679,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__92); __Pyx_GIVEREF(__pyx_tuple__92); - /* "netCDF4.pyx":3665 + /* "netCDF4/_netCDF4.pyx":3665 * if self.endian() == 'little': * if is_native_little and data.dtype.byteorder not in ['=','|']: * data.byteswap(True) # <<<<<<<<<<<<<< @@ -62690,7 +62690,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__93); __Pyx_GIVEREF(__pyx_tuple__93); - /* "netCDF4.pyx":3667 + /* "netCDF4/_netCDF4.pyx":3667 * data.byteswap(True) * if is_native_big and data.dtype.byteorder == '=': * data.byteswap(True) # <<<<<<<<<<<<<< @@ -62701,7 +62701,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__94); __Pyx_GIVEREF(__pyx_tuple__94); - /* "netCDF4.pyx":3679 + /* "netCDF4/_netCDF4.pyx":3679 * elif self._isvlen: * if data.dtype.char !='O': * raise TypeError('data to put in string variable must be an object array containing Python strings') # <<<<<<<<<<<<<< @@ -62712,7 +62712,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__95); __Pyx_GIVEREF(__pyx_tuple__95); - /* "netCDF4.pyx":3698 + /* "netCDF4/_netCDF4.pyx":3698 * startp, countp, strdata) * else: * raise IndexError('strides must all be 1 for string variables') # <<<<<<<<<<<<<< @@ -62723,7 +62723,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__96); __Pyx_GIVEREF(__pyx_tuple__96); - /* "netCDF4.pyx":3714 + /* "netCDF4/_netCDF4.pyx":3714 * elptr = (databuff)[0] * dataarr = elptr * if self.dtype != dataarr.dtype.str[1:]: # <<<<<<<<<<<<<< @@ -62734,7 +62734,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__97); __Pyx_GIVEREF(__pyx_slice__97); - /* "netCDF4.pyx":3726 + /* "netCDF4/_netCDF4.pyx":3726 * startp, countp, vldata) * else: * raise IndexError('strides must all be 1 for vlen variables') # <<<<<<<<<<<<<< @@ -62745,7 +62745,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__98); __Pyx_GIVEREF(__pyx_tuple__98); - /* "netCDF4.pyx":3751 + /* "netCDF4/_netCDF4.pyx":3751 * for lendim in count: * if lendim == -1: * shapeout = shapeout + (1,) # <<<<<<<<<<<<<< @@ -62756,7 +62756,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__99); __Pyx_GIVEREF(__pyx_tuple__99); - /* "netCDF4.pyx":3769 + /* "netCDF4/_netCDF4.pyx":3769 * startp[n] = start[n]+stride[n]*(count[n]-1) * stride[n] = -stride[n] * sl.append(slice(None, None, -1)) # this slice will reverse the data # <<<<<<<<<<<<<< @@ -62767,7 +62767,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__100); __Pyx_GIVEREF(__pyx_slice__100); - /* "netCDF4.pyx":3773 + /* "netCDF4/_netCDF4.pyx":3773 * startp[n] = start[n] * stridep[n] = stride[n] * sl.append(slice(None,None, 1)) # <<<<<<<<<<<<<< @@ -62778,7 +62778,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__101); __Pyx_GIVEREF(__pyx_slice__101); - /* "netCDF4.pyx":3806 + /* "netCDF4/_netCDF4.pyx":3806 * else: * # FIXME: is this a bug in netCDF4? * raise IndexError('strides must all be 1 for string variables') # <<<<<<<<<<<<<< @@ -62789,7 +62789,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__102); __Pyx_GIVEREF(__pyx_tuple__102); - /* "netCDF4.pyx":3830 + /* "netCDF4/_netCDF4.pyx":3830 * startp, countp, vldata) * else: * raise IndexError('strides must all be 1 for vlen variables') # <<<<<<<<<<<<<< @@ -62800,7 +62800,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__103); __Pyx_GIVEREF(__pyx_tuple__103); - /* "netCDF4.pyx":3949 + /* "netCDF4/_netCDF4.pyx":3949 * if format.kind != 'V': # scalar primitive type * try: * xtype_tmp = _nptonctype[format.str[1:]] # <<<<<<<<<<<<<< @@ -62811,7 +62811,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__104); __Pyx_GIVEREF(__pyx_slice__104); - /* "netCDF4.pyx":3951 + /* "netCDF4/_netCDF4.pyx":3951 * xtype_tmp = _nptonctype[format.str[1:]] * except KeyError: * raise ValueError('Unsupported compound type element') # <<<<<<<<<<<<<< @@ -62822,7 +62822,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__105); __Pyx_GIVEREF(__pyx_tuple__105); - /* "netCDF4.pyx":3973 + /* "netCDF4/_netCDF4.pyx":3973 * if format.subdtype[0].str[1] != 'V': # primitive type. * try: * xtype_tmp = _nptonctype[format.subdtype[0].str[1:]] # <<<<<<<<<<<<<< @@ -62833,7 +62833,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__106); __Pyx_GIVEREF(__pyx_slice__106); - /* "netCDF4.pyx":3975 + /* "netCDF4/_netCDF4.pyx":3975 * xtype_tmp = _nptonctype[format.subdtype[0].str[1:]] * except KeyError: * raise ValueError('Unsupported compound type element') # <<<<<<<<<<<<<< @@ -62844,7 +62844,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__107); __Pyx_GIVEREF(__pyx_tuple__107); - /* "netCDF4.pyx":4012 + /* "netCDF4/_netCDF4.pyx":4012 * parent_grp = grp.parent * except AttributeError: * raise ValueError("cannot find compound type in this group or parent groups") # <<<<<<<<<<<<<< @@ -62855,7 +62855,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__108); __Pyx_GIVEREF(__pyx_tuple__108); - /* "netCDF4.pyx":4014 + /* "netCDF4/_netCDF4.pyx":4014 * raise ValueError("cannot find compound type in this group or parent groups") * if parent_grp is None: * raise ValueError("cannot find compound type in this group or parent groups") # <<<<<<<<<<<<<< @@ -62866,7 +62866,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__109); __Pyx_GIVEREF(__pyx_tuple__109); - /* "netCDF4.pyx":4075 + /* "netCDF4/_netCDF4.pyx":4075 * field_type = _read_compound(group, field_typeid, endian=endian) * else: * raise KeyError('compound field of an unsupported data type') # <<<<<<<<<<<<<< @@ -62877,7 +62877,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__110); __Pyx_GIVEREF(__pyx_tuple__110); - /* "netCDF4.pyx":4166 + /* "netCDF4/_netCDF4.pyx":4166 * namstring = bytestr * dt = numpy.dtype(dt) # convert to numpy datatype. * if dt.str[1:] in _supportedtypes: # <<<<<<<<<<<<<< @@ -62888,7 +62888,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__111); __Pyx_GIVEREF(__pyx_slice__111); - /* "netCDF4.pyx":4169 + /* "netCDF4/_netCDF4.pyx":4169 * # find netCDF primitive data type corresponding to * # specified numpy data type. * xtype_tmp = _nptonctype[dt.str[1:]] # <<<<<<<<<<<<<< @@ -62899,7 +62899,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_slice__112); __Pyx_GIVEREF(__pyx_slice__112); - /* "netCDF4.pyx":4174 + /* "netCDF4/_netCDF4.pyx":4174 * raise RuntimeError((nc_strerror(ierr)).decode('ascii')) * else: * raise KeyError("unsupported datatype specified for VLEN") # <<<<<<<<<<<<<< @@ -62910,7 +62910,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__113); __Pyx_GIVEREF(__pyx_tuple__113); - /* "netCDF4.pyx":4201 + /* "netCDF4/_netCDF4.pyx":4201 * dt = numpy.dtype(datatype) # see if it is a primitive type * except KeyError: * raise KeyError("unsupported component type for VLEN") # <<<<<<<<<<<<<< @@ -62921,7 +62921,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__114); __Pyx_GIVEREF(__pyx_tuple__114); - /* "netCDF4.pyx":780 + /* "netCDF4/_netCDF4.pyx":780 * from ordereddict import OrderedDict * except ImportError: * raise ImportError('please install ordereddict (https://pypi.python.org/pypi/ordereddict)') # <<<<<<<<<<<<<< @@ -62932,7 +62932,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__115); __Pyx_GIVEREF(__pyx_tuple__115); - /* "netCDF4.pyx":799 + /* "netCDF4/_netCDF4.pyx":799 * from numpy import ma * from numpy import __version__ as _npversion * if _npversion.split('.')[0] < '1': # <<<<<<<<<<<<<< @@ -62943,7 +62943,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__117); __Pyx_GIVEREF(__pyx_tuple__117); - /* "netCDF4.pyx":800 + /* "netCDF4/_netCDF4.pyx":800 * from numpy import __version__ as _npversion * if _npversion.split('.')[0] < '1': * raise ImportError('requires numpy version 1.0rc1 or later') # <<<<<<<<<<<<<< @@ -62954,7 +62954,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__118); __Pyx_GIVEREF(__pyx_tuple__118); - /* "utils.pyx":6 + /* "include/utils.pyx":6 * * # start of the gregorian calendar * gregorian = datetime(1582,10,15) # <<<<<<<<<<<<<< @@ -62965,7 +62965,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__119); __Pyx_GIVEREF(__pyx_tuple__119); - /* "utils.pyx":8 + /* "include/utils.pyx":8 * gregorian = datetime(1582,10,15) * * def _dateparse(timestr): # <<<<<<<<<<<<<< @@ -62975,9 +62975,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__120 = PyTuple_Pack(13, __pyx_n_s_timestr, __pyx_n_s_timestr_split, __pyx_n_s_units, __pyx_n_s_n, __pyx_n_s_isostring, __pyx_n_s_year, __pyx_n_s_month, __pyx_n_s_day, __pyx_n_s_hour, __pyx_n_s_minute, __pyx_n_s_second, __pyx_n_s_utc_offset, __pyx_n_s_basedate); if (unlikely(!__pyx_tuple__120)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__120); __Pyx_GIVEREF(__pyx_tuple__120); - __pyx_codeobj__121 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__120, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_dateparse, 8, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__121)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__121 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__120, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_dateparse, 8, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__121)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":29 + /* "include/utils.pyx":29 * # utility functions (visible from python). * * def stringtoarr(string,NUMCHARS,dtype='S'): # <<<<<<<<<<<<<< @@ -62987,9 +62987,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__122 = PyTuple_Pack(4, __pyx_n_s_string, __pyx_n_s_NUMCHARS, __pyx_n_s_dtype, __pyx_n_s_arr); if (unlikely(!__pyx_tuple__122)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__122); __Pyx_GIVEREF(__pyx_tuple__122); - __pyx_codeobj__123 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__122, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_stringtoarr, 29, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__123)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__123 = (PyObject*)__Pyx_PyCode_New(3, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__122, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_stringtoarr, 29, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__123)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":52 + /* "include/utils.pyx":52 * return arr * * def stringtochar(a): # <<<<<<<<<<<<<< @@ -62999,9 +62999,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__124 = PyTuple_Pack(3, __pyx_n_s_a, __pyx_n_s_dtype, __pyx_n_s_b); if (unlikely(!__pyx_tuple__124)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__124); __Pyx_GIVEREF(__pyx_tuple__124); - __pyx_codeobj__125 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__124, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_stringtochar, 52, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__125)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__125 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__124, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_stringtochar, 52, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__125)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":71 + /* "include/utils.pyx":71 * return b * * def chartostring(b): # <<<<<<<<<<<<<< @@ -63011,9 +63011,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__126 = PyTuple_Pack(6, __pyx_n_s_b, __pyx_n_s_dtype, __pyx_n_s_bs, __pyx_n_s_slen, __pyx_n_s_a, __pyx_n_s_n1); if (unlikely(!__pyx_tuple__126)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 71; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__126); __Pyx_GIVEREF(__pyx_tuple__126); - __pyx_codeobj__127 = (PyObject*)__Pyx_PyCode_New(1, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__126, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_chartostring, 71, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__127)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 71; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__127 = (PyObject*)__Pyx_PyCode_New(1, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__126, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_chartostring, 71, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__127)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 71; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":92 + /* "include/utils.pyx":92 * return a * * def date2num(dates,units,calendar='standard'): # <<<<<<<<<<<<<< @@ -63023,9 +63023,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__128 = PyTuple_Pack(14, __pyx_n_s_dates, __pyx_n_s_units, __pyx_n_s_calendar, __pyx_n_s_basedate, __pyx_n_s_unit, __pyx_n_s_isscalar, __pyx_n_s_shape, __pyx_n_s_ismasked, __pyx_n_s_mask, __pyx_n_s_times, __pyx_n_s_date, __pyx_n_s_td, __pyx_n_s_totaltime, __pyx_n_s_cdftime); if (unlikely(!__pyx_tuple__128)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 92; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__128); __Pyx_GIVEREF(__pyx_tuple__128); - __pyx_codeobj__129 = (PyObject*)__Pyx_PyCode_New(3, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__128, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_date2num, 92, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__129)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 92; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__129 = (PyObject*)__Pyx_PyCode_New(3, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__128, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_date2num, 92, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__129)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 92; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":171 + /* "include/utils.pyx":171 * return cdftime.date2num(dates) * * def num2date(times,units,calendar='standard'): # <<<<<<<<<<<<<< @@ -63035,9 +63035,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__130 = PyTuple_Pack(19, __pyx_n_s_times, __pyx_n_s_units, __pyx_n_s_calendar, __pyx_n_s_basedate, __pyx_n_s_unit, __pyx_n_s_isscalar, __pyx_n_s_shape, __pyx_n_s_ismasked, __pyx_n_s_mask, __pyx_n_s_dates, __pyx_n_s_time, __pyx_n_s_tsecs, __pyx_n_s_days, __pyx_n_s_msecsd, __pyx_n_s_secs, __pyx_n_s_msecs, __pyx_n_s_td, __pyx_n_s_date, __pyx_n_s_cdftime); if (unlikely(!__pyx_tuple__130)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 171; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__130); __Pyx_GIVEREF(__pyx_tuple__130); - __pyx_codeobj__131 = (PyObject*)__Pyx_PyCode_New(3, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__130, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_num2date, 171, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__131)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 171; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__131 = (PyObject*)__Pyx_PyCode_New(3, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__130, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_num2date, 171, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__131)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 171; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":266 + /* "include/utils.pyx":266 * return cdftime.num2date(times) * * def date2index(dates, nctime, calendar=None, select='exact'): # <<<<<<<<<<<<<< @@ -63047,18 +63047,18 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__132 = PyTuple_Pack(6, __pyx_n_s_dates, __pyx_n_s_nctime, __pyx_n_s_calendar, __pyx_n_s_select, __pyx_n_s_basedate, __pyx_n_s_times); if (unlikely(!__pyx_tuple__132)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 266; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__132); __Pyx_GIVEREF(__pyx_tuple__132); - __pyx_codeobj__133 = (PyObject*)__Pyx_PyCode_New(4, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__132, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_date2index, 266, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__133)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 266; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__133 = (PyObject*)__Pyx_PyCode_New(4, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__132, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_date2index, 266, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__133)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 266; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":308 + /* "include/utils.pyx":308 * return netcdftime.date2index(dates, nctime, calendar, select) * * def getlibversion(): # <<<<<<<<<<<<<< * """ * getlibversion() */ - __pyx_codeobj__134 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_getlibversion, 308, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__134)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__134 = (PyObject*)__Pyx_PyCode_New(0, 0, 0, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_getlibversion, 308, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__134)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":349 + /* "include/utils.pyx":349 * """ * * def __init__(self, files, check=False, aggdim=None, exclude=[]): # <<<<<<<<<<<<<< @@ -63068,9 +63068,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__135 = PyTuple_Pack(36, __pyx_n_s_self, __pyx_n_s_files, __pyx_n_s_check, __pyx_n_s_aggdim, __pyx_n_s_exclude, __pyx_n_s_msg, __pyx_n_s_master, __pyx_n_s_cdfm, __pyx_n_s_name, __pyx_n_s_value, __pyx_n_s_aggDimId, __pyx_n_s_dimname, __pyx_n_s_dim, __pyx_n_s_aggDimName, __pyx_n_s_masterRecVar, __pyx_n_s_vName, __pyx_n_s_v, __pyx_n_s_dims_2, __pyx_n_s_shape, __pyx_n_s_dtype, __pyx_n_s_cdf_2, __pyx_n_s_cdfVLen_2, __pyx_n_s_cdfRecVar_2, __pyx_n_s_f, __pyx_n_s_part, __pyx_n_s_varInfo, __pyx_n_s_masterDims, __pyx_n_s_masterShape, __pyx_n_s_masterType, __pyx_n_s_extDims, __pyx_n_s_extShape, __pyx_n_s_extType, __pyx_n_s_vInst, __pyx_n_s_varname, __pyx_n_s_var, __pyx_n_s_dset); if (unlikely(!__pyx_tuple__135)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 349; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__135); __Pyx_GIVEREF(__pyx_tuple__135); - __pyx_codeobj__136 = (PyObject*)__Pyx_PyCode_New(5, 0, 36, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__135, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_init, 349, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__136)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 349; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__136 = (PyObject*)__Pyx_PyCode_New(5, 0, 36, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__135, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_init, 349, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__136)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 349; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":526 + /* "include/utils.pyx":526 * self._path = '/' * * def __setattr__(self, name, value): # <<<<<<<<<<<<<< @@ -63080,9 +63080,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__137 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_name, __pyx_n_s_value); if (unlikely(!__pyx_tuple__137)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__137); __Pyx_GIVEREF(__pyx_tuple__137); - __pyx_codeobj__138 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__137, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_setattr, 526, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__138)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__138 = (PyObject*)__Pyx_PyCode_New(3, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__137, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_setattr, 526, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__138)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":530 + /* "include/utils.pyx":530 * self.__dict__[name] = value * * def __getattribute__(self, name): # <<<<<<<<<<<<<< @@ -63092,9 +63092,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__139 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_name); if (unlikely(!__pyx_tuple__139)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__139); __Pyx_GIVEREF(__pyx_tuple__139); - __pyx_codeobj__140 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__139, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_getattribute, 530, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__140)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__140 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__139, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_getattribute, 530, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__140)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":543 + /* "include/utils.pyx":543 * return Dataset.__getattribute__(self, name) * * def ncattrs(self): # <<<<<<<<<<<<<< @@ -63104,9 +63104,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__141 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__141)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__141); __Pyx_GIVEREF(__pyx_tuple__141); - __pyx_codeobj__142 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__141, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_ncattrs, 543, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__142)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__142 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__141, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_ncattrs, 543, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__142)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":546 + /* "include/utils.pyx":546 * return self._cdf[0].__dict__.keys() * * def close(self): # <<<<<<<<<<<<<< @@ -63116,9 +63116,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__143 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_dset); if (unlikely(!__pyx_tuple__143)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 546; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__143); __Pyx_GIVEREF(__pyx_tuple__143); - __pyx_codeobj__144 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__143, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_close, 546, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__144)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 546; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__144 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__143, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_close, 546, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__144)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 546; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":550 + /* "include/utils.pyx":550 * dset.close() * * def __repr__(self): # <<<<<<<<<<<<<< @@ -63128,9 +63128,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__145 = PyTuple_Pack(9, __pyx_n_s_self, __pyx_n_s_ncdump, __pyx_n_s_dimnames, __pyx_n_s_varnames, __pyx_n_s_grpnames, __pyx_n_s_attrs, __pyx_n_s_dimname, __pyx_n_s_varname, __pyx_n_s_name); if (unlikely(!__pyx_tuple__145)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 550; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__145); __Pyx_GIVEREF(__pyx_tuple__145); - __pyx_codeobj__146 = (PyObject*)__Pyx_PyCode_New(1, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__145, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_repr, 550, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__146)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 550; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__146 = (PyObject*)__Pyx_PyCode_New(1, 0, 9, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__145, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_repr, 550, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__146)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 550; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":569 + /* "include/utils.pyx":569 * * class _Dimension(object): * def __init__(self, dimname, dim, dimlens, dimtotlen): # <<<<<<<<<<<<<< @@ -63140,9 +63140,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__147 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_dimname, __pyx_n_s_dim, __pyx_n_s_dimlens, __pyx_n_s_dimtotlen); if (unlikely(!__pyx_tuple__147)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__147); __Pyx_GIVEREF(__pyx_tuple__147); - __pyx_codeobj__148 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__147, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_init, 569, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__148)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__148 = (PyObject*)__Pyx_PyCode_New(5, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__147, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_init, 569, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__148)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":573 + /* "include/utils.pyx":573 * self.dimtotlen = dimtotlen * self._name = dimname * def __len__(self): # <<<<<<<<<<<<<< @@ -63152,9 +63152,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__149 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__149)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__149); __Pyx_GIVEREF(__pyx_tuple__149); - __pyx_codeobj__150 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__149, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_len, 573, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__150)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__150 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__149, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_len, 573, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__150)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":575 + /* "include/utils.pyx":575 * def __len__(self): * return self.dimtotlen * def isunlimited(self): # <<<<<<<<<<<<<< @@ -63164,9 +63164,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__151 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__151)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__151); __Pyx_GIVEREF(__pyx_tuple__151); - __pyx_codeobj__152 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__151, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_isunlimited, 575, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__152)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__152 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__151, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_isunlimited, 575, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__152)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":577 + /* "include/utils.pyx":577 * def isunlimited(self): * return True * def __repr__(self): # <<<<<<<<<<<<<< @@ -63176,9 +63176,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__153 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__153)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__153); __Pyx_GIVEREF(__pyx_tuple__153); - __pyx_codeobj__154 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__153, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_repr, 577, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__154)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__154 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__153, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_repr, 577, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__154)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":584 + /* "include/utils.pyx":584 * * class _Variable(object): * def __init__(self, dset, varname, var, recdimname): # <<<<<<<<<<<<<< @@ -63188,9 +63188,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__155 = PyTuple_Pack(7, __pyx_n_s_self, __pyx_n_s_dset, __pyx_n_s_varname, __pyx_n_s_var, __pyx_n_s_recdimname, __pyx_n_s_name, __pyx_n_s_value); if (unlikely(!__pyx_tuple__155)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__155); __Pyx_GIVEREF(__pyx_tuple__155); - __pyx_codeobj__156 = (PyObject*)__Pyx_PyCode_New(5, 0, 7, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__155, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_init, 584, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__156)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__156 = (PyObject*)__Pyx_PyCode_New(5, 0, 7, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__155, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_init, 584, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__156)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":597 + /* "include/utils.pyx":597 * for name, value in var.__dict__.items(): * self.__dict__[name] = value * def typecode(self): # <<<<<<<<<<<<<< @@ -63200,9 +63200,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__157 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__157)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__157); __Pyx_GIVEREF(__pyx_tuple__157); - __pyx_codeobj__158 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__157, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_typecode, 597, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__158)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__158 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__157, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_typecode, 597, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__158)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":599 + /* "include/utils.pyx":599 * def typecode(self): * return self.dtype * def ncattrs(self): # <<<<<<<<<<<<<< @@ -63212,9 +63212,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__159 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__159)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__159); __Pyx_GIVEREF(__pyx_tuple__159); - __pyx_codeobj__160 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__159, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_ncattrs, 599, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__160)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__160 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__159, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_ncattrs, 599, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__160)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":601 + /* "include/utils.pyx":601 * def ncattrs(self): * return self._mastervar.__dict__.keys() * def __getattr__(self,name): # <<<<<<<<<<<<<< @@ -63224,9 +63224,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__161 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_name); if (unlikely(!__pyx_tuple__161)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__161); __Pyx_GIVEREF(__pyx_tuple__161); - __pyx_codeobj__162 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__161, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_getattr, 601, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__162)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__162 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__161, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_getattr, 601, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__162)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":608 + /* "include/utils.pyx":608 * except: * raise AttributeError(name) * def __repr__(self): # <<<<<<<<<<<<<< @@ -63236,9 +63236,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__163 = PyTuple_Pack(8, __pyx_n_s_self, __pyx_n_s_ncdump_var, __pyx_n_s_dimnames, __pyx_n_s_attrs, __pyx_n_s_unlimdims, __pyx_n_s_dimname, __pyx_n_s_dim, __pyx_n_s_name); if (unlikely(!__pyx_tuple__163)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 608; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__163); __Pyx_GIVEREF(__pyx_tuple__163); - __pyx_codeobj__164 = (PyObject*)__Pyx_PyCode_New(1, 0, 8, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__163, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_repr, 608, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__164)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 608; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__164 = (PyObject*)__Pyx_PyCode_New(1, 0, 8, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__163, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_repr, 608, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__164)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 608; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":624 + /* "include/utils.pyx":624 * ncdump_var.append('current size = %s\n' % repr(self.shape)) * return ''.join(ncdump_var) * def __len__(self): # <<<<<<<<<<<<<< @@ -63248,9 +63248,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__165 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__165)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__165); __Pyx_GIVEREF(__pyx_tuple__165); - __pyx_codeobj__166 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__165, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_len, 624, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__166)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__166 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__165, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_len, 624, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__166)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":626 + /* "include/utils.pyx":626 * def __len__(self): * return self._shape()[0] * def _shape(self): # <<<<<<<<<<<<<< @@ -63260,9 +63260,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__167 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_recdimlen); if (unlikely(!__pyx_tuple__167)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 626; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__167); __Pyx_GIVEREF(__pyx_tuple__167); - __pyx_codeobj__168 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__167, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_shape_2, 626, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__168)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 626; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__168 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__167, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_shape_2, 626, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__168)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 626; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":629 + /* "include/utils.pyx":629 * recdimlen = len(self._dset.dimensions[self._recdimname]) * return (recdimlen,) + self._mastervar.shape[1:] * def set_auto_maskandscale(self,val): # <<<<<<<<<<<<<< @@ -63272,9 +63272,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__169 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_val, __pyx_n_s_v); if (unlikely(!__pyx_tuple__169)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__169); __Pyx_GIVEREF(__pyx_tuple__169); - __pyx_codeobj__170 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__169, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_set_auto_maskandscale, 629, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__170)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__170 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__169, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_set_auto_maskandscale, 629, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__170)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":632 + /* "include/utils.pyx":632 * for v in self._recVar: * v.set_auto_maskandscale(val) * def __getitem__(self, elem): # <<<<<<<<<<<<<< @@ -63284,9 +63284,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__171 = PyTuple_Pack(30, __pyx_n_s_self, __pyx_n_s_elem, __pyx_n_s_start, __pyx_n_s_count, __pyx_n_s_stride, __pyx_n_s_put_ind, __pyx_n_s_datashape, __pyx_n_s_data, __pyx_n_s_squeeze, __pyx_n_s_i, __pyx_n_s_n, __pyx_n_s_strt, __pyx_n_s_cnt, __pyx_n_s_strd, __pyx_n_s_nv, __pyx_n_s_ind, __pyx_n_s_sta, __pyx_n_s_step, __pyx_n_s_stop, __pyx_n_s_idx, __pyx_n_s_vid, __pyx_n_s_k, __pyx_n_s_lst, __pyx_n_s_newSlice, __pyx_n_s_s_2, __pyx_n_s_lstArr, __pyx_n_s_ismasked, __pyx_n_s_dat, __pyx_n_s_fill_value, __pyx_n_s_numv); if (unlikely(!__pyx_tuple__171)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__171); __Pyx_GIVEREF(__pyx_tuple__171); - __pyx_codeobj__172 = (PyObject*)__Pyx_PyCode_New(2, 0, 30, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__171, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_getitem, 632, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__172)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__172 = (PyObject*)__Pyx_PyCode_New(2, 0, 30, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__171, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_getitem, 632, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__172)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "utils.pyx":772 + /* "include/utils.pyx":772 * """ * * def __init__(self, time, units=None): # <<<<<<<<<<<<<< @@ -63296,12 +63296,12 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__173 = PyTuple_Pack(15, __pyx_n_s_self, __pyx_n_s_time, __pyx_n_s_units, __pyx_n_s_datetime, __pyx_n_s_name, __pyx_n_s_value, __pyx_n_s_t, __pyx_n_s_ref_date, __pyx_n_s_ref_num, __pyx_n_s_i0, __pyx_n_s_i1, __pyx_n_s_i, __pyx_n_s_v, __pyx_n_s_n, __pyx_n_s_num); if (unlikely(!__pyx_tuple__173)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 772; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__173); __Pyx_GIVEREF(__pyx_tuple__173); - __pyx_codeobj__174 = (PyObject*)__Pyx_PyCode_New(3, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__173, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_init, 772, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__174)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 772; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__174 = (PyObject*)__Pyx_PyCode_New(3, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__173, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_init, 772, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__174)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 772; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_tuple__175 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__175)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 772; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__175); __Pyx_GIVEREF(__pyx_tuple__175); - /* "utils.pyx":818 + /* "include/utils.pyx":818 * * * def __getitem__(self, elem): # <<<<<<<<<<<<<< @@ -63310,9 +63310,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__176 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_elem); if (unlikely(!__pyx_tuple__176)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 818; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__176); __Pyx_GIVEREF(__pyx_tuple__176); - __pyx_codeobj__177 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__176, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_getitem, 818, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__177)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 818; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__177 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__176, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_include_utils_pyx, __pyx_n_s_getitem, 818, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__177)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 818; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":811 + /* "netCDF4/_netCDF4.pyx":811 * # check for required version of netcdf-4 and hdf5. * * def _gethdf5libversion(): # <<<<<<<<<<<<<< @@ -63322,9 +63322,9 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__178 = PyTuple_Pack(4, __pyx_n_s_majorvers, __pyx_n_s_minorvers, __pyx_n_s_releasevers, __pyx_n_s_patchstring); if (unlikely(!__pyx_tuple__178)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 811; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__178); __Pyx_GIVEREF(__pyx_tuple__178); - __pyx_codeobj__179 = (PyObject*)__Pyx_PyCode_New(0, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__178, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python_2, __pyx_n_s_gethdf5libversion, 811, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__179)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 811; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__179 = (PyObject*)__Pyx_PyCode_New(0, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__178, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_mb312_dev_trees_netcdf4_py, __pyx_n_s_gethdf5libversion, 811, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__179)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 811; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":857 + /* "netCDF4/_netCDF4.pyx":857 * 'f8':NC_FILL_DOUBLE} * * is_native_little = numpy.dtype('f4').byteorder == '=' # <<<<<<<<<<<<<< @@ -63346,7 +63346,7 @@ static int __Pyx_InitCachedConstants(void) { __Pyx_GOTREF(__pyx_tuple__181); __Pyx_GIVEREF(__pyx_tuple__181); - /* "netCDF4.pyx":966 + /* "netCDF4/_netCDF4.pyx":966 * return value_arr * * def _set_default_format(object format='NETCDF4'): # <<<<<<<<<<<<<< @@ -63356,7 +63356,7 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__182 = PyTuple_Pack(1, __pyx_n_s_format); if (unlikely(!__pyx_tuple__182)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 966; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__182); __Pyx_GIVEREF(__pyx_tuple__182); - __pyx_codeobj__183 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__182, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python_2, __pyx_n_s_set_default_format, 966, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__183)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 966; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__183 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__182, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_mb312_dev_trees_netcdf4_py, __pyx_n_s_set_default_format, 966, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__183)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 966; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; @@ -63396,11 +63396,11 @@ static int __Pyx_InitGlobals(void) { } #if PY_MAJOR_VERSION < 3 -PyMODINIT_FUNC initnetCDF4(void); /*proto*/ -PyMODINIT_FUNC initnetCDF4(void) +PyMODINIT_FUNC init_netCDF4(void); /*proto*/ +PyMODINIT_FUNC init_netCDF4(void) #else -PyMODINIT_FUNC PyInit_netCDF4(void); /*proto*/ -PyMODINIT_FUNC PyInit_netCDF4(void) +PyMODINIT_FUNC PyInit__netCDF4(void); /*proto*/ +PyMODINIT_FUNC PyInit__netCDF4(void) #endif { PyObject *__pyx_t_1 = NULL; @@ -63434,7 +63434,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) Py_FatalError("failed to import 'refnanny' module"); } #endif - __Pyx_RefNannySetupContext("PyMODINIT_FUNC PyInit_netCDF4(void)", 0); + __Pyx_RefNannySetupContext("PyMODINIT_FUNC PyInit__netCDF4(void)", 0); if ( __Pyx_check_binary_version() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} @@ -63456,7 +63456,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) #endif /*--- Module creation code ---*/ #if PY_MAJOR_VERSION < 3 - __pyx_m = Py_InitModule4("netCDF4", __pyx_methods, __pyx_k_Introduction_Python_interface_t, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m); + __pyx_m = Py_InitModule4("_netCDF4", __pyx_methods, __pyx_k_Introduction_Python_interface_t, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m); #else __pyx_m = PyModule_Create(&__pyx_moduledef); #endif @@ -63473,14 +63473,14 @@ PyMODINIT_FUNC PyInit_netCDF4(void) #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT) if (__Pyx_init_sys_getdefaultencoding_params() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} #endif - if (__pyx_module_is_main_netCDF4) { + if (__pyx_module_is_main_netCDF4___netCDF4) { if (PyObject_SetAttrString(__pyx_m, "__name__", __pyx_n_s_main) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; } #if PY_MAJOR_VERSION >= 3 { PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (!PyDict_GetItemString(modules, "netCDF4")) { - if (unlikely(PyDict_SetItemString(modules, "netCDF4", __pyx_m) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (!PyDict_GetItemString(modules, "netCDF4._netCDF4")) { + if (unlikely(PyDict_SetItemString(modules, "netCDF4._netCDF4", __pyx_m) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } } #endif @@ -63492,40 +63492,40 @@ PyMODINIT_FUNC PyInit_netCDF4(void) /*--- Variable export code ---*/ /*--- Function export code ---*/ /*--- Type init code ---*/ - __pyx_ptype_7netCDF4_ndarray = __Pyx_ImportType("numpy", "ndarray", sizeof(PyArrayObject), 0); if (unlikely(!__pyx_ptype_7netCDF4_ndarray)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 706; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyType_Ready(&__pyx_type_7netCDF4_Dataset) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1308; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_type_7netCDF4_Dataset.tp_print = 0; - if (PyObject_SetAttrString(__pyx_m, "Dataset", (PyObject *)&__pyx_type_7netCDF4_Dataset) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1308; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (__pyx_type_7netCDF4_Dataset.tp_weaklistoffset == 0) __pyx_type_7netCDF4_Dataset.tp_weaklistoffset = offsetof(struct __pyx_obj_7netCDF4_Dataset, __weakref__); - __pyx_ptype_7netCDF4_Dataset = &__pyx_type_7netCDF4_Dataset; - __pyx_type_7netCDF4_Group.tp_base = __pyx_ptype_7netCDF4_Dataset; - if (PyType_Ready(&__pyx_type_7netCDF4_Group) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2098; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_type_7netCDF4_Group.tp_print = 0; - if (PyObject_SetAttrString(__pyx_m, "Group", (PyObject *)&__pyx_type_7netCDF4_Group) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2098; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (__pyx_type_7netCDF4_Group.tp_weaklistoffset == 0) __pyx_type_7netCDF4_Group.tp_weaklistoffset = offsetof(struct __pyx_obj_7netCDF4_Group, __pyx_base.__weakref__); - __pyx_ptype_7netCDF4_Group = &__pyx_type_7netCDF4_Group; - if (PyType_Ready(&__pyx_type_7netCDF4_Dimension) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2188; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_type_7netCDF4_Dimension.tp_print = 0; - if (PyObject_SetAttrString(__pyx_m, "Dimension", (PyObject *)&__pyx_type_7netCDF4_Dimension) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2188; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_ptype_7netCDF4_Dimension = &__pyx_type_7netCDF4_Dimension; - if (PyType_Ready(&__pyx_type_7netCDF4_Variable) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2332; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_type_7netCDF4_Variable.tp_print = 0; - if (PyObject_SetAttrString(__pyx_m, "Variable", (PyObject *)&__pyx_type_7netCDF4_Variable) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2332; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_ptype_7netCDF4_Variable = &__pyx_type_7netCDF4_Variable; - if (PyType_Ready(&__pyx_type_7netCDF4_CompoundType) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3860; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_type_7netCDF4_CompoundType.tp_print = 0; - if (PyObject_SetAttrString(__pyx_m, "CompoundType", (PyObject *)&__pyx_type_7netCDF4_CompoundType) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3860; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_ptype_7netCDF4_CompoundType = &__pyx_type_7netCDF4_CompoundType; - if (PyType_Ready(&__pyx_type_7netCDF4_VLType) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4090; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_type_7netCDF4_VLType.tp_print = 0; - if (PyObject_SetAttrString(__pyx_m, "VLType", (PyObject *)&__pyx_type_7netCDF4_VLType) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4090; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_ptype_7netCDF4_VLType = &__pyx_type_7netCDF4_VLType; + __pyx_ptype_7netCDF4_8_netCDF4_ndarray = __Pyx_ImportType("numpy", "ndarray", sizeof(PyArrayObject), 0); if (unlikely(!__pyx_ptype_7netCDF4_8_netCDF4_ndarray)) {__pyx_filename = __pyx_f[2]; __pyx_lineno = 706; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (PyType_Ready(&__pyx_type_7netCDF4_8_netCDF4_Dataset) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1308; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_type_7netCDF4_8_netCDF4_Dataset.tp_print = 0; + if (PyObject_SetAttrString(__pyx_m, "Dataset", (PyObject *)&__pyx_type_7netCDF4_8_netCDF4_Dataset) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1308; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (__pyx_type_7netCDF4_8_netCDF4_Dataset.tp_weaklistoffset == 0) __pyx_type_7netCDF4_8_netCDF4_Dataset.tp_weaklistoffset = offsetof(struct __pyx_obj_7netCDF4_8_netCDF4_Dataset, __weakref__); + __pyx_ptype_7netCDF4_8_netCDF4_Dataset = &__pyx_type_7netCDF4_8_netCDF4_Dataset; + __pyx_type_7netCDF4_8_netCDF4_Group.tp_base = __pyx_ptype_7netCDF4_8_netCDF4_Dataset; + if (PyType_Ready(&__pyx_type_7netCDF4_8_netCDF4_Group) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2098; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_type_7netCDF4_8_netCDF4_Group.tp_print = 0; + if (PyObject_SetAttrString(__pyx_m, "Group", (PyObject *)&__pyx_type_7netCDF4_8_netCDF4_Group) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2098; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + if (__pyx_type_7netCDF4_8_netCDF4_Group.tp_weaklistoffset == 0) __pyx_type_7netCDF4_8_netCDF4_Group.tp_weaklistoffset = offsetof(struct __pyx_obj_7netCDF4_8_netCDF4_Group, __pyx_base.__weakref__); + __pyx_ptype_7netCDF4_8_netCDF4_Group = &__pyx_type_7netCDF4_8_netCDF4_Group; + if (PyType_Ready(&__pyx_type_7netCDF4_8_netCDF4_Dimension) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2188; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_type_7netCDF4_8_netCDF4_Dimension.tp_print = 0; + if (PyObject_SetAttrString(__pyx_m, "Dimension", (PyObject *)&__pyx_type_7netCDF4_8_netCDF4_Dimension) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2188; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_ptype_7netCDF4_8_netCDF4_Dimension = &__pyx_type_7netCDF4_8_netCDF4_Dimension; + if (PyType_Ready(&__pyx_type_7netCDF4_8_netCDF4_Variable) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2332; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_type_7netCDF4_8_netCDF4_Variable.tp_print = 0; + if (PyObject_SetAttrString(__pyx_m, "Variable", (PyObject *)&__pyx_type_7netCDF4_8_netCDF4_Variable) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2332; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_ptype_7netCDF4_8_netCDF4_Variable = &__pyx_type_7netCDF4_8_netCDF4_Variable; + if (PyType_Ready(&__pyx_type_7netCDF4_8_netCDF4_CompoundType) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3860; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_type_7netCDF4_8_netCDF4_CompoundType.tp_print = 0; + if (PyObject_SetAttrString(__pyx_m, "CompoundType", (PyObject *)&__pyx_type_7netCDF4_8_netCDF4_CompoundType) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 3860; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_ptype_7netCDF4_8_netCDF4_CompoundType = &__pyx_type_7netCDF4_8_netCDF4_CompoundType; + if (PyType_Ready(&__pyx_type_7netCDF4_8_netCDF4_VLType) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4090; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_type_7netCDF4_8_netCDF4_VLType.tp_print = 0; + if (PyObject_SetAttrString(__pyx_m, "VLType", (PyObject *)&__pyx_type_7netCDF4_8_netCDF4_VLType) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4090; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_ptype_7netCDF4_8_netCDF4_VLType = &__pyx_type_7netCDF4_8_netCDF4_VLType; /*--- Type import code ---*/ /*--- Variable import code ---*/ /*--- Function import code ---*/ /*--- Execution code ---*/ - /* "netCDF4.pyx":765 + /* "netCDF4/_netCDF4.pyx":765 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE.""" * __test__ = None # <<<<<<<<<<<<<< @@ -63534,7 +63534,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, Py_None) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 765; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":766 + /* "netCDF4/_netCDF4.pyx":766 * PERFORMANCE OF THIS SOFTWARE.""" * __test__ = None * del __test__ # hack so epydoc doesn't show __test__ # <<<<<<<<<<<<<< @@ -63543,11 +63543,11 @@ PyMODINIT_FUNC PyInit_netCDF4(void) */ if (__Pyx_PyObject_DelAttrStr(__pyx_m, __pyx_n_s_test) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 766; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":771 + /* "netCDF4/_netCDF4.pyx":771 * * # pure python utilities - * from netCDF4_utils import _StartCountStride, _quantize, _find_dim, _walk_grps, \ # <<<<<<<<<<<<<< - * _out_array_shape, _sortbylist, _tostr + * from .utils import (_StartCountStride, _quantize, _find_dim, _walk_grps, # <<<<<<<<<<<<<< + * _out_array_shape, _sortbylist, _tostr) * # try to use built-in ordered dict in python >= 2.7 */ __pyx_t_1 = PyList_New(7); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 771; __pyx_clineno = __LINE__; goto __pyx_L1_error;} @@ -63573,7 +63573,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __Pyx_INCREF(__pyx_n_s_tostr); PyList_SET_ITEM(__pyx_t_1, 6, __pyx_n_s_tostr); __Pyx_GIVEREF(__pyx_n_s_tostr); - __pyx_t_2 = __Pyx_Import(__pyx_n_s_netCDF4_utils, __pyx_t_1, -1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 771; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = __Pyx_Import(__pyx_n_s_utils, __pyx_t_1, 1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 771; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_StartCountStride); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 771; __pyx_clineno = __LINE__; goto __pyx_L1_error;} @@ -63606,8 +63606,8 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":774 - * _out_array_shape, _sortbylist, _tostr + /* "netCDF4/_netCDF4.pyx":774 + * _out_array_shape, _sortbylist, _tostr) * # try to use built-in ordered dict in python >= 2.7 * try: # <<<<<<<<<<<<<< * from collections import OrderedDict @@ -63620,7 +63620,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __Pyx_XGOTREF(__pyx_t_5); /*try:*/ { - /* "netCDF4.pyx":775 + /* "netCDF4/_netCDF4.pyx":775 * # try to use built-in ordered dict in python >= 2.7 * try: * from collections import OrderedDict # <<<<<<<<<<<<<< @@ -63649,7 +63649,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":776 + /* "netCDF4/_netCDF4.pyx":776 * try: * from collections import OrderedDict * except ImportError: # or else use drop-in substitute # <<<<<<<<<<<<<< @@ -63658,13 +63658,13 @@ PyMODINIT_FUNC PyInit_netCDF4(void) */ __pyx_t_6 = PyErr_ExceptionMatches(__pyx_builtin_ImportError); if (__pyx_t_6) { - __Pyx_AddTraceback("netCDF4", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_2, &__pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 776; __pyx_clineno = __LINE__; goto __pyx_L4_except_error;} __Pyx_GOTREF(__pyx_t_1); __Pyx_GOTREF(__pyx_t_2); __Pyx_GOTREF(__pyx_t_7); - /* "netCDF4.pyx":777 + /* "netCDF4/_netCDF4.pyx":777 * from collections import OrderedDict * except ImportError: # or else use drop-in substitute * try: # <<<<<<<<<<<<<< @@ -63678,7 +63678,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __Pyx_XGOTREF(__pyx_t_10); /*try:*/ { - /* "netCDF4.pyx":778 + /* "netCDF4/_netCDF4.pyx":778 * except ImportError: # or else use drop-in substitute * try: * from ordereddict import OrderedDict # <<<<<<<<<<<<<< @@ -63707,7 +63707,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; - /* "netCDF4.pyx":779 + /* "netCDF4/_netCDF4.pyx":779 * try: * from ordereddict import OrderedDict * except ImportError: # <<<<<<<<<<<<<< @@ -63716,13 +63716,13 @@ PyMODINIT_FUNC PyInit_netCDF4(void) */ __pyx_t_6 = PyErr_ExceptionMatches(__pyx_builtin_ImportError); if (__pyx_t_6) { - __Pyx_AddTraceback("netCDF4", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("netCDF4._netCDF4", __pyx_clineno, __pyx_lineno, __pyx_filename); if (__Pyx_GetException(&__pyx_t_12, &__pyx_t_11, &__pyx_t_13) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 779; __pyx_clineno = __LINE__; goto __pyx_L14_except_error;} __Pyx_GOTREF(__pyx_t_12); __Pyx_GOTREF(__pyx_t_11); __Pyx_GOTREF(__pyx_t_13); - /* "netCDF4.pyx":780 + /* "netCDF4/_netCDF4.pyx":780 * from ordereddict import OrderedDict * except ImportError: * raise ImportError('please install ordereddict (https://pypi.python.org/pypi/ordereddict)') # <<<<<<<<<<<<<< @@ -63764,7 +63764,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __pyx_L9_try_end:; } - /* "netCDF4.pyx":781 + /* "netCDF4/_netCDF4.pyx":781 * except ImportError: * raise ImportError('please install ordereddict (https://pypi.python.org/pypi/ordereddict)') * try: # <<<<<<<<<<<<<< @@ -63778,7 +63778,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __Pyx_XGOTREF(__pyx_t_3); /*try:*/ { - /* "netCDF4.pyx":782 + /* "netCDF4/_netCDF4.pyx":782 * raise ImportError('please install ordereddict (https://pypi.python.org/pypi/ordereddict)') * try: * from itertools import izip as zip # <<<<<<<<<<<<<< @@ -63812,7 +63812,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":783 + /* "netCDF4/_netCDF4.pyx":783 * try: * from itertools import izip as zip * except ImportError: # <<<<<<<<<<<<<< @@ -63839,7 +63839,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __pyx_L29_try_end:; } - /* "netCDF4.pyx":787 + /* "netCDF4/_netCDF4.pyx":787 * pass * * __version__ = "1.1.8" # <<<<<<<<<<<<<< @@ -63848,7 +63848,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_version, __pyx_kp_s_1_1_8) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 787; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":790 + /* "netCDF4/_netCDF4.pyx":790 * * # Initialize numpy * import posixpath # <<<<<<<<<<<<<< @@ -63860,7 +63860,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_d, __pyx_n_s_posixpath, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 790; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":791 + /* "netCDF4/_netCDF4.pyx":791 * # Initialize numpy * import posixpath * import netcdftime # <<<<<<<<<<<<<< @@ -63872,7 +63872,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_d, __pyx_n_s_netcdftime, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 791; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":792 + /* "netCDF4/_netCDF4.pyx":792 * import posixpath * import netcdftime * import numpy # <<<<<<<<<<<<<< @@ -63884,7 +63884,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_d, __pyx_n_s_numpy, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 792; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":793 + /* "netCDF4/_netCDF4.pyx":793 * import netcdftime * import numpy * import weakref # <<<<<<<<<<<<<< @@ -63896,7 +63896,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_d, __pyx_n_s_weakref, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 793; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":794 + /* "netCDF4/_netCDF4.pyx":794 * import numpy * import weakref * import sys # <<<<<<<<<<<<<< @@ -63908,7 +63908,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_d, __pyx_n_s_sys, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 794; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":795 + /* "netCDF4/_netCDF4.pyx":795 * import weakref * import sys * import warnings # <<<<<<<<<<<<<< @@ -63920,7 +63920,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_d, __pyx_n_s_warnings, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":796 + /* "netCDF4/_netCDF4.pyx":796 * import sys * import warnings * from glob import glob # <<<<<<<<<<<<<< @@ -63941,7 +63941,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":797 + /* "netCDF4/_netCDF4.pyx":797 * import warnings * from glob import glob * from numpy import ma # <<<<<<<<<<<<<< @@ -63962,7 +63962,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":798 + /* "netCDF4/_netCDF4.pyx":798 * from glob import glob * from numpy import ma * from numpy import __version__ as _npversion # <<<<<<<<<<<<<< @@ -63983,7 +63983,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":799 + /* "netCDF4/_netCDF4.pyx":799 * from numpy import ma * from numpy import __version__ as _npversion * if _npversion.split('.')[0] < '1': # <<<<<<<<<<<<<< @@ -64007,7 +64007,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; if (__pyx_t_15) { - /* "netCDF4.pyx":800 + /* "netCDF4/_netCDF4.pyx":800 * from numpy import __version__ as _npversion * if _npversion.split('.')[0] < '1': * raise ImportError('requires numpy version 1.0rc1 or later') # <<<<<<<<<<<<<< @@ -64021,7 +64021,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 800; __pyx_clineno = __LINE__; goto __pyx_L1_error;} } - /* "netCDF4.pyx":801 + /* "netCDF4/_netCDF4.pyx":801 * if _npversion.split('.')[0] < '1': * raise ImportError('requires numpy version 1.0rc1 or later') * import_array() # <<<<<<<<<<<<<< @@ -64030,7 +64030,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) */ import_array(); - /* "utils.pyx":1 + /* "include/utils.pyx":1 * from datetime import timedelta, datetime, MINYEAR # <<<<<<<<<<<<<< * from netcdftime import _parse_date, microsec_units, millisec_units,\ * sec_units, min_units, hr_units, day_units @@ -64063,7 +64063,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":2 + /* "include/utils.pyx":2 * from datetime import timedelta, datetime, MINYEAR * from netcdftime import _parse_date, microsec_units, millisec_units,\ # <<<<<<<<<<<<<< * sec_units, min_units, hr_units, day_units @@ -64125,7 +64125,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "utils.pyx":6 + /* "include/utils.pyx":6 * * # start of the gregorian calendar * gregorian = datetime(1582,10,15) # <<<<<<<<<<<<<< @@ -64140,103 +64140,103 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_d, __pyx_n_s_gregorian, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 6; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":8 + /* "include/utils.pyx":8 * gregorian = datetime(1582,10,15) * * def _dateparse(timestr): # <<<<<<<<<<<<<< * """parse a string of the form time-units since yyyy-mm-dd hh:mm:ss, * return a datetime instance""" */ - __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_7netCDF4_1_dateparse, NULL, __pyx_n_s_netCDF4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_1_dateparse, NULL, __pyx_n_s_netCDF4__netCDF4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_dateparse, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":29 + /* "include/utils.pyx":29 * # utility functions (visible from python). * * def stringtoarr(string,NUMCHARS,dtype='S'): # <<<<<<<<<<<<<< * """ * stringtoarr(a, NUMCHARS,dtype='S') */ - __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_7netCDF4_3stringtoarr, NULL, __pyx_n_s_netCDF4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_3stringtoarr, NULL, __pyx_n_s_netCDF4__netCDF4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_stringtoarr, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 29; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":52 + /* "include/utils.pyx":52 * return arr * * def stringtochar(a): # <<<<<<<<<<<<<< * """ * stringtochar(a) */ - __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_7netCDF4_5stringtochar, NULL, __pyx_n_s_netCDF4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_5stringtochar, NULL, __pyx_n_s_netCDF4__netCDF4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_stringtochar, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":71 + /* "include/utils.pyx":71 * return b * * def chartostring(b): # <<<<<<<<<<<<<< * """ * chartostring(b) */ - __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_7netCDF4_7chartostring, NULL, __pyx_n_s_netCDF4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 71; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_7chartostring, NULL, __pyx_n_s_netCDF4__netCDF4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 71; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_chartostring, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 71; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":92 + /* "include/utils.pyx":92 * return a * * def date2num(dates,units,calendar='standard'): # <<<<<<<<<<<<<< * """ * date2num(dates,units,calendar='standard') */ - __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_7netCDF4_9date2num, NULL, __pyx_n_s_netCDF4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 92; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_9date2num, NULL, __pyx_n_s_netCDF4__netCDF4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 92; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_date2num, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 92; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":171 + /* "include/utils.pyx":171 * return cdftime.date2num(dates) * * def num2date(times,units,calendar='standard'): # <<<<<<<<<<<<<< * """ * num2date(times,units,calendar='standard') */ - __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_7netCDF4_11num2date, NULL, __pyx_n_s_netCDF4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 171; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_11num2date, NULL, __pyx_n_s_netCDF4__netCDF4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 171; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_num2date, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 171; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":266 + /* "include/utils.pyx":266 * return cdftime.num2date(times) * * def date2index(dates, nctime, calendar=None, select='exact'): # <<<<<<<<<<<<<< * """ * date2index(dates, nctime, calendar=None, select='exact') */ - __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_7netCDF4_13date2index, NULL, __pyx_n_s_netCDF4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 266; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_13date2index, NULL, __pyx_n_s_netCDF4__netCDF4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 266; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_date2index, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 266; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":308 + /* "include/utils.pyx":308 * return netcdftime.date2index(dates, nctime, calendar, select) * * def getlibversion(): # <<<<<<<<<<<<<< * """ * getlibversion() */ - __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_7netCDF4_15getlibversion, NULL, __pyx_n_s_netCDF4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_15getlibversion, NULL, __pyx_n_s_netCDF4__netCDF4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_getlibversion, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":317 + /* "include/utils.pyx":317 * return (nc_inq_libvers()).decode('ascii') * * class MFDataset(Dataset): # <<<<<<<<<<<<<< @@ -64245,22 +64245,22 @@ PyMODINIT_FUNC PyInit_netCDF4(void) */ __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 317; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_Dataset))); - PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_Dataset))); - __Pyx_GIVEREF(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_Dataset))); + __Pyx_INCREF(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_Dataset))); + PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_Dataset))); + __Pyx_GIVEREF(((PyObject *)((PyObject*)__pyx_ptype_7netCDF4_8_netCDF4_Dataset))); __pyx_t_7 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 317; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); - __pyx_t_1 = __Pyx_Py3MetaclassPrepare(__pyx_t_7, __pyx_t_2, __pyx_n_s_MFDataset, __pyx_n_s_MFDataset, (PyObject *) NULL, __pyx_n_s_netCDF4, __pyx_kp_s_MFDataset_self_files_check_Fals); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 317; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_Py3MetaclassPrepare(__pyx_t_7, __pyx_t_2, __pyx_n_s_MFDataset, __pyx_n_s_MFDataset, (PyObject *) NULL, __pyx_n_s_netCDF4__netCDF4, __pyx_kp_s_MFDataset_self_files_check_Fals); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 317; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - /* "utils.pyx":349 + /* "include/utils.pyx":349 * """ * * def __init__(self, files, check=False, aggdim=None, exclude=[]): # <<<<<<<<<<<<<< * """ * Open a Dataset spanning multiple files, making it look as if it was a */ - __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_9MFDataset_1__init__, 0, __pyx_n_s_MFDataset___init, NULL, __pyx_n_s_netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__136)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 349; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_9MFDataset_1__init__, 0, __pyx_n_s_MFDataset___init, NULL, __pyx_n_s_netCDF4__netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__136)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 349; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_13); if (!__Pyx_CyFunction_InitDefaults(__pyx_t_13, sizeof(__pyx_defaults), 1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 349; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __pyx_t_11 = PyList_New(0); if (unlikely(!__pyx_t_11)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 349; __pyx_clineno = __LINE__; goto __pyx_L1_error;} @@ -64268,71 +64268,71 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __Pyx_CyFunction_Defaults(__pyx_defaults, __pyx_t_13)->__pyx_arg_exclude = __pyx_t_11; __Pyx_GIVEREF(__pyx_t_11); __pyx_t_11 = 0; - __Pyx_CyFunction_SetDefaultsGetter(__pyx_t_13, __pyx_pf_7netCDF4_9MFDataset_12__defaults__); + __Pyx_CyFunction_SetDefaultsGetter(__pyx_t_13, __pyx_pf_7netCDF4_8_netCDF4_9MFDataset_12__defaults__); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_init, __pyx_t_13) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 349; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; - /* "utils.pyx":526 + /* "include/utils.pyx":526 * self._path = '/' * * def __setattr__(self, name, value): # <<<<<<<<<<<<<< * """override base class attribute creation""" * self.__dict__[name] = value */ - __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_9MFDataset_3__setattr__, 0, __pyx_n_s_MFDataset___setattr, NULL, __pyx_n_s_netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__138)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_9MFDataset_3__setattr__, 0, __pyx_n_s_MFDataset___setattr, NULL, __pyx_n_s_netCDF4__netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__138)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_13); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_setattr, __pyx_t_13) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; - /* "utils.pyx":530 + /* "include/utils.pyx":530 * self.__dict__[name] = value * * def __getattribute__(self, name): # <<<<<<<<<<<<<< * if name in ['variables','dimensions','file_format','groups',\ * 'data_model','disk_format','path']: */ - __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_9MFDataset_5__getattribute__, 0, __pyx_n_s_MFDataset___getattribute, NULL, __pyx_n_s_netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__140)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_9MFDataset_5__getattribute__, 0, __pyx_n_s_MFDataset___getattribute, NULL, __pyx_n_s_netCDF4__netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__140)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_13); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_getattribute, __pyx_t_13) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; - /* "utils.pyx":543 + /* "include/utils.pyx":543 * return Dataset.__getattribute__(self, name) * * def ncattrs(self): # <<<<<<<<<<<<<< * return self._cdf[0].__dict__.keys() * */ - __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_9MFDataset_7ncattrs, 0, __pyx_n_s_MFDataset_ncattrs, NULL, __pyx_n_s_netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__142)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_9MFDataset_7ncattrs, 0, __pyx_n_s_MFDataset_ncattrs, NULL, __pyx_n_s_netCDF4__netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__142)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_13); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_ncattrs, __pyx_t_13) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; - /* "utils.pyx":546 + /* "include/utils.pyx":546 * return self._cdf[0].__dict__.keys() * * def close(self): # <<<<<<<<<<<<<< * for dset in self._cdf: * dset.close() */ - __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_9MFDataset_9close, 0, __pyx_n_s_MFDataset_close, NULL, __pyx_n_s_netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__144)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 546; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_9MFDataset_9close, 0, __pyx_n_s_MFDataset_close, NULL, __pyx_n_s_netCDF4__netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__144)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 546; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_13); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_close, __pyx_t_13) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 546; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; - /* "utils.pyx":550 + /* "include/utils.pyx":550 * dset.close() * * def __repr__(self): # <<<<<<<<<<<<<< * ncdump = ['%r\n' % type(self)] * dimnames = tuple([str(dimname) for dimname in self.dimensions.keys()]) */ - __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_9MFDataset_11__repr__, 0, __pyx_n_s_MFDataset___repr, NULL, __pyx_n_s_netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__146)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 550; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_9MFDataset_11__repr__, 0, __pyx_n_s_MFDataset___repr, NULL, __pyx_n_s_netCDF4__netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__146)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 550; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_13); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_repr, __pyx_t_13) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 550; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; - /* "utils.pyx":317 + /* "include/utils.pyx":317 * return (nc_inq_libvers()).decode('ascii') * * class MFDataset(Dataset): # <<<<<<<<<<<<<< @@ -64347,7 +64347,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":568 + /* "include/utils.pyx":568 * return ''.join(ncdump) * * class _Dimension(object): # <<<<<<<<<<<<<< @@ -64361,58 +64361,58 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __Pyx_GIVEREF(__pyx_builtin_object); __pyx_t_7 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); - __pyx_t_1 = __Pyx_Py3MetaclassPrepare(__pyx_t_7, __pyx_t_2, __pyx_n_s_Dimension, __pyx_n_s_Dimension, (PyObject *) NULL, __pyx_n_s_netCDF4, (PyObject *) NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_Py3MetaclassPrepare(__pyx_t_7, __pyx_t_2, __pyx_n_s_Dimension, __pyx_n_s_Dimension, (PyObject *) NULL, __pyx_n_s_netCDF4__netCDF4, (PyObject *) NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - /* "utils.pyx":569 + /* "include/utils.pyx":569 * * class _Dimension(object): * def __init__(self, dimname, dim, dimlens, dimtotlen): # <<<<<<<<<<<<<< * self.dimlens = dimlens * self.dimtotlen = dimtotlen */ - __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_10_Dimension_1__init__, 0, __pyx_n_s_Dimension___init, NULL, __pyx_n_s_netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__148)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_10_Dimension_1__init__, 0, __pyx_n_s_Dimension___init, NULL, __pyx_n_s_netCDF4__netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__148)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_13); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_init, __pyx_t_13) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; - /* "utils.pyx":573 + /* "include/utils.pyx":573 * self.dimtotlen = dimtotlen * self._name = dimname * def __len__(self): # <<<<<<<<<<<<<< * return self.dimtotlen * def isunlimited(self): */ - __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_10_Dimension_3__len__, 0, __pyx_n_s_Dimension___len, NULL, __pyx_n_s_netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__150)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_10_Dimension_3__len__, 0, __pyx_n_s_Dimension___len, NULL, __pyx_n_s_netCDF4__netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__150)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_13); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_len, __pyx_t_13) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 573; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; - /* "utils.pyx":575 + /* "include/utils.pyx":575 * def __len__(self): * return self.dimtotlen * def isunlimited(self): # <<<<<<<<<<<<<< * return True * def __repr__(self): */ - __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_10_Dimension_5isunlimited, 0, __pyx_n_s_Dimension_isunlimited, NULL, __pyx_n_s_netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__152)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_10_Dimension_5isunlimited, 0, __pyx_n_s_Dimension_isunlimited, NULL, __pyx_n_s_netCDF4__netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__152)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_13); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_isunlimited, __pyx_t_13) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; - /* "utils.pyx":577 + /* "include/utils.pyx":577 * def isunlimited(self): * return True * def __repr__(self): # <<<<<<<<<<<<<< * if self.isunlimited(): * return repr(type(self))+" (unlimited): name = '%s', size = %s\n" % (self._name,len(self)) */ - __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_10_Dimension_7__repr__, 0, __pyx_n_s_Dimension___repr, NULL, __pyx_n_s_netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__154)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_10_Dimension_7__repr__, 0, __pyx_n_s_Dimension___repr, NULL, __pyx_n_s_netCDF4__netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__154)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_13); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_repr, __pyx_t_13) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; - /* "utils.pyx":568 + /* "include/utils.pyx":568 * return ''.join(ncdump) * * class _Dimension(object): # <<<<<<<<<<<<<< @@ -64427,7 +64427,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":583 + /* "include/utils.pyx":583 * return repr(type(self))+": name = '%s', size = %s\n" % (self._name,len(self)) * * class _Variable(object): # <<<<<<<<<<<<<< @@ -64441,118 +64441,118 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __Pyx_GIVEREF(__pyx_builtin_object); __pyx_t_7 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); - __pyx_t_1 = __Pyx_Py3MetaclassPrepare(__pyx_t_7, __pyx_t_2, __pyx_n_s_Variable, __pyx_n_s_Variable, (PyObject *) NULL, __pyx_n_s_netCDF4, (PyObject *) NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_Py3MetaclassPrepare(__pyx_t_7, __pyx_t_2, __pyx_n_s_Variable, __pyx_n_s_Variable, (PyObject *) NULL, __pyx_n_s_netCDF4__netCDF4, (PyObject *) NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - /* "utils.pyx":584 + /* "include/utils.pyx":584 * * class _Variable(object): * def __init__(self, dset, varname, var, recdimname): # <<<<<<<<<<<<<< * self.dimensions = var.dimensions * self._dset = dset */ - __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_9_Variable_1__init__, 0, __pyx_n_s_Variable___init, NULL, __pyx_n_s_netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__156)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_9_Variable_1__init__, 0, __pyx_n_s_Variable___init, NULL, __pyx_n_s_netCDF4__netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__156)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_13); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_init, __pyx_t_13) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; - /* "utils.pyx":597 + /* "include/utils.pyx":597 * for name, value in var.__dict__.items(): * self.__dict__[name] = value * def typecode(self): # <<<<<<<<<<<<<< * return self.dtype * def ncattrs(self): */ - __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_9_Variable_3typecode, 0, __pyx_n_s_Variable_typecode, NULL, __pyx_n_s_netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__158)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_9_Variable_3typecode, 0, __pyx_n_s_Variable_typecode, NULL, __pyx_n_s_netCDF4__netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__158)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_13); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_typecode, __pyx_t_13) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; - /* "utils.pyx":599 + /* "include/utils.pyx":599 * def typecode(self): * return self.dtype * def ncattrs(self): # <<<<<<<<<<<<<< * return self._mastervar.__dict__.keys() * def __getattr__(self,name): */ - __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_9_Variable_5ncattrs, 0, __pyx_n_s_Variable_ncattrs, NULL, __pyx_n_s_netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__160)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_9_Variable_5ncattrs, 0, __pyx_n_s_Variable_ncattrs, NULL, __pyx_n_s_netCDF4__netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__160)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_13); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_ncattrs, __pyx_t_13) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; - /* "utils.pyx":601 + /* "include/utils.pyx":601 * def ncattrs(self): * return self._mastervar.__dict__.keys() * def __getattr__(self,name): # <<<<<<<<<<<<<< * if name == 'shape': return self._shape() * if name == 'ndim': return len(self._shape()) */ - __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_9_Variable_7__getattr__, 0, __pyx_n_s_Variable___getattr, NULL, __pyx_n_s_netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__162)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_9_Variable_7__getattr__, 0, __pyx_n_s_Variable___getattr, NULL, __pyx_n_s_netCDF4__netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__162)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_13); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_getattr, __pyx_t_13) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 601; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; - /* "utils.pyx":608 + /* "include/utils.pyx":608 * except: * raise AttributeError(name) * def __repr__(self): # <<<<<<<<<<<<<< * ncdump_var = ['%r\n' % type(self)] * dimnames = tuple([str(dimname) for dimname in self.dimensions]) */ - __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_9_Variable_9__repr__, 0, __pyx_n_s_Variable___repr, NULL, __pyx_n_s_netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__164)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 608; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_9_Variable_9__repr__, 0, __pyx_n_s_Variable___repr, NULL, __pyx_n_s_netCDF4__netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__164)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 608; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_13); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_repr, __pyx_t_13) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 608; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; - /* "utils.pyx":624 + /* "include/utils.pyx":624 * ncdump_var.append('current size = %s\n' % repr(self.shape)) * return ''.join(ncdump_var) * def __len__(self): # <<<<<<<<<<<<<< * return self._shape()[0] * def _shape(self): */ - __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_9_Variable_11__len__, 0, __pyx_n_s_Variable___len, NULL, __pyx_n_s_netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__166)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_9_Variable_11__len__, 0, __pyx_n_s_Variable___len, NULL, __pyx_n_s_netCDF4__netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__166)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_13); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_len, __pyx_t_13) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; - /* "utils.pyx":626 + /* "include/utils.pyx":626 * def __len__(self): * return self._shape()[0] * def _shape(self): # <<<<<<<<<<<<<< * recdimlen = len(self._dset.dimensions[self._recdimname]) * return (recdimlen,) + self._mastervar.shape[1:] */ - __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_9_Variable_13_shape, 0, __pyx_n_s_Variable__shape, NULL, __pyx_n_s_netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__168)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 626; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_9_Variable_13_shape, 0, __pyx_n_s_Variable__shape, NULL, __pyx_n_s_netCDF4__netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__168)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 626; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_13); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_shape_2, __pyx_t_13) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 626; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; - /* "utils.pyx":629 + /* "include/utils.pyx":629 * recdimlen = len(self._dset.dimensions[self._recdimname]) * return (recdimlen,) + self._mastervar.shape[1:] * def set_auto_maskandscale(self,val): # <<<<<<<<<<<<<< * for v in self._recVar: * v.set_auto_maskandscale(val) */ - __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_9_Variable_15set_auto_maskandscale, 0, __pyx_n_s_Variable_set_auto_maskandscale, NULL, __pyx_n_s_netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__170)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_9_Variable_15set_auto_maskandscale, 0, __pyx_n_s_Variable_set_auto_maskandscale, NULL, __pyx_n_s_netCDF4__netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__170)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_13); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_set_auto_maskandscale, __pyx_t_13) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; - /* "utils.pyx":632 + /* "include/utils.pyx":632 * for v in self._recVar: * v.set_auto_maskandscale(val) * def __getitem__(self, elem): # <<<<<<<<<<<<<< * """Get records from a concatenated set of variables.""" * */ - __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_9_Variable_17__getitem__, 0, __pyx_n_s_Variable___getitem, NULL, __pyx_n_s_netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__172)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_9_Variable_17__getitem__, 0, __pyx_n_s_Variable___getitem, NULL, __pyx_n_s_netCDF4__netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__172)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_13); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_getitem, __pyx_t_13) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; - /* "utils.pyx":583 + /* "include/utils.pyx":583 * return repr(type(self))+": name = '%s', size = %s\n" % (self._name,len(self)) * * class _Variable(object): # <<<<<<<<<<<<<< @@ -64567,7 +64567,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "utils.pyx":736 + /* "include/utils.pyx":736 * * * class MFTime(_Variable): # <<<<<<<<<<<<<< @@ -64583,34 +64583,34 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __pyx_t_2 = 0; __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_t_7); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 736; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_7, __pyx_n_s_MFTime, __pyx_n_s_MFTime, (PyObject *) NULL, __pyx_n_s_netCDF4, __pyx_kp_s_MFTime_self_time_units_None_Cla); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 736; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_1 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_7, __pyx_n_s_MFTime, __pyx_n_s_MFTime, (PyObject *) NULL, __pyx_n_s_netCDF4__netCDF4, __pyx_kp_s_MFTime_self_time_units_None_Cla); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 736; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_1); - /* "utils.pyx":772 + /* "include/utils.pyx":772 * """ * * def __init__(self, time, units=None): # <<<<<<<<<<<<<< * """ * Create a time Variable with units consistent across a multifile */ - __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_6MFTime_1__init__, 0, __pyx_n_s_MFTime___init, NULL, __pyx_n_s_netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__174)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 772; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_6MFTime_1__init__, 0, __pyx_n_s_MFTime___init, NULL, __pyx_n_s_netCDF4__netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__174)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 772; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_13); __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_13, __pyx_tuple__175); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_init, __pyx_t_13) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 772; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; - /* "utils.pyx":818 + /* "include/utils.pyx":818 * * * def __getitem__(self, elem): # <<<<<<<<<<<<<< * return self.__time[elem] + self.__delta[elem] */ - __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_6MFTime_3__getitem__, 0, __pyx_n_s_MFTime___getitem, NULL, __pyx_n_s_netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__177)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 818; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_6MFTime_3__getitem__, 0, __pyx_n_s_MFTime___getitem, NULL, __pyx_n_s_netCDF4__netCDF4, __pyx_d, ((PyObject *)__pyx_codeobj__177)); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 818; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_13); if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_getitem, __pyx_t_13) < 0) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 818; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; - /* "utils.pyx":736 + /* "include/utils.pyx":736 * * * class MFTime(_Variable): # <<<<<<<<<<<<<< @@ -64625,19 +64625,19 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":811 + /* "netCDF4/_netCDF4.pyx":811 * # check for required version of netcdf-4 and hdf5. * * def _gethdf5libversion(): # <<<<<<<<<<<<<< * majorvers = H5_VERS_MAJOR * minorvers = H5_VERS_MINOR */ - __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_7netCDF4_17_gethdf5libversion, NULL, __pyx_n_s_netCDF4); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 811; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_7 = PyCFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_17_gethdf5libversion, NULL, __pyx_n_s_netCDF4__netCDF4); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 811; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_7); if (PyDict_SetItem(__pyx_d, __pyx_n_s_gethdf5libversion, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 811; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":821 + /* "netCDF4/_netCDF4.pyx":821 * return '%d.%d.%d-%s' % (majorvers,minorvers,releasevers,patchstring) * * __netcdf4libversion__ = getlibversion().split()[0] # <<<<<<<<<<<<<< @@ -64691,7 +64691,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_d, __pyx_n_s_netcdf4libversion, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 821; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":822 + /* "netCDF4/_netCDF4.pyx":822 * * __netcdf4libversion__ = getlibversion().split()[0] * __hdf5libversion__ = _gethdf5libversion() # <<<<<<<<<<<<<< @@ -64721,7 +64721,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_d, __pyx_n_s_hdf5libversion, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 822; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":823 + /* "netCDF4/_netCDF4.pyx":823 * __netcdf4libversion__ = getlibversion().split()[0] * __hdf5libversion__ = _gethdf5libversion() * __has_rename_grp__ = HAS_RENAME_GRP # <<<<<<<<<<<<<< @@ -64730,7 +64730,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_has_rename_grp, __pyx_int_0) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 823; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":824 + /* "netCDF4/_netCDF4.pyx":824 * __hdf5libversion__ = _gethdf5libversion() * __has_rename_grp__ = HAS_RENAME_GRP * __has_nc_inq_path__ = HAS_NC_INQ_PATH # <<<<<<<<<<<<<< @@ -64739,7 +64739,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_has_nc_inq_path, __pyx_int_0) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 824; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":825 + /* "netCDF4/_netCDF4.pyx":825 * __has_rename_grp__ = HAS_RENAME_GRP * __has_nc_inq_path__ = HAS_NC_INQ_PATH * __has_nc_inq_format_extended__ = HAS_NC_INQ_FORMAT_EXTENDED # <<<<<<<<<<<<<< @@ -64748,7 +64748,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_has_nc_inq_format_extended, __pyx_int_0) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 825; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":830 + /* "netCDF4/_netCDF4.pyx":830 * # numpy data type <--> netCDF 4 data type mapping. * * _nptonctype = {'U1' : NC_CHAR, # <<<<<<<<<<<<<< @@ -64762,7 +64762,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_U1, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":831 + /* "netCDF4/_netCDF4.pyx":831 * * _nptonctype = {'U1' : NC_CHAR, * 'S1' : NC_CHAR, # <<<<<<<<<<<<<< @@ -64774,7 +64774,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_S1, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":832 + /* "netCDF4/_netCDF4.pyx":832 * _nptonctype = {'U1' : NC_CHAR, * 'S1' : NC_CHAR, * 'i1' : NC_BYTE, # <<<<<<<<<<<<<< @@ -64786,7 +64786,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_i1, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":833 + /* "netCDF4/_netCDF4.pyx":833 * 'S1' : NC_CHAR, * 'i1' : NC_BYTE, * 'u1' : NC_UBYTE, # <<<<<<<<<<<<<< @@ -64798,7 +64798,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_u1, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":834 + /* "netCDF4/_netCDF4.pyx":834 * 'i1' : NC_BYTE, * 'u1' : NC_UBYTE, * 'i2' : NC_SHORT, # <<<<<<<<<<<<<< @@ -64810,7 +64810,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_i2, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":835 + /* "netCDF4/_netCDF4.pyx":835 * 'u1' : NC_UBYTE, * 'i2' : NC_SHORT, * 'u2' : NC_USHORT, # <<<<<<<<<<<<<< @@ -64822,7 +64822,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_u2, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":836 + /* "netCDF4/_netCDF4.pyx":836 * 'i2' : NC_SHORT, * 'u2' : NC_USHORT, * 'i4' : NC_INT, # <<<<<<<<<<<<<< @@ -64834,7 +64834,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_i4, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":837 + /* "netCDF4/_netCDF4.pyx":837 * 'u2' : NC_USHORT, * 'i4' : NC_INT, * 'u4' : NC_UINT, # <<<<<<<<<<<<<< @@ -64846,7 +64846,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_u4, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":838 + /* "netCDF4/_netCDF4.pyx":838 * 'i4' : NC_INT, * 'u4' : NC_UINT, * 'i8' : NC_INT64, # <<<<<<<<<<<<<< @@ -64858,7 +64858,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_i8, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":839 + /* "netCDF4/_netCDF4.pyx":839 * 'u4' : NC_UINT, * 'i8' : NC_INT64, * 'u8' : NC_UINT64, # <<<<<<<<<<<<<< @@ -64870,7 +64870,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_u8, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":840 + /* "netCDF4/_netCDF4.pyx":840 * 'i8' : NC_INT64, * 'u8' : NC_UINT64, * 'f4' : NC_FLOAT, # <<<<<<<<<<<<<< @@ -64882,7 +64882,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_f4, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":841 + /* "netCDF4/_netCDF4.pyx":841 * 'u8' : NC_UINT64, * 'f4' : NC_FLOAT, * 'f8' : NC_DOUBLE} # <<<<<<<<<<<<<< @@ -64896,7 +64896,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_d, __pyx_n_s_nptonctype, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":843 + /* "netCDF4/_netCDF4.pyx":843 * 'f8' : NC_DOUBLE} * * default_fillvals = {#'S1':NC_FILL_CHAR, # <<<<<<<<<<<<<< @@ -64908,7 +64908,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_U1, __pyx_kp_s__25) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 843; __pyx_clineno = __LINE__; goto __pyx_L1_error;} if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_S1, __pyx_kp_s__25) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 843; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":846 + /* "netCDF4/_netCDF4.pyx":846 * 'U1':'\0', * 'S1':'\0', * 'i1':NC_FILL_BYTE, # <<<<<<<<<<<<<< @@ -64920,7 +64920,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_i1, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 843; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":847 + /* "netCDF4/_netCDF4.pyx":847 * 'S1':'\0', * 'i1':NC_FILL_BYTE, * 'u1':NC_FILL_UBYTE, # <<<<<<<<<<<<<< @@ -64932,7 +64932,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_u1, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 843; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":848 + /* "netCDF4/_netCDF4.pyx":848 * 'i1':NC_FILL_BYTE, * 'u1':NC_FILL_UBYTE, * 'i2':NC_FILL_SHORT, # <<<<<<<<<<<<<< @@ -64944,7 +64944,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_i2, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 843; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":849 + /* "netCDF4/_netCDF4.pyx":849 * 'u1':NC_FILL_UBYTE, * 'i2':NC_FILL_SHORT, * 'u2':NC_FILL_USHORT, # <<<<<<<<<<<<<< @@ -64956,7 +64956,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_u2, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 843; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":850 + /* "netCDF4/_netCDF4.pyx":850 * 'i2':NC_FILL_SHORT, * 'u2':NC_FILL_USHORT, * 'i4':NC_FILL_INT, # <<<<<<<<<<<<<< @@ -64968,7 +64968,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_i4, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 843; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":851 + /* "netCDF4/_netCDF4.pyx":851 * 'u2':NC_FILL_USHORT, * 'i4':NC_FILL_INT, * 'u4':NC_FILL_UINT, # <<<<<<<<<<<<<< @@ -64980,7 +64980,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_u4, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 843; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":852 + /* "netCDF4/_netCDF4.pyx":852 * 'i4':NC_FILL_INT, * 'u4':NC_FILL_UINT, * 'i8':NC_FILL_INT64, # <<<<<<<<<<<<<< @@ -64992,7 +64992,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_i8, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 843; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":853 + /* "netCDF4/_netCDF4.pyx":853 * 'u4':NC_FILL_UINT, * 'i8':NC_FILL_INT64, * 'u8':NC_FILL_UINT64, # <<<<<<<<<<<<<< @@ -65004,7 +65004,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_u8, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 843; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":854 + /* "netCDF4/_netCDF4.pyx":854 * 'i8':NC_FILL_INT64, * 'u8':NC_FILL_UINT64, * 'f4':NC_FILL_FLOAT, # <<<<<<<<<<<<<< @@ -65016,7 +65016,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_f4, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 843; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":855 + /* "netCDF4/_netCDF4.pyx":855 * 'u8':NC_FILL_UINT64, * 'f4':NC_FILL_FLOAT, * 'f8':NC_FILL_DOUBLE} # <<<<<<<<<<<<<< @@ -65030,7 +65030,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_d, __pyx_n_s_default_fillvals, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 843; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":857 + /* "netCDF4/_netCDF4.pyx":857 * 'f8':NC_FILL_DOUBLE} * * is_native_little = numpy.dtype('f4').byteorder == '=' # <<<<<<<<<<<<<< @@ -65076,7 +65076,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_d, __pyx_n_s_is_native_big, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 858; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - /* "netCDF4.pyx":862 + /* "netCDF4/_netCDF4.pyx":862 * # hard code this here, instead of importing from netcdf.h * # so it will compile with versions <= 4.2. * NC_DISKLESS = 0x0008 # <<<<<<<<<<<<<< @@ -65085,7 +65085,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_NC_DISKLESS, __pyx_int_8) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 862; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":866 + /* "netCDF4/_netCDF4.pyx":866 * # to the netcdf file, and for converting bytes to strings when reading * # from the netcdf file. * default_encoding = 'utf-8' # <<<<<<<<<<<<<< @@ -65094,7 +65094,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_default_encoding, __pyx_kp_s_utf_8) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 866; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":869 + /* "netCDF4/_netCDF4.pyx":869 * # unicode decode/encode error handling. Replace bad chars with "?" * # can be set to 'strict' or 'ignore'. * unicode_error = 'replace' # <<<<<<<<<<<<<< @@ -65103,7 +65103,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) */ if (PyDict_SetItem(__pyx_d, __pyx_n_s_unicode_error, __pyx_n_s_replace) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 869; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /* "netCDF4.pyx":870 + /* "netCDF4/_netCDF4.pyx":870 * # can be set to 'strict' or 'ignore'. * unicode_error = 'replace' * python3 = sys.version_info[0] > 2 # <<<<<<<<<<<<<< @@ -65123,7 +65123,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_d, __pyx_n_s_python3, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 870; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":872 + /* "netCDF4/_netCDF4.pyx":872 * python3 = sys.version_info[0] > 2 * * _nctonptype = {} # <<<<<<<<<<<<<< @@ -65135,7 +65135,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_d, __pyx_n_s_nctonptype, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 872; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":873 + /* "netCDF4/_netCDF4.pyx":873 * * _nctonptype = {} * for _key,_value in _nptonctype.items(): # <<<<<<<<<<<<<< @@ -65258,7 +65258,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_d, __pyx_n_s_value_2, __pyx_t_13) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 873; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; - /* "netCDF4.pyx":874 + /* "netCDF4/_netCDF4.pyx":874 * _nctonptype = {} * for _key,_value in _nptonctype.items(): * _nctonptype[_value] = _key # <<<<<<<<<<<<<< @@ -65276,7 +65276,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - /* "netCDF4.pyx":873 + /* "netCDF4/_netCDF4.pyx":873 * * _nctonptype = {} * for _key,_value in _nptonctype.items(): # <<<<<<<<<<<<<< @@ -65286,7 +65286,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) } __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":875 + /* "netCDF4/_netCDF4.pyx":875 * for _key,_value in _nptonctype.items(): * _nctonptype[_value] = _key * _supportedtypes = _nptonctype.keys() # <<<<<<<<<<<<<< @@ -65319,7 +65319,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_d, __pyx_n_s_supportedtypes, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 875; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":877 + /* "netCDF4/_netCDF4.pyx":877 * _supportedtypes = _nptonctype.keys() * # make sure NC_CHAR points to S1 * _nctonptype[NC_CHAR]='S1' # <<<<<<<<<<<<<< @@ -65331,19 +65331,19 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (unlikely(__Pyx_SetItemInt(__pyx_t_2, NC_CHAR, __pyx_n_s_S1, int, 1, __Pyx_PyInt_From_int, 0, 1, 1) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 877; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":966 + /* "netCDF4/_netCDF4.pyx":966 * return value_arr * * def _set_default_format(object format='NETCDF4'): # <<<<<<<<<<<<<< * # Private function to set the netCDF file format * if format == 'NETCDF4': */ - __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_7netCDF4_19_set_default_format, NULL, __pyx_n_s_netCDF4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 966; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_7netCDF4_8_netCDF4_19_set_default_format, NULL, __pyx_n_s_netCDF4__netCDF4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 966; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_t_2); if (PyDict_SetItem(__pyx_d, __pyx_n_s_set_default_format, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 966; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":1303 + /* "netCDF4/_netCDF4.pyx":1303 * * _private_atts =\ * ['_grpid','_grp','_varid','groups','dimensions','variables','dtype','data_model','disk_format', # <<<<<<<<<<<<<< @@ -65433,7 +65433,7 @@ PyMODINIT_FUNC PyInit_netCDF4(void) if (PyDict_SetItem(__pyx_d, __pyx_n_s_private_atts, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1302; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - /* "netCDF4.pyx":4204 + /* "netCDF4/_netCDF4.pyx":4204 * return VLType(group, dt, name, typeid=xtype) * * cdef _strencode(pystr,encoding=None): # <<<<<<<<<<<<<< @@ -65454,11 +65454,11 @@ PyMODINIT_FUNC PyInit_netCDF4(void) __Pyx_XDECREF(__pyx_t_14); if (__pyx_m) { if (__pyx_d) { - __Pyx_AddTraceback("init netCDF4", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_AddTraceback("init netCDF4._netCDF4", __pyx_clineno, __pyx_lineno, __pyx_filename); } Py_DECREF(__pyx_m); __pyx_m = 0; } else if (!PyErr_Occurred()) { - PyErr_SetString(PyExc_ImportError, "init netCDF4"); + PyErr_SetString(PyExc_ImportError, "init netCDF4._netCDF4"); } __pyx_L0:; __Pyx_RefNannyFinishContext(); diff --git a/netCDF4.pyx b/netCDF4/_netCDF4.pyx similarity index 99% rename from netCDF4.pyx rename to netCDF4/_netCDF4.pyx index d3be2dfef..b7a3b9f2a 100644 --- a/netCDF4.pyx +++ b/netCDF4/_netCDF4.pyx @@ -768,8 +768,8 @@ del __test__ # hack so epydoc doesn't show __test__ # Make changes to this file, not the c-wrappers that Pyrex generates. # pure python utilities -from netCDF4_utils import _StartCountStride, _quantize, _find_dim, _walk_grps, \ - _out_array_shape, _sortbylist, _tostr +from .utils import (_StartCountStride, _quantize, _find_dim, _walk_grps, + _out_array_shape, _sortbylist, _tostr) # try to use built-in ordered dict in python >= 2.7 try: from collections import OrderedDict diff --git a/netCDF4_utils.py b/netCDF4/utils.py similarity index 100% rename from netCDF4_utils.py rename to netCDF4/utils.py diff --git a/netcdftime/_datetime.c b/netcdftime/_datetime.c index 8d9eddd0f..ae575c24c 100644 --- a/netcdftime/_datetime.c +++ b/netcdftime/_datetime.c @@ -1,5 +1,13 @@ /* Generated by Cython 0.22 */ +/* BEGIN: Cython Metadata +{ + "distutils": { + "depends": [] + } +} +END: Cython Metadata */ + #define PY_SSIZE_T_CLEAN #ifndef CYTHON_USE_PYLONG_INTERNALS #ifdef PYLONG_BITS_IN_DIGIT @@ -721,13 +729,12 @@ static char __pyx_k_real_datetime[] = "real_datetime"; static char __pyx_k_NotImplemented[] = "NotImplemented"; static char __pyx_k_to_real_datetime[] = "_to_real_datetime"; static char __pyx_k_netcdftime__datetime[] = "netcdftime._datetime"; -static char __pyx_k_Users_jsw_python_netcdf4_python[] = "/Users/jsw/python/netcdf4-python.git/netcdftime/_datetime.pyx"; +static char __pyx_k_home_mb312_dev_trees_netcdf4_py[] = "/home/mb312/dev_trees/netcdf4-python/netcdftime/_datetime.pyx"; static char __pyx_k_This_strftime_implementation_doe[] = "This strftime implementation does not handle %s"; static PyObject *__pyx_kp_s_4d; static PyObject *__pyx_n_s_NotImplemented; static PyObject *__pyx_kp_s_This_strftime_implementation_doe; static PyObject *__pyx_n_s_TypeError; -static PyObject *__pyx_kp_s_Users_jsw_python_netcdf4_python; static PyObject *__pyx_n_s_ValueError; static PyObject *__pyx_kp_s_Y_m_d_H_M_S; static PyObject *__pyx_n_s_compile; @@ -741,6 +748,7 @@ static PyObject *__pyx_n_s_find; static PyObject *__pyx_n_s_findall; static PyObject *__pyx_n_s_fmt; static PyObject *__pyx_n_s_format; +static PyObject *__pyx_kp_s_home_mb312_dev_trees_netcdf4_py; static PyObject *__pyx_n_s_hour; static PyObject *__pyx_n_s_i; static PyObject *__pyx_n_s_illegal_s; @@ -3452,7 +3460,6 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_NotImplemented, __pyx_k_NotImplemented, sizeof(__pyx_k_NotImplemented), 0, 0, 1, 1}, {&__pyx_kp_s_This_strftime_implementation_doe, __pyx_k_This_strftime_implementation_doe, sizeof(__pyx_k_This_strftime_implementation_doe), 0, 0, 1, 0}, {&__pyx_n_s_TypeError, __pyx_k_TypeError, sizeof(__pyx_k_TypeError), 0, 0, 1, 1}, - {&__pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_k_Users_jsw_python_netcdf4_python, sizeof(__pyx_k_Users_jsw_python_netcdf4_python), 0, 0, 1, 0}, {&__pyx_n_s_ValueError, __pyx_k_ValueError, sizeof(__pyx_k_ValueError), 0, 0, 1, 1}, {&__pyx_kp_s_Y_m_d_H_M_S, __pyx_k_Y_m_d_H_M_S, sizeof(__pyx_k_Y_m_d_H_M_S), 0, 0, 1, 0}, {&__pyx_n_s_compile, __pyx_k_compile, sizeof(__pyx_k_compile), 0, 0, 1, 1}, @@ -3466,6 +3473,7 @@ static __Pyx_StringTabEntry __pyx_string_tab[] = { {&__pyx_n_s_findall, __pyx_k_findall, sizeof(__pyx_k_findall), 0, 0, 1, 1}, {&__pyx_n_s_fmt, __pyx_k_fmt, sizeof(__pyx_k_fmt), 0, 0, 1, 1}, {&__pyx_n_s_format, __pyx_k_format, sizeof(__pyx_k_format), 0, 0, 1, 1}, + {&__pyx_kp_s_home_mb312_dev_trees_netcdf4_py, __pyx_k_home_mb312_dev_trees_netcdf4_py, sizeof(__pyx_k_home_mb312_dev_trees_netcdf4_py), 0, 0, 1, 0}, {&__pyx_n_s_hour, __pyx_k_hour, sizeof(__pyx_k_hour), 0, 0, 1, 1}, {&__pyx_n_s_i, __pyx_k_i, sizeof(__pyx_k_i), 0, 0, 1, 1}, {&__pyx_n_s_illegal_s, __pyx_k_illegal_s, sizeof(__pyx_k_illegal_s), 0, 0, 1, 1}, @@ -3591,7 +3599,7 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__7 = PyTuple_Pack(5, __pyx_n_s_text, __pyx_n_s_substr, __pyx_n_s_sites, __pyx_n_s_i, __pyx_n_s_j); if (unlikely(!__pyx_tuple__7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 80; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__7); __Pyx_GIVEREF(__pyx_tuple__7); - __pyx_codeobj__8 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__7, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_findall, 80, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 80; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__8 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__7, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_mb312_dev_trees_netcdf4_py, __pyx_n_s_findall, 80, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 80; __pyx_clineno = __LINE__; goto __pyx_L1_error;} /* "netcdftime/_datetime.pyx":97 * @@ -3603,7 +3611,7 @@ static int __Pyx_InitCachedConstants(void) { __pyx_tuple__9 = PyTuple_Pack(14, __pyx_n_s_dt, __pyx_n_s_fmt, __pyx_n_s_year, __pyx_n_s_delta, __pyx_n_s_off, __pyx_n_s_timetuple, __pyx_n_s_s1, __pyx_n_s_sites1, __pyx_n_s_s2, __pyx_n_s_sites2, __pyx_n_s_sites, __pyx_n_s_site, __pyx_n_s_s_2, __pyx_n_s_syear); if (unlikely(!__pyx_tuple__9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_GOTREF(__pyx_tuple__9); __Pyx_GIVEREF(__pyx_tuple__9); - __pyx_codeobj__10 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__9, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jsw_python_netcdf4_python, __pyx_n_s_strftime, 97, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L1_error;} + __pyx_codeobj__10 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__9, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_home_mb312_dev_trees_netcdf4_py, __pyx_n_s_strftime, 97, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L1_error;} __Pyx_RefNannyFinishContext(); return 0; __pyx_L1_error:; diff --git a/setup.py b/setup.py index cf27976e5..bc2dd96ed 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,15 @@ -import os, sys, subprocess, shutil +import os, sys, subprocess +import os.path as osp + try: from setuptools import setup, Extension setuptools_extra_kwargs = { "install_requires": ["numpy>=1.7"], "entry_points": { 'console_scripts': [ - 'ncinfo = netCDF4_utils:ncinfo', - 'nc4tonc3 = netCDF4_utils:nc4tonc3', - 'nc3tonc4 = netCDF4_utils:nc3tonc4', + 'ncinfo = netCDF4.utils:ncinfo', + 'nc4tonc3 = netCDF4.utils:nc4tonc3', + 'nc3tonc4 = netCDF4.utils:nc3tonc4', ] }, } @@ -349,22 +351,25 @@ def getnetcdfvers(libdirs): sys.stdout.write('using netcdf library version %s\n' % netcdf_lib_version) cmdclass = {} +netcdf4_src_root = osp.join('netCDF4', '_netCDF4') +netcdf4_src_c = netcdf4_src_root + '.c' if has_cython and 'sdist' not in sys.argv[1:]: sys.stdout.write('using Cython to compile netCDF4.pyx...\n') - extensions = [Extension("netCDF4",["netCDF4.pyx"], - libraries=libs, - library_dirs=lib_dirs, - include_dirs=inc_dirs, - runtime_library_dirs=lib_dirs), + extensions = [Extension("netCDF4._netCDF4", + [netcdf4_src_root + '.pyx'], + libraries=libs, + library_dirs=lib_dirs, + include_dirs=inc_dirs, + runtime_library_dirs=lib_dirs), Extension('netcdftime._datetime', ['netcdftime/_datetime.pyx'])] # remove netCDF4.c file if it exists, so cython will recompile netCDF4.pyx. # run for build *and* install (issue #263). Otherwise 'pip install' will # not regenerate netCDF4.c, even if the C lib supports the new features. - if len(sys.argv) >= 2 and os.path.exists('netCDF4.c'): - os.remove('netCDF4.c') + if len(sys.argv) >= 2 and os.path.exists(netcdf4_src_c): + os.remove(netcdf4_src_c) # this determines whether renameGroup and filepath methods will work. has_rename_grp, has_nc_inq_path, has_nc_inq_format_extended = check_api(inc_dirs) - f = open('constants.pyx','w') + f = open(osp.join('include', 'constants.pyx'),'w') if has_rename_grp: sys.stdout.write('netcdf lib has group rename capability\n') f.write('DEF HAS_RENAME_GRP = 1\n') @@ -384,13 +389,14 @@ def getnetcdfvers(libdirs): sys.stdout.write('netcdf lib does not have nc_inq_format_extended function\n') f.write('DEF HAS_NC_INQ_FORMAT_EXTENDED = 0\n') f.close() - ext_modules = cythonize(extensions) + ext_modules = cythonize(extensions, include_path=['include']) else: - extensions = [Extension("netCDF4",["netCDF4.c"], - libraries=libs, - library_dirs=lib_dirs, - include_dirs=inc_dirs, - runtime_library_dirs=lib_dirs), + extensions = [Extension("netCDF4._netCDF4", + [netcdf4_src_c], + libraries=libs, + library_dirs=lib_dirs, + include_dirs=inc_dirs, + runtime_library_dirs=lib_dirs), Extension('netcdftime._datetime', ['netcdftime/_datetime.c'])] ext_modules = extensions @@ -412,7 +418,6 @@ def getnetcdfvers(libdirs): "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Archiving :: Compression", "Operating System :: OS Independent"], - py_modules = ["netCDF4_utils"], - packages = ['netcdftime'], + packages = ['netcdftime', 'netCDF4'], ext_modules = ext_modules, **setuptools_extra_kwargs) diff --git a/test/tst_compression.py b/test/tst_compression.py index 7df822506..642a97c4c 100644 --- a/test/tst_compression.py +++ b/test/tst_compression.py @@ -1,5 +1,6 @@ from numpy.random.mtrand import uniform -from netCDF4 import Dataset, _quantize +from netCDF4 import Dataset +from netCDF4.utils import _quantize from numpy.testing import assert_almost_equal import os, tempfile, unittest diff --git a/test/tst_utils.py b/test/tst_utils.py index dcae84559..7ce9d1f6a 100644 --- a/test/tst_utils.py +++ b/test/tst_utils.py @@ -1,5 +1,5 @@ from numpy.testing import assert_equal -import netCDF4 as nc +from netCDF4.utils import _StartCountStride, _out_array_shape import unittest import numpy as np @@ -8,7 +8,7 @@ class TestgetStartCountStride(unittest.TestCase): def test_basic(self): # Basic usage elem = [0, slice(None), slice(None)] - start, count, stride, put_ind = nc._StartCountStride(elem, (50, 4, 10)) + start, count, stride, put_ind = _StartCountStride(elem, (50, 4, 10)) assert_equal(start, 0) assert_equal(count[..., 0], 1) assert_equal(count[..., 1], 4) @@ -17,12 +17,12 @@ def test_basic(self): assert_equal(put_ind[...,0], -1) assert_equal(put_ind[...,1], slice(None)) assert_equal(put_ind[...,2], slice(None)) - assert_equal(nc._out_array_shape(count), (1, 4,10)) + assert_equal(_out_array_shape(count), (1, 4,10)) def test_slice(self): # start and stop slice elem = [5, slice(None), slice(5, 8, 2)] - start, count, stride, put_ind = nc._StartCountStride(elem, (50, 4, 10)) + start, count, stride, put_ind = _StartCountStride(elem, (50, 4, 10)) assert_equal(start[..., 0], 5) assert_equal(start[..., 1], 0) assert_equal(start[..., 2], 5) @@ -31,12 +31,12 @@ def test_slice(self): assert_equal(count[..., 2], 2) assert_equal(stride[..., 2], 2) - assert_equal(nc._out_array_shape(count), (1, 4,2)) + assert_equal(_out_array_shape(count), (1, 4,2)) def test_fancy(self): # Fancy indexing elem = [slice(None), [1,2,3], 8] - start, count, stride, put_ind = nc._StartCountStride(elem, (50, 4, 10)) + start, count, stride, put_ind = _StartCountStride(elem, (50, 4, 10)) assert_equal(start[..., 0], 0) assert_equal(start[..., 1].squeeze(), 1) assert_equal(start[..., 2], 8) @@ -45,30 +45,30 @@ def test_fancy(self): assert_equal(count[...,2], 1) assert_equal(put_ind[...,1].squeeze(), slice(None, None, None)) - assert_equal(nc._out_array_shape(count), (50, 3, 1)) + assert_equal(_out_array_shape(count), (50, 3, 1)) i = np.array([2,5,7],'i4') elem = [slice(None, -1,2),i,slice(None)] - start, count, stride, put_ind = nc._StartCountStride(elem, (9,10,11)) + start, count, stride, put_ind = _StartCountStride(elem, (9,10,11)) try: elem = ( np.arange(6).reshape((3,2)), slice(None), slice(None) ) - start, count, stride, put_ind = nc._StartCountStride(elem, (3,4,5)) + start, count, stride, put_ind = _StartCountStride(elem, (3,4,5)) except IndexError: pass # this one should be converted to a slice elem = [slice(None), [1,3,5], 8] - start, count, stride, put_ind = nc._StartCountStride(elem, (50, 6, 10)) + start, count, stride, put_ind = _StartCountStride(elem, (50, 6, 10)) assert_equal(put_ind[...,1].squeeze(), slice(None,None,None)) def test_multiple_sequences(self): elem = [[4,6,7], [1,2,3], slice(None)] - start, count, stride, put_ind = nc._StartCountStride(elem, (50, 4, 10)) + start, count, stride, put_ind = _StartCountStride(elem, (50, 4, 10)) - assert_equal(nc._out_array_shape(count), (3, 3, 10)) + assert_equal(_out_array_shape(count), (3, 3, 10)) assert_equal(start[..., 0].squeeze(), [4,6,7]) assert_equal(start[..., 1].squeeze(), [1,1,1]) @@ -79,29 +79,29 @@ def test_multiple_sequences(self): i = [1,3,4] elem = (i, i, i) - start, count, stride, put_ind = nc._StartCountStride(elem, (50, 5, 10)) - assert_equal(nc._out_array_shape(count), (3,3,3)) + start, count, stride, put_ind = _StartCountStride(elem, (50, 5, 10)) + assert_equal(_out_array_shape(count), (3,3,3)) def test_put_indices(self): elem = (1, slice(None), slice(None)) - start, count, stride, put_ind = nc._StartCountStride(elem, (3,4,5)) + start, count, stride, put_ind = _StartCountStride(elem, (3,4,5)) orig = np.arange(60).reshape((3,4,5)) - dest = np.empty(nc._out_array_shape(count)) + dest = np.empty(_out_array_shape(count)) dest[tuple(put_ind[0,0,0])] = orig[tuple(elem)] def test_boolean(self): elem = (1, slice(None), np.array([True, True, False, False, True])) - start, count, stride, put_ind = nc._StartCountStride(elem, (50, 4,5)) + start, count, stride, put_ind = _StartCountStride(elem, (50, 4,5)) assert_equal(start[..., 2].squeeze(), [0,1,4]) assert_equal(count[...,2], 1) - assert_equal(nc._out_array_shape(count), (1, 4, 3)) + assert_equal(_out_array_shape(count), (1, 4, 3)) # Multiple booleans --- The behavior is different from NumPy in this case. elem = (np.array([True, True, False]), np.array([True, True, False, True]), slice(None)) - start, count, stride, put_ind = nc._StartCountStride(elem, (3,4,5)) - assert_equal(nc._out_array_shape(count), (2,3,5)) + start, count, stride, put_ind = _StartCountStride(elem, (3,4,5)) + assert_equal(_out_array_shape(count), (2,3,5)) try: elem = (np.array([True, True, False]), np.array([True, True, True, False]), slice(None)) @@ -113,14 +113,14 @@ def test_boolean(self): def test_1d(self): # Scalar elem = (0) - start, count, stride, put_ind = nc._StartCountStride(elem, (10,)) + start, count, stride, put_ind = _StartCountStride(elem, (10,)) assert_equal(start, 0) assert_equal(count, 1) assert_equal(stride, 1) assert_equal(put_ind, -1) elem = (-1) - start, count, stride, put_ind = nc._StartCountStride(elem, (10,)) + start, count, stride, put_ind = _StartCountStride(elem, (10,)) assert_equal(start, 9) assert_equal(count, 1) assert_equal(stride, 1) @@ -128,7 +128,7 @@ def test_1d(self): # test conversion of a integer index array to a slice elem = (np.array([0])) - start, count, stride, put_ind = nc._StartCountStride(elem, (10,)) + start, count, stride, put_ind = _StartCountStride(elem, (10,)) assert_equal(start, 0) assert_equal(count, 1) assert_equal(stride, 1) @@ -136,7 +136,7 @@ def test_1d(self): # Slice elem = (slice(2,5,2)) - start, count, stride, put_ind = nc._StartCountStride(elem, (10,)) + start, count, stride, put_ind = _StartCountStride(elem, (10,)) assert_equal(start, 2) assert_equal(count, 2) assert_equal(stride, 2) @@ -144,7 +144,7 @@ def test_1d(self): # Integer sequence elem = ([2,4,7]) - start, count, stride, put_ind = nc._StartCountStride(elem, (10,)) + start, count, stride, put_ind = _StartCountStride(elem, (10,)) assert_equal(start.squeeze(), [2,4,7]) assert_equal(count, 1) assert_equal(stride, 1) @@ -152,7 +152,7 @@ def test_1d(self): # Boolean slicing elem = (np.array([True, True, False, True, False]),) - start, count, stride, put_ind = nc._StartCountStride(elem, (5,)) + start, count, stride, put_ind = _StartCountStride(elem, (5,)) assert_equal(start.squeeze(), [0,1,3]) assert_equal(count, 1) assert_equal(stride, 1) @@ -160,7 +160,7 @@ def test_1d(self): # Integer sequence simplification elem = ([2,3,4]) - start, count, stride, put_ind = nc._StartCountStride(elem, (10,)) + start, count, stride, put_ind = _StartCountStride(elem, (10,)) assert_equal(start, 2) assert_equal(count, 3) assert_equal(stride, 1) @@ -168,7 +168,7 @@ def test_1d(self): # Boolean indices simplification elem = (np.array([False, True, True, True, False])) - start, count, stride, put_ind = nc._StartCountStride(elem, (5,)) + start, count, stride, put_ind = _StartCountStride(elem, (5,)) assert_equal(start, 1) assert_equal(count, 3) assert_equal(stride, 1) @@ -176,10 +176,10 @@ def test_1d(self): # All False elem = (np.array([False, False, False, False])) - start, count, stride, put_ind = nc._StartCountStride(elem, (4,)) + start, count, stride, put_ind = _StartCountStride(elem, (4,)) assert_equal(count, 0) - assert_equal(nc._out_array_shape(count), (0,)) + assert_equal(_out_array_shape(count), (0,)) class TestsetStartCountStride(unittest.TestCase): @@ -189,13 +189,13 @@ def test_basic(self): grp = FakeGroup({'x':False, 'y':False, 'time':True}) elem=(slice(None), slice(None), 1) - start, count, stride, take_ind = nc._StartCountStride(elem, (22, 25, 1), ['x', 'y', 'time'], grp, (22,25)) + start, count, stride, take_ind = _StartCountStride(elem, (22, 25, 1), ['x', 'y', 'time'], grp, (22,25)) assert_equal(start[0][0][0], [0, 0, 1]) assert_equal(count[0][0][0], (22, 25, 1)) assert_equal(take_ind[0][0][0], (slice(None), slice(None), -1)) elem=(slice(None), slice(None), slice(1, 4)) - start, count, stride, take_ind = nc._StartCountStride(elem, (22,25,1),\ + start, count, stride, take_ind = _StartCountStride(elem, (22,25,1),\ ['x', 'y', 'time'], grp, (22,25,3), put=True) assert_equal(start[0][0][0], [0, 0, 1]) assert_equal(count[0][0][0], (22, 25, 3)) @@ -205,7 +205,7 @@ def test_integer(self): grp = FakeGroup({'x':False, 'y':False}) elem=([0,4,5], slice(20, None)) - start, count, stride, take_ind = nc._StartCountStride(elem, (22, 25), ['x', 'y'], grp, (3,5)) + start, count, stride, take_ind = _StartCountStride(elem, (22, 25), ['x', 'y'], grp, (3,5)) assert_equal(start[0][0], (0, 20)) assert_equal(start[1][0], (4, 20)) assert_equal(start[2][0], (5, 20)) @@ -220,7 +220,7 @@ def test_booleans(self): grp = FakeGroup({'x':False, 'y':False, 'z':False}) elem=([0,4,5], np.array([False, True, False, True, True]), slice(None)) - start, count, stride, take_ind = nc._StartCountStride(elem, (10, 5, 12), ['x', 'y', 'z'], grp, (3, 3, 12)) + start, count, stride, take_ind = _StartCountStride(elem, (10, 5, 12), ['x', 'y', 'z'], grp, (3, 3, 12)) assert_equal(start[0][0][0], (0, 1, 0)) assert_equal(start[1][0][0], (4, 1, 0)) assert_equal(start[2][0][0], (5, 1, 0)) @@ -235,7 +235,7 @@ def test_unlim(self): grp = FakeGroup({'time':True,'x':False, 'y':False}) elem = ([0,2,5], slice(None), slice(None)) - start, count, stride, take_ind = nc._StartCountStride(elem, (0, 6, 7),\ + start, count, stride, take_ind = _StartCountStride(elem, (0, 6, 7),\ ['time', 'x', 'y'], grp, (3, 6, 7), put=True) assert_equal(start[0][0][0], (0, 0, 0)) assert_equal(start[2][0][0], (5, 0, 0)) @@ -245,7 +245,7 @@ def test_unlim(self): elem = (slice(None, None, 2), slice(None), slice(None)) - start, count, stride, take_ind = nc._StartCountStride(elem, (0, 6, 7),\ + start, count, stride, take_ind = _StartCountStride(elem, (0, 6, 7),\ ['time', 'x', 'y'], grp, (10, 6, 7),put=True) assert_equal(start[0][0][0], (0,0,0)) assert_equal(count[0][0][0], (5, 6, 7)) diff --git a/utils/nc3tonc4 b/utils/nc3tonc4 index 174316d64..ed4964e2f 100755 --- a/utils/nc3tonc4 +++ b/utils/nc3tonc4 @@ -1,4 +1,4 @@ #!/usr/bin/env python -from netCDF4_utils import nc3tonc4 +from netCDF4.utils import nc3tonc4 nc3tonc4() diff --git a/utils/nc4tonc3 b/utils/nc4tonc3 index fb82dc1fc..efa12f69f 100755 --- a/utils/nc4tonc3 +++ b/utils/nc4tonc3 @@ -1,4 +1,4 @@ #!/usr/bin/env python -from netCDF4_utils import nc4tonc3 +from netCDF4.utils import nc4tonc3 nc4tonc3() diff --git a/utils/ncinfo b/utils/ncinfo index de409bbe0..3afff8f78 100755 --- a/utils/ncinfo +++ b/utils/ncinfo @@ -1,4 +1,4 @@ #!/usr/bin/env python -from netCDF4_utils import ncinfo +from netCDF4.utils import ncinfo ncinfo()