Commit 688d43a8 authored by Willi Rath's avatar Willi Rath

Merge branch 'develop' into 'master'

Minor fixes for AVISO_eddy_trajectories

See merge request !36
parents 8467042e 2686ffd0
......@@ -22,6 +22,7 @@ credential_files:
data:
- url: ftp://ftp.aviso.altimetry.fr/global/delayed-time/value-added/eddy-trajectory
cut_dirs: 4
prefix: data
accept_files: "*.*"
username_var: AVISO_USER
......
#!/bin/bash
# define and export convert function
function convert_to_nc4c {
file_name=$1
echo "converting ${file_name}"
nccopy -7 -d 1 -s -c "time/1,latitude/100,longitude/100" \
${file_name} ${file_name}_tmp_nc4
mv ${file_name}_tmp_nc4 ${file_name}
}
export -f convert_to_nc4c
# convert using 4 threads
find data/ -type f -iname \*.nc -print0 | \
xargs -0 -n1 -P4 -I {} bash -c "convert_to_nc4c {}"
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