ORAC-CC / orac

Optimal Retrieval of Aerosol and Cloud
GNU General Public License v3.0
28 stars 19 forks source link

Remove include hdf.f90 statements #76

Closed adamcpovey closed 1 year ago

adamcpovey commented 1 year ago

Recent versions of the HDF 4 library removed the hdf.f90 'header' file that we used to include parameters. The Fortran 77 version of the file, hdf.inc, remains but cannot be directly included within Fortran 90 code. I got around this by generating the desired header from the remaining one using sed but that is a non-obvious step that prevents straightforward use of an external library.

This commit creates a common module from hdf.inc and replaces the include commands with uses of that module. This should be robust against future revision of the HDF library. Would like someone to check that this works "as is".