Commit aba75bcc authored by Willi Rath's avatar Willi Rath

Add (un-tested) draft for ERAIN_SFC12_MM

parent 59e030b6
repo_name: ERAIN_SFC12
people: Willi Rath (<wrath@geomar.de>)
http_path_remote: https://git.geomar.de/data/ERAIN_SFC12
git_path_remote: git@git.geomar.de:data/ERAIN_SFC12
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:
- cera_data_set: ERAIN_SFC12_MM_EWSS_180
prefix: data
username_var: CERA_USER
password_var: CERA_PWD
method: !!python/name:data_repo_renderer.JblobCred
- cera_data_set: ERAIN_SFC12_MM_NSSS_181
prefix: data
username_var: CERA_USER
password_var: CERA_PWD
method: !!python/name:data_repo_renderer.JblobCred
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:
- 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
cdo -t ecmwf -f nc -copy -remapcon,r720x360 -setgridtype,regular \
${grb_file} ${nc_file}
}
export -f convert_grb_to_netcdf
find data -iname \*.grb -print0 | \
xargs -0 -n1 -P2 -I {} bash -c "convert_grb_to_netcdf {}"
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