<html><body><div style="color:#000; background-color:#fff; font-family:bookman old style, new york, times, serif;font-size:16px"><div id="yui_3_16_0_1_1435926405862_2832">Hi grads users</div><div id="yui_3_16_0_1_1435926405862_2832">I have a nc file having four variables (msl, temperature at 2m, dewpoint at 2m and total cloud cover) with for different model runs (i.e. 06,12,and 18).</div><div id="yui_3_16_0_1_1435926405862_2832">I want to get the filesfor</div><div id="yui_3_16_0_1_1435926405862_2832">I want either toget the separate file for each variable and foe each model run or separate files for having all variables for each model run</div><div id="yui_3_16_0_1_1435926405862_2832">My nspection shows that </div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr">model run for 06 is given by the time steps of 1,5,9,13,..............4*t-3</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr">for 12 the time steps are given by 2,6,10,14,18,.........4*t-2</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr">for 18 the time steps are given by 3,7,11,15,19........4*t-1</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr">where as that of 00 is given by 4,8,12,16,........4*t</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr">I have tried to develop a script to separate each variable in each model run</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr"><br></div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr"><br></div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr">My script reads like </div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr"><br></div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr" class="">reinit</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr" class="">'sdfopen E:/ECMWF_Data/EC_data/ecmwf_4ense-inst-msl_tcc_t2m06.nc'</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr" class="">'set grid off'</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr" class="">'set grads off'</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr" class="">'set x 1 105'</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr" class="">'set y 1 105'</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr" class="">'set lon 28 41'</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr" class="">'set lat -13 0'</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr" class="">t =1</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr" class="">while (t<=395)</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr" class=""> 'define 06t2m=t2m'</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr" class=""> 'set sdfwrite E:/ECMWF_Data/EC_data/ecmwf_06t2mnew.nc'</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr" class=""> 'sdfwrite 06t2m'</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr" class=""> t =4*t-3</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr" class="">endwhile</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr" class="">"C'</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr" class="">when I run this script it takes long time with out wring the fileI want</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr" class="">when I endt with t=t+4 it write the file with only one time step</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr" class="">I their any one to help this?</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr" class="">either to write all variables in at one model run, so that I can have for separate files </div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr" class="">or to write each variable in a single model run so I can have sixteen files</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr" class="">regards</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr" class="">kaikombo</div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr" class=""><br></div><div id="yui_3_16_0_1_1435926405862_2832" dir="ltr"><br></div></div></body></html>