Skip to content

Commit d7726de

Browse files
authored
Merge pull request #103 from andrewdelman/ecco_access_update
fixed OpenDap bug involving nb,nv index variables
2 parents 0eca62c + ceebecf commit d7726de

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ecco_access/ecco_download.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,6 +1157,10 @@ def download_wrapper(url: str, url_append: str, download_dir: str, subset_file_i
11571157
varinfo_dict_copy = {**varinfo_dict,**{'dummy_key':0}}
11581158
del varinfo_dict_copy['dummy_key']
11591159
for varname in varinfo_dict_copy.keys():
1160+
if varname in ['nb','nv']:
1161+
# 2025-03-01 OpenDap fix: remove these dimension variables that seem to cause errors
1162+
del varinfo_dict[varname]
1163+
continue
11601164
if ((vars_to_include != 'all') and (varname not in vars_to_include_all)):
11611165
del varinfo_dict[varname]
11621166
elif vars_to_omit != None:

0 commit comments

Comments
 (0)