Skip to content

Commit

Permalink
try without float conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariana Barzinpour committed Nov 8, 2024
1 parent 1165a8f commit 4d288aa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions eodatasets3/wagl.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,7 @@ def mask_h5_vector(
shapes,
out_shape=data_array.shape,
fill=0,
transform=Affine.from_gdal(
*[val.item() for val in dataset.attrs["geotransform"]]
),
transform=Affine.from_gdal(*dataset.attrs["geotransform"]),
)
return numpy.where(mask_array == 0, data_array, dataset.attrs["no_data_value"])

Expand Down Expand Up @@ -341,7 +339,7 @@ def write_measurement_h5(
array=data,
geobox=GeoBox(
shape=g.shape,
affine=Affine.from_gdal(*[val.item() for val in g.attrs["geotransform"]]),
affine=Affine.from_gdal(*g.attrs["geotransform"]),
crs=CRS(g.attrs["crs_wkt"]).to_wkt(),
),
nodata=g.attrs.get("no_data_value"),
Expand Down

0 comments on commit 4d288aa

Please sign in to comment.