Skip to content

Commit

Permalink
Fix dhus to use netrc for unpacking
Browse files Browse the repository at this point in the history
  • Loading branch information
mraspaud committed Sep 13, 2024
1 parent 718bf5c commit d9c937e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pytroll_watchers/dhus_watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
name: s1_watcher
message_config:
subject: /segment/s1/l1b/
atype: file
atype: dataset
unpack: zip
aliases:
sensor:
SAR: SAR-C
"""

import datetime as dt
Expand Down Expand Up @@ -129,7 +129,7 @@ def generate_download_links(server, filter_params):

for entry in entries["d"]["results"]:
mda = dict()
path = UPath(entry["__metadata"]["media_src"])
path = UPath(entry["__metadata"]["media_src"], client_kwargs=dict(trust_env=True))
mda["boundary"] = _extract_boundary_as_geojson(entry)
attributes = _construct_attributes_dict(entry)
mda["platform_name"] = attributes["Satellite name"].capitalize() + attributes["Satellite number"]
Expand Down

0 comments on commit d9c937e

Please sign in to comment.