|
142 | 142 | " dlat = np.deg2rad(ds_surface[\"lat\"].differentiate(\"obs\"))\n", |
143 | 143 | " lat = np.deg2rad(ds_surface[\"lat\"])\n", |
144 | 144 | " alpha = np.arctan(dlat / (dlon * np.cos(lat))).mean(\"obs\") # cruise direction angle\n", |
145 | | - " Uparallel = np.cos(alpha) * ds[\"U\"] + np.sin(alpha) * ds[\"V\"] # cross-shore vel\n", |
146 | | - " Uperp = -np.sin(alpha) * ds[\"U\"] + np.cos(alpha) * ds[\"V\"] # long-shore vel\n", |
| 145 | + " Uparallel = np.cos(alpha) * ds[\"U\"] + np.sin(alpha) * ds[\"V\"]\n", |
| 146 | + " Uperp = -np.sin(alpha) * ds[\"U\"] + np.cos(alpha) * ds[\"V\"]\n", |
147 | 147 | " direction_rad = np.arctan2(\n", |
148 | 148 | " ds[\"U\"], ds[\"V\"]\n", |
149 | 149 | " ) # direction of flow [degrees from north]\n", |
|
194 | 194 | }, |
195 | 195 | { |
196 | 196 | "cell_type": "code", |
197 | | - "execution_count": 8, |
| 197 | + "execution_count": 10, |
198 | 198 | "id": "93693258", |
199 | 199 | "metadata": {}, |
200 | 200 | "outputs": [ |
|
299 | 299 | "The resultant figure shows various components of the velocity field, derived from ADCP data.\n", |
300 | 300 | "\n", |
301 | 301 | "1) Absolute velocity\n", |
302 | | - "2) Along-track velocity (where positive values indicate flow in the direction of the ship's track across the the transect)\n", |
| 302 | + "2) Along-track velocity (where positive values indicate flow in the overall direction of the ship's track across the the transect)\n", |
303 | 303 | "3) Cross-track velocity (where postive values indicate flow to the left of the ship's direction).\n", |
304 | 304 | "4) The direction of the flow, expressed as degrees from North.\n", |
305 | 305 | "\n", |
|
0 commit comments