Skip to content

Commit

Permalink
MAINT: usage of dims
Browse files Browse the repository at this point in the history
  • Loading branch information
jklenzing committed Jul 16, 2024
1 parent 8cbc2a9 commit 00b0d52
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pysatNASA/instruments/methods/jhuapl.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,15 +282,15 @@ def load_sdr_aurora(fnames, name='', tag='', inst_id='', pandas_format=False,

# Ensure identical day and night dimensions for GUVI
if name == 'guvi':
if sdata.dims['nAlongDay'] != sdata.dims['nAlongNight']:
if sdata.sizes['nAlongDay'] != sdata.sizes['nAlongNight']:
raise ValueError('Along-track day and night dimensions differ')

if 'nCrossDay' in rename_dims.keys():
if sdata.dims['nCrossDay'] != sdata.dims['nCrossNight']:
if sdata.sizes['nCrossDay'] != sdata.sizes['nCrossNight']:
raise ValueError(''.join([
'Cross-track day and night dimensions differ ',
'{:} != {:}'.format(sdata.dims['nCrossDay'],
sdata.dims['nCrossNight'])]))
'{:} != {:}'.format(sdata.sizes['nCrossDay'],
sdata.sizes['nCrossNight'])]))

# Combine identical dimensions and rename some time dimensions
sdata = sdata.rename_dims(rename_dims)
Expand Down

0 comments on commit 00b0d52

Please sign in to comment.