I used Climate data operator (CDO) to extract time series in CSV format with the following code
cdo -outputtab,date,lon,lat,value -remapnn,lon={}_lat={} input.nc> output.csv
Here, CSV file comes with variables date, lon, lat and value in a single column as shown below.
date lat lon value
1950-01-01 31.57 -85.25 0.05
1950-01-01 31.57 -85.25 0.06
1950-01-01 31.57 -85.25 0.07
.......
.......
2000-01-01 31.57 -85.25 3.01
How can I create a column for each variable?
If possible, I want to change in the given code.