|
92 | 92 | "### Available LLC2160 Datasets in the Cloud\n", |
93 | 93 | "\n", |
94 | 94 | "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", |
96 | 96 | "\n", |
97 | 97 | "You can select any of these fields for analysis by referencing their corresponding URLs defined in the next cell." |
98 | 98 | ] |
99 | 99 | }, |
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 | | - }, |
118 | 100 | { |
119 | 101 | "cell_type": "code", |
120 | 102 | "execution_count": null, |
|
124 | 106 | }, |
125 | 107 | "outputs": [], |
126 | 108 | "source": [ |
| 109 | + "# Step 1b: Define Cloud-Based LLC2160 Dataset URLs\n", |
127 | 110 | "\n", |
128 | | - "# Cloud-Based LLC2160 Dataset URLs based on the variable above\n", |
129 | 111 | "# These variables point to IDX-formatted datasets hosted on OSDF\n", |
130 | 112 | "# 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", |
142 | 124 | "print(\"Step 1b done: Defined dataset URLs for u, v, w velocity components, temperature, and salinity.\")\n" |
143 | 125 | ] |
144 | 126 | }, |
|
183 | 165 | "# Step 2: Load dataset metadata for salinity and print key attributes\n", |
184 | 166 | "\n", |
185 | 167 | "# Load metadata for the salinity dataset\n", |
186 | | - "db = LoadDataset(field)\n", |
| 168 | + "db = LoadDataset(Salinity_salt)\n", |
187 | 169 | "\n", |
188 | 170 | "# Retrieve dimensions from the dataset's logic box: (depth, longitude, latitude)\n", |
189 | 171 | "depth_levels = db.getLogicBox()[1][0]\n", |
|
0 commit comments