Skip to content

Commit 1a214be

Browse files
authored
Merge pull request #53 from umr-lops/fix_issue52
fix issue 52 (numpy index/str casting issue)
2 parents f0e5f99 + b03b84c commit 1a214be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

safe_s1/reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ def get_calibration_luts(self):
668668
pol = os.path.basename(xml_file).split("-")[4].upper()
669669
pols.append(pol)
670670
tmp.append(luts_ds)
671-
ds = xr.concat(tmp, pd.Index(pols, name="pol"))
671+
ds = xr.concat(tmp, pd.Index(pols, name="pol").astype(np.str_))
672672
# ds.attrs = {'description':
673673
# 'original (ie not interpolation) xr.Dataset sigma0 and gamma0 Look Up Tables'}
674674
return ds

0 commit comments

Comments
 (0)