-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
The offending code(
Line 50 in a94b10c
if attrs["product_type"] == "SLC": |
) has two issues:
- np.sin expects radians, not degrees
Per S1 product definition, the value is in degrees:
xarray_sentinel metadata reads it as degrees and does no conversion:
https://github.com/bopen/xarray-sentinel/blob/368df813c16ebf4483fdd4859cf79ca8f4f7a046/xarray_sentinel/sentinel1.py#L810
- The formula for ground spacing from slant range spacing is G = R / sin(ia), however the code calculates it incorrectly as G = R * sin(ia).
Metadata
Metadata
Assignees
Labels
No labels