Skip to content

Commit

Permalink
Merge pull request #102 from oarcher/develop
Browse files Browse the repository at this point in the history
use s1meta.pixel_axtrack_m for Sentinel1Dataset.pixel_axtrack_m
  • Loading branch information
oarcher authored Jun 2, 2022
2 parents c03866a + 3cb00b6 commit a2873d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xsar/sentinel1_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,12 +420,12 @@ def len_xtrack_m(self):
@property
def pixel_atrack_m(self):
"""atrack pixel spacing, in meters (relative to dataset)"""
return self.len_atrack_m / self.dataset.atrack.size
return self.s1meta.pixel_atrack_m * np.unique(np.round(np.diff(self._dataset['atrack'].values), 1))[0]

@property
def pixel_xtrack_m(self):
"""xtrack pixel spacing, in meters (relative to dataset)"""
return self.len_xtrack_m / self.dataset.xtrack.size
return self.s1meta.pixel_xtrack_m * np.unique(np.round(np.diff(self._dataset['xtrack'].values), 1))[0]

@property
def coverage(self):
Expand Down

0 comments on commit a2873d3

Please sign in to comment.