Nco version 3.9.9 - How to Download and Install on Mac OS X
Sunday the 8th of November, 2009

    version 3.9.9

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


      # -*- 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 nco Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: nco
      Version: 3.9.9
      Platform: darwin
      Revision: 1
      Maintainers: takeshi
      Category: science
      Description: The netCDF Operators
      Master Sites: http://${name}.sourceforge.net/src/
      Checksums: md5 0340b2adc2fc189c3766160b1c96ef7c sha1 f8e62993423cdf3c444637a8c280a8a62e725651 rmd160 e1721bf3f9ad1473dc0120651b6130830cd7c77c
      Homepage: http://nco.sourceforge.net/
      Long Description: Each NCO operator (e.g., ncks) takes netCDF or HDF input file(s), performs an operation (e.g., averaging, hyperslabbing, or renaming), and outputs a processed netCDF file. Although most users of netCDF and HDF data are involved in scientific research, these data formats, and thus NCO, are generic and are equally useful in fields like finance. This version is OPeNDAP/DODS enabled, so it can be given URLs to read remote datasets as if they were local netCDF files.

      depends_lib port:curl port:gettext port:libdap port:libiconv port:libxml2 port:netcdf port:openssl port:udunits port:zlib port:antlr port:gsl
      depends_build port:bison port:m4
      depends_run port:wget

      configure.env HAVE_ANTLR=yes ANTLR_ROOT=${prefix}
      configure.cppflags-append -I/usr/include/malloc
      configure.args --disable-dependency-tracking --mandir=${prefix}/share/man --enable-udunits --disable-udunits2 --disable-dap-netcdf --enable-dap-opendap --disable-netcdf4

      post-destroot {
      xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
      foreach f {ANNOUNCE ChangeLog LICENSE NEWS README TODO VERSION *.txt *.pdf} {
      eval xinstall -m 644 [glob ${worksrcpath}/doc/${f}] ${destroot}${prefix}/share/doc/${name}
      }
      }

      Variant: mpich2 description {enable MPI with mpich2} {
      depends_lib-append port:mpich2
      configure.args-append --enable-mpi
      }

      Variant: openmpi description {enable MPI with openmpi} {
      depends_lib-append port:openmpi
      configure.args-append --enable-mpi
      }

      Variant: udunits2 description {compile with udunits2} {
      depends_lib-delete port:udunits
      depends_lib-append port:udunits2
      configure.args-delete --enable-udunits --disable-udunits2
      configure.args-append --disable-udunits --enable-udunits2
      }

      Variant: netcdf4 description {enable netcdf4} {
      depends_lib-append port:hdf5-18 port:szip
      configure.env-append NETCDF4_ROOT=${prefix}
      configure.cppflags-append -DHAVE_NETCDF4_H
      configure.args-delete --disable-dap-netcdf --enable-dap-opendap --disable-netcdf4
      configure.args-append --enable-dap-netcdf --disable-dap-opendap --enable-netcdf4
      }

      livecheck.type regex
      livecheck.url ${homepage}
      livecheck.regex {Current NCO 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/nco
      % sudo port install nco
      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 nco
      ---> Verifying checksum for nco
      ---> Extracting nco
      ---> Configuring nco
      ---> Building nco with target all
      ---> Staging nco into destroot
      ---> Installing nco
    - 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 nco with these commands:
      %  man nco
      % apropos nco
      % which nco
      % locate nco

     Where to find more information:

    Darwin Ports



    Lightbox this page.