Cdo version 1.3.2 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    version 1.3.2

      View the most recent changes for the cdo port at: cdo.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for cdo.
      The raw portfile for cdo 1.3.2 is located here:
      http://cdo.darwinports.com/dports/science/cdo/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/cdo


      # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
      The cdo Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: cdo
      Version: 1.3.2
      Revision: 2
      Platform: darwin
      Maintainers: takeshi
      license GPLv2
      Category: science
      Description: Climate Data Operators
      Homepage: http://www.mpimet.mpg.de/fileadmin/software/cdo/
      Master Sites: ${homepage}
      Checksums: md5 596010619ee73a9ee142fd0e2c63a124 sha1 4488a834d07efa0a39d24d09dedc8f78c010af40 rmd160 26d1f0cad933875be996ca6831e31e5b25c53549
      Long Description: CDO is a collection of command line Operators to manipulate and analyse Climate Data files. Supported file formats are GRIB, netCDF, SERVICE and EXTRA. There are more than 200 operators available.
      depends_lib port:netcdf

      configure.args --with-netcdf=${prefix} --disable-dependency-tracking

      post-destroot {
      xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/doc
      eval xinstall -m 644 [glob ${worksrcpath}/doc/*.pdf] ${destroot}${prefix}/share/doc/${name}/doc
      foreach f {AUTHORS COPYING ChangeLog INSTALL NEWS OPERATORS README} {
      eval xinstall -m 644 [glob ${worksrcpath}/${f}] ${destroot}${prefix}/share/doc/${name}
      }
      }

      Variant: netcdf4 description {enable netcdf4} {
      depends_lib-append port:hdf5-18
      configure.args-append --with-hdf5=${prefix} --with-szlib=${prefix}
      }

      livecheck.type regex
      livecheck.url ${homepage}
      livecheck.regex {Current version is ([0-9]+\.[0-9]+\.[0-9]+)}

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/cdo
      % sudo port install cdo
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching cdo
      ---> Verifying checksum for cdo
      ---> Extracting cdo
      ---> Configuring cdo
      ---> Building cdo with target all
      ---> Staging cdo into destroot
      ---> Installing cdo
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using cdo with these commands:
      %  man cdo
      % apropos cdo
      % which cdo
      % locate cdo

     Where to find more information:

    Darwin Ports



    Lightbox this page.