CDO-1.9.9-gompi-2020b.eb 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. easyblock = 'ConfigureMake'
  2. name = 'CDO'
  3. version = '1.9.9'
  4. homepage = 'https://code.zmaw.de/projects/cdo'
  5. description = """CDO is a collection of command line Operators to manipulate and analyse Climate and NWP model Data."""
  6. toolchain = {'name': 'gompi', 'version': '2020b'}
  7. toolchainopts = {'pic': True, 'usempi': True}
  8. source_urls = ['https://code.mpimet.mpg.de/attachments/download/23323/']
  9. sources = [SOURCELOWER_TAR_GZ]
  10. dependencies = [
  11. ('Python', '3.8.6'),
  12. ('HDF5', '1.10.7'),
  13. ('netCDF', '4.7.4'),
  14. ('YAXT', '0.6.2'),
  15. ('ecCodes', '2.19.1'),
  16. ('PROJ', '7.2.0'),
  17. ]
  18. configopts = "--with-hdf5=$EBROOTHDF5 --with-netcdf=$EBROOTNETCDF --with-eccodes=$EBROOTECCODES --with-proj=$EBROOTPROJ"
  19. # fix for linking issues with HDF5 libraries for libcdi, should link with both -lnetcdf and -lhdf5_hl -lhdf5
  20. prebuildopts = "find libcdi -name Makefile | xargs sed -i 's/-lnetcdf -lnetcdf/-lnetcdf -lhdf5_hl -lhdf5/g' && "
  21. sanity_check_paths = {
  22. 'files': ['bin/cdo'],
  23. 'dirs': [],
  24. }
  25. moduleclass = 'data'