Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force multilook for Envisat, change orbit files autodownload #228

Merged
merged 1 commit into from
Oct 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pyroSAR/snap/auxil.py
Original file line number Diff line number Diff line change
Expand Up @@ -1588,7 +1588,7 @@ def mli_parametrize(scene, spacing=None, rlks=None, azlks=None, **kwargs):
if [rlks, azlks].count(None) > 0:
raise RuntimeError("'rlks' and 'azlks' must either both be integers or None")

if azlks > 1 or rlks > 1:
if azlks > 1 or rlks > 1 or scene.sensor in ['ERS1', 'ERS2', 'ASAR']:
ml = parse_node('Multilook')
ml.parameters['nAzLooks'] = azlks
ml.parameters['nRgLooks'] = rlks
Expand Down Expand Up @@ -1625,10 +1625,10 @@ def orb_parametrize(scene, formatName, allow_RES_OSV=True, **kwargs):
Node
the Apply-Orbit-File node object
"""
orbit_lookup = {'ENVISAT': 'DELFT Precise (ENVISAT, ERS1&2) (Auto Download)',
orbit_lookup = {'ENVISAT': 'PRARE Precise (ERS1&2) (Auto Download)',
'SENTINEL-1': 'Sentinel Precise (Auto Download)'}
orbitType = orbit_lookup[formatName]
if formatName == 'ENVISAT' and scene.acquisition_mode == 'WSM':
if formatName == 'ENVISAT' and scene.sensor == 'ASAR':
orbitType = 'DORIS Precise VOR (ENVISAT) (Auto Download)'

if formatName == 'SENTINEL-1':
Expand Down