DataSource.abspath()

DataSource.abspath(path) [source] Return absolute path of file in the DataSource directory. If path is an URL, then abspath will return either the location the file exists locally or the location it would exist when opened using the open method. Parameters: path : str Can be a local file or a remote URL. Returns: out : str Complete path, including the DataSource destination directory. Notes The functionality is based on os.path.abspath.

numpy.ma.masked_inside()

numpy.ma.masked_inside(x, v1, v2, copy=True) [source] Mask an array inside a given interval. Shortcut to masked_where, where condition is True for x inside the interval [v1,v2] (v1 <= x <= v2). The boundaries v1 and v2 can be given in either order. See also masked_where Mask where a condition is met. Notes The array x is prefilled with its filling value. Examples >>> import numpy.ma as ma >>> x = [0.31, 1.2, 0.01, 0.2, -0.4, -1.1] >>> ma.masked_inside(x

ndarray.tostring()

ndarray.tostring(order='C') Construct Python bytes containing the raw data bytes in the array. Constructs Python bytes showing a copy of the raw contents of data memory. The bytes object can be produced in either ?C? or ?Fortran?, or ?Any? order (the default is ?C?-order). ?Any? order means C-order unless the F_CONTIGUOUS flag in the array is set, in which case it means ?Fortran? order. This function is a compatibility alias for tobytes. Despite its name it returns bytes not strings. Parame

numpy.expand_dims()

numpy.expand_dims(a, axis) [source] Expand the shape of an array. Insert a new axis, corresponding to a given position in the array shape. Parameters: a : array_like Input array. axis : int Position (amongst axes) where new axis is to be inserted. Returns: res : ndarray Output array. The number of dimensions is one greater than that of the input array. See also doc.indexing, atleast_1d, atleast_2d, atleast_3d Examples >>> x = np.array([1,2]) >>> x.shape (2,) T

chararray.swapcase()

chararray.swapcase() [source] For each element in self, return a copy of the string with uppercase characters converted to lowercase and vice versa. See also char.swapcase

numpy.fmod()

numpy.fmod(x1, x2[, out]) = Return the element-wise remainder of division. This is the NumPy implementation of the C library function fmod, the remainder has the same sign as the dividend x1. It is equivalent to the Matlab(TM) rem function and should not be confused with the Python modulus operator x1 % x2. Parameters: x1 : array_like Dividend. x2 : array_like Divisor. Returns: y : array_like The remainder of the division of x1 by x2. See also remainder Equivalent to the Pyth

chararray.islower()

chararray.islower() [source] Returns true for each element if all cased characters in the string are lowercase and there is at least one cased character, false otherwise. See also char.islower

record.flags

record.flags integer value of flags

numpy.DataSource()

class numpy.DataSource(destpath='.') [source] A generic data source file (file, http, ftp, ...). DataSources can be local files or remote files/URLs. The files may also be compressed or uncompressed. DataSource hides some of the low-level details of downloading the file, allowing you to simply pass in a valid file path (or URL) and obtain a file object. Parameters: destpath : str or None, optional Path to the directory where the source file gets downloaded to for use. If destpath is None,

int PyArray_NDIM()

Array structure and data access These macros all access the PyArrayObject structure members. The input argument, arr, can be any PyObject * that is directly interpretable as a PyArrayObject * (any instance of the PyArray_Type and its sub-types). int PyArray_NDIM(PyArrayObject *arr) The number of dimensions in the array. npy_intp *PyArray_DIMS(PyArrayObject *arr) Returns a pointer to the dimensions/shape of the array. The number of elements matches the number of dimensions of the ar