Skip to content

Commit

Permalink
Merge pull request #78 from umr-lops/fix_error_pola
Browse files Browse the repository at this point in the history
fix missing argument polarization
  • Loading branch information
agrouaze authored Jul 2, 2024
2 parents e208c5c + 1897296 commit 7fdf4e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion slcl1butils/scripts/do_IW_L1C_SAFE_from_L1B_SAFE.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,9 @@ def append_ancillary_field(ancillary, ds_intra, ds_inter):
else:
raise ValueError("%s ancillary name not handled" % ancillary["name"])
# Get the polygons of the swath data
first_pola_available = ds_intra.coords['pol'].data[0]
polygons, coordinates, variables = get_swath_tiles_polygons_from_l1bgroup(
ds_intra, swath_only=True
ds_intra,polarization=first_pola_available, swath_only=True
)
# Crop the raster to the swath bounding box limit
raster_bb_ds = raster_cropping_in_polygon_bounding_box(
Expand Down
3 changes: 2 additions & 1 deletion slcl1butils/scripts/do_WV_L1C_SAFE_from_L1B_SAFE.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,9 @@ def append_ancillary_field(ancillary, ds_intra):
raster_ds = ww3_global_yearly_3h(filename, closest_date)

# Get the polygons of the swath data
first_pola_available = ds_intra.coords['pol'].data[0]
polygons, coordinates, variables = get_swath_tiles_polygons_from_l1bgroup(
ds_intra, swath_only=True
ds_intra,polarization=first_pola_available, swath_only=True
)
# Crop the raster to the swath bounding box limit

Expand Down

0 comments on commit 7fdf4e5

Please sign in to comment.