Commit a13c927a authored by Willi Rath's avatar Willi Rath

Add drifter climatology

parent f7289388
repo_name: DAC_drifter_climatology
people: Willi Rath (<wrath@geomar.de>)
http_path_remote: https://git.geomar.de/data/DAC_drifter_climatology
git_path_remote: git@git.geomar.de:data/DAC_drifter_climatology
repo_description: |
A drifter-derived monthly climatology of global near-surface currents.
<http://www.aoml.noaa.gov/phod/dac/dac_meanvel.php>
citations:
- text: "Laurindo, L., A. Mariano, and R. Lumpkin, 2017: An improved
near-surface velocity climatology for the global ocean from drifter
observations Deep-Sea Res. I, 124, pp.73-92,
doi:10.1016/j.dsr.2017.04.009 ."
doi: "10.1016/j.dsr.2017.04.009"
prefixes: data doc
data:
- url: "http://www.aoml.noaa.gov/phod/dac/drifter_annualmeans.nc"
prefix: data
file_name: drifter_annualmeans.nc
method: !!python/name:data_repo_renderer.CurlSingleFile
- url: "http://www.aoml.noaa.gov/phod/dac/drifter_monthlymeans.nc"
prefix: data
file_name: drifter_monthlymeans.nc
method: !!python/name:data_repo_renderer.CurlSingleFile
- url: "http://www.aoml.noaa.gov/phod/dac/drifter_variance.nc"
prefix: data
file_name: drifter_variance.nc
method: !!python/name:data_repo_renderer.CurlSingleFile
- url: "http://www.aoml.noaa.gov/phod/dac/drifter_annualmeans.mat"
prefix: data
file_name: drifter_annualmeans.mat
method: !!python/name:data_repo_renderer.CurlSingleFile
- url: "http://www.aoml.noaa.gov/phod/dac/drifter_monthlymeans.mat"
prefix: data
file_name: drifter_monthlymeans.mat
method: !!python/name:data_repo_renderer.CurlSingleFile
- url: "http://www.aoml.noaa.gov/phod/dac/drifter_variance.mat"
prefix: data
file_name: drifter_variance.mat
method: !!python/name:data_repo_renderer.CurlSingleFile
- url: "http://www.aoml.noaa.gov/phod/dac/drifter_annualmeans_ascii.dat"
prefix: data
file_name: drifter_annualmeans_ascii.dat
method: !!python/name:data_repo_renderer.CurlSingleFile
- url: "http://www.aoml.noaa.gov/phod/dac/drifter_monthlymeans_ascii.dat"
prefix: data
file_name: drifter_monthlymeans_ascii.dat
method: !!python/name:data_repo_renderer.CurlSingleFile
- url: "http://www.aoml.noaa.gov/phod/dac/drifter_variance_ascii.dat"
prefix: data
file_name: drifter_variance_ascii.dat
method: !!python/name:data_repo_renderer.CurlSingleFile
doc:
- url: "http://www.aoml.noaa.gov/phod/dac/dac_meanvel.php"
prefix: doc
file_name: www.aoml.noaa.gov_phod_dac_dac_meanvel.html
method: !!python/name:data_repo_renderer.CurlSingleFile
post_processing:
- util/rename_and_transpose_netCDF_data.sh
#!/bin/bash
# define and export convert function
function rename_and_transpose_netcdf_data {
file_name=$1
echo "converting ${file_name}"
ncrename -v Time,time ${file_name} ${file_name}_tmp \
&& mv ${file_name}_tmp ${file_name}
ncrename -v Lat,latitude -v Lon,longitude ${file_name} ${file_name}_tmp \
&& mv ${file_name}_tmp ${file_name}
ncpdq -a latitude,longitude ${file_name} ${file_name}_tmp \
&& mv ${file_name}_tmp ${file_name}
}
export -f rename_and_transpose_netcdf_data
# bunzip and convert using 3 threads
find data/ -type f -iname \*.nc -print0 | \
xargs -0 -n1 -P3 -I {} bash -c "rename_and_transpose_netcdf_data {}"
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