Download ORCA2 example data from the official NEMO reference configurations
Via http://forge.ipsl.jussieu.fr/nemo/wiki/Users/ReferenceConfigurations/ORCA2_LIM3_PISCES, we get to which has the output of an ORCA2_LIM3_PISCES reference run. 10 years of annual-mean data amount to about 500 MB transfer and 250 MB on disk (after proper deflation / shuffling). So that's even not a problem in CI.
With download_OR2L3P-V1.sh
:
#!/bin/bash
years=$*
base_url="http://prodn.idris.fr/thredds/fileServer/ipsl_public/rgzi002/ORCA2_LIM3_PISCES/OR2L3P-V1"
ye_ocean_output_url="${base_url}/OCE/Output/YE"
for y in ${years}; do
for g in {T..W}; do
yyyy=$(printf "%04d" ${y})
file_name=OR2L3P-V1_${yyyy}0101_${yyyy}1231_1Y_grid_${g}.nc
tmp_file_name=_${file_name}
rm -fv ${file_name} ${tmp_file_name}
curl -s ${ye_ocean_output_url}/${file_name} -o ${tmp_file_name}
echo ${file_name}
done
done
rm -fv {,_}OR2L3P-V1_mesh_mask.nc
curl -s ${base_url}/GRID/OR2L3P-V1_mesh_mask.nc -o _OR2L3P-V1_mesh_mask.nc
echo OR2L3P-V1_mesh_mask.nc
ls -1 _*\.nc | cut -d_ -f2- | xargs -n1 -P4 -I {} \
bash -c "rm -fv {}; nccopy -7 -d1 -s _{} {}; rm -fv _{}"
This downloads the first 10 years of reference data and the mesh-mask file:
./download_OR2L3P-V1.sh {1..10}
Edited by Willi Rath