@@ -124,14 +124,14 @@ def ecco_podaac_access(query,version='v4r4',grid=None,time_res='all',\
124124
125125 Returns
126126 -------
127- download_files : dict, with keys: ShortNames and values:
128- URLs (if in 'query' mode), or paths of files that can be
129- passed directly to xarray (open_dataset or open_mfdataset).
130- Values are of type str if query finds only one granule/file
131- for that ShortName; of type list if query finds
132- multiple granules in the same dataset;
133- or of type fsspec.mapping.FSMap if mode = 's3_open_fsspec'.
134- Only returned if return_granules=True (default).
127+ granule_files : dict with ShortNames as keys; values are URLs or S3 paths
128+ (if in 'query' mode), or paths of files that can be
129+ passed directly to xarray (open_dataset or open_mfdataset).
130+ Values are of type str if query finds only one granule/file
131+ for that ShortName; of type list if query finds
132+ multiple granules in the same dataset;
133+ or of type fsspec.mapping.FSMap if mode = 's3_open_fsspec'.
134+ Only returned if return_granules=True (default).
135135
136136 """
137137
@@ -272,6 +272,7 @@ def shortnames_find(query_list,grid,time_res):
272272###================================================================================================================
273273
274274
275+
275276def ecco_podaac_to_xrdataset (query ,version = 'v4r4' ,grid = None ,time_res = 'all' ,\
276277 StartDate = None ,EndDate = None ,snapshot_interval = None ,\
277278 mode = 'download_ifspace' ,download_root_dir = None ,** kwargs ):
@@ -325,10 +326,6 @@ def ecco_podaac_to_xrdataset(query,version='v4r4',grid=None,time_res='all',\
325326 and 'monthly' otherwise.
326327
327328 mode: str, one of the following:
328- 'ls' or 'query': Query dataset ShortNames and variable names/
329- descriptions only; no downloads.
330- 's3_ls' or 's3_query': Query dataset ShortNames and variable names/
331- descriptions only; return paths on S3.
332329 'download': Download datasets using NASA Earthdata URLs
333330 'download_ifspace': Check storage availability before downloading.
334331 Download only if storage footprint of downloads
@@ -375,16 +372,11 @@ def ecco_podaac_to_xrdataset(query,version='v4r4',grid=None,time_res='all',\
375372 force_redownload: bool, if True, existing files will be redownloaded and replaced;
376373 if False (default), existing files will not be replaced.
377374
378- return_granules: bool, if True (default), str or list of queried or
379- downloaded granules/files (including ones that
380- were already on disk and not replaced) is returned.
381- if False, the function returns nothing.
382-
383375 Returns
384376 -------
385377 ds_out: xarray Dataset or dict of xarray Datasets (with ShortNames as keys),
386378 containing all of the accessed datasets.
387- Does not work with the query modes: 'ls','query','s3_ls','s3_query'.
379+ This function does not work with the query modes: 'ls','query','s3_ls','s3_query'.
388380 """
389381
390382 pass
0 commit comments