Cdo version 1.4.0.1 - How to Download and Install on Mac OS X
Friday the 19th of March, 2010

    version 1.4.0.1

      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.4.0.1 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 60628 2009-11-18 03:47:54Z takeshi macports.org $

      PortSystem 1.0

      Name: cdo
      Version: 1.4.0.1
      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 dcc309b160b8117419374c70290d9773 sha1 a74c4e369d1de2e8eb4f566ae2fa16eba7e487a1 rmd160 320d131912f5506e3a4bdd3f40ccf2d1dc168f36
      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 ChangeLog 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]+\.*[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.