@@ -176,7 +176,7 @@ def ecco_podaac_varlist_query(query,version,grid=None,time_res='all'):
176176 query: str, a text string being used to query ShortNames, variable names,
177177 and descriptions.
178178
179- version: ('v4r4'), ECCO version to search variable lists for
179+ version: ('v4r4','v4r5' ), ECCO version to search variable lists for
180180
181181 grid: ('native','latlon',None), specifies whether to query datasets with output
182182 on the native grid or the interpolated lat/lon grid.
@@ -197,17 +197,21 @@ def ecco_podaac_varlist_query(query,version,grid=None,time_res='all'):
197197 pass
198198
199199
200- if version != 'v4r4' :
200+ if version not in [ 'v4r4' , 'v4r5' ] :
201201 raise ValueError ('ECCO ' + version + ' is not currently available from PO.DAAC' )
202202
203203 # paths to variable list files
204204 varlist_url_root = 'https://raw.githubusercontent.com/ECCO-GROUP/ECCO-v4-Python-Tutorial/master/varlist/'
205- varlist_url_ids = {'native,monthly' :'v4r4_nctiles_monthly_varlist.txt' ,\
206- 'native,daily' :'v4r4_nctiles_daily_varlist.txt' ,\
207- 'native,snapshot' :'v4r4_nctiles_snapshots_varlist.txt' ,\
208- 'latlon,monthly' :'v4r4_latlon_monthly_varlist.txt' ,\
209- 'latlon,daily' :'v4r4_latlon_daily_varlist.txt' ,\
210- 'mixed,all' :'v4r4_tseries_grid_varlist.txt' }
205+ if version == 'v4r4' :
206+ varlist_url_ids = {'native,monthly' :'v4r4_nctiles_monthly_varlist.txt' ,\
207+ 'native,daily' :'v4r4_nctiles_daily_varlist.txt' ,\
208+ 'native,snapshot' :'v4r4_nctiles_snapshots_varlist.txt' ,\
209+ 'latlon,monthly' :'v4r4_latlon_monthly_varlist.txt' ,\
210+ 'latlon,daily' :'v4r4_latlon_daily_varlist.txt' ,\
211+ 'mixed,all' :'v4r4_tseries_grid_varlist.txt' }
212+ elif version == 'v4r5' :
213+ varlist_url_ids = {'native,monthly' :'v4r5_nctiles_monthly_varlist.txt' }
214+
211215
212216 # set keys of grid types and time resolutions to search
213217
0 commit comments