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.
Private: Reading a NetCDF file with Python
To read a NetCDF file using Python, the most common library is netCDF4. Another popular library that works with NetCDF files is xarray, which provides a more user-friendly interface, especially for large datasets. Here’s how to use both methods to read a NetCDF file. 1. Using netCDF4 Library Installation First, you need to install the […]
AERIS/ICARE was migrated his good old FTP server to SFTP
For security reason, we are abandoning the FTP protocol in favor of SFTP on our distribution server. Depending of the way you are using this service, you can have to change the commands you are used to. Note that not all applications support the SFTP protocol, and some additional tools may need to be installed […]
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)
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)
Writing an HDF file with C, FORTRAN, Python, MATLAB and R
Language/Format: Fortran,MATLAB,Python
Description: This page gives pieces of code to write data in an HDF4 file
Author(s): Nicolas PASCAL, Nicolas THOMAS, Aminata NDIAYE (CARE )
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)
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 )
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 )
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)