Project

General

Profile

RE: How to create a timeseries from multiple nc data file... ยป code2_cor3.sh

Mudit Mudit, 2021-03-18 10:20

 
#!/bin/bash
for year in $(seq -w 1961 2014) ; do
cdo -seltimestep,1/12 pr_Amon_BCC-CSM2-MR_dcppA-hindcast_s${year}.nc $tmpdir/series${year}.nc
done
cd $tmpdir
cdo mergetime *.nc series_t1.nc
exit 0
    (1-1/1)