Commit 75330a58 authored by Willi Rath's avatar Willi Rath

Use for-loop for multiple data sets

parent 7470c1cf
...@@ -305,12 +305,14 @@ class JblobCred(Renderer): ...@@ -305,12 +305,14 @@ class JblobCred(Renderer):
popd popd
jblob_jar="${{jblob_tmp_dir}}"/Jblob-2.0.10/Jblob.jar jblob_jar="${{jblob_tmp_dir}}"/Jblob-2.0.10/Jblob.jar
commons_jar="${{jblob_tmp_dir}}"/Jblob-2.0.10/commons-codec-1.4.jar commons_jar="${{jblob_tmp_dir}}"/Jblob-2.0.10/commons-codec-1.4.jar
java -cp "${{jblob_jar}}":"${{commons_jar}}" \\ for ds in {cera_data_sets_string}; do
de.dkrz.cera.applications.JblobClient \\ java -cp "${{jblob_jar}}":"${{commons_jar}}" \\
--username "${{{username_var}}}" \\ de.dkrz.cera.applications.JblobClient \\
--password "${{{password_var}}}" \\ --username "${{{username_var}}}" \\
--dataset {cera_data_sets_string} \\ --password "${{{password_var}}}" \\
--dir {prefix} --dataset ${{ds}} \\
--dir {prefix}
done
rm -rf "${{jblob_tmp_dir}}" rm -rf "${{jblob_tmp_dir}}"
# == Get data from CERA == # == Get data from CERA ==
......
...@@ -171,12 +171,14 @@ unzip JBlob-2.0.10.zip ...@@ -171,12 +171,14 @@ unzip JBlob-2.0.10.zip
popd popd
jblob_jar="${{jblob_tmp_dir}}"/Jblob-2.0.10/Jblob.jar jblob_jar="${{jblob_tmp_dir}}"/Jblob-2.0.10/Jblob.jar
commons_jar="${{jblob_tmp_dir}}"/Jblob-2.0.10/commons-codec-1.4.jar commons_jar="${{jblob_tmp_dir}}"/Jblob-2.0.10/commons-codec-1.4.jar
java -cp "${{jblob_jar}}":"${{commons_jar}}" \\ for ds in ERAIN_SFC12_MM_EWSS_180 ERAIN_SFC12_MM_NSSS_181; do
de.dkrz.cera.applications.JblobClient \\ java -cp "${{jblob_jar}}":"${{commons_jar}}" \\
--username "${{CERA_USER}}" \\ de.dkrz.cera.applications.JblobClient \\
--password "${{CERA_PWD}}" \\ --username "${{CERA_USER}}" \\
--dataset ERAIN_SFC12_MM_EWSS_180 ERAIN_SFC12_MM_NSSS_181 \\ --password "${{CERA_PWD}}" \\
--dir data --dataset ${{ds}} \\
--dir data
done
rm -rf "${{jblob_tmp_dir}}" rm -rf "${{jblob_tmp_dir}}"
# == Get data from CERA == # == Get data from CERA ==
......
...@@ -75,12 +75,14 @@ def test_jblob_cred_rendering(): ...@@ -75,12 +75,14 @@ def test_jblob_cred_rendering():
popd popd
jblob_jar="${jblob_tmp_dir}"/Jblob-2.0.10/Jblob.jar jblob_jar="${jblob_tmp_dir}"/Jblob-2.0.10/Jblob.jar
commons_jar="${jblob_tmp_dir}"/Jblob-2.0.10/commons-codec-1.4.jar commons_jar="${jblob_tmp_dir}"/Jblob-2.0.10/commons-codec-1.4.jar
java -cp "${jblob_jar}":"${commons_jar}" \\ for ds in example_ds_01 example_ds_02; do
de.dkrz.cera.applications.JblobClient \\ java -cp "${jblob_jar}":"${commons_jar}" \\
--username "${ASDF_USER}" \\ de.dkrz.cera.applications.JblobClient \\
--password "${ASDF_PWD}" \\ --username "${ASDF_USER}" \\
--dataset example_ds_01 example_ds_02 \\ --password "${ASDF_PWD}" \\
--dir pref --dataset ${ds} \\
--dir pref
done
rm -rf "${jblob_tmp_dir}" rm -rf "${jblob_tmp_dir}"
# == Get data from CERA == # == Get data from CERA ==
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment