Skip to content

Commit

Permalink
Remove from attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbieker committed Nov 9, 2021
1 parent a6f93e7 commit cab9c5b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions satip/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@ def convert_scene_to_dataarray(scene: Scene, band: str, area: str) -> xr.DataArr
osgb_x, osgb_y = lat_lon_to_osgb(lat, lon)
dataset: xr.Dataset = scene.to_xarray_dataset()
# Add coordinate arrays, since x and y changes for each pixel, cannot replace dataset x,y coords with these directly
dataset.attrs["osgb_x_coords"] = osgb_x
dataset.attrs["osgb_y_coords"] = osgb_y
osgb_y = osgb_y[:,0]
osgb_x = osgb_x[0,:]
dataset = dataset.assign_coords(x=osgb_x,y=osgb_y)
Expand Down

0 comments on commit cab9c5b

Please sign in to comment.