JBlob hangs
I'm trying to automatically baby-sit Jblob towards getting all the data by doing something like this:
function get_cera_data {
timeout $2 java -cp "${jblob_jar}":"${commons_jar}" \
de.dkrz.cera.applications.JblobClient \
--username "${CERA_USER}" \
--password "${CERA_PWD}" \
--dataset $1 \
--dir data
}
for ds in ERAIN_SFC12_MM_FLSR_245 ERAIN_SFC12_MM_TCIW_079 ERAIN_SFC12_MM_CAPE_059 ERAIN_SFC12_MM_TCLW_078 ERAIN_SFC12_MM_TP_228 ERAIN_SFC12_MM_SP_134 ERAIN_SFC12_MM_10SI_207 ERAIN_SFC12_MM_10U_165 ERAIN_SFC12_MM_10V_166 ERAIN_SFC12_MM_2D_168 ERAIN_SFC12_MM_2T_167 ERAIN_SFC12_MM_ASN_032 ERAIN_SFC12_MM_BLH_159 ERAIN_SFC12_MM_CHNK_148 ERAIN_SFC12_MM_CI_031 ERAIN_SFC12_MM_FAL_243 ERAIN_SFC12_MM_FSR_244 ERAIN_SFC12_MM_HCC_188 ERAIN_SFC12_MM_IEWS_229 ERAIN_SFC12_MM_IE_232 ERAIN_SFC12_MM_INSS_230 ERAIN_SFC12_MM_ISHF_231 ERAIN_SFC12_MM_ISTL1_035 ERAIN_SFC12_MM_ISTL2_036 ERAIN_SFC12_MM_ISTL3_037 ERAIN_SFC12_MM_ISTL4_038 ERAIN_SFC12_MM_LCC_186 ERAIN_SFC12_MM_MCC_187 ERAIN_SFC12_MM_MSL_151 ERAIN_SFC12_MM_RSN_033 ERAIN_SFC12_MM_SD_141 ERAIN_SFC12_MM_SKT_235 ERAIN_SFC12_MM_SRC_198 ERAIN_SFC12_MM_SSTK_034 ERAIN_SFC12_MM_STL1_139 ERAIN_SFC12_MM_STL2_170 ERAIN_SFC12_MM_STL3_183 ERAIN_SFC12_MM_STL4_236 ERAIN_SFC12_MM_SWVL1_039 ERAIN_SFC12_MM_SWVL2_040 ERAIN_SFC12_MM_SWVL3_041 ERAIN_SFC12_MM_SWVL4_042 ERAIN_SFC12_MM_TCC_164 ERAIN_SFC12_MM_TCO3_206 ERAIN_SFC12_MM_TCWV_137 ERAIN_SFC12_MM_TCW_136 ERAIN_SFC12_MM_TSN_238 ERAIN_SFC12_MM_PAR_058 ERAIN_SFC12_MM_RO_205 ERAIN_SFC12_MM_SF_144 ERAIN_SFC12_MM_SI_212 ERAIN_SFC12_MM_SLHF_147 ERAIN_SFC12_MM_SMLT_045 ERAIN_SFC12_MM_SSHF_146 ERAIN_SFC12_MM_SSRC_210 ERAIN_SFC12_MM_SSRD_169 ERAIN_SFC12_MM_SSR_176 ERAIN_SFC12_MM_STRC_211 ERAIN_SFC12_MM_STRD_175 ERAIN_SFC12_MM_STR_177 ERAIN_SFC12_MM_SUND_189 ERAIN_SFC12_MM_TSRC_208 ERAIN_SFC12_MM_TSR_178 ERAIN_SFC12_MM_TTRC_209 ERAIN_SFC12_MM_TTR_179 ERAIN_SFC12_MM_UVB_057 ERAIN_SFC12_MM_CP_143 ERAIN_SFC12_MM_CSF_239 ERAIN_SFC12_MM_ES_044 ERAIN_SFC12_MM_EWSS_180 ERAIN_SFC12_MM_E_182 ERAIN_SFC12_MM_GWD_197 ERAIN_SFC12_MM_LGWS_195 ERAIN_SFC12_MM_LSF_240 ERAIN_SFC12_MM_LSPF_050 ERAIN_SFC12_MM_LSP_142 ERAIN_SFC12_MM_MGWS_196 ERAIN_SFC12_MM_NSSS_181; do
get_cera_data ${ds} 4;
done
sleep 60;
for ds in ERAIN_SFC12_MM_FLSR_245 ERAIN_SFC12_MM_TCIW_079 ERAIN_SFC12_MM_CAPE_059 ERAIN_SFC12_MM_TCLW_078 ERAIN_SFC12_MM_TP_228 ERAIN_SFC12_MM_SP_134 ERAIN_SFC12_MM_10SI_207 ERAIN_SFC12_MM_10U_165 ERAIN_SFC12_MM_10V_166 ERAIN_SFC12_MM_2D_168 ERAIN_SFC12_MM_2T_167 ERAIN_SFC12_MM_ASN_032 ERAIN_SFC12_MM_BLH_159 ERAIN_SFC12_MM_CHNK_148 ERAIN_SFC12_MM_CI_031 ERAIN_SFC12_MM_FAL_243 ERAIN_SFC12_MM_FSR_244 ERAIN_SFC12_MM_HCC_188 ERAIN_SFC12_MM_IEWS_229 ERAIN_SFC12_MM_IE_232 ERAIN_SFC12_MM_INSS_230 ERAIN_SFC12_MM_ISHF_231 ERAIN_SFC12_MM_ISTL1_035 ERAIN_SFC12_MM_ISTL2_036 ERAIN_SFC12_MM_ISTL3_037 ERAIN_SFC12_MM_ISTL4_038 ERAIN_SFC12_MM_LCC_186 ERAIN_SFC12_MM_MCC_187 ERAIN_SFC12_MM_MSL_151 ERAIN_SFC12_MM_RSN_033 ERAIN_SFC12_MM_SD_141 ERAIN_SFC12_MM_SKT_235 ERAIN_SFC12_MM_SRC_198 ERAIN_SFC12_MM_SSTK_034 ERAIN_SFC12_MM_STL1_139 ERAIN_SFC12_MM_STL2_170 ERAIN_SFC12_MM_STL3_183 ERAIN_SFC12_MM_STL4_236 ERAIN_SFC12_MM_SWVL1_039 ERAIN_SFC12_MM_SWVL2_040 ERAIN_SFC12_MM_SWVL3_041 ERAIN_SFC12_MM_SWVL4_042 ERAIN_SFC12_MM_TCC_164 ERAIN_SFC12_MM_TCO3_206 ERAIN_SFC12_MM_TCWV_137 ERAIN_SFC12_MM_TCW_136 ERAIN_SFC12_MM_TSN_238 ERAIN_SFC12_MM_PAR_058 ERAIN_SFC12_MM_RO_205 ERAIN_SFC12_MM_SF_144 ERAIN_SFC12_MM_SI_212 ERAIN_SFC12_MM_SLHF_147 ERAIN_SFC12_MM_SMLT_045 ERAIN_SFC12_MM_SSHF_146 ERAIN_SFC12_MM_SSRC_210 ERAIN_SFC12_MM_SSRD_169 ERAIN_SFC12_MM_SSR_176 ERAIN_SFC12_MM_STRC_211 ERAIN_SFC12_MM_STRD_175 ERAIN_SFC12_MM_STR_177 ERAIN_SFC12_MM_SUND_189 ERAIN_SFC12_MM_TSRC_208 ERAIN_SFC12_MM_TSR_178 ERAIN_SFC12_MM_TTRC_209 ERAIN_SFC12_MM_TTR_179 ERAIN_SFC12_MM_UVB_057 ERAIN_SFC12_MM_CP_143 ERAIN_SFC12_MM_CSF_239 ERAIN_SFC12_MM_ES_044 ERAIN_SFC12_MM_EWSS_180 ERAIN_SFC12_MM_E_182 ERAIN_SFC12_MM_GWD_197 ERAIN_SFC12_MM_LGWS_195 ERAIN_SFC12_MM_LSF_240 ERAIN_SFC12_MM_LSPF_050 ERAIN_SFC12_MM_LSP_142 ERAIN_SFC12_MM_MGWS_196 ERAIN_SFC12_MM_NSSS_181; do
get_cera_data ${ds} 100 \
|| { sleep 10; get_cera_data ${ds} 100; } \
|| echo "Ultimately failed for ${ds}"
done
(cc: @gereon-gollan)