-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QGIS not recognizing HDF4 on macOS #144
Comments
@afitzgerrell it would be better if you could attach/link directly a file. Most of us won't have a Earthdata Login (I don't), thanks! Are you on a Intel mac or a M1? |
@gioman I'm on an intel mac. When I try to attach a file, I'm informed "We don't support that type of file type". Is there another avenue available for me to attach a data (.hdf) file? |
@afitzgerrell you can attach ZIP files up to 10mb. If the ZIP is bigger use a Dropbox/Google Drive/etc share link. |
Ah ha! Zip now attached. |
Works on Linux and Windows, will try on macOS tomorrow. |
Interesting, thanks @gioman. I have Windows running on a VM, so I downloaded and installed Hannover there. I see it does indeed work well on any type of HDF file (I don't normally work on that machine). I noticed the Windows-running Hannover is compiled with GDAL 3.4.0, but perhaps that's a red herring I'm focusing in on. Looking forward to see how your testing with macOS goes tomorrow. Thanks! Copied from the Windows VM Hannover "About QGIS" window: |
This is
On macOS it just returns
|
The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale". |
Hi, |
|
What is the bug or the crash?
When I add a file (MOD10A1.A2021346.h03v10.061.2021348044717.hdf) to a new project (from a fresh QGIS download/install) of QGIS at 3.16.15, I receive a warning that this "Invalid Data Source: is not a valid or recognized data source.". I'm working on a MacBook Pro. macOS Big Sur at v11.6.2.
Background:
My prior version of QGIS at 3.10 A Coruña is compiled against GDAL/OGR | 2.4.1 and handles MODIS files well, but not HDF5 files. That prompted me to try upgrading to the latest LTR. While I think it's the GDAL version that's leading to A Coruña not accepting HDF5 files, I'm confused why Hannover, compiled against GDAL/OGR | 3.2.1, is not accepting HDF4 since my independent GDAL install (3.2.2) has drivers for both HDF4 and HDF5 files. Checking the GDAL website, and GDAL 3.2.1 should also contain drivers for HDF4.
I'll note that I don't think I'm doing anything incorrectly, but anything's possible! I apologize in advance if this is user-error as opposed to not an actual bug, but I'd appreciate learning what I should be doing differently if that's all it takes.
Many thanks!
amy
Steps to reproduce the issue
Visit Earthdata Search and download the MOD10A1 v61 file MOD10A1.A2021346.h03v10.061.2021348044717.hdf. The following link should bring you to the granule to then download - you'll need to have an Earthdata Login to proceed with downloading the file, however (I'd have attached it here for you but that doesn't look to be allowed):
https://search.earthdata.nasa.gov/search/granules?p=C1646610417-NSIDC_ECS&pg[0][v]=f&pg[0][id]=MOD10A1.A2021346.h03v10.061.2021348044717*&pg[0][gsk]=-start_date&g=G2183651300-NSIDC_ECS&q=mod10a1&tl=1640199283.717!3!!&m=-14.994140625000002!-150.626953125!4!1!0!0%2C2
Add this (either via dragging and dropping or via the Data Source Manager - Raster option) to a freshly installed, empty project, and the red message appears at the top of the application window.
Versions
<style type="text/css"> p, li { white-space: pre-wrap; } </style>Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: