Date: May 21st 2016
Last updated: May 21st 2016

Useful resources

setup virtualenv

mkproject -p python3 --no-site-packages Maps

install dependencies & extra modules

pip install scipy
pip install numpy
pip install matplotlib
pip install requests
pip install datetime

install basemap

sudo apt-get install python-matplotlib
sudo apt-get install python-mpltoolkits.basemap

install hdf5

# download and untar file
cd hdf5-1.8.17/
./configure --prefix=/usr/local/hdf5
sudo make
sudo make check
sudo make install

install netCD4

# download and untar file
export HDF5_DIR=/usr/local/hdf5
cd netcdf-4.4.0/
CPPFLAGS=-I/$HDF5_DIR/include LDFLAGS=-L/$HDF5_DIR/lib ./configure --prefix=/usr/local --enable-netcdf-4 --enable-dap
sudo make clean
sudo make
sudo make check
sudo make install

install python-netcd4

pip install netCDF4

check install by importing modules in python

from bs4 import BeautifulSoup
import requests
from datetime import datetime
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap, addcyclic
from scipy.ndimage.filters import minimum_filter, maximum_filter
from netCDF4 import Dataset

results matching ""

    No results matching ""