Skip to content

Commit

Permalink
Merge pull request #15 from umr-lops/landmask-management
Browse files Browse the repository at this point in the history
fix bug with pol attr
  • Loading branch information
agrouaze authored Feb 15, 2024
2 parents 73bbec2 + 957b798 commit 6bce46b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion l2awinddirection/mainl2awinddirection.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,11 @@ def main():
res = generate_wind_product(tiles, model_m64rn4)
res.attrs["winddirection_L2A_processor"] = "l2awinddirection"
res.attrs["winddirection_L2A_processor_version"] = l2awinddirection.__version__
res.attrs["used_channel"] = res.coords["pol"].values
if 'pol' in res.coords:
res.attrs["used_channel"] = res.coords["pol"].values
else:
res.attrs['used_channel'] = res['selected_pol'].values
# res.attrs["used_channel"] =
res.attrs["winddirection_L2A_processor_mode"] = args.mode
if 'pol' in res.coords:
res = res.drop('pol')
Expand Down

0 comments on commit 6bce46b

Please sign in to comment.