Skip to content

Commit

Permalink
Merge pull request #301 from raphaelrpl/big
Browse files Browse the repository at this point in the history
🐛 fix bug related myd datasets extraction to geotiff (close #300)
  • Loading branch information
raphaelrpl authored Dec 20, 2024
2 parents e9c0e18 + 6b303d2 commit c5f0ec9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ Changes
=======


Version 1.0.1 (2024-12-20)
--------------------------

- Fix HDF extract for MYD datasets (`300 <https://github.com/brazil-data-cube/bdc-collection-builder/issues/300>`_.)


Version 1.0.0 (2024-12-16)
--------------------------

Expand Down
2 changes: 1 addition & 1 deletion bdc_collection_builder/collections/hdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def to_geotiff(hdf_path: str, destination: str, band_map: Dict[str, dict]) -> It
for data_set_name, _ in data_set.GetSubDatasets():
formal_name = data_set_name.split(":")[-1].replace('"', "")
band_name = '_'.join(formal_name.split(' ')[3:])
if not band_name and base_name.startswith("MOD"):
if not band_name and (base_name.startswith("MOD") or base_name.startswith("MYD")):
band_name = formal_name

data_set = gdal.Open(data_set_name)
Expand Down
2 changes: 1 addition & 1 deletion bdc_collection_builder/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
"""


__version__ = '1.0.0'
__version__ = '1.0.1'

0 comments on commit c5f0ec9

Please sign in to comment.