<div dir="ltr"><div dir="ltr">Dear NCL users <div><br></div><div>I want to get all lat lons from the geogrid file in WRF. I am using the following code. </div><div><br></div><div>Can you kindly let me know if the code is correct ? When I compare the output to a fortran code the values are different.</div><div><br></div><div><div>a=addfile("<a href="http://geo_em.d05.nc">geo_em.d05.nc</a>","r")</div><div>lat2d = wrf_user_getvar(a,"XLAT_M",0)</div><div>lon2d = wrf_user_getvar(a,"XLONG_M",0)</div><div><br></div><div>filename = "test_lat_lon.csv"</div><div>system("rm -rf " + filename)</div><div>write_table(filename,"w",[/lat2d,lon2d/],"%1.6f %3.4f")</div></div><div><br></div><div>I am attaching the output from both the fortran and NCL codes for convenience.</div><div><br></div><div><br></div></div></div>