Installation netcdf4 : Différence entre versions

Un article de Informaticiens département des sciences de la Terre et l'atmosphère
Aller à: navigation, charcher
(Created page with "Installing the required dependencies There are only two dependencies to install, HDF5 (>=1.8.2) and netCDF4. The version of HDF5 shipped with Karmic is 1.6.6, so you'll need to c...")
 
 
Ligne 1: Ligne 1:
Installing the required dependencies
+
Installing the required dependencies There are only two dependencies to install, HDF5 (>=1.8.2) and netCDF4. The version of HDF5 shipped with Karmic is 1.6.6, so you'll need to compile from source. Lucid will ship with 1.8.3 so that won't be necessary, but until then, read on.
There are only two dependencies to install, HDF5 (>=1.8.2) and netCDF4. The version of HDF5 shipped with Karmic is 1.6.6, so you'll need to compile from source. Lucid will ship with 1.8.3 so that won't be necessary, but until then, read on.
+
 
 +
HDF5 Download the current HDF5 source release.  
  
HDF5
 
Download the current HDF5 source release.
 
 
  Unpack, go into the directory and execute:
 
  Unpack, go into the directory and execute:
 
  ./configure --prefix=/usr/local --enable-shared --enable-hl
 
  ./configure --prefix=/usr/local --enable-shared --enable-hl
 
  make  
 
  make  
 
  sudo make install
 
  sudo make install
To speed things up, compile on more than one processor using
+
 
 +
To speed things up, compile on more than one processor using  
  
 
  make -j n  
 
  make -j n  
where n is the number of processes to be launched.
 
  
netCDF4
+
where n is the number of processes to be launched.
Download the current netCDF4 source release.
+
 
Unpack, go into the directory and execute:
+
netCDF4 Download the current netCDF4 source release. Unpack, go into the directory and execute:  
 +
 
 
  LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include ./configure --enable-netcdf-4 --enable-dap --enable-shared --prefix=/usr/local
 
  LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include ./configure --enable-netcdf-4 --enable-dap --enable-shared --prefix=/usr/local
 
  make  
 
  make  
 
  make install
 
  make install
  
 +
<br>
  
 
  When both HDF5 and netCDF4 are in /usr/local, make sure the linker will be able to find those libraries by executin
 
  When both HDF5 and netCDF4 are in /usr/local, make sure the linker will be able to find those libraries by executin
  
 
  pip install netcdf4
 
  pip install netcdf4
 +
 +
 +
Install via Anaconda.
 +
 +
 +
Obtenir Anaconda au lien suivant selon la plateforme:
 +
 +
 +
https://www.continuum.io/downloads
 +
Choisir la version désirée, télécharger et rendre executable par chmod.
 +
 +
faire ./Anaconda2-4.0.0-Linux-x86_64.sh (ne pas copier exemple mais prendre nom du fichier téléchargé du site web)
 +
 +
 +
Une fois Anaconda installé dans le compte de l'usager, faire "% conda install netcdf4

Version actuelle datée du 20 de juin 2016 à 19:21

Installing the required dependencies There are only two dependencies to install, HDF5 (>=1.8.2) and netCDF4. The version of HDF5 shipped with Karmic is 1.6.6, so you'll need to compile from source. Lucid will ship with 1.8.3 so that won't be necessary, but until then, read on.

HDF5 Download the current HDF5 source release.

Unpack, go into the directory and execute:
./configure --prefix=/usr/local --enable-shared --enable-hl
make 
sudo make install

To speed things up, compile on more than one processor using

make -j n 

where n is the number of processes to be launched.

netCDF4 Download the current netCDF4 source release. Unpack, go into the directory and execute:

LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include ./configure --enable-netcdf-4 --enable-dap --enable-shared --prefix=/usr/local
make 
make install


When both HDF5 and netCDF4 are in /usr/local, make sure the linker will be able to find those libraries by executin
pip install netcdf4

Install via Anaconda.

Obtenir Anaconda au lien suivant selon la plateforme:


https://www.continuum.io/downloads
Choisir la version désirée, télécharger et rendre executable par chmod.

faire ./Anaconda2-4.0.0-Linux-x86_64.sh (ne pas copier exemple mais prendre nom du fichier téléchargé du site web)

Une fois Anaconda installé dans le compte de l'usager, faire "% conda install netcdf4