Use Spack to install netCDF on your system
- Introduction to netCDF
- Check if netCDF is already installed on your system
- Use Spack to install netCDF on your system
- The COARDS netCDF conventions for earth science data
- Working with netCDF data files
- Creating netCDF data files for GEOS-Chem
- Other libraries used by GEOS-Chem
On this page we describe how you can use the Spack package manager tool to install netCDF on your system (if it hasn't already been installed).
What is Spack?
From the Spack site:
Spack is a package management tool designed to support multiple versions and configurations of software on a wide variety of platforms and environments. It was designed for large supercomputing centers, where many users and application teams share common installations of software on clusters with exotic architectures....Spack is non-destructive: installing a new version does not break existing installations, so many configurations can coexist on the same system.
Most importantly, Spack is simple. It offers a simple spec syntax so that users can specify versions and configuration options concisely. Spack is also simple for package authors: package files are written in pure Python, and specs allow package authors to maintain a single file for many different builds of the same package.
Complete Spack documentation may be found at spack.readthedocs.io
If you do not already have a pre-built netCDF library on your system, we recommend using Spack to install the required libraries. Spack should be able to install netCDF and all required libraries for a variety of compiler/platform combinations (including Linux and MacOS).
Using Spack to install libraries for GEOS-Chem Classic
This documentation has been migrated to our Github issue geoschem/geos-chem #637.
Using Spack to install libraries for GCHP
Report errors or technical issues to Spack Support
While the GEOS-Chem Support Team recommends Spack as a useful third-party tool, it is not responsible for solving Spack-related issues.
We encourage you to report all errors and technical issues directly to the Spack Support Team by opening a ticket on the Spack issue tracker:
Please describe fully the commands that you used, as well as the type of system (OS, compilers, etc.) that you are using. A member of the Spack Support Team should be able to answer your question more fully.
Spack is a cutting-edge tool for installing HPC packages. That being said, there may still be compatibility issues with certain library/OS/compiler combinations. The Spack Support Team is continually trying to improve Spack and to resolve any such issues.