11#! /bin/bash
2- # SBATCH --job-name=test_update_icechunk
2+ # SBATCH --job-name=test_send_to_icechunk
33# SBATCH --partition=test
44# SBATCH --time=00:20:00
55# SBATCH --ntasks-per-core=1
88# SBATCH --nodes=1
99
1010# ==============================================================
11- # test_update_icechunk .slurm
11+ # test_send_to_icechunk .slurm
1212#
13- # Description: SLURM script to test update_icechunk using the
13+ # Description: SLURM script to test send_to_icechunk using the
1414# eORCA1 ERA-5 v1 monthly-mean output variables.
1515#
1616# Created By: Ollie Tooth (oliver.tooth@noc.ac.uk)
@@ -31,34 +31,25 @@ dask_config_json=.../OceanDataStore/tests/dask_config.json
3131
3232# Bucket and object prefix:
3333bucket=npd-eorca1-era5v1
34- prefix=test/U1m_update_icechunk
34+ prefix=test/U1m_icechunk_vc_dask
3535
3636# Define the append dimension:
3737append_dim=time_counter
3838
3939# Define variable:
40- variables=" uo umo time_counter_bounds "
40+ variables=" time_counter_bounds uo umo"
4141
4242# -- Python Environment -- #
4343# Activate miniconda environment:
4444source /home/otooth/miniconda3/etc/profile.d/conda.sh
45- conda activate env_testing
45+ conda activate env_jasmin_os
4646
4747# -- Send eORCA1 ERA-5 v1 monthly mean outputs to JASMIN OS -- #
48- echo " In Progress: Sending eORCA1 ERA-5 v1 U1m variables to JASMIN object store..."
49- filepath_gridU=$filedir /eORCA1_ERA5_1m_grid_U_197601-197601 .nc
48+ echo " In Progress: Sending eORCA1 ERA-5 v1 U1m variables to JASMIN object store without Dask ..."
49+ filepath_gridU=$filedir /eORCA1_ERA5_1m_grid_U_197 * .nc
5050ods send_to_icechunk -f $filepath_gridU -c $store_credentials_json -b $bucket -p $prefix \
5151 -gf $filepath_domain -uc ' {"nav_lon":"glamu", "nav_lat":"gphiu"}' \
52- -cs ' {"x":360,"y":331,"depthu":25}' -v $variables \
53- -dc $dask_config_json -vs || { echo " Error: ods send_to_icechunk failed." ; exit 1; }
52+ -cs ' {"x":360,"y":331,"depthu":25}' -dc $dask_config_json -vc \
53+ -v $variables || { echo " Error: ods send_to_icechunk failed." ; exit 1; }
5454
55- echo " Completed: Sent eORCA1 ERA-5 v1 monthly mean fields to JASMIN object store."
56-
57- echo " In Progress: Updating eORCA1 ERA-5 v1 U1m variables to JASMIN object store..."
58- filepath_gridU=$filedir /eORCA1_ERA5_1m_grid_U_1976* .nc
59- ods update_icechunk -f $filepath_gridU -c $store_credentials_json -b $bucket -p $prefix \
60- -gf $filepath_domain -uc ' {"nav_lon":"glamu", "nav_lat":"gphiu"}' \
61- -ad $append_dim -cs ' {"x":360,"y":331,"depthu":25}' -v $variables \
62- -dc $dask_config_json -vs || { echo " Error: ods update_icechunk failed." ; exit 1; }
63-
64- echo " Completed: Updated eORCA1 ERA-5 v1 monthly mean fields in JASMIN object store."
55+ echo " Completed: Sent eORCA1 ERA-5 v1 monthly mean fields to JASMIN object store without Dask."
0 commit comments