Skip to content

Commit

Permalink
platform number has nprof dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
cgrdn committed Jan 12, 2024
1 parent 0328402 commit 630c474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion medsrtqc/nc.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def get_park_depth(self):
def read_platform_number(self):
wmo = len(self._datasets)*[None]
for i,d in enumerate(self._datasets):
arr = d['PLATFORM_NUMBER'][:]
arr = d['PLATFORM_NUMBER'][:][0,:]
arr = arr.data if hasattr(arr, 'mask') else arr
decode_str = np.array([f.decode('utf-8') for f in arr])
out = ''.join(decode_str).strip()
Expand Down

0 comments on commit 630c474

Please sign in to comment.