def compress(self, comptype=None, param=None):
    "\n        Set or check the compression of this CDF\n\n        Sets compression on entire *file*, not per-variable.\n\n        See section 2.6 of the CDF user's guide for more information on\n        compression.\n\n        Other Parameters\n        ================\n        comptype : ctypes.c_long\n            type of compression to change to, see CDF C reference manual\n            section 4.10. Constants for this parameter are in\n            :mod:`~pycdf.const`. If not specified, will not change\n            compression.\n        param : ctypes.c_long\n            Compression parameter, see CDF CRM 4.10 and\n            :mod:`~pycdf.const`.\n            If not specified, will choose reasonable default (5 for gzip;\n            other types have only one possible parameter.)\n\n        Returns\n        =======\n        out : tuple\n            (comptype, param) currently in effect\n\n        See Also\n        ========\n        :meth:`Var.compress`\n\n        Examples\n        ========\n        Set file ``cdffile`` to gzip compression, compression level 9:\n            >>> cdffile.compress(pycdf.const.GZIP_COMPRESSION, 9)\n        "
    return _compress(self, comptype, param)
Set or check the compression of this CDF

Sets compression on entire *file*, not per-variable.

See section 2.6 of the CDF user's guide for more information on
compression.

Other Parameters
================
comptype : ctypes.c_long
    type of compression to change to, see CDF C reference manual
    section 4.10. Constants for this parameter are in
    :mod:`~pycdf.const`. If not specified, will not change
    compression.
param : ctypes.c_long
    Compression parameter, see CDF CRM 4.10 and
    :mod:`~pycdf.const`.
    If not specified, will choose reasonable default (5 for gzip;
    other types have only one possible parameter.)

Returns
=======
out : tuple
    (comptype, param) currently in effect

See Also
========
:meth:`Var.compress`

Examples
========
Set file ``cdffile`` to gzip compression, compression level 9:
    >>> cdffile.compress(pycdf.const.GZIP_COMPRESSION, 9)
def compress(self, comptype=None, param=None):
    "\n        Set or check the compression of this CDF\n\n        Sets compression on entire *file*, not per-variable.\n\n        See section 2.6 of the CDF user's guide for more information on\n        compression.\n\n        Other Parameters\n        ================\n        comptype : ctypes.c_long\n            type of compression to change to, see CDF C reference manual\n            section 4.10. Constants for this parameter are in\n            :mod:`~pycdf.const`. If not specified, will not change\n            compression.\n        param : ctypes.c_long\n            Compression parameter, see CDF CRM 4.10 and\n            :mod:`~pycdf.const`.\n            If not specified, will choose reasonable default (5 for gzip;\n            other types have only one possible parameter.)\n\n        Returns\n        =======\n        out : tuple\n            (comptype, param) currently in effect\n\n        See Also\n        ========\n        :meth:`Var.compress`\n\n        Examples\n        ========\n        Set file ``cdffile`` to gzip compression, compression level 9:\n            >>> cdffile.compress(pycdf.const.GZIP_COMPRESSION, 9)\n        "
    return _compress(self, comptype, param)