<meta http-equiv="Content-Type" content="text/html; charset=GB18030"><div>Hi, <br></div><div> I have trouble writing formatted string using NCL. <br></div><div><br></div><div> As I typed: system("printf "+dq+"%-40s"+dq+" "+ dq+"DENVER/STAPLETON INT., CO. / U.S.A."+dq), output showed DENVER/STAPLETON INT., CO. / U.S.A. ;</div><div><br></div><div> I wanted to store the output to a variable, so I changed the command to: print(systemfunc("printf "+dq+"%-40s"+dq+" "+ dq+"DENVER/STAPLETON INT., CO. / U.S.A."+dq)), however, I got missing. <br></div><div><br></div><div> What the matter with 'systemfunc' here? <br></div><div><br></div><div> ---------------------------------------------------------------------</div><div><br></div><div> Here are Fortran codes to write formatted string: <br></div><div> </div><div> WRITE(fout, '(2f20.5,A40)') longi, lati, STRING1</div><div><br></div><div> I tried write_table to write, but spaces will be automaticlly inserted between different kind of varibles.</div><div><br></div><div> Is there any efficient way to write formatted string the same as Fortran? </div><div><br></div><div> Thanks,</div><div><br></div><div> HUANG<br></div><div> <br></div>