cf.environment¶
-
cf.
environment
(display=True, paths=True)[source]¶ Return the names and versions of the cf package and its dependencies.
- Parameters
- Returns
Examples
>>> cf.environment() Platform: Linux-4.15.0-54-generic-x86_64-with-glibc2.10 HDF5 library: 1.10.6 netcdf library: 4.8.0 udunits2 library: /home/username/anaconda3/envs/cf-env/lib/libudunits2.so.0 esmpy/ESMF: 8.4.1 /home/username/anaconda3/envs/cf-env/lib/python3.8/site-packages/esmpy/__init__.py Python: 3.8.10 /home/username/anaconda3/envs/cf-env/bin/python dask: 2022.6.0 /home/username/anaconda3/envs/cf-env/lib/python3.8/site-packages/dask/__init__.py netCDF4: 1.5.6 /home/username/anaconda3/envs/cf-env/lib/python3.8/site-packages/netCDF4/__init__.py psutil: 5.9.0 /home/username/anaconda3/envs/cf-env/lib/python3.8/site-packages/psutil/__init__.py packaging: 21.3 /home/username/anaconda3/envs/cf-env/lib/python3.8/site-packages/packaging/__init__.py numpy: 1.22.2 /home/username/anaconda3/envs/cf-env/lib/python3.8/site-packages/numpy/__init__.py scipy: 1.10.0 /home/username/anaconda3/envs/cf-env/lib/python3.8/site-packages/scipy/__init__.py matplotlib: 3.4.3 /home/username/anaconda3/envs/cf-env/lib/python3.8/site-packages/matplotlib/__init__.py cftime: 1.6.0 /home/username/anaconda3/envs/cf-env/lib/python3.8/site-packages/cftime/__init__.py cfunits: 3.3.6 /home/username/cfunits/cfunits/__init__.py cfplot: 3.1.18 /home/username/anaconda3/envs/cf-env/lib/python3.8/site-packages/cfplot/__init__.py cfdm: 1.10.1.0 /home/username/anaconda3/envs/cf-env/lib/python3.8/site-packages/cfdm/__init__.py cf: 3.14.0 /home/username/anaconda3/envs/cf-env/lib/python3.8/site-packages/cf/__init__.py
>>> cf.environment(paths=False) Platform: Linux-4.15.0-54-generic-x86_64-with-glibc2.10 HDF5 library: 1.10.6 netcdf library: 4.8.0 udunits2 library: libudunits2.so.0 esmpy/ESMF: 8.4.1 Python: 3.8.10 dask: 2022.6.0 netCDF4: 1.5.6 psutil: 5.9.0 packaging: 21.3 numpy: 1.22.2 scipy: 1.10.0 matplotlib: 3.4.3 cftime: 1.6.0 cfunits: 3.3.6 cfplot: 3.1.18 cfdm: 1.10.1.0 cf: 3.14.0