I'm using Linux and I want to merge nc files into one. I have downloaded on this website. There are lots of netcdf files (more than 1000) that takes a lot of time to merge if merging manually, copy and paste one by one. I think about using vi command and it will automatically merge and create .sh file but don't know how to do.
Anyone can help merge nc file that take less time than doing manually?
Thanks alot.
Here is the text that using to download the files(1st time using this and the text begins from imns):
imns="01 02 03 04 05 06 07 08 09 10 11 12"
for iyr in {2000..2019};do
for imn in $imns;do
for idy in {1..31}; do
if [ $idy < 10 ]; then
idy="0"$idy
fi
file="https://podaac-opendap.jpl.nasa.gov/opendap/allData/merged_alt/L4/cdr_grid/ssh_grids_v1812_"$iyr$imn$idy"12.nc"
echo $file
wget $file
done
done
done