From 947626a3cdfefb8d8450de19288570d4d2acdbd7 Mon Sep 17 00:00:00 2001 From: tsutterley Date: Tue, 21 Jun 2022 13:59:08 -0700 Subject: [PATCH] update nc constituents attribute --- pyTMD/read_tide_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyTMD/read_tide_model.py b/pyTMD/read_tide_model.py index 381e192e..89a7cbe9 100644 --- a/pyTMD/read_tide_model.py +++ b/pyTMD/read_tide_model.py @@ -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: