Skip to content

Commit

Permalink
Fix ULY in tile MTD
Browse files Browse the repository at this point in the history
  • Loading branch information
telespazio-tim committed Feb 16, 2023
1 parent 9919965 commit f76a94a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
11 changes: 11 additions & 0 deletions sen2like/release-notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Sen2Like Release Notes

## v4.2.1

### Known issues

* sen2like not stable when `--parallelize-bands` program argument is used

### Fix

- Fix Tile MTD ULY value


## v4.2.0

### **Breaking changes**
Expand Down
8 changes: 4 additions & 4 deletions sen2like/sen2like/core/QI_MTD/mtd_writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,10 @@ def __init__(self, sensor: str, input_xml_path: str, H_F='H', outfile: str = Non
def manual_replaces(self, product: S2L_Product):

tile = loads(search_db(product.mtl.mgrs, search='UTM_WKT'))
x_min = int(tile.bounds[0])
y_min = int(tile.bounds[1])
change_elm(self.root_out, './Geometric_Info/Tile_Geocoding/Geoposition/ULX', new_value=str(x_min))
change_elm(self.root_out, './Geometric_Info/Tile_Geocoding/Geoposition/ULY', new_value=str(y_min))
ul_x = int(tile.bounds[0])
ul_y = int(tile.bounds[3])
change_elm(self.root_out, './Geometric_Info/Tile_Geocoding/Geoposition/ULX', new_value=str(ul_x))
change_elm(self.root_out, './Geometric_Info/Tile_Geocoding/Geoposition/ULY', new_value=str(ul_y))

angles_path = os.path.join('GRANULE', metadata.mtd.get(f'granule_{self.H_F}_name'), 'QI_DATA',
metadata.mtd.get('ang_filename'))
Expand Down
2 changes: 1 addition & 1 deletion sen2like/sen2like/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Version of the Application."""

__version__ = '4.2.0'
__version__ = '4.2.1'

_splitted_version = __version__.split('.')

Expand Down

0 comments on commit f76a94a

Please sign in to comment.