ICARE Data and Services Center Tutorials

ICARE wrote several tutorials on common subjects of interest. They are all listed on this page. If you have any questions, please contact our technical support team.

Creation of an HDF file with C, Fortran and Python :
Language/Format: C,Fortran,Python
Description: This page gives pieces of code to create and write data in an HDF4 file
Author(s): Nicolas Pascal, Nicolas Thomas (ICARE)
More...

Display 1D data with Python:
Language/Format:
Description: Gives an example for plotting a graph with Python and the Matplotlib library. The 1D data array is read from an HDF4 file.
Author(s): Nicolas Thomas (ICARE)
More...

Display 2D data with Python:
Language/Format: Python
Description: Gives an example for creating an image from 2D data with Python and the Matplotlib library. The data array is read from an HDF4 file.
Author(s): Nicolas Thomas ( ICARE )
More...

How to convert a matplotlib figure to a numpy array or a PIL image:
Language/Format: Python
Description: For manipulating a figure build with matplotlib, it is sometimes requested to convert it in a format understandable by other python libraries. This can be useful for using scipy image filters or manually adding annotations for example.
This page details how to convert a matplotlib figure to a numpy 3D array of RGBA values, or directly to a PIL ( Python Imaging Library ) Image.
Author(s): Nicolas Pascal (ICARE)
More...

How to decode bit flags :
Language/Format: Python
Description: It is often needed to extract bits values aggregated in higher size words, for example, for reading QA flags in CALIPSO or MODIS data. This page gives pieces of code and describes the way to do it.
Author(s): Nicolas Pascal (ICARE )
More...

Matlab compiler usage :
Language/Format: MATLAB
Description:
Notice: Constant DRUPAL_ROOT already defined in /home/www/htdocs/drupal/index.php on line 167
Descibes how to use the Matlab Compiler
Author(s): Nicolas Pascal (ICARE)
More...

MODIS geolocation:
Language/Format:
Description: In MODIS products, the geolocation datasets are not always given at the same resolution than the data fields. This page describes how the different resolutions are subsetted.
Author(s): Nicolas Pascal (ICARE)
More...

Reading a NetCDF file with Matlab and R:
Language/Format: MATLAB
Description: This page gives pieces of code to read data in a NetCDF file
Author(s): Aminata NDIAYE (ICARE)
More...

Reading an HDF file with C, FORTRAN, Python, IDL, MATLAB and R:
Language/Format: C,Fortran,IDL,Python
Description: This page gives pieces of code to read data in an HDF4 or HDF5 file
Author(s): Nicolas Pascal (ICARE)
More...

Writing a NetCDF file with Matlab and R :
Language/Format: MATLAB
Description: This page gives pieces of code to write data in a NetCDF file
Author(s): Aminata NDIAYE (ICARE)
More...

Pages