File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5353 "outputs" : [],
5454 "source" : [
5555 " # Load the CopernicusMarine data in the Agulhas region from the example_datasets\n " ,
56- " ds_fields = xr.merge(\n " ,
57- " [\n " ,
58- " parcels.tutorial.open_dataset(\n " ,
59- " \" CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-cur_anfc\"\n " ,
60- " ),\n " ,
61- " parcels.tutorial.open_dataset(\n " ,
62- " \" CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-so_anfc\"\n " ,
63- " ),\n " ,
64- " parcels.tutorial.open_dataset(\n " ,
65- " \" CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-thetao_anfc\"\n " ,
66- " ),\n " ,
67- " ]\n " ,
56+ " ds_fields = parcels.tutorial.open_dataset(\n " ,
57+ " \" CopernicusMarine_data_for_Argo_tutorial/data\"\n " ,
6858 " )\n " ,
6959 " ds_fields.load() # load the dataset into memory\n " ,
7060 " \n " ,
Original file line number Diff line number Diff line change @@ -30,11 +30,8 @@ hydrodynamics fields in which the particles are tracked. Here we provide an exam
3030[ Global Ocean Physics Reanalysis] ( https://doi.org/10.48670/moi-00021 ) from the Copernicus Marine Service.
3131
3232``` {code-cell}
33- ds_fields = xr.merge([
34- parcels.tutorial.open_dataset("CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-cur_anfc"),
35- parcels.tutorial.open_dataset("CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-so_anfc"),
36- parcels.tutorial.open_dataset("CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-thetao_anfc"),
37- ])
33+ ds_fields = parcels.tutorial.open_dataset("CopernicusMarine_data_for_Argo_tutorial/data")
34+
3835ds_fields.load() # load the dataset into memory
3936ds_fields
4037```
Original file line number Diff line number Diff line change @@ -56,11 +56,7 @@ import parcels
5656import parcels.tutorial
5757
5858# Load the CopernicusMarine data in the Agulhas region from the example_datasets
59- ds_fields = xr.merge([
60- parcels.tutorial.open_dataset("CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-cur_anfc"),
61- parcels.tutorial.open_dataset("CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-so_anfc"),
62- parcels.tutorial.open_dataset("CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-thetao_anfc"),
63- ])
59+ ds_fields = parcels.tutorial.open_dataset("CopernicusMarine_data_for_Argo_tutorial/data")
6460ds_fields.load() # load the dataset into memory
6561
6662# Create an idealised wind field and add it to the dataset
Original file line number Diff line number Diff line change 113113 " import parcels.tutorial\n " ,
114114 " \n " ,
115115 " # Load the CopernicusMarine data in the Agulhas region from the example_datasets\n " ,
116- " ds_fields = xr.merge(\n " ,
117- " [\n " ,
118- " parcels.tutorial.open_dataset(\n " ,
119- " \" CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-cur_anfc\"\n " ,
120- " ),\n " ,
121- " parcels.tutorial.open_dataset(\n " ,
122- " \" CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-so_anfc\"\n " ,
123- " ),\n " ,
124- " parcels.tutorial.open_dataset(\n " ,
125- " \" CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-thetao_anfc\"\n " ,
126- " ),\n " ,
127- " ]\n " ,
116+ " ds_fields = parcels.tutorial.open_dataset(\n " ,
117+ " \" CopernicusMarine_data_for_Argo_tutorial/data\"\n " ,
128118 " )\n " ,
129119 " \n " ,
130120 " # TODO check how we can get good performance without loading full dataset in memory\n " ,
Original file line number Diff line number Diff line change 5151 "outputs" : [],
5252 "source" : [
5353 " # Load the CopernicusMarine data in the Agulhas region from the example_datasets\n " ,
54- " ds_fields = xr.merge(\n " ,
55- " [\n " ,
56- " parcels.tutorial.open_dataset(\n " ,
57- " \" CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-cur_anfc\"\n " ,
58- " ),\n " ,
59- " parcels.tutorial.open_dataset(\n " ,
60- " \" CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-so_anfc\"\n " ,
61- " ),\n " ,
62- " parcels.tutorial.open_dataset(\n " ,
63- " \" CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-thetao_anfc\"\n " ,
64- " ),\n " ,
65- " ]\n " ,
54+ " ds_fields = parcels.tutorial.open_dataset(\n " ,
55+ " \" CopernicusMarine_data_for_Argo_tutorial/data\"\n " ,
6656 " )\n " ,
6757 " ds_fields.load() # load the dataset into memory\n " ,
6858 " \n " ,
Original file line number Diff line number Diff line change 468468 "outputs" : [],
469469 "source" : [
470470 " # Load the CopernicusMarine data in the Agulhas region from the example_datasets\n " ,
471- " ds_fields = xr.merge(\n " ,
472- " [\n " ,
473- " parcels.tutorial.open_dataset(\n " ,
474- " \" CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-cur_anfc\"\n " ,
475- " ),\n " ,
476- " parcels.tutorial.open_dataset(\n " ,
477- " \" CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-so_anfc\"\n " ,
478- " ),\n " ,
479- " parcels.tutorial.open_dataset(\n " ,
480- " \" CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-thetao_anfc\"\n " ,
481- " ),\n " ,
482- " ]\n " ,
471+ " ds_fields = parcels.tutorial.open_dataset(\n " ,
472+ " \" CopernicusMarine_data_for_Argo_tutorial/data\"\n " ,
483473 " ).isel(depth=slice(0, 1))\n " ,
484474 " ds_fields.load() # load the dataset into memory"
485475 ]
Original file line number Diff line number Diff line change 6262 " import parcels.tutorial\n " ,
6363 " \n " ,
6464 " # Load the CopernicusMarine data in the Agulhas region from the example_datasets\n " ,
65- " ds_fields = xr.merge(\n " ,
66- " [\n " ,
67- " parcels.tutorial.open_dataset(\n " ,
68- " \" CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-cur_anfc\"\n " ,
69- " ),\n " ,
70- " parcels.tutorial.open_dataset(\n " ,
71- " \" CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-so_anfc\"\n " ,
72- " ),\n " ,
73- " parcels.tutorial.open_dataset(\n " ,
74- " \" CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-thetao_anfc\"\n " ,
75- " ),\n " ,
76- " ]\n " ,
65+ " ds_fields = parcels.tutorial.open_dataset(\n " ,
66+ " \" CopernicusMarine_data_for_Argo_tutorial/data\"\n " ,
7767 " )\n " ,
7868 " ds_fields.load() # load the dataset into memory\n " ,
7969 " \n " ,
Original file line number Diff line number Diff line change 3939 " import parcels.tutorial\n " ,
4040 " \n " ,
4141 " # Load the CopernicusMarine data in the Agulhas region from the example_datasets\n " ,
42- " ds_fields = xr.merge(\n " ,
43- " [\n " ,
44- " parcels.tutorial.open_dataset(\n " ,
45- " \" CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-cur_anfc\"\n " ,
46- " ),\n " ,
47- " parcels.tutorial.open_dataset(\n " ,
48- " \" CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-so_anfc\"\n " ,
49- " ),\n " ,
50- " parcels.tutorial.open_dataset(\n " ,
51- " \" CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-thetao_anfc\"\n " ,
52- " ),\n " ,
53- " ]\n " ,
42+ " ds_fields = parcels.tutorial.open_dataset(\n " ,
43+ " \" CopernicusMarine_data_for_Argo_tutorial/data\"\n " ,
5444 " )\n " ,
5545 " \n " ,
5646 " # TODO check how we can get good performance without loading full dataset in memory\n " ,
Original file line number Diff line number Diff line change 4646 " import parcels.tutorial\n " ,
4747 " \n " ,
4848 " # Load the CopernicusMarine data in the Agulhas region from the example_datasets\n " ,
49- " ds_fields = xr.merge(\n " ,
50- " [\n " ,
51- " parcels.tutorial.open_dataset(\n " ,
52- " \" CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-cur_anfc\"\n " ,
53- " ),\n " ,
54- " parcels.tutorial.open_dataset(\n " ,
55- " \" CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-so_anfc\"\n " ,
56- " ),\n " ,
57- " parcels.tutorial.open_dataset(\n " ,
58- " \" CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-thetao_anfc\"\n " ,
59- " ),\n " ,
60- " ]\n " ,
49+ " ds_fields = parcels.tutorial.open_dataset(\n " ,
50+ " \" CopernicusMarine_data_for_Argo_tutorial/data\"\n " ,
6151 " )\n " ,
6252 " ds_fields.load() # load the dataset into memory\n " ,
6353 " \n " ,
Original file line number Diff line number Diff line change 6060 "outputs" : [],
6161 "source" : [
6262 " # Load the CopernicusMarine data in the Agulhas region from the example_datasets\n " ,
63- " ds_fields = xr.merge(\n " ,
64- " [\n " ,
65- " parcels.tutorial.open_dataset(\n " ,
66- " \" CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-cur_anfc\"\n " ,
67- " ),\n " ,
68- " parcels.tutorial.open_dataset(\n " ,
69- " \" CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-so_anfc\"\n " ,
70- " ),\n " ,
71- " parcels.tutorial.open_dataset(\n " ,
72- " \" CopernicusMarine_data_for_Argo_tutorial/cmems_mod_glo_phy-thetao_anfc\"\n " ,
73- " ),\n " ,
74- " ]\n " ,
63+ " ds_fields = parcels.tutorial.open_dataset(\n " ,
64+ " \" CopernicusMarine_data_for_Argo_tutorial/data\"\n " ,
7565 " )\n " ,
7666 " ds_fields.load() # load the dataset into memory\n " ,
7767 " \n " ,
You can’t perform that action at this time.
0 commit comments