Project

General

Profile

Calculating standard deviation for each cell in a NETCDF file

Added by nazanin tavakoli about 3 years ago

Hello,
I have a NetCDF file that contains monthly data(228 months), and I want to calculate the standard deviation for each cell through these 228 months. I mean that at the end I should have a NetCDF file that has the same longitude and latitude of main data, and will show SD for each cell during 228 months. Is it possible to do this in CDO?
Here is my data, and I really appreciate your help.

aet1.rar (13.2 MB) aet1.rar

Replies (4)

RE: Calculating standard deviation for each cell in a NETCDF file - Added by Ralf Mueller about 3 years ago

hi!

no offense, but you could at least try to search the official documentation (https://code.mpimet.mpg.de/projects/cdo/embedded/index.html#x1-4460002.8.16)

cheers
ralf

RE: Calculating standard deviation for each cell in a NETCDF file - Added by nazanin tavakoli about 3 years ago

Dear Ralf,
I had read the manual before, but I didn't find a code to do this in CDO. I have just found the following code that calculates SD for all cells each month. Actually, I want to calculate SD for each cell during 228 months.
cdo monstd inpute output
cdo monstd1 inpute output

RE: Calculating standard deviation for each cell in a NETCDF file - Added by Ralf Mueller about 3 years ago

hi!
If you open the html or pdf docu and search (Ctrl-s) for standard deviation you can find many operators. This is because CDO can to this type of analysis along many different dimensions and time intervals. At the end you have to choose the right one for you. At least to me it sounds like timstd seems the right one, but I might be wrong.

best wishes
ralf

    (1-4/4)