MRG Interactive Developments

Mesoscale Research Group, SUNY/McGill


Notes and Instructions for NCAR SpherePack

  • SpherePack Background
  • Installing NCAR SpherePack
  • Download v3.1 Makefile (left shift and click for download)



  • SpherePack Background

    The SpherePack package is under development at the Scientific Computing Division of the National Center for Atmospheric Research (NCAR) by John Adams and Paul Swarztrauber. The package contains a number of F77 subprograms that facilitate highly-accurate computational methods on the sphere. See the NCAR SpherePack homepage for more information about the latest version of the SpherePack package.

    Installing NCAR SpherePack

    As good as SpherePack is at performing calculations on the sphere, its installation is cumbersome. However, using a Makefile generated for SpherePack v3.1 (assuming that this is the verson for SpherePack for which you have the source code) will make the process much faster. There are just a few steps for installing SpherePack:

    1. Fill out the SpherePack online order form and get your copy of the source code. Note that the licencing agreement is much more restrictive than you'll be used to with standard Open Source packages.
    2. Unpack the source code using a command like tar -xf spherepack3.1.tar.
    3. Move to the package base directory (for example: cd sphpk3.1.
    4. Download a copy of the SpherePack Makefile (use left shift and click for download).
    5. Build the SpherePack library using make lib.
    6. Install the SpherePack library (libsphere.a) using make install PREFIX=/path/to/install. Where the /path/to/install in the example should be replaced by the prefix to the path where you'd like to install the library (default $HOME installs libsphere.a in $HOME/lib). For example, make install PREFIX=/usr/local will install the library as /usr/local/lib/libsphere.a.
    7. Check that the installation worked by checking the contents of the newly-created library using ar -tf /path/to/install/lib/libsphere.a.
    8. Run make clean to remove the local object files.



    MRG Interactive is a supporter of open source initiatives and,

    SourceForge.net Logo

    Questions or Comments? Contact our WebMaster.