Skip to content

Commit

Permalink
update nc constituents attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutterley committed Jun 21, 2022
1 parent 1079f11 commit 947626a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyTMD/read_tide_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ def read_constituents(input_file, grid='OTIS'):
if (grid == 'ESR'):
#-- open the netCDF4 file
fid = netCDF4.Dataset(os.path.expanduser(input_file),'r')
constituents = fid.variables['cons'].long_name.split()
constituents = fid.variables['constituents'].constituent_order.split()
nc = len(constituents)
fid.close()
else:
Expand Down

0 comments on commit 947626a

Please sign in to comment.