Can we run a group of commands in one go-regarding
Added by Naveen Pothula over 4 years ago
Dear sir,
I am using a set of commands on a .nc file using cdo. How can I apply the commands on the.nc file at a single go, so that I don't need to apply them one after the other.
My question is how can I run a script containing multiple commands instead of one command each time,
for example to use all the commands at a time in a script instead of applying them separately
cdo remapnn,lon=72.25/lat=12.5 a.nc b1.nc
cdo remapnn,lon=72.25/lat=13.5 a.nc b2.nc
cdo remapnn,lon=72.50/lat=14.5 a.nc b3.nc
cdo remapnn,lon=72.50/lat=15.5 a.nc b4.nc
cdo remapnn,lon=72.75/lat=16.5 a.nc b5.nc
cdo ensmean b1.nc b2.nc b3.nc b4.nc b5.nc meanallbs.nc
kindly help
-naveen
Replies (1)
RE: Can we run a group of commands in one go-regarding - Added by Karin Meier-Fleischer over 4 years ago
Hi Naveen,
you can write a short shell script to loop over the lon/lat values and compute the ensmean.
-Karin