Skip to content

Commit 25892df

Browse files
authored
Merge pull request #99 from andrewdelman/ecco_access_updates
Minor edits to ecco_access headers and tutorials
2 parents 2e47197 + 77507ca commit 25892df

File tree

3 files changed

+298
-292
lines changed

3 files changed

+298
-292
lines changed

ecco_access/ecco_access.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ def ecco_podaac_access(query,version='v4r4',grid=None,time_res='all',\
2525
mode='download_ifspace',download_root_dir=None,**kwargs):
2626
"""
2727
28-
This function queries and accesses ECCO datasets from PO.DAAC. The core query and download functions are adapted from Jupyter notebooks
29-
created by Jack McNelis and Ian Fenty
28+
This function queries and accesses ECCO datasets from PO.DAAC. The core query and download functions
29+
are adapted from Jupyter notebooks created by Jack McNelis and Ian Fenty
3030
(https://github.com/ECCO-GROUP/ECCO-ACCESS/blob/master/PODAAC/Downloading_ECCO_datasets_from_PODAAC/README.md)
3131
and modified by Andrew Delman (https://ecco-v4-python-tutorial.readthedocs.io).
3232
@@ -61,14 +61,14 @@ def ecco_podaac_access(query,version='v4r4',grid=None,time_res='all',\
6161
define date range [StartDate,EndDate] for download.
6262
EndDate is included in the time range (unlike typical Python ranges).
6363
Full ECCOv4r4 date range (default) is '1992-01-01' to '2017-12-31'.
64-
For 'SNAPSHOT' datasets, an additional day is added to EndDate to enable closed budgets
65-
within the specified date range.
64+
For 'SNAPSHOT' datasets, an additional day is added to EndDate to enable
65+
closed budgets within the specified date range.
6666
6767
snapshot_interval: ('monthly', 'daily', or None), if snapshot datasets are included in ShortNames,
68-
this determines whether snapshots are included for only the beginning/end of each month
69-
('monthly'), or for every day ('daily').
70-
If None or not specified, defaults to 'daily' if any daily mean ShortNames are included
71-
and 'monthly' otherwise.
68+
this determines whether snapshots are included for only the beginning/end
69+
of each month ('monthly'), or for every day ('daily').
70+
If None or not specified, defaults to 'daily' if any daily mean ShortNames
71+
are included and 'monthly' otherwise.
7272
7373
mode: str, one of the following:
7474
'ls' or 'query': Query dataset ShortNames and variable names/
@@ -104,14 +104,14 @@ def ecco_podaac_access(query,version='v4r4',grid=None,time_res='all',\
104104
max_avail_frac: float, maximum fraction of remaining available disk space to
105105
use in storing ECCO datasets.
106106
If storing the datasets exceeds this fraction, an error is returned.
107-
Valid range is [0,0.9]. If number provided is outside this range, it is replaced by the closer
108-
endpoint of the range.
107+
Valid range is [0,0.9]. If number provided is outside this range, it is replaced
108+
by the closer endpoint of the range.
109109
110110
jsons_root_dir: str, for s3_open_fsspec mode only, the root/parent directory where the
111111
fsspec/kerchunk-generated jsons are found.
112112
jsons are generated using the steps described here:
113-
https://medium.com/pangeo/fake-it-until-you-make-it-reading-goes-netcdf4-data-on-aws-s3-as-zarr
114-
-for-rapid-data-access-61e33f8fe685
113+
https://medium.com/pangeo/fake-it-until-you-make-it-reading-goes-netcdf4-data-on-aws-s3
114+
as-zarr-for-rapid-data-access-61e33f8fe685
115115
and stored as {jsons_root_dir}/MZZ_{GRIDTYPE}_{TIME_RES}/{SHORTNAME}.json.
116116
For v4r4, GRIDTYPE is '05DEG' or 'LLC0090GRID'.
117117
TIME_RES is one of: ('MONTHLY','DAILY','SNAPSHOT','GEOMETRY','MIXING_COEFFS').
@@ -293,8 +293,8 @@ def ecco_podaac_to_xrdataset(query,version='v4r4',grid=None,time_res='all',\
293293
mode='download_ifspace',download_root_dir=None,**kwargs):
294294
"""
295295
296-
This function queries and accesses ECCO datasets from PO.DAAC. The core query and download functions are adapted from Jupyter notebooks
297-
created by Jack McNelis and Ian Fenty
296+
This function queries and accesses ECCO datasets from PO.DAAC. The core query and download functions
297+
are adapted from Jupyter notebooks created by Jack McNelis and Ian Fenty
298298
(https://github.com/ECCO-GROUP/ECCO-ACCESS/blob/master/PODAAC/Downloading_ECCO_datasets_from_PODAAC/README.md)
299299
and modified by Andrew Delman (https://ecco-v4-python-tutorial.readthedocs.io).
300300
It is similar to ecco_podaac_access, except instead of a list of URLs or files,
@@ -331,14 +331,14 @@ def ecco_podaac_to_xrdataset(query,version='v4r4',grid=None,time_res='all',\
331331
define date range [StartDate,EndDate] for download.
332332
EndDate is included in the time range (unlike typical Python ranges).
333333
Full ECCOv4r4 date range (default) is '1992-01-01' to '2017-12-31'.
334-
For 'SNAPSHOT' datasets, an additional day is added to EndDate to enable closed budgets
335-
within the specified date range.
334+
For 'SNAPSHOT' datasets, an additional day is added to EndDate to enable
335+
closed budgets within the specified date range.
336336
337337
snapshot_interval: ('monthly', 'daily', or None), if snapshot datasets are included in ShortNames,
338-
this determines whether snapshots are included for only the beginning/end of each month
339-
('monthly'), or for every day ('daily').
340-
If None or not specified, defaults to 'daily' if any daily mean ShortNames are included
341-
and 'monthly' otherwise.
338+
this determines whether snapshots are included for only the beginning/end
339+
of each month ('monthly'), or for every day ('daily').
340+
If None or not specified, defaults to 'daily' if any daily mean ShortNames
341+
are included and 'monthly' otherwise.
342342
343343
mode: str, one of the following:
344344
'download': Download datasets using NASA Earthdata URLs
@@ -370,14 +370,14 @@ def ecco_podaac_to_xrdataset(query,version='v4r4',grid=None,time_res='all',\
370370
max_avail_frac: float, maximum fraction of remaining available disk space to
371371
use in storing ECCO datasets.
372372
If storing the datasets exceeds this fraction, an error is returned.
373-
Valid range is [0,0.9]. If number provided is outside this range, it is replaced by the closer
374-
endpoint of the range.
373+
Valid range is [0,0.9]. If number provided is outside this range, it is replaced
374+
by the closer endpoint of the range.
375375
376376
jsons_root_dir: str, for s3_open_fsspec mode only, the root/parent directory where the
377377
fsspec/kerchunk-generated jsons are found.
378378
jsons are generated using the steps described here:
379-
https://medium.com/pangeo/fake-it-until-you-make-it-reading-goes-netcdf4-data-on-aws-s3-as-zarr
380-
-for-rapid-data-access-61e33f8fe685
379+
https://medium.com/pangeo/fake-it-until-you-make-it-reading-goes-netcdf4-data-on-aws-s3
380+
as-zarr-for-rapid-data-access-61e33f8fe685
381381
and stored as {jsons_root_dir}/MZZ_{GRIDTYPE}_{TIME_RES}/{SHORTNAME}.json.
382382
For v4r4, GRIDTYPE is '05DEG' or 'LLC0090GRID'.
383383
TIME_RES is one of: ('MONTHLY','DAILY','SNAPSHOT','GEOMETRY','MIXING_COEFFS').

0 commit comments

Comments
 (0)