Skip to content

Commit

Permalink
test change in flips
Browse files Browse the repository at this point in the history
  • Loading branch information
vincelhx committed Oct 15, 2024
1 parent ac6b505 commit aae2a4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xsar/rcm_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class RcmMeta(BaseMeta):

@timing
def __init__(self, name):
super().__init__()
super().__init__()

from safe_rcm import api
if ':' in name:
Expand Down Expand Up @@ -106,7 +106,7 @@ def flip_sample_da(self):
antenna_pointing = self.dt['sourceAttributes/radarParameters'].attrs['antennaPointing']
pass_direction = self.dt['sourceAttributes/orbitAndAttitude/orbitInformation'].attrs['passDirection']
flipped_cases = [('Left', 'Ascending'), ('Right', 'Descending')]
samples_depending_ds = ['geolocationGrid', 'lut', 'noise_lut']
samples_depending_ds = ['geolocationGrid']
if (antenna_pointing, pass_direction) in flipped_cases:
for ds_name in samples_depending_ds:
self.dt[self._xpath[ds_name]] = self.dt[self._xpath[ds_name]].copy().isel(pixel=slice(None, None, -1))\
Expand Down

0 comments on commit aae2a4c

Please sign in to comment.