.. |br| raw:: html
.. _hco-sa-soft:
###################################
Install required software libraries
###################################
This chapter lists the required software libraries that you must have
installed on your system in order to use :program:`HEMCO standalone`.
- If you are using a shared computer cluster, then many of these
libraries have probably already been pre-installed by your IT
staff. Consult with them for more information. |br|
|br|
- If you plan to run HEMCO standalone on the Amazon Web services
cloud, then all of these libraries will be included with the Amazon
Machine Image (AMI) that you will use to start your cloud instance.
You may skip ahead to the :ref:`hco-sa-download` chapter. |br|
|br|
- If your computer cluster has none of these libraries installed, then
you will have to install them yourself. See our supplemental guide
:ref:`spackguide` for detailed installation instructions.
.. _hco-sa-soft-compilers:
=============================
Supported compilers for HEMCO
=============================
HEMCO is written in the Fortran programming language. However, you
will also need C and C++ compilers to install certain libraries (like
:ref:`netCDF `) on your system.
.. _hco-sa-soft-intel:
The Intel Compiler Suite
------------------------
The :program:`Intel Compiler Suite` is our recommended proprietary
compiler suite.
Intel compilers produce well-optimized code that runs extremely
efficiency on machines with Intel CPUs. Many universities and
institutions will have an Intel site license that allows you to use
these compilers.
The GCST has tested :program:`HEMCO` with these versions (but others
may work as well):
- 23.0.0
- 19.0.5.281
- 19.0.4
- 18.0.5
- 17.0.4
- 15.0.0
- 13.0.079
- 11.1.069
**Best way to install:** With :ref:`Spack ` (Intel 2021
and later); `Directly
from Intel
`_
(older versions).
.. _hco-sa-soft-gnu:
The GNU Compiler Collection
---------------------------
The :program:`GNU Compiler Collection` (or :program:`GCC` for short)
is our recommended open-source compiler suite.
Because the GNU Compiler Collection is free and open source, this is a
good choice if your institution lacks an Intel site license, or if you
are running HEMCO standalone on the Amazon EC2 cloud environment.
The GCST has tested HEMCO standalone with these versions
(but others may work as well):
- 12.2.0
- 11.2.0
- 11.1.0
- 10.2.0
- 9.3.0
- 9.2.0
- 8.2.0
- 7.4.0
- 7.3.0
- 7.1.0
- 6.2.0
**Best way to install:** :ref:`With Spack `.
.. _required-software-packages:
====================================
Required software packages for HEMCO
====================================
.. _hco-sa-soft-git:
Git
---
`Git `_ is the de-facto software industry
standard package for source code management. A version of Git usually
ships with most Linux OS builds.
The HEMCO source code can be downloaded using the Git source code
management system from the `https://github.com/HEMCO
`_ repository.
**Best way to install:** `git-scm.com/downloads
`_. But first check if you have a
version of Git pre-installed.
.. _hco-sa-soft-cmake:
CMake
-----
`CMake `_ is software that creates **Makefiles**,
or scripts that direct how the HEMCO source code will be compiled
into an executable. You will need CMake version 3.13 or later to
build HEMCO.
**Best way to install:** :ref:`With Spack `.
.. _hco-sa-soft-make:
GNU Make
--------
`GNU Make `_ (sometimes just known
as **make**) is software that can build executables from source code.
It executes the instructions in the Makefiles created by
:ref:`hco-sa-soft-cmake`.
**Best way to install:** :ref:`With Spack `.
.. _hco-sa-soft-netcdf:
The netCDF library (plus dependencies)
--------------------------------------
HEMCO input and output data files use the netCDF file format
(cf. :ref:`netCDF `). NetCDF is a self-describing file format
hat allows meadata (descriptive text) to be stored alongside data
values.
**Best way to install:** :ref:`With Spack `.
.. _optional-but-recommended-software-packages:
==========================================
Optional but recommended software packages
==========================================
.. _hco-sa-soft-gcpy:
GCPy
----
`GCPy `_ is our recommended python
companion software to HEMCO.
While GCPy is not a general-purpose plotting package, it
does contain many useful functions for creating zonal mean and
horizontal plots from HEMCO output. It also contains scripts to
generate plots and tables from HEMCO benchmark simulations.
**Best way to install:**
`With Mamba or Conda (see gcpy.readthedocs.io) `__
.. _hco-sa-soft-gdb:
gdb and cgdb
------------
`The GNU debugger (gdb) `_ and `its
graphical interface (cgdb) `_ are very useful
tools for tracking down the source of HEMCO errors, such
as segmentation faults, out-of-bounds errors, etc.
**Best way to install:** :ref:`With Spack `.
.. _hco-sa-soft-ncview:
ncview
------
The `ncview `_
program is a netCDF file viewer. While it does not produce
publication-quality output, ncview can let you easily examine the
contents of a netCDF data file (such as those which are input and
output by HEMCO). Ncview is very useful for debugging and development.
.. _hco-sa-soft-nco:
nco
---
`The netCDF operators (nco)
`_ are
powerful command-line tools for editing and manipulating data in
netCDF format.
**Best way to install:** :ref:`With Spack `.
.. _hco-sa-soft-cdo:
cdo
---
`The Climate Data Operators (cdo)
`_ are powerful
command-line utilities for editing and manipulating data in netCDF
format.
**Best way to install:** :ref:`With Spack `.