totalDays
= dsYear.daysInMonth.sum(dim='Time').values
-
monthCount = dsYear.dims['Time']
+
monthCount = dsYear.sizes['Time']
climatology = compute_climatology(dsYear, monthValues, calendar,
maskVaries=False)
diff --git a/latest/_modules/mpas_analysis/shared/generalized_reader/generalized_reader.html b/latest/_modules/mpas_analysis/shared/generalized_reader/generalized_reader.html
index 765941b8a..951176768 100644
--- a/latest/_modules/mpas_analysis/shared/generalized_reader/generalized_reader.html
+++ b/latest/_modules/mpas_analysis/shared/generalized_reader/generalized_reader.html
@@ -258,7 +258,7 @@
Source code for mpas_analysis.shared.generalized_reader.generalized_reader
# select only the data in the specified range of dates
ds = ds.sel(Time=slice(startDate, endDate))
- if ds.dims['Time'] == 0:
+ if ds.sizes['Time'] == 0:
raise ValueError('The data set contains no Time entries between '
'dates {} and {}.'.format(
days_to_datetime(startDate, calendar=calendar),
diff --git a/latest/_modules/mpas_analysis/shared/io/mpas_reader.html b/latest/_modules/mpas_analysis/shared/io/mpas_reader.html
index eb048a63e..eddf3c3ee 100644
--- a/latest/_modules/mpas_analysis/shared/io/mpas_reader.html
+++ b/latest/_modules/mpas_analysis/shared/io/mpas_reader.html
@@ -185,7 +185,7 @@ Source code for mpas_analysis.shared.io.mpas_reader
# select only the data in the specified range of dates
ds = ds.sel(Time=slice(startDate, endDate))
- if ds.dims['Time'] == 0:
+ if ds.sizes['Time'] == 0:
raise ValueError('The data set contains no Time entries between '
'dates {} and {}.'.format(
days_to_datetime(startDate, calendar=calendar),