Skip to content

Commit 60f6241

Browse files
committed
Added incloud_access support for data structures tutorials
1 parent 08a04b5 commit 60f6241

3 files changed

Lines changed: 1101 additions & 970 deletions

File tree

Tutorials_as_Jupyter_Notebooks/ECCO_v4_Coordinates_and_Dimensions_of_ECCOv4_NetCDF_files.ipynb

Lines changed: 733 additions & 643 deletions
Large diffs are not rendered by default.

Tutorials_as_Jupyter_Notebooks/ECCO_v4_Gradient_calc_on_native_grid.ipynb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"\n",
7272
"\n",
7373
"# set incloud_access = True if accessing ECCO datasets from an EC2 instance in the cloud, otherwise False\n",
74-
"incloud_access = True\n",
74+
"incloud_access = False\n",
7575
"\n",
7676
"\n",
7777
"warnings.filterwarnings('ignore')\n",
@@ -102,10 +102,12 @@
102102
"## ecco_v4_py to the user's path if it is stored in the folder\n",
103103
"## ECCOv4-py under the user's home directory\n",
104104
"\n",
105-
"from os.path import join,expanduser\n",
105+
"from os.path import expanduser,join,isdir\n",
106+
"import sys\n",
106107
"user_home_dir = expanduser('~')\n",
107-
"print(join(user_home_dir,'ECCOv4-py'))\n",
108-
"sys.path.append(join(user_home_dir,'ECCOv4-py'))\n",
108+
"ecco_v4_py_dir = join(user_home_dir,'ECCOv4-py')\n",
109+
"if isdir(ecco_v4_py_dir):\n",
110+
" sys.path.append(ecco_v4_py_dir)\n",
109111
"import ecco_v4_py as ecco\n",
110112
"from ecco_v4_py import get_llc_grid as get_llc_grid\n",
111113
"from ecco_v4_py import plot_proj_to_latlon_grid\n",

0 commit comments

Comments
 (0)