Split ensambles from one single file (grib/netcdf)
Added by Solomon Hailu almost 5 years ago
Dear All,
I am processing the ECMWF Seasonal forecast data and need help in splitting the ensambles. all the ensambnles are merged in one file. this is an example (monthly) with 1932 timesteps and 7 ensambles and need to creat a monthly time series, 1993-2016, by taking a signle ensambles (example 1 : 1994-01-16 12:00:00, 0.31700 8 : 1994-02-15 00:00:00 0.24046 : tp)
1 : 1994-01-16 12:00:00 0 629 0 : 0.0000 0.018084 0.31700 : tp
2 : 1994-01-16 12:00:00 0 629 0 : 0.0000 0.014557 0.35286 : tp
3 : 1994-01-16 12:00:00 0 629 0 : 0.0000 0.020149 0.32449 : tp
4 : 1994-01-16 12:00:00 0 629 0 : 0.0000 0.016203 0.35829 : tp
5 : 1994-01-16 12:00:00 0 629 0 : 0.0000 0.019711 0.30218 : tp
6 : 1994-01-16 12:00:00 0 629 0 : 0.0000 0.020618 0.35519 : tp
7 : 1994-01-16 12:00:00 0 629 0 : 0.0000 0.017836 0.35359 : tp
8 : 1994-02-15 00:00:00 0 629 0 : 0.0000 0.016367 0.24046 : tp
9 : 1994-02-15 00:00:00 0 629 0 : 0.0000 0.012023 0.16903 : tp
10 : 1994-02-15 00:00:00 0 629 0 : 0.0000 0.018680 0.24416 : tp
11 : 1994-02-15 00:00:00 0 629 0 : 0.0000 0.017817 0.22566 : tp
12 : 1994-02-15 00:00:00 0 629 0 : 0.0000 0.016073 0.21865 : tp
13 : 1994-02-15 00:00:00 0 629 0 : 0.0000 0.012007 0.18468 : tp
14 : 1994-02-15 00:00:00 0 629 0 : 0.0000 0.013089 0.20894 : tp
15 : 1994-03-16 12:00:00 0 629 0 : 0.0000 0.057937 0.40938 : tp
16 : 1994-03-16 12:00:00 0 629 0 : 3.1590e-06 0.055416 0.41871 : tp
17 : 1994-03-16 12:00:00 0 629 0 : 0.0000 0.047602 0.36829 : tp
18 : 1994-03-16 12:00:00 0 629 0 : 0.0000 0.058927 0.33334 : tp
19 : 1994-03-16 12:00:00 0 629 0 : 0.0000 0.056122 0.33377 : tp
20 : 1994-03-16 12:00:00 0 629 0 : 0.0000 0.059324 0.33691 : tp
21 : 1994-03-16 12:00:00 0 629 0 : 0.0000 0.064732 0.37455 : tp
22 : 1994-04-16 00:00:00 0 629 0 : 0.0000 0.061477 0.32033 : tp
23 : 1994-04-16 00:00:00 0 629 0 : 2.6524e-06 0.080427 0.35227 : tp
24 : 1994-04-16 00:00:00 0 629 0 : 3.3155e-07 0.055589 0.32983 : tp
25 : 1994-04-16 00:00:00 0 629 0 : 5.9605e-08 0.054859 0.31236 : tp
26 : 1994-04-16 00:00:00 0 629 0 : 0.00033808 0.070957 0.38675 : tp
........
1926 : 2016-12-16 12:00:00 0 629 0 : 0.0000 0.019629 0.28140 : tp
1927 : 2016-12-16 12:00:00 0 629 0 : 0.0000 0.022866 0.30477 : tp
1928 : 2016-12-16 12:00:00 0 629 0 : 0.0000 0.019868 0.27033 : tp
1929 : 2016-12-16 12:00:00 0 629 0 : 0.0000 0.025366 0.34432 : tp
1930 : 2016-12-16 12:00:00 0 629 0 : 0.0000 0.021981 0.34949 : tp
1931 : 2016-12-16 12:00:00 0 629 0 : 0.0000 0.021466 0.28983 : tp
1932 : 2016-12-16 12:00:00 0 629 0 : 0.0000 0.020369 0.28167 : tp
Replies (1)
RE: Split ensambles from one single file (grib/netcdf) - Added by Karin Meier-Fleischer almost 5 years ago
Hi Solomon,
you can select each timestep related to your ensemble member with seltimestep,start,end,increment.
Try
cdo -setname,tp_ens1 -seltimestep,1,1932,7 infile outfile
-Karin