Skip to content

Commit 9af2cdc

Browse files
authored
Merge pull request #12 from fair-ease/PAOLO
Paolo
2 parents ab57427 + 7eb90df commit 9af2cdc

File tree

4 files changed

+209
-122
lines changed

4 files changed

+209
-122
lines changed

ICON/buoy_icon_2.png

23 KB
Loading
Lines changed: 7 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,16 @@
11
jupyter==1.1.1
2-
copernicusmarine==2.0.1
2+
copernicusmarine==2.2.2
33
netCDF4==1.7.2
4-
folium==0.19.5
4+
folium==0.20.0
55
seawater==3.3.4
6-
scipy==1.15.2
7-
shapely==2.1.0
6+
scipy==1.16.1
7+
shapely==2.1.1
88
ftputil==5.1.0
99
pykml==0.2.0
10-
Unidecode==1.3.8
11-
scikit-learn==1.6.1
12-
matplotlib==3.10.1
10+
Unidecode==1.4.0
11+
scikit-learn==1.7.1
12+
matplotlib==3.10.5
1313
altair==5.5.0
1414

1515

1616

17-
#accessible-pygments==0.0.5
18-
#blosc2==2.7.1
19-
#docutils==0.21.2
20-
#greenlet==3.1.1
21-
#hdf5plugin==5.0.0
22-
#imagesize==1.4.1
23-
#jupyter-book==1.0.4.post1
24-
#jupyter-cache==1.0.1
25-
#jupyter-resource-usage==1.1.1
26-
#jupyterlab_myst==2.4.2
27-
#latexcodec==3.0.0
28-
#linkify-it-py==2.0.3
29-
#markdown-it-py==3.0.0
30-
#mdit-py-plugins==0.4.2
31-
#mdurl==0.1.2
32-
#msgpack==1.1.0
33-
#myst-nb==1.2.0
34-
#ndindex==1.9.2
35-
#nodejs==0.1.1
36-
#numexpr==2.10.2
37-
#ptyprocess==0.7.0
38-
#pure_eval==0.2.3
39-
#py-cpuinfo==9.0.0
40-
#pybtex==0.24.0
41-
#pybtex-docutils==1.0.3
42-
#pydata-sphinx-theme==0.16.1
43-
#snowballstemmer==2.2.0
44-
#SQLAlchemy==2.0.39
45-
#tables==3.10.1
46-
#tabulate==0.9.0
47-
#uc-micro-py==1.0.3
48-
#variable_inspector==1.0.1

notebooks/03_Model_module.ipynb

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@
7171
"import re\n",
7272
"\n",
7373
"from netCDF4 import Dataset,num2date\n",
74-
"from shapely.geometry import box, Point, Polygon"
74+
"from shapely.geometry import box, Point, Polygon\n",
75+
"\n",
76+
"print(f\" Copernicus Marine Toolbox version: {cm.__version__}\")\n",
77+
"print(f\" Python version: {sys.version}\")"
7578
]
7679
},
7780
{
@@ -227,6 +230,8 @@
227230
"metadata": {},
228231
"outputs": [],
229232
"source": [
233+
"cm.login()\n",
234+
"\n",
230235
"if modelproduct == 'anfc':\n",
231236
" print(\"Check if anfc product land-sea mask is already available or download it.\")\n",
232237
" LS_mask = LS_mask_dir+'/MED-MFC_006_013_mask_bathy.nc'\n",
@@ -383,7 +388,7 @@
383388
" reader = csv.DictReader(csvfile, delimiter=',')\n",
384389
"\n",
385390
" for row in reader:\n",
386-
" \n",
391+
" \n",
387392
" # Read platform code\n",
388393
" platform_code = row['platform_code']\n",
389394
" print(f\"** Start processing platform {platform_code} for download\")\n",
@@ -478,7 +483,7 @@
478483
" logT.write(msg + \"\\n\") \n",
479484
" continue\n",
480485
" except Exception as e:\n",
481-
" msg = f\"Unexpected error for platform {platform_code} at depth={depth}: {e}\"\n",
486+
" msg = f\"Unexpected error for platform {platform_code}\"\n",
482487
" print(msg)\n",
483488
" with open(log_fileT, 'a') as logT:\n",
484489
" logT.write(msg + \"\\n\") \n",
@@ -574,7 +579,7 @@
574579
" logT.write(msg + \"\\n\") \n",
575580
" continue\n",
576581
" except Exception as e:\n",
577-
" msg = f\"Unexpected error for platform {platform_code} at depth={depth}: {e}\"\n",
582+
" msg = f\"Unexpected error for platform {platform_code}\"\n",
578583
" print(msg)\n",
579584
" with open(log_fileT, 'a') as logT:\n",
580585
" logT.write(msg + \"\\n\") \n",
@@ -815,14 +820,6 @@
815820
" modS_nc.setncattr('SOURCE_field_type', attr_value)\n",
816821
" modS_nc.delncattr('field_type') \n"
817822
]
818-
},
819-
{
820-
"cell_type": "code",
821-
"execution_count": null,
822-
"id": "a9f22a89-5b95-404d-9de9-573cdaaf0b8d",
823-
"metadata": {},
824-
"outputs": [],
825-
"source": []
826823
}
827824
],
828825
"metadata": {
@@ -841,7 +838,7 @@
841838
"name": "python",
842839
"nbconvert_exporter": "python",
843840
"pygments_lexer": "ipython3",
844-
"version": "3.10.18"
841+
"version": "3.13.7"
845842
}
846843
},
847844
"nbformat": 4,

0 commit comments

Comments
 (0)