I am new in shell/bash scripting. I want to extract data from multiple netcdf files using the bash or shell script. Each file contains a time series of temperature values. For example:
FileA.nc contains 20 20 21 22 23 24
FileB.nc contains 23 24 25 26 27 24
FileC.nc contains 21 20 19 18 22 23
I want to extract the values per file and merge the results of the three files. The output should look like this saved as a csv file.
A 20 20 21 22 23 24
B 23 24 25 26 27 24
C 21 20 19 18 22 23
What is the easiest way to do this? Many thanks in advance for the help.
A,B and so onsingle character stuff?fileC.nc.