Difference between revisions of "UsingNetCDF"

From SourceWiki
Jump to navigation Jump to search
Line 7: Line 7:
  
 
<pre>
 
<pre>
 +
wget http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-4.0.tar.gz
 +
</pre>
  
  
 +
<pre>
 +
tar -xzf netcdf-4.0.tar.gz
 +
cd netcdf-4.0
 +
./configure --prefix=/opt/netcdf/netcdf-4.0 --enable-shared FC=ifort CC=gcc CXX=g++ CPPFLAGS="-DpgiFortran"
 +
make
 +
make check
 +
make install
 
</pre>
 
</pre>
  

Revision as of 16:29, 9 June 2009

Using NetCDF files for your data

Introduction

Admin Details

Compiling the NetCDF Libraries from Unidata

wget http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-4.0.tar.gz


tar -xzf netcdf-4.0.tar.gz
cd netcdf-4.0
./configure --prefix=/opt/netcdf/netcdf-4.0 --enable-shared FC=ifort CC=gcc CXX=g++ CPPFLAGS="-DpgiFortran"
make
make check
make install


Installing the Python Interface

wget http://sourcesup.cru.fr/frs/download.php/1833/Numeric-23.8.2.tar.gz
wget http://sourcesup.cru.fr/frs/download.php/2309/ScientificPython-2.8.tar.gz