Functions of the cf module

Input and output

cf.close_files Close open files containing sub-arrays of master data arrays.
cf.close_one_file Close an arbitrary open file containing a sub-array of a master data array.
cf.dump Print a description of an object.
cf.open_files Return the open files containing sub-arrays of master data arrays.
cf.open_files_threshold_exceeded Return True if the total number of open files is greater than the
cf.pickle Write a binary pickled representation of an object to a file.
cf.read Read fields from files from disk or from an OPeNDAP server.
cf.write Write fields to a CF-netCDF or CFA-netCDF file.
cf.unpickle Return the reconstituted (unpickled) object from a binary pickle file.

Aggregation

cf.aggregate Aggregate fields into as few fields as possible.

Mathematical operations

cf.clip Return a new variable with clipped (limited) data array values.
cf.collapse Return new fields with dimensions collapsed by statistical operations.
cf.cos Return a new variable with the trigonometric cosine of the data array values.
cf.sin Return a new variable with the trigonometric sine of the data array values.

Data array manipulations

cf.expand_dims Return a new variable with inserted size 1 data array dimensions.
cf.flip Return a new variable with flipped data array dimensions.
cf.squeeze Return a new variable with removed size 1 data array dimensions.
cf.transpose Return a new variable with permuted data array dimensions.
cf.unsqueeze Return a new variable with inserted size 1 data array dimensions.

Comparison

cf.equals True if and only if two objects are logically equal.
cf.equivalent True if and only if two objects are logically equivalent.
cf.eq Return an object for testing whether a variable is equal to the given value.
cf.ge Return an object for testing whether a variable is greater than or equal to the given value.
cf.gt Return an object for testing whether a variable is strictly greater than the given value.
cf.le Return an object for testing whether a variable is less than or equal to the given value.
cf.lt Return an object for testing whether a variable is strictly less than a given value.
cf.ne Return an object for testing whether a variable is not equal to the given value.
cf.set Return an object for testing whether a variable equals any element of a collection.
cf.wi Return an object for testing whether a variable is within the given range.
cf.wo Return an object for testing whether a variable is without the given range.

Retrieval and setting of constants

cf.ATOL Return or set the value of absolute tolerance for testing numerically tolerant equality.
cf.CHUNKSIZE Return or set the chunk size for data storage and processing.
cf.FM_THRESHOLD Return or set the minimum amount of memory to be kept free as a temporary work space.
cf.MINNCFM Return or set the number of chunks of memory to be kept free as a temporary work space.
cf.OF_FRACTION Return or set the number of concurrently open files above which files containing data arrays may be automatically closed.
cf.RTOL Return or set the default value of relative tolerance for testing numerically tolerant equality.
cf.TEMPDIR Return or set the directory for internally generated temporary files.

Miscellaneous

cf.abspath Return a normalized absolute version of a file name.
cf.dirname Return the directory name of a file.
cf.flat Return an iterator over an arbitrarily nested sequence.
cf.pathjoin Join two file path components intelligently.
cf.relpath Return a relative filepath to a file.