Skip to content

Commit

Permalink
Merge pull request #16 from agrouaze/L1C_proc_fix
Browse files Browse the repository at this point in the history
fix issue in L1C IW processor
  • Loading branch information
agrouaze authored May 31, 2023
2 parents 3669295 + 24f982e commit db5143e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions slcl1butils/compute/compute_from_l1b.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,13 @@ def compute_xs_from_l1b(_file, burst_type='intra', time_separation='2tau'):
xsIm = xsIm.mean(dim=['1tau'])

elif burst_type == 'inter':
xsRe = ds['xspectra_Re'] # +1j*ds_inter['xspectra_Im']
xsIm = ds['xspectra_Im']
if 'xspectra_Re' in ds:
xsRe = ds['xspectra_Re'] # +1j*ds_inter['xspectra_Im']
xsIm = ds['xspectra_Im']
else:
logging.warning('xspectra_Re absent from interburst group')
xsRe = None
xsIm = None
else: # WV case
raise Exception('not handle case')
if xsRe is None:
Expand Down

0 comments on commit db5143e

Please sign in to comment.