|
55 | 55 | "id": "8hmSW7UJUdO8", |
56 | 56 | "outputId": "5a03f29c-ae96-48f0-a045-0e37e228e7d3" |
57 | 57 | }, |
58 | | - "outputs": [ |
59 | | - { |
60 | | - "name": "stdout", |
61 | | - "output_type": "stream", |
62 | | - "text": [ |
63 | | - "cgen\n", |
64 | | - "jupyter\n", |
65 | | - "matplotlib-base>=2.0.2\n", |
66 | | - "netcdf4>=1.1.9\n", |
67 | | - "numpy>=1.9.1\n", |
68 | | - "platformdirs\n", |
69 | | - "psutil\n", |
70 | | - "py>=1.4.27\n", |
71 | | - "pymbolic\n", |
72 | | - "scipy\n", |
73 | | - "tqdm\n", |
74 | | - "trajan\n", |
75 | | - "xarray>=0.10.8\n", |
76 | | - "cftime>=1.3.1\n", |
77 | | - "dask>=2.0\n", |
78 | | - "nbval\n", |
79 | | - "scikit-learn\n", |
80 | | - "pykdtree\n", |
81 | | - "zarr>=2.11.0\n", |
82 | | - "black\n", |
83 | | - "isort\n", |
84 | | - "pytest\n", |
85 | | - "pytest-html\n", |
86 | | - "coverage\n", |
87 | | - "flake8>=2.1.0\n", |
88 | | - "pre_commit\n", |
89 | | - "pydocsty;e\n", |
90 | | - "ipython\n", |
91 | | - "numpydoc\n", |
92 | | - "nbsphinx\n", |
93 | | - "sphinx<6\n", |
94 | | - "pandoc>1.12.1,<3\n", |
95 | | - "pydata-sphinx-theme\n", |
96 | | - "sphinx-autobuild\n", |
97 | | - "myst-parser\n", |
98 | | - "parcels\n" |
99 | | - ] |
100 | | - } |
101 | | - ], |
| 58 | + "outputs": [], |
102 | 59 | "source": [ |
103 | 60 | "packages = ['cgen',\n", |
104 | 61 | " 'netcdf4>=1.1.9',\n", |
|
131 | 88 | "id": "hoW6ozA04wue", |
132 | 89 | "outputId": "cdf7ef3d-c0d1-4da1-99b3-73373b1bb0c4" |
133 | 90 | }, |
134 | | - "outputs": [ |
135 | | - { |
136 | | - "ename": "FileURLRetrievalError", |
137 | | - "evalue": "Failed to retrieve file url:\n\n\tCannot retrieve the public link of the file. You may need to change\n\tthe permission to 'Anyone with the link', or have had many accesses.\n\nYou may still be able to access the file from the browser:\n\n\thttps://drive.google.com/uc?id=1DMtK76aCZxUOHdJFv1mI_EPTTHz_HIIN\n\nbut Gdown can't. Please check connections and permissions.", |
138 | | - "output_type": "error", |
139 | | - "traceback": [ |
140 | | - "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", |
141 | | - "\u001b[0;31mFileURLRetrievalError\u001b[0m Traceback (most recent call last)", |
142 | | - "\u001b[0;32m/usr/local/lib/python3.10/dist-packages/gdown/download.py\u001b[0m in \u001b[0;36mdownload\u001b[0;34m(url, output, quiet, proxy, speed, use_cookies, verify, id, fuzzy, resume, format, user_agent)\u001b[0m\n\u001b[1;32m 231\u001b[0m \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 232\u001b[0;31m \u001b[0murl\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mget_url_from_gdrive_confirmation\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mres\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtext\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 233\u001b[0m \u001b[0;32mexcept\u001b[0m \u001b[0mFileURLRetrievalError\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0me\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", |
143 | | - "\u001b[0;32m/usr/local/lib/python3.10/dist-packages/gdown/download.py\u001b[0m in \u001b[0;36mget_url_from_gdrive_confirmation\u001b[0;34m(contents)\u001b[0m\n\u001b[1;32m 48\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0murl\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 49\u001b[0;31m raise FileURLRetrievalError(\n\u001b[0m\u001b[1;32m 50\u001b[0m \u001b[0;34m\"Cannot retrieve the public link of the file. \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", |
144 | | - "\u001b[0;31mFileURLRetrievalError\u001b[0m: Cannot retrieve the public link of the file. You may need to change the permission to 'Anyone with the link', or have had many accesses.", |
145 | | - "\nDuring handling of the above exception, another exception occurred:\n", |
146 | | - "\u001b[0;31mFileURLRetrievalError\u001b[0m Traceback (most recent call last)", |
147 | | - "\u001b[0;32m<ipython-input-6-ff46f8bfe9e1>\u001b[0m in \u001b[0;36m<cell line: 23>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 28\u001b[0m \u001b[0;31m#except:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 29\u001b[0m \u001b[0;31m# print(os.system('wget https://drive.google.com/uc?id='+file_id+' -P '+output))\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 30\u001b[0;31m \u001b[0mgdown\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdownload\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0murl\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0moutput\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mquiet\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mFalse\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", |
148 | | - "\u001b[0;32m/usr/local/lib/python3.10/dist-packages/gdown/download.py\u001b[0m in \u001b[0;36mdownload\u001b[0;34m(url, output, quiet, proxy, speed, use_cookies, verify, id, fuzzy, resume, format, user_agent)\u001b[0m\n\u001b[1;32m 241\u001b[0m \u001b[0murl_origin\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 242\u001b[0m )\n\u001b[0;32m--> 243\u001b[0;31m \u001b[0;32mraise\u001b[0m \u001b[0mFileURLRetrievalError\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mmessage\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 244\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 245\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mgdrive_file_id\u001b[0m \u001b[0;32mand\u001b[0m \u001b[0mis_gdrive_download_link\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", |
149 | | - "\u001b[0;31mFileURLRetrievalError\u001b[0m: Failed to retrieve file url:\n\n\tCannot retrieve the public link of the file. You may need to change\n\tthe permission to 'Anyone with the link', or have had many accesses.\n\nYou may still be able to access the file from the browser:\n\n\thttps://drive.google.com/uc?id=1DMtK76aCZxUOHdJFv1mI_EPTTHz_HIIN\n\nbut Gdown can't. Please check connections and permissions." |
150 | | - ] |
151 | | - } |
152 | | - ], |
| 91 | + "outputs": [], |
153 | 92 | "source": [ |
154 | 93 | "## Download required data for the tutorial\n", |
155 | 94 | "files = [\"coordinates.zip\",\n", |
|
184 | 123 | "id": "l4rWBopK4-33", |
185 | 124 | "outputId": "ca64b20d-82aa-4a58-d614-7aa0b9f951ed" |
186 | 125 | }, |
187 | | - "outputs": [ |
188 | | - { |
189 | | - "name": "stdout", |
190 | | - "output_type": "stream", |
191 | | - "text": [ |
192 | | - "daily_V.zip unzipped\n", |
193 | | - "daily_W.zip unzipped\n", |
194 | | - "PlasticParcels.zip unzipped\n", |
195 | | - "ERA5.zip unzipped\n", |
196 | | - "coordinates.zip unzipped\n", |
197 | | - "unbeaching.zip unzipped\n", |
198 | | - "release.zip unzipped\n", |
199 | | - "daily_U.zip unzipped\n" |
200 | | - ] |
201 | | - } |
202 | | - ], |
| 126 | + "outputs": [], |
203 | 127 | "source": [ |
204 | 128 | "## Unzip data and delete the .zip file\n", |
205 | 129 | "download_files = os.listdir('./data_download/')\n", |
|
221 | 145 | }, |
222 | 146 | "source": [ |
223 | 147 | "# PlasticParcels DRAKKAR Tutorial\n", |
| 148 | + "\n", |
| 149 | + "\n", |
| 150 | + "\n", |
224 | 151 | "In this tutorial we will introduce you to some of the basic Parcels functions, as well as utilise the PlasticParcels tool for simulating microplastic pollution in the Mediterranean sea.\n", |
225 | 152 | "\n", |
226 | 153 | "By the end of this tutorial you should be able to create and visual hydrodynamic (and other) fields, create particle sets that represent marine microplastic pollution release locations, and apply physics parameterisations to simulate the dispersal of microplastics in the ocean.\n", |
|
0 commit comments