1717# Created On: 2025-05-15
1818#
1919# ==============================================================
20- # -- Input arguments to msm-os -- #
20+ set -euo pipefail
21+
22+ # -- Input arguments to OceanDataStore -- #
2123# Filepath to eORCA1 ancillary file:
2224filepath_domain=/dssgfs01/scratch/npd/simulations/Domains/eORCA1/domain_cfg.nc
2325
@@ -32,26 +34,26 @@ dask_config_json=.../OceanDataStore/tests/dask_config.json
3234
3335# Bucket and object prefix:
3436bucket=npd-eorca1-era5v1
35- prefix=test/U1m_zarr_dask
37+ prefix=test/U1m_zarr_update_dask
3638
3739# Define the append dimension:
3840append_dim=time_counter
3941
4042# Define variable:
41- variables=" time_counter_bounds uo"
43+ variables=" time_counter_bounds uo umo "
4244
4345# -- Python Environment -- #
4446# Activate miniconda environment:
45- source /home/ otooth/miniconda3/etc/profile.d/conda.sh
46- conda activate env_jasmin_os
47+ source /dssgfs01/working/ otooth/miniforge3/bin/activate
48+ conda activate env_test
4749
4850# -- Send eORCA1 ERA-5 v1 monthly mean outputs to JASMIN OS -- #
4951echo " In Progress: Sending eORCA1 ERA-5 v1 U1m variables to JASMIN object store..."
50- filepath_gridU=$filedir /eORCA1_ERA5_1m_grid_U_197601-197601 .nc
52+ filepath_gridU=$filedir /eORCA1_ERA5_1m_grid_U_1976 * .nc
5153ods send_to_zarr -f $filepath_gridU -c $store_credentials_json -b $bucket -p $prefix \
5254 -gf $filepath_domain -uc ' {"nav_lon":"glamu", "nav_lat":"gphiu"}' \
53- -ad $append_dim - cs ' {"x":360,"y":331,"depthu":25}' -v $variables \
54- -dc $dask_config_json || { echo " Error: ods send_to_zarr failed. " ; exit 1 ; }
55+ -cs ' {"x":360,"y":331,"depthu":25}' -v $variables \
56+ -dc $dask_config_json
5557
5658echo " Completed: Sent eORCA1 ERA-5 v1 monthly mean fields to JASMIN object store."
5759
@@ -60,7 +62,7 @@ echo "In Progress: Updating eORCA1 ERA-5 v1 U1m variables to JASMIN object store
6062filepath_gridU=$filedir /eORCA1_ERA5_1m_grid_U_197* .nc
6163ods update_zarr -f $filepath_gridU -c $store_credentials_json -b $bucket -p $prefix \
6264 -gf $filepath_domain -uc ' {"nav_lon":"glamu", "nav_lat":"gphiu"}' \
63- -ad $append_dim - cs ' {"x":360,"y":331,"depthu":25}' -v $variables \
64- -dc $dask_config_json || { echo " Error: ods update_zarr failed. " ; exit 1 ; }
65+ -cs ' {"x":360,"y":331,"depthu":25}' -v $variables \
66+ -dc $dask_config_json
6567
6668echo " Completed: Updated eORCA1 ERA-5 v1 monthly mean fields to JASMIN object store."
0 commit comments