<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px"><div dir="ltr" id="yui_3_16_0_1_1447726604047_51412"><span id="yui_3_16_0_1_1447726604047_51453">Hi all. <br></span></div><div id="yui_3_16_0_1_1447726604047_51504" dir="ltr"><span id="yui_3_16_0_1_1447726604047_51453">I have some 11 variables in my NETCDF file (attached). <br></span></div><div dir="ltr"><span id="yui_3_16_0_1_1447726604047_51453">My question is how can I store each variable in a new file ..... Or secondly, If I have to append the file (with all 11 variables data) how I can do that. <br></span></div><div dir="ltr"><span id="yui_3_16_0_1_1447726604047_51453">Pls see my asciiwrite statement. <br></span></div><div dir="ltr"><span id="yui_3_16_0_1_1447726604047_51453"><br></span></div><div id="yui_3_16_0_1_1447726604047_51553" dir="ltr"><span id="yui_3_16_0_1_1447726604047_51453">begin<br class="" id="yui_3_16_0_1_1447726604047_51422"> a = addfile("COMP_3level.nc","r") ; RDR data<br class="" id="yui_3_16_0_1_1447726604047_51424">; print(getfilevarnames(a))<br class="" id="yui_3_16_0_1_1447726604047_51426"> var_names = getfilevarnames(a)<br class="" id="yui_3_16_0_1_1447726604047_51428"> no_of_vars = dimsizes(var_names)<br class="" id="yui_3_16_0_1_1447726604047_51430"> print(var_names)<br class="" id="yui_3_16_0_1_1447726604047_51432"> print(no_of_vars)<br class="" id="yui_3_16_0_1_1447726604047_51434"><br class="" id="yui_3_16_0_1_1447726604047_51436"> do n = 0,no_of_vars-1<br class="" id="yui_3_16_0_1_1447726604047_51438"> var = a->$var_names(n)$ <br class="" id="yui_3_16_0_1_1447726604047_51440">; printVarSummary(var)<br class="" id="yui_3_16_0_1_1447726604047_51442">; print(var)<br class="" id="yui_3_16_0_1_1447726604047_51444"> asciiwrite("var.txt",var) ; See this statement<br class="" id="yui_3_16_0_1_1447726604047_51446"> delete(var)<br class="" id="yui_3_16_0_1_1447726604047_51448"> end do<br class="" id="yui_3_16_0_1_1447726604047_51450"><br class="" id="yui_3_16_0_1_1447726604047_51452"></span></div><div id="yui_3_16_0_1_1447726604047_51554"> </div><div class="signature">Geeta.</div></div></body></html>