Commit 157e6ea6 authored by Willi Rath's avatar Willi Rath

Merge branch '21-add-era-interim-fields' into 'master'

Resolve "Add ERA Interim fields"

Closes #21

See merge request !6
parents 59e030b6 8daf5ca0
repo_name: ERAIN_SFC12_MM
people: Willi Rath (<wrath@geomar.de>)
http_path_remote: https://git.geomar.de/data/ERAIN_SFC12_MM
git_path_remote: git@git.geomar.de:data/ERAIN_SFC12_MM
repo_description: |
ERA-Interim surface 12_MM
<https://cera-www.dkrz.de/WDCC/ui/cerasearch/entry?acronym=ERAIN_SFC12_MM>
citations:
- text: "ECMWF (2011). ERA-Interim surface 12_MM. World Data Center for
Climate (WDCC) at DKRZ.
http://cera-www.dkrz.de/WDCC/ui/Compact.jsp?acronym=ERAIN_SFC12_MM"
doi: "---"
prefixes: data doc
credential_files:
- "${HOME}/.data_repo_creds/ERAIN_SFC12_MM.cred"
data:
- prefix: data
username_var: CERA_USER
password_var: CERA_PWD
method: !!python/name:data_repo_renderer.JblobCred
max_dl_time: 100
cera_data_sets:
- 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
doc:
- url: "https://cera-www.dkrz.de/WDCC/ui/cerasearch/entry?acronym=ERAIN_SFC12_MM"
file_name: cera_ERAIN_SFC12_MM.html
prefix: doc
method: !!python/name:data_repo_renderer.CurlSingleFile
post_processing:
- util/convert_to_netcdf.sh
#!/bin/bash
function convert_grb_to_netcdf {
grb_file=$1
nc_file="$(echo ${grb_file} | rev | cut -d. -f2- | rev)".nc
tmp_nc_file=${nc_file}_tmp
cdo -t ecmwf -f nc -copy ${grb_file} ${tmp_nc_file}
nccopy -7 -d1 -s ${tmp_nc_file} ${nc_file}
rm -f ${tmp_nc_file}
}
export -f convert_grb_to_netcdf
find data -iname \*.grb -print0 | \
xargs -0 -n1 -P4 -I {} bash -c "convert_grb_to_netcdf {}"
mkdir -p data/grb data/nc
mv data/*.grb data/grb
mv data/*.nc data/nc
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