<div dir="ltr">Hello,<div><br></div><div>I am a new user to NCL, at Appalachian State University in NC. Our research group is interested in exporting formatted tables of WRF output data into a standard ascii text file. I will use a simplified example matrix, as building the real one requires WRF output files and a complicated loop structure. My issue is specifically with the write_matrix() command.</div><div><br></div><div>hd_array = generate_2d_array<span style="color:rgb(0,0,0);font-family:courier;font-size:13.3333px">(20,20,-1,1,0,(/5,10/))</span></div><div>hd_dims = dimsizes(hd_array)</div><div><br></div><div>The matrix "hd_array" has been successfuly built and yields a nicely formatted matrix to the standard output (terminal) with the code below:</div><div><br></div><div>fmtHD = str_concat((/tostring(hd_dims),"f5.2"/))</div><div>write_matrix(hd_array,fmtHD,False)</div><div><br></div><div>However, when the option is set to write the matrix to a text file, the file "example.txt" comes up empty even though the command executes without giving errors.</div><div><br></div><div>What am I missing here?</div><div><br></div><div>-David</div><div><br></div><div><br></div><div><br></div></div>