Skip to content

Commit 1e27034

Browse files
authored
DAS-2419: Restores datatree string behavior (#29)
1 parent 106a2fc commit 1e27034

4 files changed

Lines changed: 13 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [v1.3.0] - 2025-09-16
9+
10+
### Changed
11+
12+
- Changes parameters when opening xarray.datatree so that strings are decoded from characters properly.
13+
- Internally updates xarray and removes h5netcdf dependencies.
14+
815
## [v1.2.0] - 2025-09-02
916

1017
### Changed
@@ -86,6 +93,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8693
for a variable as specified via an `earthdata-varinfo` configuration file.
8794
- Initial repository setup with utility scripts and Dockerfiles.
8895

96+
[v1.3.0]: https://github.com/nasa/harmony-metadata-annotator/releases/tag/1.3.0
8997
[v1.2.0]: https://github.com/nasa/harmony-metadata-annotator/releases/tag/1.2.0
9098
[v1.1.0]: https://github.com/nasa/harmony-metadata-annotator/releases/tag/1.1.0
9199
[v1.0.4]: https://github.com/nasa/harmony-metadata-annotator/releases/tag/1.0.4

docker/service_version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.0
1+
1.3.0

metadata_annotator/annotate.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,10 @@ def amend_in_file_metadata(
7878
with xr.open_datatree(
7979
input_file_name,
8080
decode_times=False,
81+
decode_timedelta=False,
8182
decode_coords=False,
82-
decode_cf=False,
83+
concat_characters=True,
84+
use_cftime=False,
8385
mask_and_scale=False,
8486
) as datatree:
8587
# Update all pre-existing variables or groups with metadata overrides including

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ cftime ~= 1.6.4
33
earthdata-varinfo ~= 3.0.2
44
harmony-service-lib ~= 2.5.0
55
netCDF4 ~= 1.6.5
6-
xarray == 2025.8.0
7-
h5netcdf == 1.6.4
6+
xarray == 2025.9.0

0 commit comments

Comments
 (0)