Skip to main content

A Python package for netCDF analysis and post-processing

Project description

nctoolkit is a comprehensive Python (3.8 and above) package for analyzing netCDF data on Linux and macOS.

Core abilities of nctoolkit include:

  • Clipping to spatial region

  • Calculating climatologies

  • Subsetting to specific time periods

  • Calculating spatial statistics

  • Creating new variables using arithmetic operations

  • Calculating anomalies

  • Calculating rolling and cumulative statistics

  • Horizontally and vertically remapping data

  • Calculating time averages

  • Interactive plotting of data

  • Calculating the correlations between variables

  • Calculating vertical statistics for the likes of oceanic data

  • Calculating ensemble statistics

  • Calculating phenological metrics

Operation of the package requires the installation of Climate Data Operators (CDO). This is the computational backend for most of the methods used. No knowledge of CDO is required to use nctoolkit. A couple of methods provide users with the option of using netCDF Operators (NCO) as a backend. Guidance for how to install the backends are available here.

The package is designed for both intensive bulk processing of NetCDF files and interactive Jupyter notebook analysis. It features an interactive plotting feature which allows users to view the contents of NetCDF files either within Jupyter notebooks or a web browser.

Plotting requires the use of cartopy, which has some additional system dependencies. Follow the instructions here to install them.

Documentation and a user guide are available here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nctoolkit-1.1.7.tar.gz (1.9 MB view hashes)

Uploaded Source

Built Distribution

nctoolkit-1.1.7-py3-none-any.whl (145.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page