Skip to content

Commit

Permalink
updated the path to the downloadable data
Browse files Browse the repository at this point in the history
  • Loading branch information
cpierard committed Jul 12, 2024
1 parent dd7b5bb commit 8d8a6f8
Show file tree
Hide file tree
Showing 15 changed files with 7 additions and 3,030 deletions.
2 changes: 1 addition & 1 deletion analysis/Map_origin_particles_surface.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"metadata": {},
"outputs": [],
"source": [
"mask = xr.open_dataset('/storage/shared/oceanparcels/input_data/MOi/domain_ORCA0083-N006/PSY4V3R1_mask.nc')\n",
"mask = xr.open_dataset('../data/PSY4V3R1_mask.nc')\n",
"indices = {'lat': range(400, 1600), 'lon': range(2000, 4300)}\n",
"landmask = mask['tmask'][0, 0, indices['lat'], indices['lon']]\n",
"xlon = mask['nav_lon'][indices['lat'], indices['lon']].values\n",
Expand Down
2 changes: 1 addition & 1 deletion analysis/size_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

for ft in tqdm(simulations):
# print('Computing fragmentation timescale: ', ft)
local_path = f'/storage/shared/oceanparcels/output_data/data_Claudio/hc13_3/hc13_{ft}.zarr'
local_path = f'../data/simulations/hc13_{ft}.zarr'
sim = xr.open_zarr(local_path)
sim = sim.where(sim.time >= np.datetime64('2007-01-01'), drop=True) # analysis stops at 2007-01-01

Expand Down
6 changes: 3 additions & 3 deletions analysis/supplementary_material_plots.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"\n",
"depth_bins = np.linspace(-5500, 0, 56) # creates a 100m bins\n",
"\n",
"simulations = ['_k2', '', '_k4']\n",
"simulations = ['_k2', '_k3', '_k4']\n",
"sim_names = ['k2', 'k3', 'k4']"
]
},
Expand Down Expand Up @@ -113,7 +113,7 @@
"\n",
"for k, ft in enumerate(tqdm(simulations)):\n",
" # print('Computing fragmentation timescale: ', ft)\n",
" local_path = f'/storage/shared/oceanparcels/output_data/data_Claudio/hc13_2/hc13_1000{ft}.zarr'\n",
" local_path = f'../data/simulations/hc13_1000{ft}.zarr'\n",
" sim = xr.open_zarr(local_path)\n",
" nano = sim.where(sim.radius < 1e-6/2, drop=False)\n",
" sim_dict = {}\n",
Expand Down Expand Up @@ -196,7 +196,7 @@
"\n",
"for k, ft in enumerate(tqdm(simulations)):\n",
" # print('Computing fragmentation timescale: ', ft)\n",
" local_path = f'/storage/shared/oceanparcels/output_data/data_Claudio/hc13_2/hc13_1000{ft}.zarr'\n",
" local_path = f'../data/simulations/hc13_1000{ft}.zarr'\n",
" sim = xr.open_zarr(local_path)\n",
"\n",
" # loading fields as np arrays to do some nasty indexing\n",
Expand Down
2 changes: 1 addition & 1 deletion analysis/surface_and_near_shore_particles_stats.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"\n",
"for k, ft in enumerate(tqdm(simulations)):\n",
" # print('Computing fragmentation timescale: ', ft)\n",
" local_path = f'/storage/shared/oceanparcels/output_data/data_Claudio/hc13_3/hc13_{ft}.zarr'\n",
" local_path = f'../data/simulations/hc13_{ft}.zarr'\n",
" sim = xr.open_zarr(local_path)\n",
"\n",
" # loading fields as np arrays to do some nasty indexing\n",
Expand Down
79 changes: 0 additions & 79 deletions analysis/vertical_Kz_profiles.py

This file was deleted.

2 changes: 1 addition & 1 deletion analysis/vertical_histograms.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
sim_dict = {}

# Load the data from the simulation
local_path = f'/storage/shared/oceanparcels/output_data/data_Claudio/hc13_3/hc13_{ft}.zarr'
local_path = f'../data/simulations/hc13_{ft}.zarr'
sim = xr.open_zarr(local_path)
sim = sim.where(sim.time >= np.datetime64('2007-01-01'), drop=True) # analysis stops at 2007-01-01
nano = sim.where(sim.radius < 1e-6/2, drop=False)
Expand Down
Binary file removed article_figs/Figure3_legend_patch.png
Binary file not shown.
5 changes: 0 additions & 5 deletions article_figs/stats_frag_into_NPs.csv

This file was deleted.

81 changes: 0 additions & 81 deletions notebooks/julia/about_fragmentation.jl

This file was deleted.

Binary file removed notebooks/julia/density_profile.npy
Binary file not shown.
Binary file removed notebooks/julia/depth_profile.npy
Binary file not shown.
2,781 changes: 0 additions & 2,781 deletions notebooks/julia/reverse-fragmentation-analysis.ipynb

This file was deleted.

27 changes: 0 additions & 27 deletions simulation/submit-abyssal-backtrack_copy_1.sh

This file was deleted.

29 changes: 0 additions & 29 deletions simulation/submit-abyssal-backtrack_copy_2.sh

This file was deleted.

21 changes: 0 additions & 21 deletions simulation/submit-part2.sh

This file was deleted.

0 comments on commit 8d8a6f8

Please sign in to comment.