Project

General

Profile

RE: merge multi netcdf files, not base on time » processing.sh

Ralf Mueller, 2021-03-03 10:18

 
for i in $(seq 1 6); do ls l${i}.nc; cp griddes griddes_${i}; perl -pi.bak -e "s/AAA/${i}/" griddes_${i} ; cdo -setzaxis,griddes_${i} l${i}.nc out${i}.nc ;done
cdo merge out{1,2,3,4,5,6}.nc OUT.nc
(2-2/2)