Skip to content

Commit 7664fd0

Browse files
authored
Merge pull request #32 from OceanParcels/add_makeyourown_kernel_tutorial
Adding a 'makeyourown' kernel tutorial, and a 'varying biofouling parameters' tutorial.
2 parents 78ba7e5 + 033b97a commit 7664fd0

6 files changed

Lines changed: 1284 additions & 1 deletion

docs/examples.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@ PlasticParcels has a few example notebooks, see below.
1111

1212
examples/example_Italy_coast.ipynb
1313
examples/example_Greece_coast.ipynb
14+
examples/example_Croatian_fisheries.ipynb
15+
examples/example_add_your_own_kernel.ipynb
1416
examples/example_initialisation_maps.ipynb
17+

docs/examples/example_Croatian_fisheries.ipynb

Lines changed: 448 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
{
2+
"use_3D": true,
3+
"allow_time_extrapolation": false,
4+
"verbose_delete": false,
5+
"use_mixing": false,
6+
"use_biofouling": false,
7+
"use_stokes": false,
8+
"use_wind": false,
9+
"ocean": {
10+
"modelname": "NEMO0083",
11+
"directory": "/storage/shared/oceanparcels/input_data/MOi/",
12+
"filename_style": "psy4v3r1/psy4v3r1-daily_",
13+
"ocean_mesh": "domain_ORCA0083-N006/PSY4V3R1_mesh_hgr.nc",
14+
"bathymetry_mesh": "domain_ORCA0083-N006/PSY4V3R1_mesh_zgr.nc",
15+
"variables": {
16+
"U": "vozocrtx",
17+
"V": "vomecrty",
18+
"W": "vovecrtz",
19+
"conservative_temperature": "votemper",
20+
"absolute_salinity": "vosaline"
21+
},
22+
"dimensions": {
23+
"U": {
24+
"lon": "glamf",
25+
"lat": "gphif",
26+
"depth": "depthw",
27+
"time": "time_counter"
28+
},
29+
"V": {
30+
"lon": "glamf",
31+
"lat": "gphif",
32+
"depth": "depthw",
33+
"time": "time_counter"
34+
},
35+
"W": {
36+
"lon": "glamf",
37+
"lat": "gphif",
38+
"depth": "depthw",
39+
"time": "time_counter"
40+
},
41+
"conservative_temperature": {
42+
"lon": "glamf",
43+
"lat": "gphif",
44+
"depth": "depthw",
45+
"time": "time_counter"
46+
},
47+
"absolute_salinity": {
48+
"lon": "glamf",
49+
"lat": "gphif",
50+
"depth": "depthw",
51+
"time": "time_counter"
52+
}
53+
},
54+
"indices": {},
55+
"bathymetry_variables": {
56+
"bathymetry": "mbathy"
57+
},
58+
"bathymetry_dimensions": {
59+
"lon": "nav_lon",
60+
"lat": "nav_lat"
61+
},
62+
"mixing_variables": {
63+
"mixing_kz": "votkeavt"
64+
},
65+
"mixing_dimensions": {
66+
"lon": "glamf",
67+
"lat": "gphif",
68+
"depth": "depthw",
69+
"time": "time_counter"
70+
}
71+
},
72+
"bgc": {
73+
"directory": "/storage/shared/oceanparcels/input_data/MOi/",
74+
"filename_style": "biomer4v2r1/biomer4v2r1-weekly_",
75+
"bgc_mesh": "domain_ORCA025-N006/mesh_hgr_PSY4V3_deg.nc",
76+
"variables": {
77+
"pp_phyto": "nppv",
78+
"bio_nanophy": "phy",
79+
"bio_diatom": "phy2"
80+
},
81+
"dimensions": {
82+
"pp_phyto": {
83+
"lon": "glamf",
84+
"lat": "gphif",
85+
"depth": "depthw",
86+
"time": "time_counter"
87+
},
88+
"bio_nanophy": {
89+
"lon": "glamf",
90+
"lat": "gphif",
91+
"depth": "depthw",
92+
"time": "time_counter"
93+
},
94+
"bio_diatom": {
95+
"lon": "glamf",
96+
"lat": "gphif",
97+
"depth": "depthw",
98+
"time": "time_counter"
99+
}
100+
},
101+
"indices": {},
102+
"constants": {
103+
"biofilm_density": 1388.0,
104+
"algae_cell_volume": 2e-16,
105+
"K": 1.3805834190672156e-23,
106+
"R20": 1.1574074074074074e-06,
107+
"Q10": 2.13,
108+
"Gamma": 2.0,
109+
"carbon_molecular_weight": 12.0,
110+
"collision_probability": 1.0,
111+
"algae_mortality_rate": 1.0,
112+
"algae_respiration_f": 1.0
113+
}
114+
},
115+
"stokes": {
116+
"directory": "/storage/shared/oceanparcels/output_data/data_Michael/ERA5/waves/",
117+
"filename_style": "ERA5_global_waves_monthly_",
118+
"variables": {
119+
"Stokes_U": "ust",
120+
"Stokes_V": "vst",
121+
"wave_Tp": "pp1d"
122+
},
123+
"dimensions": {
124+
"lat": "latitude",
125+
"lon": "longitude",
126+
"time": "time"
127+
},
128+
"indices": {}
129+
},
130+
"wind": {
131+
"directory": "/storage/shared/oceanparcels/output_data/data_Michael/ERA5/wind/",
132+
"filename_style": "ERA5_global_wind_monthly_",
133+
"variables": {
134+
"Wind_U": "u10",
135+
"Wind_V": "v10"
136+
},
137+
"dimensions": {
138+
"lat": "latitude",
139+
"lon": "longitude",
140+
"time": "time"
141+
},
142+
"indices": {}
143+
},
144+
"unbeaching": {
145+
"filename": "input_data/NEMO0083/land_current_NEMO0083.nc",
146+
"variables": {
147+
"unbeach_U": "land_current_u",
148+
"unbeach_V": "land_current_v"
149+
},
150+
"dimensions": {
151+
"lat": "lat",
152+
"lon": "lon"
153+
}
154+
},
155+
"simulation": {
156+
"start_date": null,
157+
"runtime": null,
158+
"dt_write": null,
159+
"dt_timestep": null
160+
},
161+
"release_maps": {
162+
"coastal": "input_data/NEMO0083/coastal_population_MPW_NEMO0083.csv",
163+
"rivers": "input_data/NEMO0083/river_emissions_NEMO0083.csv",
164+
"fisheries": "input_data/NEMO0083/agg_data_fisheries_info_NEMO0083.csv",
165+
"global_concentrations": "input_data/NEMO0083/global_concentrations_NEMO0083.csv"
166+
}
167+
}

0 commit comments

Comments
 (0)