Skip to content

Commit

Permalink
Merge pull request #233 from ASFHyP3/crop-speedup-changes
Browse files Browse the repository at this point in the history
Proposed changes to #232
  • Loading branch information
jhkennedy authored Sep 20, 2023
2 parents 2c343c8 + 39a01c4 commit d9462bb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 27 deletions.
5 changes: 0 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/)
and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [0.12.1]

### Fixed
* Patch [232](hyp3_autorift/vend/CHANGES-232.diff) was applied to significantly improve the performance of `crop_netcdf_product`.

## [0.12.0]

### Added
Expand Down
2 changes: 1 addition & 1 deletion hyp3_autorift/crop.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def crop_netcdf_product(netcdf_file: Path) -> Path:
# Update centroid information for the granule
center_lon_lat = to_lon_lat_transformer.transform(center_x, center_y)

cropped_ds['mapping'].attrs['latitude'] = round(center_lon_lat[1], 2)
cropped_ds['img_pair_info'].attrs['latitude'] = round(center_lon_lat[1], 2)
cropped_ds['img_pair_info'].attrs['longitude'] = round(center_lon_lat[0], 2)

# Update mapping.GeoTransform
Expand Down
21 changes: 0 additions & 21 deletions hyp3_autorift/vend/CHANGES-232.diff

This file was deleted.

0 comments on commit d9462bb

Please sign in to comment.