Skip to content

scollis/nansat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status DOI

NANSAT

Nansat is a scientist friendly Python toolbox for processing 2D satellite earth observation data.

The main goal of Nansat is to facilitate:

  • easy development and testing of scientific algorithms,
  • easy analysis of geospatial data, and
  • efficient operational processing.

We appreciate acknowledments of Nansat. Please add "The image analysis was performed with the open-source NanSat (https://github.com/nansencenter/nansat) python package" (or equivalent) if you use Nansat in scientific publications.

Easy to install

The easiest way to install Nansat on a Linux machine is to use anaconda

# download the latest version of miniconda
wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh

# make it executable
chmod +x miniconda.sh

# install miniconda virtual environment
./miniconda.sh -b -f -p $HOME/miniconda

# deactivate existing packages
export PYTHONPATH=

# activate the environment
export PATH=$HOME/miniconda/bin/:$PATH

# install some requirements from common repositories
conda install -q --yes numpy scipy matplotlib nose pillow basemap netcdf4 proj.4

#install some requirements from NERSC repository
conda install -q --yes -c https://conda.anaconda.org/nersc nansat-gdal

# configure environment
export GDAL_DATA=$HOME/miniconda/share/gdal/
export GEOS_DIR=$HOME/miniconda/

# finally install Nansat
pip install https://github.com/nansencenter/nansat/archive/master.tar.gz

# run tests
nosetests nansat

Fore more information see Install-Nansat section or use pre-configure virtual machines as explained on Nansat-lectures

Easy to use

# download a test file
!wget https://github.com/nansencenter/nansat/raw/develop/nansat/tests/data/stere.tif

# import main file opener
from nansat import Nansat

# open a test file
n = Nansat('stere.tif')

# see file content
print n

# view file footpring
n.write_map('stere.footpring.png')

# create RGB with auto-stretched histogram
n.write_figure('stere_rgb.png', [1,2,3], clim='hist')

Fore more information see Tutorial or notebooks for Nansat lectures

Acknowledgements

Development is supported by the Research Council of Norway as a part of NORMAP project (grant no. 195397/V30).

About

Scientist friendly Python toolbox for processing 2D satellite Earth observation data.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 91.5%
  • C 7.6%
  • Other 0.9%