Commit 1d4db832 authored by Willi Rath's avatar Willi Rath

Merge branch 'develop' into 'master'

Render MIMOC

See merge request !53
parents d4b99825 3e1b0421
repo_name: MIMOC
people: Willi Rath (<wrath@geomar.de>)
http_path_remote: https://git.geomar.de/data/MIMOC
git_path_remote: git@git.geomar.de:data/MIMOC.git
repo_description: |
A Monthly Isopycnal and Mixed-layer Ocean Climatology. <https://www.pmel.noaa.gov/mimoc/index.html>
prefixes: data doc
data:
- url: "https://www.pmel.noaa.gov/mimoc/"
cut_dirs: 2
prefix: data
accept_files: "*.nc.gz,*.zip"
method: !!python/name:data_repo_renderer.WgetRecursive
doc:
- url: "https://www.pmel.noaa.gov/mimoc/index.html"
file_name: www.pmel.noaa.gov_mimoc_index.html
prefix: doc
method: !!python/name:data_repo_renderer.CurlSingleFile
post_processing:
- unzip -o -d data/ data/*.zip
- gunzip -f -v data/*.nc.gz
- util/convert_to_netCDF4_classic.sh
#!/bin/bash
function _conv_to_netcdf4 {
infile=$1
tmpfile=/tmp/_tmp_`date +%s%N`_`basename ${infile}`
nccopy -s -7 -d 1 \
-c"SIG/1,LAT/90,LONG/90" \
-c"PRES/1,LAT/90,LONG/90" \
-c"LAT/90,LONG/90" \
${infile} ${tmpfile}
cdo diff ${tmpfile} ${infile} && mv ${tmpfile} ${infile}
echo "Converted ${infile} to deflated netCDF4 classic"
}
export -f _conv_to_netcdf4
find data -type f -name \*.nc -print0 | \
xargs -0 -n1 -P8 -I {} bash -c "_conv_to_netcdf4 {}"
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