# HDF4

**URL:** https://forum.hdfgroup.org/c/hdf4/21.md

[Latest](https://forum.hdfgroup.org/latest.md) · [Categories](https://forum.hdfgroup.org/categories.md)

---

## [HDF4 change procedure](https://forum.hdfgroup.org/t/hdf4-change-procedure/11240)

<div class="topic-metadata">

**Author:** [@derobins](https://forum.hdfgroup.org/u/derobins)\
**Replies:** 0\
**Last updated:** [June 28, 2023, 8:08am UTC](https://forum.hdfgroup.org/t/hdf4-change-procedure/11240 "2023-06-28T08:08:35Z")

</div>

Breaking Changes While maintaining HDF4, we strive to preserve compatibility in the file format, API, and build system. Sometimes, however, we have to break these things in order to keep the library functional as langua…

---

## [About the HDF4 category](https://forum.hdfgroup.org/t/about-the-hdf4-category/10698)

<div class="topic-metadata">

**Author:** [@lori.cooper](https://forum.hdfgroup.org/u/lori.cooper)\
**Replies:** 0\
**Last updated:** [January 13, 2023, 6:39pm UTC](https://forum.hdfgroup.org/t/about-the-hdf4-category/10698 "2023-01-13T18:39:08Z")

</div>

All HDF4 questions.

---

## [Fortran interface still problematic on 64-bit?](https://forum.hdfgroup.org/t/fortran-interface-still-problematic-on-64-bit/13298)

<div class="topic-metadata">

**Author:** [@normw013](https://forum.hdfgroup.org/u/normw013)\
**Replies:** 2\
**Last updated:** [May 30, 2025, 2:54pm UTC](https://forum.hdfgroup.org/t/fortran-interface-still-problematic-on-64-bit/13298 "2025-05-30T14:54:31Z")

</div>

Looking back at this post from @derobins: is the Fortran interface still unsupported on 64-bit applications? I suspect so, but searching through the current user guide and reference manual, I didn’t find this limitat…

---

## [Dropping Autotools in HDF4](https://forum.hdfgroup.org/t/dropping-autotools-in-hdf4/13248)

<div class="topic-metadata">

**Author:** [@bmribler](https://forum.hdfgroup.org/u/bmribler)\
**Replies:** 0\
**Last updated:** [May 6, 2025, 4:44pm UTC](https://forum.hdfgroup.org/t/dropping-autotools-in-hdf4/13248 "2025-05-06T16:44:56Z")

</div>

Starting with the HDF 4.4.0 release, HDF4 will no longer support Autotools. HDF 4.3.x will continue to support Autotools, but the release of HDF 4.3.1 in the summer of 2025 will be the last release of that series. This…

---

## [.nc file clipped from .hdf file won't appear properly geolocated in GIS](https://forum.hdfgroup.org/t/nc-file-clipped-from-hdf-file-wont-appear-properly-geolocated-in-gis/12447)

<div class="topic-metadata">

**Author:** [@ashishgan96](https://forum.hdfgroup.org/u/ashishgan96)\
**Replies:** 2\
**Last updated:** [July 2, 2024, 8:38pm UTC](https://forum.hdfgroup.org/t/nc-file-clipped-from-hdf-file-wont-appear-properly-geolocated-in-gis/12447 "2024-07-02T20:38:56Z")

</div>

I had created a code in python that converts the hdf file into nc file and clips it for a defined region. When I plot in the python everything seems alright. But if I import the .nc file into QGIS, the extent of the imag…

---

## [HDF-4.2.11 compile issue](https://forum.hdfgroup.org/t/hdf-4-2-11-compile-issue/11997)

<div class="topic-metadata">

**Author:** [@luolina1992](https://forum.hdfgroup.org/u/luolina1992)\
**Replies:** 2\
**Last updated:** [February 6, 2024, 8:50pm UTC](https://forum.hdfgroup.org/t/hdf-4-2-11-compile-issue/11997 "2024-02-06T20:50:24Z")

</div>

When I compiled the HDF-4.2.11 and also the 4.2.14 and 4.2.15 versions, after successfully configuration, I failed the make step with the same problem related to ‘xdf’ and could not find a method to fix this. libtool: l…

---

## [HDF4 SSL Dependency](https://forum.hdfgroup.org/t/hdf4-ssl-dependency/11851)

<div class="topic-metadata">

**Author:** [@shawn.fox](https://forum.hdfgroup.org/u/shawn.fox)\
**Replies:** 11\
**Last updated:** [January 20, 2024, 9:19pm UTC](https://forum.hdfgroup.org/t/hdf4-ssl-dependency/11851 "2024-01-20T21:19:39Z")

</div>

I have noticed that HDF4 has a dependency on an openssl library which I didn’t see a requirement for within the build examples. I’m using cmake to build it but I do not see any configuration option for specifying a cust…

---

## [Reading the Attributes of an HDF-EOS File](https://forum.hdfgroup.org/t/reading-the-attributes-of-an-hdf-eos-file/11902)

<div class="topic-metadata">

**Author:** [@ellisonccastro](https://forum.hdfgroup.org/u/ellisonccastro)\
**Replies:** 1\
**Last updated:** [January 9, 2024, 8:07pm UTC](https://forum.hdfgroup.org/t/reading-the-attributes-of-an-hdf-eos-file/11902 "2024-01-09T20:07:02Z")

</div>

I am reading an HDF-EOS swath file with HDFEOS2 built with HDF4, and I want to read the attributes of a data field such as the valid range, fill value, and scale factor. The file has this structure: Swath Data Field (…

---

## [Undefined Reference to 'gdopen'](https://forum.hdfgroup.org/t/undefined-reference-to-gdopen/11636)

<div class="topic-metadata">

**Author:** [@ellisonccastro](https://forum.hdfgroup.org/u/ellisonccastro)\
**Replies:** 12\
**Last updated:** [October 31, 2023, 4:39am UTC](https://forum.hdfgroup.org/t/undefined-reference-to-gdopen/11636 "2023-10-31T04:39:45Z")

</div>

I am trying to build HDF-EOS2 for an Ubuntu 20.04 system and for Fortran, and have been following the steps presented in here How to build HDF-EOS. All of the dependencies of HDF-EOS2 were built from source and are inst…

---

## [Weird HDF4 Behavior on macOS](https://forum.hdfgroup.org/t/weird-hdf4-behavior-on-macos/11603)

<div class="topic-metadata">

**Author:** [@matthew.thompson](https://forum.hdfgroup.org/u/matthew.thompson)\
**Replies:** 11\
**Last updated:** [October 12, 2023, 12:25pm UTC](https://forum.hdfgroup.org/t/weird-hdf4-behavior-on-macos/11603 "2023-10-12T12:25:20Z")

</div>

I’m having a weird issue with HDF4 on macOS compared to Linux. In my libraries, I have built HDF4 4.2.15 on both machines. We first noticed this with netcdf (via ncdump, asked about Odd ncdump + hdf4 behavior on macOS · …

---

## [Error building 4.2.16-2 on MacOS Ventura with ARM CPU](https://forum.hdfgroup.org/t/error-building-4-2-16-2-on-macos-ventura-with-arm-cpu/11530)

<div class="topic-metadata">

**Author:** [@tom.block](https://forum.hdfgroup.org/u/tom.block)\
**Replies:** 2\
**Last updated:** [September 14, 2023, 6:17pm UTC](https://forum.hdfgroup.org/t/error-building-4-2-16-2-on-macos-ventura-with-arm-cpu/11530 "2023-09-14T18:17:58Z")

</div>

Hi everybody, while trying to build 4.2.16-2 on a Ventura 13.5 with an M1 CPU, I encounter the following error message: ./build-unix.sh CMake Error at /hdf/CMake-hdf-4.2.16-2/HDF4config.cmake:204 (else): Flow contro…

---

## [Error while compiling HDF4 with intel icx compiler](https://forum.hdfgroup.org/t/error-while-compiling-hdf4-with-intel-icx-compiler/11273)

<div class="topic-metadata">

**Author:** [@varsha.felzy](https://forum.hdfgroup.org/u/varsha.felzy)\
**Replies:** 7\
**Last updated:** [July 21, 2023, 4:26pm UTC](https://forum.hdfgroup.org/t/error-while-compiling-hdf4-with-intel-icx-compiler/11273 "2023-07-21T16:26:27Z")

</div>

Hi, I was trying to compile HDF4-4.2.16, I am not getting any error while doing make(even though there are a number of warnings), but when I do make check it says a number of tests have been failed. My system is: Linux…

---

## [HDF4 proposed changes](https://forum.hdfgroup.org/t/hdf4-proposed-changes/11241)

<div class="topic-metadata">

**Author:** [@derobins](https://forum.hdfgroup.org/u/derobins)\
**Replies:** 0\
**Last updated:** [June 28, 2023, 8:25am UTC](https://forum.hdfgroup.org/t/hdf4-proposed-changes/11241 "2023-06-28T08:25:51Z")

</div>

Hi all, I’ve added a bunch of discussions concerning some HDF4 changes I’d like to make in the coming year or two. Many of these are potentially breaking, mostly in the build system, but others in what we consider the p…

---

## [Who still uses the Fortran interface?](https://forum.hdfgroup.org/t/who-still-uses-the-fortran-interface/10854)

<div class="topic-metadata">

**Author:** [@derobins](https://forum.hdfgroup.org/u/derobins)\
**Replies:** 4\
**Last updated:** [March 7, 2023, 12:51am UTC](https://forum.hdfgroup.org/t/who-still-uses-the-fortran-interface/10854 "2023-03-07T00:51:29Z")

</div>

The Fortran interface in HDF4 is broken on 64-bit systems since it stores pointers in 32-bit Fortran INTEGER values. If it’s working for you on a 64-bit system, that’s an accident. Since there’s no funding to rework the…

---

## [Does anyone use the HDF4-built netCDF tools?](https://forum.hdfgroup.org/t/does-anyone-use-the-hdf4-built-netcdf-tools/10855)

<div class="topic-metadata">

**Author:** [@derobins](https://forum.hdfgroup.org/u/derobins)\
**Replies:** 0\
**Last updated:** [February 20, 2023, 6:41pm UTC](https://forum.hdfgroup.org/t/does-anyone-use-the-hdf4-built-netcdf-tools/10855 "2023-02-20T18:41:31Z")

</div>

When you build HDF4, you also get some HDF4-built versions of netCDF tools: ncdump and ncgen and the nctest test program. Are these important to anyone? They are based on a very old version of netCDF (2.3.2, circa 1993)…

---

## [HDF4 4.2.16 testers wanted!](https://forum.hdfgroup.org/t/hdf4-4-2-16-testers-wanted/10729)

<div class="topic-metadata">

**Author:** [@derobins](https://forum.hdfgroup.org/u/derobins)\
**Replies:** 1\
**Last updated:** [February 11, 2023, 3:12am UTC](https://forum.hdfgroup.org/t/hdf4-4-2-16-testers-wanted/10729 "2023-02-11T03:12:41Z")

</div>

We’ve been making a lot of changes to HDF4 to bring it, kicking and screaming, into the 2020s. We’ve been particularly keen to get it working on ARM processors, including Apple’s M1 and M2 platforms. Feedback regarding M…

---

## [Hdf4 install error when use make](https://forum.hdfgroup.org/t/hdf4-install-error-when-use-make/9135)

<div class="topic-metadata">

**Author:** [@nenghan](https://forum.hdfgroup.org/u/nenghan)\
**Replies:** 1\
**Last updated:** [January 13, 2023, 7:04pm UTC](https://forum.hdfgroup.org/t/hdf4-install-error-when-use-make/9135 "2023-01-13T19:04:03Z")

</div>

Hi, Sir, I’m trying to install the HDF-EOS2 library, before that I need to install HDF4, I already installed zlib and jpeg, here is what I did to install HDF4: cd hdf-4.2.15 ./configure --disable-fortran --enable-pro…

---

## [Error while install HDF4 (4.2.15) as a dependency for HDF-EOS2](https://forum.hdfgroup.org/t/error-while-install-hdf4-4-2-15-as-a-dependency-for-hdf-eos2/9194)

<div class="topic-metadata">

**Author:** [@srikarkalyanam.21](https://forum.hdfgroup.org/u/srikarkalyanam.21)\
**Replies:** 1\
**Last updated:** [January 13, 2023, 7:01pm UTC](https://forum.hdfgroup.org/t/error-while-install-hdf4-4-2-15-as-a-dependency-for-hdf-eos2/9194 "2023-01-13T19:01:59Z")

</div>

Hi, I am trying to install HDF4 (4.2.15) as a dependency for HDF-EOS2. I am installing in my Ubuntu system. while configuring i have no issues, \[./configure --with-zlib=$WORKING --with-jpeg=$WORKING --with-szlib=$ZLIB…

---

## [HDF4 undefined reference on redhat 8](https://forum.hdfgroup.org/t/hdf4-undefined-reference-on-redhat-8/10076)

<div class="topic-metadata">

**Author:** [@zheng](https://forum.hdfgroup.org/u/zheng)\
**Replies:** 0\
**Last updated:** [August 12, 2022, 3:27pm UTC](https://forum.hdfgroup.org/t/hdf4-undefined-reference-on-redhat-8/10076 "2022-08-12T15:27:06Z")

</div>

I have an old fortran program that reads a .hdf file. I can compile/link on redhat 7 but not working on redhat 8. I have installed hdf.x86\_64, hdf-devel.x86\_64, hdf-static.x86\_64 from epel repository. The lib files are …

---

## [Building HDF4 on Graviton2 (aarch64): Any patches?](https://forum.hdfgroup.org/t/building-hdf4-on-graviton2-aarch64-any-patches/7463)

<div class="topic-metadata">

**Author:** [@matthew.thompson](https://forum.hdfgroup.org/u/matthew.thompson)\
**Replies:** 2\
**Last updated:** [January 6, 2023, 5:32pm UTC](https://forum.hdfgroup.org/t/building-hdf4-on-graviton2-aarch64-any-patches/7463 "2023-01-06T17:32:48Z")

</div>

All, I’m wondering/hoping that someone out there might have a nice patch I can borrow/steal/gratefully use for this. Namely, I’m trying to build HDF4 on a Graviton2 (Amazon’s Arm processor) node on AWS. The issue is th…

---

## [HDF-4.2.14 compilation error with GCC-10](https://forum.hdfgroup.org/t/hdf-4-2-14-compilation-error-with-gcc-10/6625)

<div class="topic-metadata">

**Author:** [@sagitter1](https://forum.hdfgroup.org/u/sagitter1)\
**Replies:** 5\
**Last updated:** [December 14, 2022, 6:37pm UTC](https://forum.hdfgroup.org/t/hdf-4-2-14-compilation-error-with-gcc-10/6625 "2022-12-14T18:37:15Z")

</div>

Hi all. HDF(4)-4.2.14 is not compiling with latest GNU compiler release 10.0.1 on Fedora Linux (devel branch): /bin/sh ../../libtool --tag=F77 --mode=compile gfortran -O2 -g -pipe -Wall -Werror=format-security -Wp,…
