-
Notifications
You must be signed in to change notification settings - Fork 2
/
merge_data_ncep.sh
16 lines (11 loc) · 1.22 KB
/
merge_data_ncep.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/bash
## This script merges the files into monthly aggregates files
for y in {2013..2016}
do
mkdir ${y}
for m in {01..12}
do
sudo cdo cat merg_${y}${m}*pixel*nc4 ${y}/merg_${y}${m}.nc4
#sudo rm merg_${y}${m}*pixel*nc4
done
done