Skip to content

Commit 56eef6c

Browse files
committed
switch to osdf
1 parent f1e51c0 commit 56eef6c

File tree

1 file changed

+14
-32
lines changed

1 file changed

+14
-32
lines changed

hands-on/session III/3.Tutorial_PetascaleAnalysis.ipynb

Lines changed: 14 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -92,29 +92,11 @@
9292
"### Available LLC2160 Datasets in the Cloud\n",
9393
"\n",
9494
"The datasets listed below represent different physical fields from the LLC2160 global ocean simulation. \n",
95-
"Each dataset is over **200 TB** in size and is hosted on the cloud via **SealStorage** for scalable, on-demand access.\n",
95+
"Each dataset is over **200 TB** in size and is hosted on the cloud via **OSDF** for scalable, on-demand access.\n",
9696
"\n",
9797
"You can select any of these fields for analysis by referencing their corresponding URLs defined in the next cell."
9898
]
9999
},
100-
{
101-
"cell_type": "code",
102-
"execution_count": null,
103-
"id": "7e5ba72d",
104-
"metadata": {},
105-
"outputs": [],
106-
"source": [
107-
"# Step 1b: Define variable of interest \n",
108-
"\n",
109-
"variable = 'salt' # options are u,v,w,theta,salt\n",
110-
" \n",
111-
" #u: East-West Ocean Velocity\n",
112-
" #v: North-South Ocean Velocity\n",
113-
" #w: Vertical Ocean Velocity\n",
114-
" #theta: Ocean Temperature\n",
115-
" #salt: Ocean Salinity"
116-
]
117-
},
118100
{
119101
"cell_type": "code",
120102
"execution_count": null,
@@ -124,21 +106,21 @@
124106
},
125107
"outputs": [],
126108
"source": [
109+
"# Step 1b: Define Cloud-Based LLC2160 Dataset URLs\n",
127110
"\n",
128-
"# Cloud-Based LLC2160 Dataset URLs based on the variable above\n",
129111
"# These variables point to IDX-formatted datasets hosted on OSDF\n",
130112
"# Each URL provides access to a different physical variable from the LLC2160 ocean simulation\n",
131-
"# DONOT TOUCH\n",
132-
"base_url= \"https://maritime.sealstorage.io/api/v0/s3/utah/nasa/dyamond/\"\n",
133-
"end_url=\"?access_key=any&secret_key=any&endpoint_url=https://maritime.sealstorage.io/api/v0/s3&cached=arco\"\n",
134-
"if variable==\"theta\" or variable==\"w\":\n",
135-
" base_dir=f\"mit_output/llc2160_{variable}/llc2160_{variable}.idx\"\n",
136-
"elif variable==\"u\":\n",
137-
" base_dir= \"mit_output/llc2160_arco/visus.idx\"\n",
138-
"else:\n",
139-
" base_dir=f\"mit_output/llc2160_{variable}/{variable}_llc2160_x_y_depth.idx\"\n",
140-
"\n",
141-
"field= base_url+base_dir+end_url\n",
113+
"\n",
114+
"eastwest_ocean_velocity_u = \"https://nsdf-climate3-origin.nationalresearchplatform.org:50098/nasa/nsdf/climate3/dyamond/mit_output/llc2160_arco/visus.idx\"\n",
115+
"\n",
116+
"northsouth_ocean_velocity_v = \"https://nsdf-climate3-origin.nationalresearchplatform.org:50098/nasa/nsdf/climate3/dyamond/mit_output//llc2160_v/v_llc2160_x_y_depth.idx\"\n",
117+
"\n",
118+
"vertical_velocity_w = \"https://nsdf-climate3-origin.nationalresearchplatform.org:50098/nasa/nsdf/climate3/dyamond/mit_output/llc2160_w/llc2160_w.idx\"\n",
119+
"\n",
120+
"temperature_theta = \"https://nsdf-climate3-origin.nationalresearchplatform.org:50098/nasa/nsdf/climate3/dyamond/mit_output//llc2160_theta/llc2160_theta.idx\"\n",
121+
"\n",
122+
"Salinity_salt = \"https://nsdf-climate3-origin.nationalresearchplatform.org:50098/nasa/nsdf/climate3/dyamond/mit_output/llc2160_salt/salt_llc2160_x_y_depth.idx\"\n",
123+
"\n",
142124
"print(\"Step 1b done: Defined dataset URLs for u, v, w velocity components, temperature, and salinity.\")\n"
143125
]
144126
},
@@ -183,7 +165,7 @@
183165
"# Step 2: Load dataset metadata for salinity and print key attributes\n",
184166
"\n",
185167
"# Load metadata for the salinity dataset\n",
186-
"db = LoadDataset(field)\n",
168+
"db = LoadDataset(Salinity_salt)\n",
187169
"\n",
188170
"# Retrieve dimensions from the dataset's logic box: (depth, longitude, latitude)\n",
189171
"depth_levels = db.getLogicBox()[1][0]\n",

0 commit comments

Comments
 (0)