= Visualisation and Animation of ERA5 Reanalysis Climate Data = == Prerequisites == === NetCDF/HDF5 (on JURECA) === How to find out what modules to load for NetCDF/HDF5: {{{ #!bash module spider netcdf module spider hdf5 }}} Load modules e.g. by: {{{ #!bash module load Stages/2017a GCC/5.4.0 ParaStationMPI/5.1.9-1 module load netCDF/4.4.1.1 module load HDF5/1.8.18 }}} Just some examples of hot to use h5dump: {{{ #!bash h5dump -H wrf_rv025_r07_test.wrfout_3km.20100702130000-20100703000000.h5 | grep DATASET h5dump -a /T/description test.h5 h5dump -d XLAT -c "1,1,100" test.h5 # shows the 100 first entries from the 3d array XLAT }}} How to find out the version of a netcdf file: {{{ #!bash ncdump -k foo.nc }}} If ncdump returns netCDF-4, or netCDF-4 classic model, then congratulations, you already have an HDF file, as netCDF-4 is the netCDF data model implemented using HDF5 as the storage layer. These files can be ready by the HDF library version 1.8 or later, and from what I can tell, pytables. If ncdump returns classic or 64-bit offset, then you are using netCDF-3 and will need to convert to netCDF-4 (and thus HDF). The good news is that if you have netCDF installed, you can do the conversion pretty easily: {{{ #!bash nccopy -k 4 foo3.nc foo4c.nc }}} Graphical hdf5 viewer: HDFView is a very handy tool to investigate hdf5 files. To open HDFView on JURECA, either click on the HDFView icon on the desktop. Or launch HDFView by {{{ #!bash /usr/local/jsc/etc/xdg/scripts/launch_hdfview.sh }}} === Python on JURECA === To use Python on JURECA, you have to load some modules first, e.g. {{{ #!bash module use otherstages module --force purge && module load Stages/Devel-2017b GCC/7.2.0 ParaStationMPI/5.2.0-1 h5py/2.7.1-Python-2.7.14 }}}